WIP adding new eras

Started by Led, August 04, 2012, 09:13:07 PM

Previous topic - Next topic
August 04, 2012, 09:13:07 PM Last Edit: August 04, 2012, 10:09:42 PM by Buckler
I am writing this tutorial to keep notes for our New Era Mod.  Most of this has come from discussions with SleepKiller who got the script to work with new buttons and with Phobos.


What you need: 

1) shell builder and the script that includes the stuff for the new era.  I will release this when SK says its OK.
edit:  here it is:  http://www.swbfgamers.com/index.php?action=downloads;sa=view;down=698

2) mission builder for adding eras to stock maps
http://www.swbfgamers.com/index.php?action=downloads;sa=view;down=697

3) missionlist.lua for adding new maps



This is my understanding of how things work.  Someone correct me if I am wrong.

First, lets add a new era to a defined stock map, theed.


The new era needs to be assigned to a button.  For this example, I will use the "h" era.  It is what SK used.

The game looks for all stock maps, for example nab2 (theed) consists of LUA for nab2a and nab2c for GCW and CW era.  The nab2 is defined as a map in the missionlist.lua.

make a new mission lua called nab2h.  Use battlebelks mission builder to make it.  Be sure to include the req file and the sublevel.  See this for an example:
http://www.swbfgamers.com/index.php?action=downloads;sa=view;down=697

The new lua is now built into the mission.lvl file.

Munge the new shell with the new button.

Select Naboo Theed.  See three buttons.  Choose the new H button with text on it (the text can be edited).
Now play the new map.

-------------------------------

Define an era for a mod map.

from sleepkiller:

[21:25] {PLA}Sleepkiller: Well new eras can go with anything
[21:25] {PLA}Sleepkiller: what I did to test it was
[21:26] {PLA}Sleepkiller: change my latest maps script to h and test it in game
[21:26] {PLA}Sleepkiller: -- add the new tat level to the missionlist
local newEntry = { mapluafile = "skgs1", showstr = "GHOST CITY",  side_a = 1, side_c = 1, side_h = 1, dnldable = 1, }

-- append it to the sp missionlist table
local n = getn(sp_missionselect_listbox_contents)   
sp_missionselect_listbox_contents[n+1] = newEntry

-- append it to the mp missionlist table
n = getn(mp_missionselect_listbox_contents)
mp_missionselect_listbox_contents[n+1] = newEntry


-- associate this mission name with the current downloadable content directory
-- you should list all missions in mission.lvl here.
-- first arg: mapluafile from above
-- second arg: mission script name
-- third arg: level memory modifier.  the arg to LuaScript.cpp: DEFAULT_MODEL_MEMORY_PLUS(x)
AddDownloadableContent("skgs1","skgs1h",4)


-- all done
newEntry = nil
n = nil
[21:27] {PLA}Sleepkiller: So basically to test it you can edit an old addon map you have and add a new script to mission.lvl then update the addme














Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet