Page 1 of 1

Everything unlocalized [Solved]

Posted: Sat Jul 13, 2013 8:56 pm
by ARCTroopaNate
Hi GT, back to modding. I'm trying to add Dark Times to my map and it has seemed to mess up the munging of my core.lvl. Core.lvl is only one KB even after munging and my map, weapon, , unit and mode names and all are unlocalized, interesting enough, everything is fine in the Dark Times era and only messed up in CW and GCW, I'm almost 100% positive that this is caused from adding Dark Times.

addme
Hidden/Spoiler:
--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

ReadDataFile("..\\..\\addon\\BDT\\data\\_LVL_PC\\dtshell.lvl")


--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 = "ZAS%s_%s", era_g = 1, era_c = 1, era_1 = 1, mode_con_g = 1, mode_con_1 = 1, mode_con_c = 1, mode_tdm_c = 1, mode_tdm_g = 1, mode_tdm_1 = 1, mode_xl_c = 1,

mode_xl_g = 1, mode_ctf_g = 1, mode_ctf_c = 1, mode_1flag_g = 1, mode_1flag_c = 1, mode_eli_g = 1, mode_eli_c = 1, mode_eli_1 = 1, mode_wav_1 = 1, mode_ctrl_1 = 1, mode_ins_1 = 1, change = {
era_1 = { name="Dark Times", icon2="darktimes_icon" }, mode_ins = { name="V.I.P.", icon="vip_icon", about="Protect the leader - or hunt him down!"},
},}
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("ZAS","ZASc_con",4)
AddDownloadableContent("ZAS","ZASc_ctf",4)
AddDownloadableContent("ZAS","ZASc_1flag",4)
AddDownloadableContent("ZAS","ZAc_tdm",4)
AddDownloadableContent("ZAS","ZASc_xl",4)
AddDownloadableContent("ZAS","ZASc_eli",4)
AddDownloadableContent("ZAS","ZASg_tdm",4)
AddDownloadableContent("ZAS","ZASg_xl",4)
AddDownloadableContent("ZAS","ZASg_con",4)
AddDownloadableContent("ZAS","ZASg_ctf",4)
AddDownloadableContent("ZAS","ZASg_1flag",4)
AddDownloadableContent("ZAS","ZASg_eli",4)
AddDownloadableContent("ZAS","ZAS1_con",4)
AddDownloadableContent("ZAS","ZAS1_tdm",4)
AddDownloadableContent("ZAS","ZAS1_eli",4)
AddDownloadableContent("ZAS","ZAS1_ctrl",4)
AddDownloadableContent("ZAS","ZAS1_wav",4)
AddDownloadableContent("ZAS","ZAS1_ins",4)

-- all done
newEntry = nil
n = nil

-- Now load our core.lvl into the shell to add our localize keys
ReadDataFile("..\\..\\addon\\ZAS\\data\\_LVL_PC\\core.lvl")
Does my core need to be loaded before dtshell?

Re: Everything unlocalized

Posted: Sat Jul 13, 2013 10:40 pm
by Maveritchell
Adding a mode or map (through the addme.lua) won't affect your core.lvl. Only something in your core.req (or its children) will affect your core.lvl.

Re: Everything unlocalized

Posted: Sun Jul 14, 2013 12:38 pm
by ARCTroopaNate
My core.req is unedited. I tried saving it and munging and it still comes up as one KB, gonna do a clean & munge and then try a manual clean if that doesn't work, will post results.

EDIT: It appears to not just be this map, this is on a fresh copy of modtools and it every time I try to munge a core file it shows up as one KB and isn't read by the game.

EDIT 2: forums/viewtopic.php?f=37&t=26287&hilit=path+variable
I've noticed the same xcopy error as cress, however I haven't messed with anything on my computer that would cause it, battlefront isn't in the default location but I've had it where it is now before and there haven't been any problems.

Re: Everything unlocalized

Posted: Fri Aug 02, 2013 11:55 am
by CressAlbane
Did you try checking out the PATH variable?

Re: Everything unlocalized

Posted: Fri Aug 02, 2013 10:42 pm
by ARCTroopaNate
Yes, I tried checking it and it appears to be correct. I keep getting not found errors when I go to some of the links, do you happen to have the fixpath.exe's?

Re: Everything unlocalized

Posted: Sat Aug 03, 2013 12:35 am
by CressAlbane
IIRC fixpath did not help. I just needed to check out the default for my OS and see if it had become messed-up/deleted.

Re: Everything unlocalized

Posted: Sat Aug 03, 2013 1:11 pm
by ARCTroopaNate
My path is what it should be, just checked again and it's fine... :|

Re: Everything unlocalized

Posted: Sat Aug 03, 2013 9:47 pm
by CressAlbane
To be frank, if you're still getting the xcopy errors, then your path is not what it's supposed to be.

Re: Everything unlocalized

Posted: Fri Aug 16, 2013 5:52 pm
by ARCTroopaNate
When I got my new computer it didn't come with XP as it's default OS so my dad installed it but it's worked before, not sure if that is the cause of the problem...

Re: Everything unlocalized

Posted: Fri Aug 16, 2013 11:08 pm
by Marth8880
So xcopy can't find LocalizeMunge.exe, most likely, which is located in ToolsFL\bin\. We're gonna need to edit some Environment Variables here... :o


Right-click My Computer, and then click Properties.
Click the Advanced tab.
Click Environment variables.
In the second group, find the Variable called "Path" and click "Edit..."
Press the End key to make sure you are at the very end of the text box, and enter something like this:

;C:\BF2_ModTools\ToolsFL\bin

Press OK to close the window, and OK again, and yeah, should work. ;)

Re: Everything unlocalized [Solved]

Posted: Fri Aug 16, 2013 11:09 pm
by ARCTroopaNate
Just as a note, I have my modtools on E so I replaced the C with an E, but otherwise this baby works like a charm! Wub you marthman!

Re: Everything unlocalized

Posted: Sat Aug 17, 2013 1:45 pm
by AceMastermind
ARCTroopaNate wrote:When I got my new computer it didn't come with XP as it's default OS so my dad installed it but it's worked before, not sure if that is the cause of the problem...
Environment variables aren't exclusive to XP.
What did your path look like before you added anything to it?

It seems strange that you would need to add a specific path in this case.
These paths can be screwed up by simply installing software that doesn't respect the order.

Re: Everything unlocalized [Solved]

Posted: Sat Aug 17, 2013 6:29 pm
by ARCTroopaNate
Hidden/Spoiler:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;D:\Program Files\ATI Technologies\ATI.ACE\Core-Static