Order 66 mode? [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Darth_Z13
Jedi High Council
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]

Post by Darth_Z13 »

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...)
User avatar
phazon_elite
Rebel Colonel
Rebel Colonel
Posts: 597
Joined: Tue Jan 16, 2007 9:10 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
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?

Post by phazon_elite »

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
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

RE: Order 66?

Post by Teancum »

Yeah I just use ObjectiveTDM.
Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

RE: Order 66?

Post by Darth_Z13 »

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:

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")
But when I played I get the MISSION\BOTc_hunt could not be found error. Why?
BF2-Master
Captain
Captain
Posts: 469
Joined: Thu Mar 02, 2006 7:08 pm

Post by BF2-Master »

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:

Code: Select all

AddDownloadableContent("CTL","CTLc_order66",4)
3) Then copy 'CTLg_eli' and rename the copy to 'CTLc_order66'

4) Then replace the CIS units with JED units

Is that correct?
Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

Post by Darth_Z13 »

I've just sorta decided that I'll use hunt mode as Order 66 as there is no difference.
User avatar
phazon_elite
Rebel Colonel
Rebel Colonel
Posts: 597
Joined: Tue Jan 16, 2007 9:10 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
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:

Post by phazon_elite »

Is there a req for your hunt mode? Did you add it in the mission.req? Those are also required things, too.

- EP-000782
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Post by FragMe! »

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
Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

Post by Darth_Z13 »

Thanks FragMe! It worked like a charm.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Post by Teancum »

I'll do a tut sometime this week.

... and by the way, it's _ord66, not _order66 :P
Post Reply