I would like to know, how do you change the era's icon? In the instant action mneu, your playable eras icon/name. The problem is, because I am making a sides era for stock maps, the addme is causing problems. For example: I will get the icon/name working, but it will show on my munged world, not mygeeto (mygeeto is my test map). Or the era wont show at all, or SWBF2 crashes before I even get to the profile select screen.
I was talking with Marth8880 on x-fire, but we still couldnt seem to get it working. Yes, I read the 1.3 docs, but it still didnt help (unless I really did something wrong...)
Re: Chaning era icon/name
Posted: Sun Nov 20, 2011 1:53 pm
by Unlucky13
What does your addme look like?
Re: Chaning era icon/name
Posted: Sun Nov 20, 2011 2:03 pm
by Tears2Roses
addme.lua:
Hidden/Spoiler:
[code]--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)
--add my modes to the singleplayer map selection screen
-- 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("myg1","myg1a_con",4)
-- all done
newEntry = nil
n = nil
-- Now load our core.lvl into the shell to add our localize keys
ReadDataFile("..\\..\\addon\\GUN\\data\\_LVL_PC\\core.lvl")[/code]
Currently, this makes my sides playable on mygeeto. However, it has the BFX icon. This is without attempting to change it to show a different icon using shell/code. I am experimenting with it, so for no good. If someone would know what I should put in my addme to change just the era icon/name and still be playable on mygeeto (without adding an orange mygeeto to the instant action menu) that'd be great. I will experiment with 1.3 docs and what not some more.
Re: Chaning era icon/name
Posted: Sun Nov 20, 2011 2:10 pm
by Marth8880
Yes, most excellent my dear child.......post your addme's LUA and your shell's REQ, so we may [pauses]...address your situation as we need. In due time, my dear child, in due time will everything come together as the Night Mother has forseen... After you have done this, proceed to Cheydinhal. There you will find...toast...lots and lots of toast...inside games...inside an excellent, inconspicuous, well-achieved forum where you will finally meet your new family.
Hidden/Spoiler:
Dear brother, I do not spread references; I create them.
Re: Chaning era icon/name
Posted: Sun Nov 20, 2011 2:21 pm
by THEWULFMAN
Marth8880 wrote:Yes, most excellent my dear child.......post your addme's LUA and your shell's REQ, so we may [pauses]...address your situation as we need. In due time, my dear child, in due time will everything come together as the Night Mother has forseen... After you have done this, proceed to Cheydinhal. There you will find...toast...lots and lots of toast...inside games...inside an excellent, inconspicuous, well-achieved forum where you will finally meet your new family.
Hidden/Spoiler:
Dear brother, I do not spread references; I create them.
Oblivion references.
Check the 1.3 patch documentation for how to change an era's name and icon. You just need the icon munged in a shell, then load it in your addme. We'll be happy to explain further.
Re: Changing era icon/name?
Posted: Sun Nov 20, 2011 4:57 pm
by Tears2Roses
You know how in HvB 2, you play on stock utapau as zombies. You need to click HvB 2 - utapau in order to play it. Stock utapau is fine, without the sides. Now, in the dark times 2, you can play as the dark times sides and there isnt a second death star map. I want my sides to be like DT2 and not like HvB2. Hopefully this helps.
Re: Changing era icon/name?
Posted: Sun Nov 20, 2011 8:32 pm
by AQT
Please do what WULF suggested, then. Don't just read it; actively read it.
Put in the change table just as if you weren't using AddNewGameModes(): AddNewGameModes( sp_missionselect_listbox_contents, "myg1%s_%s", {era_a = 1, mode_con_a = 1, change = {...},} )
or easier to read:
AddNewGameModes(
sp_missionselect_listbox_contents,
"myg1%s_%s",
{
era_a = 1,
mode_con_a = 1,
change = {
--TODO make your era and icon changes here as the v1.3 docs say
},
}
)
You and everyone else also needs to create MergeTables() replace AddNewGameModes() using the code here (click here). If you don't, you will wipe out any other changes done to that map from other maps. Also, if other maps didn't make that change, they will wipe out your changes (so you might have had it working, but some other map screwed you). I'm trying to fix this with v1.4, which is one reason I need to rewrite the map selection screens.
Re: Changing era icon/name?
Posted: Mon Nov 21, 2011 10:58 am
by Tears2Roses
Thanks everyone, I will try everything suggested, hopefully something works
EDIT: Thanks, I got it working. Know, how to add it to more than one map properly....
EDIT2: Solved. I coppied over the change table and replaced mygeeto with death star, works like a charm.