Battlefield .RS file entries explanation

Ask questions, discuss ideas, get answers
Post Reply
Waldek
Posts: 49
Joined: Thu Mar 08, 2012 12:09 pm

Battlefield .RS file entries explanation

Post by Waldek »

Hi
There is hardly any information about the particular control values used in .RS files. While the meaning of transparent, envmap, twosided is obvious, there come another types that are not in common use.

texturefade - so according to my research it's mainly used to dim the building portals like door and windows
sortedblend true/false, customfloatvalue number - ??? these are used in conjunction with texturefade, right? However what do they exactly do?

alphaTestRef 0-1 - I can see it controls the appearance of transparent textures over the distance
depthWrite true/false - If not set to false, then sprite objects (like trees) can not be seen through that texture. Anything more? Anyway what is this, and how it works?

blendSrc sourceAlpha; ???
blendDest one/invsourceAlpha/two;
(yeah, i've spotted a value of two as well, even if it is not available within the 3DS Max material options.) ???

Any help is much appreciated. Thanks
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Battlefield .RS file entries explanation

Post by Apache Thunder »

SortedBlend is not a valid RS file command as far as I can tell. Even a hex-edit search of the exe finds nothing. If you found this command in a custom object, the mesh maker was smoking crack because it doesn't exist in BF1942 and thus would have no effect. :P

None of the vanilla files use it and the EXE doesn't define it either. If you can't find the command in the EXE file with a hex-editor, that means it pretty much doesn't exist. Not even Rallisport Challenge has a command like this. :?


EDIT:

I've made this it's own topic in the tutorials section now at the suggestion of Swaffy. :D

RS File commands explained
ImageImageImage
I have cameras in your head!
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Battlefield .RS file entries explanation

Post by Swaffy »

You should move this to the tutorial section. That is one damn good explanation, ApacheThunder.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Battlefield .RS file entries explanation

Post by Apache Thunder »

It is done:

RS File commands explained

I've posted it in the tutorials section. :D
ImageImageImage
I have cameras in your head!
Waldek
Posts: 49
Joined: Thu Mar 08, 2012 12:09 pm

Re: Battlefield .RS file entries explanation

Post by Waldek »

oh my... wow! I would never have expected to receive so much information, thank you!

One suggestion though: Sometimes it gets difficult to understand pure description of mechanisms, so particular examples of real usage involved in the game would be very handy. For example diming black texture of windows and door portals for TextureFade command.
SortedBlend is not a valid RS file command as far as I can tell. Even a hex-edit search of the exe finds nothing. If you found this command in a custom object, the mesh maker was smoking crack because it doesn't exist in BF1942 and thus would have no effect. :P
Apparently I was browsing models that were ripped from Battefield Vietnam, and then ported to BF1942 mod. ;)
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Battlefield .RS file entries explanation

Post by Apache Thunder »

Well that explains it. BFV might have RS commands that don't exist in BF1942. :D
ImageImageImage
I have cameras in your head!
Post Reply