Mission development wiki - Page 2

Mission development wiki

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

well, I am going to print this whole thread and read it over as soon as I get some time. Thanks again for all the data guys.
User avatar
gamer17
Posts: 235
Joined: 21 Feb 2007, 23:51

Post by gamer17 »

This is what I got so far, can anyone check it out and tell me if am on the right track?

http://spring.clan-sy.com/wiki/Mission_ ... ment_Guide
Last edited by gamer17 on 02 Jun 2007, 16:33, edited 1 time in total.
User avatar
Thor
NOTA Developer
Posts: 291
Joined: 05 Mar 2006, 10:26

Post by Thor »

Looks good. :-) Hopefully we'll see some new missions popping up soon.
pwl
Posts: 8
Joined: 16 Jun 2007, 21:16

Post by pwl »

Is there a way to queue orders in startscript file?
pwl
Posts: 8
Joined: 16 Jun 2007, 21:16

Post by pwl »

I have found the answer, just add c.options = 32 to the command.
User avatar
Complicated
Posts: 369
Joined: 06 Jun 2007, 18:51

Post by Complicated »

How do I set the resources for the start of the game to 1000 metal, 1000 energy?

And how do I also set a maximum ammount of units?

Is there a way to disable units in the campaign (from buildlist) or do I need to make a mutator?
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Re: Mission development wiki

Post by SinbadEV »

I found if you have a start script (the classic txt file kind) load you script it allows you to specify the resources and also by extension it would also allow you to limit units...

Just pass somthing like this ti spring.exe

Code: Select all

[game]
{	
	Mapname=Barren.smf;
        GameType=XTA_Installer_Version.sdz;
	scriptname=LUA SinbadEVsScriptTest;
	startmetal=1000;
	startenergy=1000;
	maxunits=1000;
	startpostype=0;
	gamemode=1;
	limitdgun=0;
	diminishingmms=0;
	ghostedbuildings=1;
	hostip=localhost;
	hostport=8452;
	myplayernum=0;
	numplayers=1;
	numteams=1;
	numallyteams=1;
	[player0]
	{
		name=SinbadEV;
		countrycode=ca;
		rank=1;
		spectator=0;
		team=0;
	}
	[team0]
	{
		teamleader=0;
		allyteam=0;
		rgbcolor=0.35294 0.35294 1.00000;
		side=ARM;
		handicap=0;
	}
	[allyteam0]
	{
		numallies=0;
	}
	numrestrictions=0;
}
you can add restrictions using the format for startscripts:
NumRestrictions=xx;

[RESTRICT]
{
Unit0=armah;
Limit0=0; // use 0 for all units that should be completely disabled
Unit1=corvp;
Limit1=50; // >0 can be used for limiting, like build restrictions in TA
//...
}
Except for some reason I have 1000K storage for metal and energy...
Post Reply

Return to “General Discussion”