Page 1 of 1
Battle tactics style mods? Multiple starting units; no com?
Posted: 10 Nov 2006, 11:07
by hughperkins
What are the possibilities for creating a mod with multiple starting units, eg 10 flashes, and no commander?
Posted: 10 Nov 2006, 12:37
by hughperkins
It looks like lua scripts can be used to create single-player missions. Is it possible to load a lua script in either a multiplayer game or from a mod?
Posted: 10 Nov 2006, 12:39
by 1v0ry_k1ng
Posted: 10 Nov 2006, 14:53
by Tobi
You can't use them in startscript-based multiplayer (aka via lobby).
Posted: 10 Nov 2006, 17:57
by hughperkins
Ok. How difficult would it be to make it work with startscript-based multiplayer?
Currently, the script in startscripts is only loaded on request by starting spring.exe. How difficult would it be to make the startscripts in a mod run automatically? (or a different directory perhaps, or specify in startscript.tdf perhaps)
Posted: 11 Nov 2006, 01:10
by mecha
We can probably do it already using spring on a lan. Just take out the singleplayer line in the lua and get it to spawn some units. Everybody then connects in manually (using the "type the ip" method) and presto you have your game.
See how much interest there is and maybe I'll do one. Prob won't work through the lobby though.
We already have an active thread going on the lua stuff:
http://taspring.clan-sy.com/phpbb/viewtopic.php?t=7790
this ones more like a general discussion thread than a mods thread isn't it
Posted: 11 Nov 2006, 05:37
by hughperkins
It could be fun to get this to work using the lobby for WAN-play, and to allow AIs to be used, for bot vs bot matches.
Here's a patch to allow the startscript to be specified in script.txt:
http://manageddreams.com/csai/startscript.diff
You can add a new line to the game section "scriptname=Commanders;" or specify a different script.