Advertisement
Guest User

Script Exemple 3 - Pathfinder Test.txt

a guest
Mar 26th, 2012
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. // To run this script, drag and drop over spring.exe
  3. //
  4. // Generated by zwzsg's Lua code from Kernel Panic 4.2:
  5. // KP state dumped by "Spawn Units" gadget version 1.6
  6. // KP script written by "Write GameState" widget version 1.6
  7.  
  8. [GAME]
  9. {
  10.     GameType=Kernel Panic 4.4;
  11.     Mapname=Direct Memory Access 0.5e (beta);
  12.  
  13.     [MODOPTIONS]
  14.     {
  15.         // Use this to modify stat without having to unpack and edit the Kernel Panic archive
  16.         ModifyStatistics1=unit bit byte assembler maxvelocity +0 turnrate -0 acceleration x1.0 brakerate /1.0 CanMove =1;
  17.  
  18.         Trigger1=Name RampStart Period 90 InDisk 6176 5056 32 Bit Move 5920 5056 Echo Trying to climb ramp...;
  19.         Trigger2=Name TowerStart Period 90 InDisk 4384 4448 32 Bit Move 5120 4224 Echo Trying to climb tower...;
  20.         Trigger3=Name WallStart Period 90 InDisk 6688 3072 32 Bit Move 7328 3072 Echo Trying to avoid wall...;
  21.         Trigger4=Name NineStart Period 90 9 Bit InRect 5024 1280 5152 1408 Move 5120 1920 Echo Trying to send nine atop...;
  22.  
  23.         Trigger5=Name RampEnd InRect 5792 4928 6048 5184 Bit Echo Succesfully managed to climb ramp!;
  24.         Trigger6=Name TowerEnd InRect 5008 4112 5232 4336 Bit Echo Succesfully managed to climb tower!;
  25.         Trigger7=Name WallEnd InRect 7201 2847 7519 3263 Bit Echo Succesfully managed to avoid wall!;
  26.         Trigger8=Name NineEnd 9 Bit InRect 4992 1793 5248 2048 Echo Succesfully managed to send nine atop!;
  27.  
  28.         Trigger11=Name EndGame mineblaster;
  29.         Trigger12=Name KillAll Trigger EndGame Once Stop SelfDestruct Echo Time-Out!;
  30.  
  31.         MissionBriefing=">> Pathfinding Test <<\n \nCan be automated by:\n- Extract the startscript from /Missions/\n- Pass as argument to Spring exe\n- Have an autoquit widget\n- Read stdout or infolog.txt for results";
  32.  
  33.         // KP specific:
  34.         nowalls=0;// Because neither AI can't handle them
  35.         nospecials=0;// Set to make it simpler
  36.         ons=0;// Shielded gamemode, 0 for disabled, 2 for weak, 4 for ultra
  37.         sos=0;// Amount per building, 0 for disabled
  38.         colorwars=0;// Time in minutes before doom, 0 for disabled
  39.         preplaced=0;// Give a pre-built base
  40.         // Generic, but still applying to KP:
  41.         GameMode=0;
  42.             // 0 for "Kill everything!"
  43.             // 1 for "Kill all factories!"
  44.             // 2 for "Kill the Kernel!"
  45.             // 3 for "Never ends!"
  46.         ghostedbuildings=1;
  47.         fixedallies=0;
  48.         MaxUnits=512;
  49.         MinSpeed=0.1;
  50.         MaxSpeed=10;
  51.  
  52.         // Irrelevant for KP:
  53.         StartMetal=1024;
  54.         StartEnergy=1024;
  55.         LauncherName=Write GameState widget;
  56.         LauncherVersion=1.52;
  57.         DateTime=Monday 16 May 2011 at 14:04:36;
  58.     }
  59.  
  60.     OnlyLocal=1;
  61.     //HostIP=;
  62.     HostPort=0;
  63.     IsHost=1;
  64.  
  65.     StartPosType=0;// 0 for fixed, 1 for random, 2 for chosen ingame, 3 for chosen out of game
  66.     MyPlayerNum=0;
  67.     MyPlayerName=Player;
  68.     NumPlayers=1;
  69.     NumUsers=2;
  70.     NumTeams=2;
  71.     NumAllyTeams=2;
  72.  
  73.     // List of human controlled players:
  74.     [PLAYER0]
  75.     {
  76.         name=Player;
  77.         Team=0;
  78.         Spectator=0;
  79.     }
  80.  
  81.     // List of AI controlled players:
  82.     [AI1]
  83.     {
  84.         Name=Idling Opponent;
  85.         ShortName=Kernel Panic AI;// But will be overriden to "Dummy"
  86.         //Version=?;
  87.         Team=1;
  88.         Host=0;// Number of the PLAYER hosting the AI
  89.     }
  90.  
  91.     // List of "teams" (or "players" depending on terminology):
  92.     [TEAM0]
  93.     {
  94.         TeamLeader=0;
  95.         AllyTeam=0;
  96.         Handicap=0;
  97.         Side=system;
  98.         RGBColor=0.36 0.36 1;
  99.         StartPosX=6976;
  100.         StartPosZ=5440;
  101.         RemoveUnits=1;
  102.         RemoveFeatures=1;
  103.         u1=  assembler Position 6976 5440 Rotation 270;
  104.         u2=  bit Position 6176 5056 Rotation 270;
  105.         u3=  bit Position 4384 4448 Rotation 45;
  106.         u4=  bit Position 6688 3072 Rotation 90;
  107.         u91= bit Position 5056 1312 Rotation 180;
  108.         u92= bit Position 5088 1312 Rotation 180;
  109.         u93= bit Position 5120 1312 Rotation 180;
  110.         u94= bit Position 5056 1344 Rotation 180;
  111.         u95= bit Position 5088 1344 Rotation 180;
  112.         u96= bit Position 5120 1344 Rotation 180;
  113.         u97= bit Position 5056 1376 Rotation 180;
  114.         u98= bit Position 5088 1376 Rotation 180;
  115.         u99= bit Position 5120 1376 Rotation 180;
  116.     }
  117.     [TEAM1]
  118.     {
  119.         TeamLeader=0;
  120.         AllyTeam=1;
  121.         Handicap=0;
  122.         Side=hacker;
  123.         RGBColor=0.78 0 0;
  124.         AIDLL=Kernel Panic AI;
  125.         aioverride=Dummy;
  126.         StartPosX=1216;
  127.         StartPosZ=704;
  128.         RemoveUnits=1;
  129.         RemoveFeatures=1;
  130.         u1= hole Position 1216 704 Rotation 90 AutoHold 0;
  131.         u2= assembler Position 960 704 Rotation 180 TimeWait 120 Build mineblaster 960 800;
  132.     }
  133.  
  134.     // List of ally teams: This is for assymetrical alliances
  135.     [ALLYTEAM0]
  136.     {
  137.         NumAllies=0;
  138.     }
  139.     [ALLYTEAM1]
  140.     {
  141.         NumAllies=0;
  142.     }
  143.  
  144.     // List of restrictions
  145.     NumRestrictions=0;
  146.     [RESTRICT]
  147.     {
  148.     }
  149. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement