Page 1 of 1
Issues making a new Core.lvl
Posted: Wed Feb 04, 2015 3:04 pm
by anyder21
Well, apparently I have some issues making a new core.lvl file for SWBF2.
The created file will have 2.500 Kb, when the size of the original one is larger, so it obviously doesnt work...
Can someone help me with this issue ?
There are no notes or whatever in the munge log
Re: Issues making a new Core.lvl
Posted: Wed Feb 04, 2015 5:07 pm
by Anakin
Have you add the stock fonts?? Why do you want to replace the stock core file??
Re: Issues making a new Core.lvl
Posted: Wed Feb 04, 2015 5:12 pm
by AnthonyBF2
I think the assets in the mod tools do not match the original game file when it comes to the core.lvl's contents.
You can remake shell, ingame, and the mission fine.
Re: Issues making a new Core.lvl
Posted: Wed Feb 04, 2015 6:49 pm
by anyder21
Well, i know i can mod all that... I'm a Master Modder in SWBFGamers, and i didnt get the title cause of my pretty face
The reason that I want to replace my current core is pretty obvious: I've done it for SWBF1, and so I want my custom one for SWBF2. I'm not sure what that of fonts is...
Does that mean that u cannot get ur custom core.lvl ? I guess that just leaves the alternative to extract all files from the core and remunge or hexedit....
Re: Issues making a new Core.lvl
Posted: Wed Feb 04, 2015 7:33 pm
by [RDH]Zerted
There is a proper core.req floating around somewhere on the site. It can be replaced, but I don't think we have optimized versions of some of the stuff. Meaning SWBF2 runs slower with a custom core.lvl.
There's an lvl extraction utility too (I think named extract). You won't get all the files in editable formats, but you'll get a listing on what's in the lvl.
Re: Issues making a new Core.lvl
Posted: Wed Feb 04, 2015 7:41 pm
by AnthonyBF2
You can see what's in the core.lvl by opening it in hex editor and scanning for any instance of "Luap" each time you see that bit of code, the title of a script is nearby.
You can also hex search for ".tga" to see what textures are called.
This would be nice to accomplish, I'd like to remove annoying "we dropped flag..." blah blag crap.
Edit:
I'm totally mistaken for what core.lvl is used for, there are no ".lua" in there.
Edit again
I found 30 instances of ".xml" extension in the core.lvl
in C:\BF2_ModTools\data_MOD\Common\shaders\PC there are 32 .xmls
I think you need to make a req, and determine which 2 extra xmls are not used.
Re: Issues making a new Core.lvl
Posted: Thu Feb 05, 2015 3:16 pm
by anyder21
[RDH]Zerted wrote:There is a proper core.req floating around somewhere on the site. It can be replaced, but I don't think we have optimized versions of some of the stuff. Meaning SWBF2 runs slower with a custom core.lvl.
There's an lvl extraction utility too (I think named extract). You won't get all the files in editable formats, but you'll get a listing on what's in the lvl.
It will be really awesome if you could link me to it.
I already have my own LVL extractor, and know how it works

Re: Issues making a new Core.lvl
Posted: Thu Feb 05, 2015 5:32 pm
by AceMastermind
The core.lvl file will only contain files called by core.req.
If you look in core-japanese.req and remove all the non PC and Japanese or obsolete lines, then add the localization stuff from core.req, you'll end up with this (minus the path comments):
It looks like we have all the files needed, at least from what I can tell.
You also need to add these under "font"
gamefont_large
gamefont_medium
gamefont_small
gamefont_super_tiny
gamefont_tiny
Your new core.req will look like this:
You'll need to copy:
BF2_ModTools\assets\common\sound folder
to:
data_ABC\Common
Download
this archive and extract the wav files to:
data_ABC\Sound\global\effects
Munge with "Common" ticked in VisualMunge
It might be a good idea to use the
Fixed and improved munge files before you start munging.
Re: Issues making a new Core.lvl
Posted: Thu Feb 05, 2015 11:26 pm
by [RDH]Zerted
I found where we posted the core.req:
viewtopic.php?f=27&t=13685&hilit=core.req I didn't check to see if it matches AceMastermind's.
Here's the LVL extractor:
http://starwarsbattlefront.filefront.co ... ctor;32428
If you have your own extractor feel free to post it, even better if you include the source code.