diff --git a/xtrn/tw2/fighters.ans b/xtrn/tw2/fighters.ans new file mode 100644 index 0000000000000000000000000000000000000000..0ac52aefecd6d982ee494924fbe3a8d9b9d9b3da --- /dev/null +++ b/xtrn/tw2/fighters.ans @@ -0,0 +1 @@ +[?7h[1;1H[40m[2;1H[0;31m[3C [D[13C [D[4;1H[19C [D[5;1H[7C [D[6;1H[9C [D[7;1H[19C [D[10;1H[0m diff --git a/xtrn/tw2/main.ans b/xtrn/tw2/main.ans new file mode 100644 index 0000000000000000000000000000000000000000..983109c6794491a71e455e6015eff1b8c7d6da73 --- /dev/null +++ b/xtrn/tw2/main.ans @@ -0,0 +1 @@ +[?7h[40m[2J[1;1H[0;1;35mɹForeward View�����ͻ[0;34m�[1mTradeWars2/FreeBSD Main Menu[0;34m�������������������������ͻ[2;1H[1;35m� [30m. [0m� [1m. [0m� [1;30m. [35m�[0;34m�[56C�[3;1H[1;35m�[0m� � [1m. [0m� [1;30m. [0m� [1m. [35m�[0;34m� [1;36mA[0;36mttack[11C[1mP[0;36mort at Outpost[5C[1mC[0;36momputer[10C[34m�[4;1H[1;35m� [37m. [30m. [37m.[6C[30m. [35m�[0;34m� [1;36mL[0;36mand on Planet [1mI[0;36mnfo on You[9C[1mT[0;36meam[14C[34m�[5;1H[1;35m� [0m� � [1;30m. [37m. [0m� [1;35m�[0;34m� [1;36mW[0;36marp to Sector [1mZ [0;36mOnline Game Docs [1mQ[0;36muit the Game[5C[34m�[6;1H[1;35m� [30m. [37m� [30m.[6C[0m� [1;30m. [35m�[0;34m� [36mRe[1mD[0;36misplay Sector [1m? [0;36mRedisplay Screen [1m# [0;36mWarp to Sector [34m�[7;1H[1;35m� [0m� [1m. [0m� �[6C[1;35m�[0;34m�[56C�[8;1H[1;35m��������������������ͼ[0;34m��������������������������������������������������������ͼ[9;1H[0m diff --git a/xtrn/tw2/main2.ans b/xtrn/tw2/main2.ans new file mode 100644 index 0000000000000000000000000000000000000000..0a3660adc4a388dc7f78032bdf8a2a488fd56a9c --- /dev/null +++ b/xtrn/tw2/main2.ans @@ -0,0 +1,8 @@ +[2J[1;1H[1;35mɹForeward View�����ͻ[0;34m�[1;34mTradeWars2/JavaScript Main Menu[0;34m���������������������ͻ +[1;35m� [30m.[3C[0;37m� [1;37m.[3C[0;37m�[4C[1;30m. [35m�[0;34m�[55C� +[1;35m�[0;37m� � [1;37m. [0;37m� [1;30m. [0;37m�[3C[1;37m. [35m�[0;34m� [1;36mA[0;36mttack[11C[1;36mP[0;36mort at Outpost[5C[1;36mC[0;36momputer[9C[34m� +[1;35m� [37m. [30m.[3C[37m.[6C[30m.[4C[35m�[0;34m� [1;36mL[0;36mand on Planet[3C[1;36mI[0;36mnfo on You[9C[1;36mT[0;36meam[13C[34m� +[1;35m�[3C[0;37m�[3C�[3C[1;30m. [37m. [0;37m� [1;35m�[0;34m� [1;36mM[0;36move to Sector[3C[1;36mZ [0;36mOnline Game Docs [1;36mQ[0;36muit the Game[4C[34m� +[1;35m� [30m. [37m� [30m.[6C[0;37m�[3C[1;30m. [35m�[0;34m� [36mRe[1;36mD[0;36misplay Sector Take/Leave [1;36mF[0;36mighters [1;36mG[0;36mamble[11C[34m� +[1;35m�[3C[0;37m� [1;37m. [0;37m�[3C�[6C[1;35m�[0;34m�[55C� +[1;35m��������������������ͼ[0;34m�������������������������������������������������������ͼ diff --git a/xtrn/tw2/planet.ans b/xtrn/tw2/planet.ans new file mode 100644 index 0000000000000000000000000000000000000000..72a2a4c59027059eac4ce1a38102f691b49f5451 --- /dev/null +++ b/xtrn/tw2/planet.ans @@ -0,0 +1 @@ +[?7h[1;1H[40m[6;1H[0;31m[1C[37;44m�[40m�[34m�[7;1H[1C[37;44m��[1;34m� [0;34m�[10;1H[0m diff --git a/xtrn/tw2/port.ans b/xtrn/tw2/port.ans new file mode 100644 index 0000000000000000000000000000000000000000..ff71268377729a34a8e00469a5c4319a8248f933 --- /dev/null +++ b/xtrn/tw2/port.ans @@ -0,0 +1 @@ +[?7h[1;1H[40m[2;1H[0;31m[8C[1;37m���[3;1H[4C[30m��[37;47m..[40m���[47m..[30;40m��[4;1H[5C�[0m��[1m���[0m��[1;30m�[10;1H diff --git a/xtrn/tw2/sector.ans b/xtrn/tw2/sector.ans new file mode 100644 index 0000000000000000000000000000000000000000..19c3f040a7da3b3953a766adc76bd9be256c8bb3 --- /dev/null +++ b/xtrn/tw2/sector.ans @@ -0,0 +1 @@ +[?7h[1;1H[40m[8;1H[0;35m[03C[1mSector: \ No newline at end of file diff --git a/xtrn/tw2/sectors.js b/xtrn/tw2/sectors.js index 55a5ed83fe663e97ff31da9ad4cb7306859393ba..d581dccc8d9f1b8d1f51dd75cef2e90a24e9f505 100644 --- a/xtrn/tw2/sectors.js +++ b/xtrn/tw2/sectors.js @@ -159,7 +159,39 @@ function DisplaySector(secnum) var sector=sectors.Get(secnum); var i; var count=0; + var otherships=new Array(); + + for(i=1;i<players.length;i++) { + var otherloc=playerLocation.Get(i); + + if(otherloc.Sector==secnum) { + var otherplayer=players.Get(i); + + if(otherplayer.UserNumber > 0 && otherplayer.Sector==secnum) { + if(otherplayer.Record==player.Record) + continue; + if(otherplayer.KilledBy!=0) + continue; + + otherships.push(otherplayer); + } + } + } + if(user.settings&USER_ANSI) { + console.printfile(fname("main.ans")); + if(sector.Port > 0) + console.printfile(fname("port.ans")); + if(sector.Planet > 0) + console.printfile(fname("planet.ans")); + if(sector.Fighters > 0 && sector.FighterOwner != 0) + console.printfile(fname("fighters.ans")); + if(otherships.length > 0) + console.printfile(fname("ship.ans")); + console.printfile(fname("sector.ans")); + console.attributes="HM"; + console.writeln(secnum); + } console.crlf(); console.attributes="HY"; console.writeln("Sector "+secnum); @@ -180,34 +212,21 @@ function DisplaySector(secnum) console.attributes="HC"; console.writeln("Other Ships"); console.attributes="C"; - for(i=1;i<players.length;i++) { - var otherloc=playerLocation.Get(i); - - if(otherloc.Sector==secnum) { - var otherplayer=players.Get(i); - - if(otherplayer.UserNumber > 0 && otherplayer.Sector==secnum) { - if(otherplayer.Record==player.Record) - continue; - if(otherplayer.KilledBy!=0) - continue; - - count++; - console.crlf(); - console.write(" "+otherplayer.Alias); - if(otherplayer.TeamNumber>0) - console.write(" Team ["+otherplayer.TeamNumber+"]"); - console.write(" with "+otherplayer.Fighters+" fighters"); - if(otherplayer.Landed) - console.write(" (on planet)"); - else if(otherplayer.Ported) - console.write(" (docked)"); - else if(otherplayer.Online) - console.write(" (online)"); - } - } + for(i in otherships) { + var otherplayer=otherships[i]; + console.crlf(); + console.write(" "+otherplayer.Alias); + if(otherplayer.TeamNumber>0) + console.write(" Team ["+otherplayer.TeamNumber+"]"); + console.write(" with "+otherplayer.Fighters+" fighters"); + if(otherplayer.Landed) + console.write(" (on planet)"); + else if(otherplayer.Ported) + console.write(" (docked)"); + else if(otherplayer.Online) + console.write(" (online)"); } - if(count==0) + if(otherships.length==0) console.write(" None"); console.crlf(); console.attributes="HG"; diff --git a/xtrn/tw2/ship.ans b/xtrn/tw2/ship.ans new file mode 100644 index 0000000000000000000000000000000000000000..45878a31a2fd8de872740b790ca409352acf7d64 --- /dev/null +++ b/xtrn/tw2/ship.ans @@ -0,0 +1,8 @@ +[?7h[1;1H[40m + + + + +[0;31m[12C[34m���[1;30;44m~[0;34m�Ϳ + +[0m