Page 1 of 2

Creating New LVL.Files

Posted: Fri Feb 24, 2012 10:40 pm
by TK421
I am trying to recreate the main games LVL.file for each side. I already created a new data file using Visual Munge. My question is, if I want to make a new LvL.file for each side should I make a separate data folder for each or can edit each from a single data folder?

Re: Creating New LVL.Files

Posted: Sat Feb 25, 2012 12:48 am
by AQT
You can edit each side within the same data folder.

Re: Creating New LVL.Files

Posted: Sat Feb 25, 2012 1:11 am
by TK421
Would you by any chance now a guide on making lvl.files. I'm looking through the documentation but can't find anything toward making lvls.

Re: Creating New LVL.Files

Posted: Sat Feb 25, 2012 1:19 am
by AQT
It's in the Getting_Started.doc. When you run VisualMunge for the second time, this time from within your data_***\_BUILD folder, you are creating new .lvl files. That is exactly what munging does; it creates new .lvl files. And there is no need to quote me if my post is directly above yours. Same goes for any other post directly above yours in the future.

Trouble Munging side folders

Posted: Sat Feb 25, 2012 2:24 am
by TK421
]
If I want to munge just the side folders do I need to select anything differently in the visualmunge

EDIT
I can't munge side folders I've edited. I created a new mod file, copied all the sides from main assets folder, copied them in the mods sides folder. I made some minor changes to them. When I try to munge them, I have worlds set to mod name, sides set to everything, and common selected. I click munge, then get the message everything worked. But when I access the file in the main games addon file there are no LVL files.

Re: Creating New LVL.Files

Posted: Sat Feb 25, 2012 3:34 am
by TGB
It should be in your world's data folder in the addon directory or you can copy it from C:\BF2_Modtools\data_ABC\_LVL_PC\

Also until you get the hang of using the dc: tag for referencing addon files you can backup the main sides folder in the SBF2 data directory and move your modded sides folder in as long as every side has been munged. Just don't do this for the end product if you intend to upload it.

EDIT: this method can also be annoying as the full sides folder should be around 670mb.

Re: Creating New LVL.Files

Posted: Sat Feb 25, 2012 2:25 pm
by TK421
Okay, I'm at a loss

When I use visualtool to munge it creates a folder to Star Wars Battlefront II\GameData\addon. It creates the mod folder ERM which is my mod. In the LVL_PC file, there is nothing there.

Again, all I am trying to do is recreate the side's folder LVL.files

Re: Creating New LVL.Files

Posted: Sat Feb 25, 2012 2:53 pm
by ARCTroopaNate
Did you put the dc in your lua?

Go to the line that says

ReadDataFile("SIDE\\rep.lvl",

or whatever side it is. and add in

dc:

so it's now like.

ReadDataFile("dc:SIDE\\rep.lvl",

Save and close your lua.

Remember to munge common when done!

Re: Creating New LVL.Files

Posted: Sat Feb 25, 2012 3:19 pm
by TK421
Yes I did

I went to C:\BF2_ModTools\data_ERM\Common\scripts\ERM and add the dc: to each side.

Re: Creating New LVL.Files

Posted: Sat Feb 25, 2012 3:24 pm
by ARCTroopaNate
It should be working then. How long does munging all the sides take?

Re: Creating New LVL.Files

Posted: Sat Feb 25, 2012 3:34 pm
by TK421
Too dang fast

Looking through the munge output, I can't find anything that it munged side folder

I started completely over, even reinstalled the Modtools to make sure I was missing anything.

I obviously missed something, just can't figure it out

Re: Creating New LVL.Files

Posted: Sat Feb 25, 2012 4:59 pm
by THEWULFMAN
You wouldn't happen to be running Vista or Windows 7 would you?

Re: Creating New LVL.Files

Posted: Sat Feb 25, 2012 5:04 pm
by TK421
Yes I'm running Win7

Re: Creating New LVL.Files

Posted: Sat Feb 25, 2012 5:36 pm
by THEWULFMAN
TK421 wrote:Yes I'm running Win7

So am I. I had to use this fix to get the munge to work properly.

Re: Creating New LVL.Files

Posted: Sat Feb 25, 2012 6:46 pm
by TK421
No go

I used the fix and followed the instructions

Still no change

Re: Creating New LVL.Files

Posted: Sat Feb 25, 2012 7:14 pm
by ARCTroopaNate
I don't see what the problem could be, can you give us a step-by-step overview of what you did, you might have missed something.

Re: Creating New LVL.Files

Posted: Sat Feb 25, 2012 7:37 pm
by TK421
Steps:
1)Open VisualMunge in C:\BF2_ModTools\data\_BUILD
2)Enter the 3 letter, full world name, world discription
3)Selected conquest in game modes
4)Select Create World, received message everything loaded correctly
5)I then copy side folders from C:\BF2_ModTools\assets\sides that I want to edit
6)Then place the folders in C:\BF2_ModTools\data_ERM\Sides, and delete tur side folder because not changing anything in that folder
7) I go through each odf document of each side changing only the MaxHealth stat, save all changes
8)I then go to C:\BF2_ModTools\data_ERM\Common\scripts\ERM, delete all bak files, then go into ERMc_con.lua & ERMg_con.lua, and add dc: to

ReadDataFile("dc:SIDE\\rep.lvl",

9)Then I go to C:\BF2_ModTools\data_ERM\_BUILD, open visual munge
10)Worlds is set to ERM(name of mod), Sides set to Everything, and common box checked
11) Select Munge, and get the following munge output
done:
Copying files to Battlefront II directory:
"C:\Program Files (x86)\Steam\steamapps\common\Star Wars Battlefront II\GameData"
Addon dir exists, continuing...
Mod dir "ERM"exists, continuing...
Copying addme.script to mod dir...done
Copying "mission.lvl" to modDir\data\_LVL_PC\...done
Copying "core.lvl" to modDir\data\_LVL_PC\...done
Copying "ERM" to modDir\data\_LVL_PC\...done
Copying "SIDE" to modDir\data\_LVL_PC\...done
Munge process finished

12)I go to C:\Program Files (x86)\Steam\steamapps\common\Star Wars Battlefront II\GameData\addon\ERM\data\_LVL_PC, and there is nothing in the file

What I am trying to do is modify all units' and space crafts' MaxHealth in the odf, creating a LVL.file to replace the sides LVL in DATA folder

Re: Creating New LVL.Files

Posted: Sat Feb 25, 2012 7:54 pm
by ARCTroopaNate
Hmmm. It seems you did everything right, I think it's a problem with your munger. It should take much, much longer to munge.

Re: Creating New LVL.Files

Posted: Sat Feb 25, 2012 7:59 pm
by TGB
There are certain versions of win7 and vista that just won't allow the mod tools to work. I don't know exactly what the problems are but i have to use my old xp comp to make my mods.

Re: Creating New LVL.Files

Posted: Sat Feb 25, 2012 8:11 pm
by TK421
Making sure I used the munger fix right,

I place the vistamungefix.bat in C:\BF2_ModTools, run it

Thats it right?

Would you guys have any suggestion