[request] LAN script

[request] LAN script

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
colorblind
Spring Developer
Posts: 374
Joined: 14 Mar 2005, 12:32

[request] LAN script

Post by colorblind »

See also this thread: http://taspring.clan-sy.com/phpbb/viewtopic.php?t=1277

I digged through some code, but I still don't have any clue how to write a script that will accomodate more than 2 players in a LAN game.
All I want is a script that deploys a commander with 1000 resources on a seperate team for each player connected. The "Commanders 1000 res" script gives only two (no more, no less) commanders regardless of the number of connections, and the "commanders" script doesn't handle the resources right (and probably also deploys only two commanders).

Any help is greatly appreciated; I myself am really lost in the code.
Torrasque
Posts: 1022
Joined: 05 Oct 2004, 23:55

Post by Torrasque »

Take script.txt in your TASpring folder, modify it and send it to all player.
Then lauch the game wich script.txt in parameter.

Perhaps a little frontend could be made..

search "script start.txt" in /documentation in the source for more info.
Durandal
Posts: 126
Joined: 05 May 2005, 16:27

Post by Durandal »

I try running "[spring folder]\spring.exe -script.txt" but all I get is a blank page. What gives ?
SJ
Posts: 618
Joined: 13 Aug 2004, 17:13

Post by SJ »

There shouldnt be a - in front of the script name.
User avatar
Ace07
Posts: 348
Joined: 21 Apr 2005, 20:46

Post by Ace07 »

Ya, I was going to post that....but... 8)
Post Reply

Return to “Engine”