Page 1 of 1

How to munge BF2 shader.xml files?

Posted: Sat Jan 18, 2014 5:34 am
by Ginev
Hi guys.I am trying to munge the Battlefront 2 shaders files and after that to replace them with the already munged shaders in Battlebelk's core lvl tool.I am trying to add the BF2 shaders in the BF1 game.What i must do to munge the BF2 shaders?Can someone tell me or give me some tutorial please?I just want to try.Probably something will work dont know :D

Re: How to munge BF2 shader.xml files?

Posted: Sat Jan 18, 2014 9:33 pm
by noMatt
clear and munge common.... but they'll be compressed in a .lvl

Re: How to munge BF2 shader.xml files?

Posted: Sun Jan 19, 2014 5:25 am
by Ginev
Well i don't need them in a lvl file.In Battlebelk's Core lvl tool in the munged folder all the shaders are .shader I checked the BF1 mod tool and the BF2 too and their shaders are .xml (i think they are unmunged version) And here is the main problem.How he munged this .xml files into .shader files?If someone know how please comment.I know its possible cuz one guy here (i think it was CreatorOfThings) did that in his mod.He make some changes to the shaders and everything in hismod look more different.

Re: How to munge BF2 shader.xml files?

Posted: Tue Jan 21, 2014 3:34 pm
by Nedarb7
The munged xml files (.shader) are found in _BUILD\Common\munged\PC

Re: How to munge BF2 shader.xml files?

Posted: Wed Jan 22, 2014 4:34 pm
by AceMastermind
I've never messed with the shader files in this game, but if you look in core-japanese.req it lists all the shaders, these would be the *.xml files in data_ABC\Common\shaders\PC. Maybe add this portion to your core.req, edit the shader files then munge.
Hidden/Spoiler:
[code] REQN
{
"shader"
"platform=pc"
"normal_shader"
"interface_shader"
"particle_shader"
"terrain_shader"
"sprite_shader"
"skyfog_shader"
"foliage_shader"
"lightbeam_shader"
"scroll_shader"
"flare_shader"
"sample_shader"
"rain_shader"
"normalmapadder_shader"
"prereflection_shader"
"water_shader"
"stencilshadow_shader"
"shadowquad_shader"
"specular_shader"
"detail_shader"
"ocean_shader"
"refraction_shader"
"decal_shader"
"filtercopy_shader"
"shield_shader"
"bump_shader"
"zprepass_shader"
}
[/code]

Re: How to munge BF2 shader.xml files?

Posted: Wed Jan 22, 2014 4:36 pm
by JimmyAngler
What exactly are shaders anyway, if I dare to ask.

Re: How to munge BF2 shader.xml files?

Posted: Wed Jan 22, 2014 5:53 pm
by noMatt
Shaders are programms that are run on the VGA. Basicly to make it short, they determine how the game is lookin. They collect informations about light 3D position data, textures, normals usw and proceed them