How to munge BF2 shader.xml files?

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
User avatar
Ginev
Command Sergeant Major
Command Sergeant Major
Posts: 260
Joined: Thu Apr 02, 2009 7:02 am
Projects :: Remaking FR Battlefront 3 Tatooine map.
Games I'm Playing :: nothing for now
xbox live or psn: No gamertag set
Location: Bulgaria

How to munge BF2 shader.xml files?

Post 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
noMatt
2nd Lieutenant
2nd Lieutenant
Posts: 398
Joined: Sun Mar 10, 2013 12:30 pm
Projects :: The Map has no name so see alpha
Games I'm Playing :: Crysis Battlefront
xbox live or psn: No gamertag set
Location: Germaneeee
Contact:

Re: How to munge BF2 shader.xml files?

Post by noMatt »

clear and munge common.... but they'll be compressed in a .lvl
User avatar
Ginev
Command Sergeant Major
Command Sergeant Major
Posts: 260
Joined: Thu Apr 02, 2009 7:02 am
Projects :: Remaking FR Battlefront 3 Tatooine map.
Games I'm Playing :: nothing for now
xbox live or psn: No gamertag set
Location: Bulgaria

Re: How to munge BF2 shader.xml files?

Post 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.
User avatar
Nedarb7
Lieutenant General
Lieutenant General
Posts: 676
Joined: Sat Sep 22, 2012 3:41 pm

Re: How to munge BF2 shader.xml files?

Post by Nedarb7 »

The munged xml files (.shader) are found in _BUILD\Common\munged\PC
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: How to munge BF2 shader.xml files?

Post 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]
JimmyAngler
High General
High General
Posts: 837
Joined: Mon Nov 04, 2013 10:37 am
Projects :: Battlefront Halation
Games I'm Playing :: SWBF 1-2-2015
xbox live or psn: none
Location: Area 51

Re: How to munge BF2 shader.xml files?

Post by JimmyAngler »

What exactly are shaders anyway, if I dare to ask.
noMatt
2nd Lieutenant
2nd Lieutenant
Posts: 398
Joined: Sun Mar 10, 2013 12:30 pm
Projects :: The Map has no name so see alpha
Games I'm Playing :: Crysis Battlefront
xbox live or psn: No gamertag set
Location: Germaneeee
Contact:

Re: How to munge BF2 shader.xml files?

Post 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
Post Reply