Mission development Guide: Difference between revisions

From Spring
Jump to navigationJump to search
Gamer17 (talk | contribs)
Gamer17 (talk | contribs)
Line 33: Line 33:


Now cut out the unit loading code paste it into the Template:Setup() function
Now cut out the unit loading code paste it into the Template:Setup() function
It should look like this:
It should look like this:


-- Create a bunch of units for this simple mission
-- Create a bunch of units for this simple mission
function Template:Setup()
function Template:Setup()
units.Load("arm_solar_collector", float3(472.0, 45.2, 280.0), 0, false)
units.Load("arm_solar_collector", float3(472.0, 45.2, 280.0), 0, false)
units.Load("arm_metal_extractor", float3(328.0, 40.7, 360.0), 0, false)
units.Load("arm_metal_extractor", float3(328.0, 40.7, 360.0), 0, false)
units.Load("arm_commander", float3(469.7, 42.5, 441.7), 0, false)
units.Load("arm_commander", float3(469.7, 42.5, 441.7), 0, false)
units.Load("arm_wind_generator", float3(288.0, 40.1, 2768.0), 1, false)
units.Load("arm_wind_generator", float3(288.0, 40.1, 2768.0), 1, false)
units.Load("arm_light_laser_tower", float3(1920.0, 44.4, 2176.0), 1, false)
units.Load("arm_light_laser_tower", float3(1920.0, 44.4, 2176.0), 1, false)
units.Load("arm_light_laser_tower", float3(1776.0, 43.9, 2208.0), 1, false)
units.Load("arm_light_laser_tower", float3(1776.0, 43.9, 2208.0), 1, false)
units.Load("arm_vehicle_plant", float3(528.0, 74.0, 3664.0), 1, false)
units.Load("arm_vehicle_plant", float3(528.0, 74.0, 3664.0), 1, false)

Revision as of 01:47, 31 May 2007


Getting started

First download this template

Then open it up in notepad and save it as a txt file

Load up spring from spring.exe in your spring folder. Now choose mission builder from the list.

Push enter and type: .cheat

                   .nocost

These will allow you to build your mission a lot faster

Now build up a friendly base with all the units you want, and an enemy base with all the units you want for them.

Then select all of the players units and base, then push enter and type: .savesel 0

Now do the save thing foe the enemy, but type: .savesel 1

Lastly push enter and type: .savefeatures

Once you save the units, quit Now open up the file infolog thats in spring folder.

It'll have the code for loading the units in there. Don't open up spring again before you copy it out or you'll lose everything.

You should see lines like this

units.Load("CORAK", float3(15400, 85, 2450), 0, false) units.Load("CORAK", float3(12650, 40, 2054), 0, false) units.Load("CORAK", float3(13444, 60, 2045, 0, false)

Now cut out the unit loading code paste it into the Template:Setup() function

It should look like this:

-- Create a bunch of units for this simple mission function Template:Setup()

units.Load("arm_solar_collector", float3(472.0, 45.2, 280.0), 0, false)

units.Load("arm_metal_extractor", float3(328.0, 40.7, 360.0), 0, false)

units.Load("arm_commander", float3(469.7, 42.5, 441.7), 0, false)

units.Load("arm_wind_generator", float3(288.0, 40.1, 2768.0), 1, false)

units.Load("arm_light_laser_tower", float3(1920.0, 44.4, 2176.0), 1, false)

units.Load("arm_light_laser_tower", float3(1776.0, 43.9, 2208.0), 1, false)

units.Load("arm_vehicle_plant", float3(528.0, 74.0, 3664.0), 1, false)