Everything unlocalized [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
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Everything unlocalized [Solved]

Post 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?
Last edited by ARCTroopaNate on Fri Aug 16, 2013 11:08 pm, edited 1 time in total.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Everything unlocalized

Post 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.
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Re: Everything unlocalized

Post 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.
CressAlbane
Master Bounty Hunter
Master Bounty Hunter
Posts: 1519
Joined: Fri Dec 18, 2009 8:02 am
Projects :: CTF Arenas
Games I'm Playing :: Steam- cressalbane2
Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı

Re: Everything unlocalized

Post by CressAlbane »

Did you try checking out the PATH variable?
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Re: Everything unlocalized

Post 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?
CressAlbane
Master Bounty Hunter
Master Bounty Hunter
Posts: 1519
Joined: Fri Dec 18, 2009 8:02 am
Projects :: CTF Arenas
Games I'm Playing :: Steam- cressalbane2
Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı

Re: Everything unlocalized

Post 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.
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Re: Everything unlocalized

Post by ARCTroopaNate »

My path is what it should be, just checked again and it's fine... :|
CressAlbane
Master Bounty Hunter
Master Bounty Hunter
Posts: 1519
Joined: Fri Dec 18, 2009 8:02 am
Projects :: CTF Arenas
Games I'm Playing :: Steam- cressalbane2
Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı

Re: Everything unlocalized

Post by CressAlbane »

To be frank, if you're still getting the xcopy errors, then your path is not what it's supposed to be.
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Re: Everything unlocalized

Post 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...
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Everything unlocalized

Post 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. ;)
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Re: Everything unlocalized [Solved]

Post 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!
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Everything unlocalized

Post 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.
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Re: Everything unlocalized [Solved]

Post by ARCTroopaNate »

Hidden/Spoiler:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;D:\Program Files\ATI Technologies\ATI.ACE\Core-Static
Post Reply