Mod Tools "Broken" [Solved]
Moderator: Moderators
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: Mod Tools "Broken"
Just throwing a ball into right field here, but are you on XP or Vista?
-
theultimat
- Lieutenant General

- Posts: 679
- Joined: Sun Apr 13, 2008 1:39 pm
- Location: UK
Re: Mod Tools "Broken"
I'm on XP.
- Frisbeetarian
- Jedi

- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Mod Tools "Broken"
If that's the case, I'd suggest reinstalling the modtools. It seems that something in the data folder is probably messed up.theultimat wrote:Nope. It doesn't work at all.Frisbeetarian wrote:When you make a new map and munge for the first time, that new map works, correct?
-
theultimat
- Lieutenant General

- Posts: 679
- Joined: Sun Apr 13, 2008 1:39 pm
- Location: UK
Re: Mod Tools "Broken"
@Frisbeetarian: Unfortunately, that didn't work. I already tried... Thanks anyway though.
- Frisbeetarian
- Jedi

- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Mod Tools "Broken"
When you munge a brand new map (just common checked), how big are each of the files that appear in your _LVL_PC directory?
-
theultimat
- Lieutenant General

- Posts: 679
- Joined: Sun Apr 13, 2008 1:39 pm
- Location: UK
Re: Mod Tools "Broken"
Okay... I'll give all of them to size on disk...
addme.script: 4.0 KB
core.lvl: 2.56 MB
mission.lvl: 88.0 KB
ABC.lvl: 2.74 MB
addme.script: 4.0 KB
core.lvl: 2.56 MB
mission.lvl: 88.0 KB
ABC.lvl: 2.74 MB
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: Mod Tools "Broken"
Here's another question -- if you try to play a map that other people know works (like for instance the BF0 maps) do they work? -- that is a known working map should be the only map in your /addon folder. That'll help determine if it's an issue with addons or the munge.
-
theultimat
- Lieutenant General

- Posts: 679
- Joined: Sun Apr 13, 2008 1:39 pm
- Location: UK
Re: Mod Tools "Broken"
@Teancum: Yes, all the other maps work. If I remove all the mods except one (lets say Corellia by bobfinkl) and test it ingame, it works. If, however, I remove all maps except ABC (a map that I munged) it would not work, but get a FATAL error.
- Frisbeetarian
- Jedi

- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Mod Tools "Broken"
Usually things will end up too small, but your addme.script seems to be too big by about 5 times. Could you post the contents of your addme.lua?
-
theultimat
- Lieutenant General

- Posts: 679
- Joined: Sun Apr 13, 2008 1:39 pm
- Location: UK
Re: Mod Tools "Broken"
@Frisbeetarian: Okay, here it is:
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 = "FRN%s_%s", era_g = 1, era_c = 1, mode_con_g = 1, mode_con_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("FRN","FRNg_con",4)
AddDownloadableContent("FRN","FRNc_con",4)
-- all done
newEntry = nil
n = nil
-- Now load our core.lvl into the shell to add our localize keys
ReadDataFile("..\\..\\addon\\FRN\\data\\_LVL_PC\\core.lvl")
- Frisbeetarian
- Jedi

- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Mod Tools "Broken"
When I munge that, I get a file that's 816 bytes. How big is your mungeAddme.bat and ToolsFL\bin\ScriptMunge.exe?
-
theultimat
- Lieutenant General

- Posts: 679
- Joined: Sun Apr 13, 2008 1:39 pm
- Location: UK
Re: Mod Tools "Broken"
Again, I will answer to size on disk...
mungeAddme.bat: 4.00 KB
ScriptMunge.exe: 120 KB
mungeAddme.bat: 4.00 KB
ScriptMunge.exe: 120 KB
- Frisbeetarian
- Jedi

- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Mod Tools "Broken"
Could you package up your data_FRN folder so that I can take a look at it? It would make this much easier, plus I can check to see if it has to do with your computer, or with the modtools.
-
theultimat
- Lieutenant General

- Posts: 679
- Joined: Sun Apr 13, 2008 1:39 pm
- Location: UK
Re: Mod Tools "Broken"
Okay, I've uploaded it to MediaFire. Here's the link. And thanks tonnes Frisbeetarian!
URL: Click Here
EDIT:
I have just made an unfortunate discovery. Now, when I place a new map in my addon folder, I get a FATAL error... Seems like it is an addon problem after all, or maybe both. The strange thing is that I only get a FATAL on a new map in the addon folder - maps that were previously in there are fine.
URL: Click Here
EDIT:
I have just made an unfortunate discovery. Now, when I place a new map in my addon folder, I get a FATAL error... Seems like it is an addon problem after all, or maybe both. The strange thing is that I only get a FATAL on a new map in the addon folder - maps that were previously in there are fine.
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: Mod Tools "Broken"
And just to be clear, this FATAL comes while Battlefront is still loading, right?
-
theultimat
- Lieutenant General

- Posts: 679
- Joined: Sun Apr 13, 2008 1:39 pm
- Location: UK
Re: Mod Tools "Broken"
@Teancum:
Not exactly. Battlefront loads fine, but when I select a newly added/ munged mod map to play I get the FATAL after I click launch, as seen below:
Not exactly. Battlefront loads fine, but when I select a newly added/ munged mod map to play I get the FATAL after I click launch, as seen below:
Hidden/Spoiler:
-
Yodakid
- Second Lance Corporal

- Posts: 117
- Joined: Sat Nov 22, 2008 5:43 pm
- Projects :: Something old
- xbox live or psn: No gamertag set
- Location: Finland
Re: Mod Tools "Broken"
Have you tried to re-install BF2?
-
theultimat
- Lieutenant General

- Posts: 679
- Joined: Sun Apr 13, 2008 1:39 pm
- Location: UK
Re: Mod Tools "Broken"
@YodaKid: Nope...I'll try that when I get home tommorow.
- Frisbeetarian
- Jedi

- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Mod Tools "Broken"
I have an idea of what's wrong, but I'd like to be sure, so I just need you to answer a couple of questions.
How long does a munge take?
Does the following message come up whenever you munge?
Also, I told you to only select Common when you munged, instead you munged everything. Just to let you know, unless you are changing the other things, only common needs to be checked.
How long does a munge take?
Does the following message come up whenever you munge?
Code: Select all
\Common was unexpected at this time.-
theultimat
- Lieutenant General

- Posts: 679
- Joined: Sun Apr 13, 2008 1:39 pm
- Location: UK
Re: Mod Tools "Broken"
@ Frisbeetarian: I cleaned and only munged common, but the files were still there in _LVL_PC. Sorry about that. A munge takes about... 45 seconds. And no, that
I couldn't find, although I might have missed it. Where exactly would it be on in the munge output?
EDIT: I also tried to reinstall SWBF2, but it didn't fix the problem.
Code: Select all
\Common was unexpected at this time.EDIT: I also tried to reinstall SWBF2, but it didn't fix the problem.

