Order 66 mode? [Solved]
Moderator: Moderators
-
Darth_Z13
- Jedi High Council

- Posts: 2275
- Joined: Sat Jun 17, 2006 9:51 am
- xbox live or psn: Xanthius Wylon
- Location: Canada
Order 66 mode? [Solved]
So for Toola (Toola this, Toola that ROFL) I want to include an Order 66 mode like the one in the Conversion Pack (its gonna be slightly different units wise).
What files do I have to modify to add these modes? (addme, LUA, Zeroedit layers etc...)
What files do I have to modify to add these modes? (addme, LUA, Zeroedit layers etc...)
- phazon_elite
- Rebel Colonel

- Posts: 597
- Joined: Tue Jan 16, 2007 9:10 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: I'm sorry Link, I can't give the location. Come back when you're a little...mmmh...RICHER!
- Contact:
RE: Order 66?
I don't think it's possible at the moment because you'd need an ObjectiveOrder66 (or whatever it's called!). Unless it uses a hunt basis, then that would be ObjectiveTDM. I'm adding a KOH mode to Mount Corona, so I know most of these things by now. You would also have to create a new layer in ZE...
- EP-000782
- EP-000782
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
RE: Order 66?
Yeah I just use ObjectiveTDM.
-
Darth_Z13
- Jedi High Council

- Posts: 2275
- Joined: Sat Jun 17, 2006 9:51 am
- xbox live or psn: Xanthius Wylon
- Location: Canada
RE: Order 66?
How about modding the LUA? What does the name need to be? Like the letters on the end? Also, what does the layer need to be named? Finally, what do I need to put in the addme file to get it to show ingame?
EDIT: So I made an LUA called BOTc_hunt and here's my addme.lua:
But when I played I get the MISSION\BOTc_hunt could not be found error. Why?
EDIT: So I made an LUA called BOTc_hunt and here's my addme.lua:
Code: Select all
--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)
sp_missionselect_listbox_contents[sp_n+1] = { isModLevel = 1, mapluafile = "BOT%s_%s", era_g = 1, era_c = 1, mode_con_g = 1, mode_con_c = 1, mode_hunt_c = 1,}
mp_n = table.getn(mp_missionselect_listbox_contents)
mp_missionselect_listbox_contents[mp_n+1] = sp_missionselect_listbox_contents[sp_n+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("BOT","BOTg_con",4)
AddDownloadableContent("BOT","BOTc_con",4)
AddDownloadableContent("BOT","BOTc_hunt",4)
-- all done
newEntry = nil
n = nil
-- Now load our core.lvl into the shell to add our localize keys
ReadDataFile("..\\..\\addon\\BOT\\data\\_LVL_PC\\core.lvl")
-
BF2-Master
- Captain

- Posts: 469
- Joined: Thu Mar 02, 2006 7:08 pm
I wanna know too! So from what you've written, I'm supposed to do this?:
1) Munge your map with all modes you want plus Hero assault
2) In addme.lua add this line:
3) Then copy 'CTLg_eli' and rename the copy to 'CTLc_order66'
4) Then replace the CIS units with JED units
Is that correct?
1) Munge your map with all modes you want plus Hero assault
2) In addme.lua add this line:
Code: Select all
AddDownloadableContent("CTL","CTLc_order66",4)4) Then replace the CIS units with JED units
Is that correct?
-
Darth_Z13
- Jedi High Council

- Posts: 2275
- Joined: Sat Jun 17, 2006 9:51 am
- xbox live or psn: Xanthius Wylon
- Location: Canada
- phazon_elite
- Rebel Colonel

- Posts: 597
- Joined: Tue Jan 16, 2007 9:10 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: I'm sorry Link, I can't give the location. Come back when you're a little...mmmh...RICHER!
- Contact:
-
FragMe!
- Gametoast Staff

- Posts: 2244
- Joined: Sat May 13, 2006 12:34 am
- Projects :: Not sure keep changing my mind.
- xbox live or psn: No gamertag set
- Location: Origin name GT_FragMe
- Contact:
I went through this when I added a XL level, let me see if I can remember all the things to check.
In your world1 directory is it in the .req file do you also have the .mrq for the mode as well?
There also has to be a req (my case NSSg_xl.req) in the mission folder in the common directory contents of which should look something like this:
ucft
{
REQN
{
"script"
"NSSc_xl"
}
}
As well it should also show up in the mission.req in the common folder.
Now some of these may be automatically done some you have to add yourself.
Your addme.lua does look okay though
In your world1 directory is it in the .req file do you also have the .mrq for the mode as well?
There also has to be a req (my case NSSg_xl.req) in the mission folder in the common directory contents of which should look something like this:
ucft
{
REQN
{
"script"
"NSSc_xl"
}
}
As well it should also show up in the mission.req in the common folder.
Now some of these may be automatically done some you have to add yourself.
Your addme.lua does look okay though
-
Darth_Z13
- Jedi High Council

- Posts: 2275
- Joined: Sat Jun 17, 2006 9:51 am
- xbox live or psn: Xanthius Wylon
- Location: Canada
