Random enemies
| Developer | |
| Version | |
| Mod Support | |
| Status | |
| License | |
Random enemies is a simple way of playing Spring in a singleplayer setting instead of multiplayer through the Spring Lobby. It should not be confused with an actual AI opponent though, as it only spawns units out of thin air according to a script. There are plans to develop a real AI opponent for Spring though.
To try out the random enemies mode, launch spring.exe directly, answer Yes to the server question, and select the Random enemies script, using the arrow keys and Return (you can't use the mouse to make this selection).
The enemy units are spawned according to the information found in the file spawn.txt located in the Spring folder. The included file is not very playable though, as it spawns units too fast to be survivable (the 0.51b1 version sends three brawlers 30 seconds into the game). Fortunately a few people have created more interesting spawn scripts. A bunch of these can be found at FileUniverse.
To create your own random enemies script edit the existing spawn.txt (e.g. using notepad). The number at the start of each line is the time into the game that a unit will be created. Roughly speaking it is in 30ths of a second, so 1000 is about half a minute, 10000 is about five minutes. Immediately following this is the code of the unit which will be produced. Blank lines don't mean anything, but can be useful to make the file more readable.
When creating a random enemies script, bear in mind that the units will materialize within a very small area around the default player start points on the map (except the one you start on). Stationary structures and units that aren't able to move on the terrain where they appear will accumulate here, producing a jumbled nonfunctional mess if one's not careful. Also, although the AI won't make use of factories so metal-producers are useless, one might want to include a fusion plant in the mix to ensure that enemy weapons will continue functioning if one porcs for long enough that the enemy would use up all its starting energy.
Unit codes
| Core
(Missing Sea Stuff)
| Arm
|
