2
edits
(Add the "How to setup an AI fight for two player-created ships" section.) |
|||
Line 26: | Line 26: | ||
# Update or add the corresponding <code>Quantity</code> line to add fuel to the tank. | # Update or add the corresponding <code>Quantity</code> line to add fuel to the tank. | ||
# Save the changes, run the game, and load the save. | # Save the changes, run the game, and load the save. | ||
== Items Inventory Codes == | |||
=== How to setup an AI fight for two player-created ships === | |||
Game Version: Alpha13B - Steam | |||
''Note: You'll need your favourite text editor. I use <nowiki>https://notepad-plus-plus.org</nowiki>)'' | |||
''Note: For readabilty in this guide, example save-game text is indented (by 1 tab), but it isn't in original save-game files.'' | |||
TLS = The Last Starship | |||
==== AI Strategy ==== | |||
You can assign an "AI-strategy" to either ship, which determine how they fight: | |||
<code>StrategyVeryCloseOrbit: Broadside orbits within Gatling gun range.</code> | |||
<code>CloseRangeAggressive: Broadside orbits in cannon range just outside of gatling gun range.</code> | |||
<code>MediumRangeOrbit: Broadside orbits within far end of cannon range.</code> | |||
<code>LongRangeSniper: Broadside orbits at railgun range well outside of cannon range.</code> | |||
<code>FastMovingJet: Forward facing strafing Runs, fly's straight at opponent then circles around to do it again.</code> | |||
==== Instructions ==== | |||
* In TLS, create your own ship and export it, or subscribe to a ship on steam workshop. Or alternatively, download a ship from a trusted website. | |||
* TLS stores ships in the ship-folder: "C:\Users\<your-windows-username>\AppData\Local\Introversion\LastStarship\ships" | |||
* Each ship has a ship-file named "<ship-name>.ship", and an image file named "<ship-name>.png". | |||
* Launch TLS, and select Creative Mode -> Create New Ship | |||
* Go back to the main menu (by pressing the escape key) and select "Import Hostile", then select a ship to import. Note the name of the imported ship, which will appear in red at the top right of the screen. We'll refer to this as "ship-1". | |||
* Repeat this process to import a second ship, "ship-2". | |||
* Go back to menu and select: Save Game -> Create New Save, then give it a helpful name (e.g. ship-1 vs ship-2). | |||
* Go back to menu and select: "Abandon Game". | |||
* Open the save-game folder (not the ship-folder): "C:\Users\<your-windows-username>\AppData\Local\Introversion\LastStarship\saves" | |||
* Open the save-game file (.space file) you just created, using your text editor. | |||
* Text search for "NEWSHIP", it should look like this... then delete this whole section including the BEGIN and END. | |||
BEGIN Layer | |||
Name NEWSHIP | |||
Class Ship | |||
Id 1610 | |||
SystemId 1 | |||
Type FriendlyShip | |||
BEGIN GridMap | |||
Width 240 | |||
Height 160 | |||
BEGIN Palette | |||
BEGIN . END | |||
END | |||
BEGIN Cells END | |||
END | |||
BEGIN Networks END | |||
BEGIN PowerGrid | |||
LayerId 1610 | |||
BEGIN Category Setting 100 END | |||
BEGIN Category Setting 100 END | |||
BEGIN Category Setting 100 END | |||
BEGIN Category Setting 100 END | |||
BEGIN Category Setting 100 END | |||
BEGIN Category Setting 100 END | |||
BEGIN Category Setting 100 END | |||
BEGIN Category Setting 100 END | |||
BEGIN Category Setting 100 END | |||
BEGIN Category Setting 100 END | |||
BEGIN Category Setting 100 END | |||
END | |||
BEGIN WorkQueue CargoTimer 0.2210033 END | |||
BEGIN Welfare END | |||
BEGIN Habitation SewageTimer 0.77749838675922600 END | |||
BEGIN Deliveries | |||
BEGIN Trade END | |||
END | |||
END | |||
''Info: occasionally there are other random ships named "NEWSHIP" with a much bigger definition. You can just ignore or delete them.'' | |||
* Text search for the ship name you noted for "ship-1", you should find a section that starts like this: | |||
BEGIN Layer | |||
Name "CANNON WALL FUN MK3" | |||
Author ZENRATH | |||
Class Ship | |||
Id 1612 | |||
SystemId 1 | |||
Type HostileShip | |||
Offset.x 0 | |||
Offset.y 0 | |||
* Change the Type from "HostileShip" to "FriendlyShip" | |||
* Optionally, set both Offset.x and Offset.y to "0". | |||
* Text search *from your current position* for "Strategy", then change the word immediately following "Strategy" to an AI-Strategy for ship-1. | |||
BEGIN ShipAI Layer 1612 TargetId 1610 LastLaunch 153.87734406203825 Broadside -1 Engaged true Strategy FastMovingJet END | |||
* Text search for the name you noted for "ship-2", you should find a section that starts like this: | |||
BEGIN Layer | |||
Name DEFIANT | |||
Author RANAMAR | |||
Class Ship | |||
Id 2508 | |||
SystemId 1 | |||
Type HostileShip | |||
Offset.x 1500 | |||
Offset.y 1500 | |||
* Leave the Type as "HostileShip" | |||
* Optionally, set both Offset.x and Offset.y to "1500". | |||
* Text search again *from your current position* for "Strategy", then change the word immediately following "Strategy" to an AI-Strategy for ship-2. | |||
BEGIN ShipAI Layer 2508 Broadside -1 Engaged true Strategy CloseRangeAggressive END | |||
* Save the changes to your savegame (.space) file. | |||
* Return to TLS. Select "Load Game", and the save-game you just edited. | |||
* Quickly pause the game. | |||
* At the top right of the screen, select ship-1, whose name should now be in green. | |||
* Activate "Battle Stations". | |||
* Un-pause the game, and enjoy the show! | |||
* Items Inventory Codes | |||
=== Inventory Item Codes === | |||
:''This table is incomplete.'' | :''This table is incomplete.'' | ||
:::{| class="wikitable sortable" | :::{| class="wikitable sortable" | ||
|+ Inventory Item Codes | |+ Inventory Item Codes |
edits