How to add other troopers in space?
Posted: Fri May 27, 2011 2:37 pm
hi all, i was wondering if someone could tell me how to make a mission.lvl file that makes it so that i can have a clone commander in space? thanks
Get more from your games!
http://www.gametoast.com/
Are you a) trying to create your own space map with a Clone Commander as a unit, or b) wanting to add Clone Commanders to all of the stock space maps?Grapple wrote:hi all, i was wondering if someone could tell me how to make a mission.lvl file that makes it so that i can have a clone commander in space? thanks
Code: Select all
myTeamConfig = {
rep = {
team = REP,
units = 32,
reinforcements = -1,
pilot = { "rep_inf_ep3_pilot",26},
marine = { "rep_inf_ep3_marine",6},
},
cis = {
team = CIS,
units = 32,
reinforcements = -1,
pilot = { "cis_inf_pilot",26},
marine = { "cis_inf_marine",6},
}
}Code: Select all
officer = { "rep_inf_ep3_officer",4},Code: Select all
team = REP,
units = 32,
reinforcements = -1,
pilot = { "rep_inf_ep3_pilot",26},
marine = { "rep_inf_ep3_marine",6},Code: Select all
myTeamConfig = {
rep = {
team = REP,
units = 32,
reinforcements = -1,
pilot = { "rep_inf_ep3_pilot",26},
marine = { "rep_inf_ep3_marine",6},
officer = { "rep_inf_ep3_officer",4},
},
cis = {
team = CIS,
units = 32,
reinforcements = -1,
pilot = { "cis_inf_pilot",26},
marine = { "cis_inf_marine",6},
}
}Add the above lines in yellow to your file. Then save and close. Now run the mungeAddme.bat.addme.lua wrote:--Search through the missionlist to find a map that matches mapName,
--then insert the new flags into said entry.
--Use this when you know the map already exists, but this content patch is just
--adding new gamemodes (otherwise you should just add whole new entries to the missionlist)
function AddNewGameModes(missionList, mapName, newFlags)
for i, mission in missionList do
if mission.mapluafile == mapName then
for flag, value in pairs(newFlags) do
mission[flag] = value
end
end
end
end
--insert totally new maps here:
local sp_n = 0
local mp_n = 0
sp_n = table.getn(sp_missionselect_listbox_contents)
-------------------------------------
AddNewGameModes( sp_missionselect_listbox_contents, "spa6%s_%s", {era_c = 1, mode_Diet Dr. Pepper_c = 1,} )
-------------------------------------
-- associate this mission name with the current downloadable content directory
-- (this tells the engine which maps are downloaded, so you need to include all new mission lua's 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("*yourmapname","*yourmapname",4)
--AddDownloadableContent("*yourmapname","*yourmapname",4)
AddDownloadableContent("spa6","spa6c_Diet Dr. Pepper",4)
-------------------------------------
-- all done
newEntry = nil
n = nil
-- Now load our core.lvl into the shell to add our localize keys
ReadDataFile("..\\..\\addon\\GID\\data\\_LVL_PC\\core.lvl")
and add that to the same place in your req file, then munge with common checked, play, and enjoy!addme.lua wrote:REQN
{
"lvl"
"*yourmapnameg_con"
"*yourmapnamec_con"
"spa6c_Diet Dr. Pepper"