Uber mode/ adding modes
Moderator: Moderators
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Uber mode/ adding modes
I am trying to add Uber mode to my map, so i copied the RYBc_con.lua and renamed it to RYBc_uber.lua, then I changed the unit count inside the lua after adding the line; SetUberMode(1); then I added the these lines to my addme
sp_missionselect_listbox_contents[sp_n+1] = { isModLevel = 1, mapluafile = "RYB%s_%s", era_c = 1, mode_con_c = 1,mode_uber_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("RYB","RYBc_con",4)
AddDownloadableContent("RYB","RYBc_uber",4)
I then munged my common, opened up bf2 and the Uber mode was there, however when I try to play it I get a FATAL error
Could not open MISSION\RYBc_uber.lvl
I tried to add this without any knowlege of how to add modes , so I am not too surprised it didnt work.
Can someone tell me what step I missed. Thanks in advance.
sp_missionselect_listbox_contents[sp_n+1] = { isModLevel = 1, mapluafile = "RYB%s_%s", era_c = 1, mode_con_c = 1,mode_uber_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("RYB","RYBc_con",4)
AddDownloadableContent("RYB","RYBc_uber",4)
I then munged my common, opened up bf2 and the Uber mode was there, however when I try to play it I get a FATAL error
Could not open MISSION\RYBc_uber.lvl
I tried to add this without any knowlege of how to add modes , so I am not too surprised it didnt work.
Can someone tell me what step I missed. Thanks in advance.
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Uber mode/ adding modes
well you seemed to have been succesfull since you can choose ubermode in the menu
atleast as far as i know fatal crashes arent caused by the addme.lua
atleast as far as i know fatal crashes arent caused by the addme.lua
-
kinetosimpetus
- Imperial Systems Expert

- Posts: 2381
- Joined: Wed Mar 25, 2009 4:15 pm
- Projects :: A secret project
Re: Uber mode/ adding modes
Did you edit mission.req and add a req for the lua? Should find them in data_abc\Common
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: Uber mode/ adding modes
I edited the mission.req(forgot to mention), but did not add a req for the new lua. please elaborate. thanks in advance.kinetosimpetus wrote:Did you edit mission.req and add a req for the lua? Should find them in data_abc\Common
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Uber mode/ adding modes
In the data_***\Common\mission folder, that's where the REQ for your LUA should go. Look at the other REQs in the same folder to see how your LUA's REQ should be set up.
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: Uber mode/ adding modes
thanks, ive got uber mode, and 2-flag up and running.AQT wrote:In the data_***\Common\mission folder, that's where the REQ for your LUA should go. Look at the other REQs in the same folder to see how your LUA's REQ should be set up.
new question, remember the three part mod, Rebel Ops (Aquilaris: Deep Sea,The Big "L", and Bakura: Rogue Assault), ok lets face it tthis is the best mod ever, that Maveritchell made. you all know it, love it cherish it... ok enough sucking up to Mav
Mav, added The Dark Time to all three of his maps, ( and KOTOR), I remember hearing about a tutorial
on how to add the Dark Times to your map, but have never seen it anywhere.
if someone could enlighten me, it would be easier if Maveritchell told me himself, but hes a busy guy so if anyone else knoes about this please spill.
ps, if Maveritchell doesnt want anyone to know how or whatever, thats fine, i wiil apologize, for asking.
Thanks in advance.
- skelltor
- Sith

- Posts: 1431
- Joined: Fri Dec 11, 2009 6:24 pm
- Projects :: BFSM
- xbox live or psn: skelltor95
- Location: minisnowta
- Contact:
Re: Uber mode/ adding modes
i wouldent have hurt to check the darktimes fourm
http://www.gametoast.com/forums/viewtop ... 74&t=18253
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: Uber mode/ adding modes
skelltor wrote:i wouldent have hurt to check the darktimes fourmhttp://www.gametoast.com/forums/viewtop ... 74&t=18253
Please do not exceed 3 smilies per post. Excessive smilies removed -Staff
- skelltor
- Sith

- Posts: 1431
- Joined: Fri Dec 11, 2009 6:24 pm
- Projects :: BFSM
- xbox live or psn: skelltor95
- Location: minisnowta
- Contact:
Re: Uber mode/ adding modes
no problem
i am just glad to help
- sim-al2
- 2nd Lieutenant

- Posts: 412
- Joined: Mon Jul 06, 2009 10:26 pm
- Projects :: Mapping on occasion
- Location: In the cockpit of some vehicle...
Re: Uber mode/ adding modes
I wouldn't worry too much about it. Everyone has to be a least a semi-noob at one point.THEWULFMAN wrote:
im not a noob , i probably got another point or two on my noob factor didnt I. Sorry for your time. again thanks thou
Last edited by sim-al2 on Sat Sep 04, 2010 10:06 pm, edited 1 time in total.
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: Uber mode/ adding modes
Yeah, but I feel like because I started late evrone will think I'm an idiot, when the main reason i haven't been doing this for years is because I only just got a cpu with just enough power to play BF2.sim-al2 wrote: I wouldn't worry too much about it. Everyone has to be a least a semi-noob at one point.BTW you can only have 3 smilies per post.
Hope I can prove my worth eventually ( if I only would stop making stupid mistakes).
-
MrCrayon
- Jedi Knight

- Posts: 554
- Joined: Sat Apr 17, 2010 8:15 pm
- Projects :: Coruscant map Want to help PM me
- Location: Buried in homework, but getting better
Re: Uber mode/ adding modes
You know what helps? Turn off shadows! They take up a lot of the cpu power for something nobody cares about.
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: Uber mode/ adding modes
Shadows: offMrCrayon wrote:You know what helps? Turn off shadows! They take up a lot of the cpu power for something nobody cares about.
Texture quality: low
lighting quality: low
light bloom: off
you get the idea, my cpu still lags sometimes.
