Reading/Writing Rx3 & Rx2 Files [.dll] [All Fifas]

tokke001

Senior Squad
Its possible to convert one format tô another in crowd?
There are still some unknown values
But i think it should be possible, depends wich formats maybe
Wc14 crowd is a bit more unknown yet
and today in FIFA 16 if we make a crowd larger than around 60k seats the game crashes. Do you mean its a problem of the exporter no the game?
I am not sure about the ingame limit,
But regarding the file:
it should be possible to create a crowd file with more then 60k seats

I v seen a crowd file from an older game (fifa 07, or fifa 11 i cant remember) wich had more then 60k seats :
So it was confirmed there that "number of seats" is stored as a 32bit value
 

humbertoaze

Club Supporter
There are still some unknown values
But i think it should be possible, depends wich formats maybe
Wc14 crowd is a bit more unknown
If you are able to convert it into an object (obj, 3ds, etc) with the positions of the crowd, everything else can Be done by the exporter.
 

tokke001

Senior Squad

Crowd-Placement files

for the crowd-placement files there is good news :
i got a look on a ea python script for crowdplacement .dat files,
and it got the full layout for 2 file types, and are 100% confirmed now :
* 0x0103 version : for games of FIFA 07 to FIFA 14
* 0x0105 version : for games of FIFA 15 or later

the 3th type wasnt included,
so is a bit more unknown :
* 0x0104 version : game FIFA WC'14

i ll share the layout here,
but i ll also update my dll !

1. File header :

the file starts with a fileheader :
C#:
String Magic;     //"CRWD"
Ushort Version;
Uint NumSeats;

2. Seats

followed is an array of size NumSeats,
and is different for each Version

* Seat0103
if Version = 0x0103
this is for games of FIFA 07 to FIFA 14
C#:
Vector3 Position;
Float Rotation;
Byte(3) SeatColor;
Byte Section;              //home/away : 0 = all home, 255 = all away
Byte Tier;                 //
Byte Attendance;          //Size of crowd: 0 = near no crowd, 255 = full packed
Byte InfluenceArea;       //F11/14: always 127 (ea py script: unused! )
Byte Unused;        //always 51 (ea py script: unused! )
Float(4) Shade;                //lightning, 4 float Values: ussually between 0 - 1 (ea py script: Can be bytes)
Byte Animgroups;            //always 0  (ea py script: unused! )
Byte NumAccs;                //always 0  (ea py script: unused! )

* Seat0105
if Version = 0x0105
this is for games of FIFA 15 or later
C#:
Vector3 Position;
Float Rotation;
Byte(3) SeatColor;
Byte Section0;        //home/away ultra : 0 = all home, 255 = all away
Byte Section1;        //home/away neutral : 0 = all home, 255 = all away
Byte Tier;            //
Byte Attendance;    //Size of crowd: 0 = near no crowd, 255 = full packed
Byte NoChair;        //(ea py script: unused! )
Byte(3) CardColors;    //3 bytes   (ea py script: WC )
Byte CrowdPattern;    //                        
Byte(4) Pad;        //padding (empty 0 values)

* Seat0104
if Version = 0x0104
this is for the game FIFA WC'14
this wasnt found in the python code: so it is needs further testing !
C#:
Vector3 Position;
Float Rotation;
Byte(3) SeatColor;
Byte Section0;        //home/away  : 0 = all home, 255 = all away
Byte Unknown_1;        //Section1 maybe ?
Byte Unknown_2;        //Section2 maybe ?
Byte Unknown_3;        //Section4 maybe ?
Byte Unknown_4;        //Tier maybe ??
Byte Attendance;    //Size of crowd: 0 = near no crowd, 255 = full packed
Float(4) Unknown_5;    //might be bytes, maybe shading (lightning) ?? --> always 0,0,0,1
 

tokke001

Senior Squad

FIFA Library 2022 - v22.07.24


New update of my dll,
these are the main new features:

* CrowdPlacement .dat files support -update
* Updates/fixes for rx3 stadium sections (SceneInstance, SceneLayer, Location, CollisionTriMesh, Collision)
* Updates/Fixes to Dds Files (BCnEncoder.Net dll update)
* other Fixes
(see full changelog below)

ChangeLog

- Fix: error when trying get hotspot/nametable sections from memory if it is nothing

- BCnEncoder.Net
* Fix: Ddsfile - Wrong reading of BC5 textures (wrong texture size calculated)
* Updates of BCnEncoder.Shared.Ddsfile to latest version
-> BCnEncoderNet45.dll has been updated !

- added DdsExtensions
RawImages from/to DdsFile now moved, as extension functions "FromRawImages", "ToRawImages" to BCnEncoder.Shared.Ddsfile

- Fix: Corrupt DdsFile being created when the texture size from RawImage is wrong - now a size-check is added

- Updates to rx3 texture-sections (from official infos)
* renamed some 'unknown' to 'pad' (padding values)
* Rx3.TextureHeader : added Enum "EDataFormat" (flags) + code updates

- Rx3.SceneInstance
* Fix: MeshDescriptors not loaded
* Fix: MeshDescriptors shouldnt be loaded when 'Status = 0'

- Rx3.SceneLayer
* Section-Updates: Instances now as array (NumInstances added, according ea docs)

- Rx3.Location
* Fix: TotalSize not auto-calculated now, because is a random value at Rx3b files (FIFA 12/13)

- Rx3.CollisionTriMesh
Section-Updates
* Spaces added (array) (NumSpaces added, according ea docs)
* Shapes added (array) (NumShapes added)
* + other updates

- Rx3.Collision
Section-Updates
* Spaces added (array) (NumSpaces added)
* Shapes added (array) (NumShapes added)
* + other updates

- CrowdPlacement .dat files
CrowdDat.CrwdFile updated according official infos
* 0x0103 version-FileType (FIFA 07 to FIFA 14) : full confirmed
* 0x0105 version-FileType (FIFA 15 or later) : full confirmed
* 0x0104 version-FileType (FIFA WC'14) : not full, some unknown values yet


Info:

-> .NET framework 4.7.2 compatible
-> Code Examples: Here

Credits also to:
* Dmitri, Beedy (research)
* Rinaldo (some small code parts)
* BCnEncoder.NET

GitHub (code):​

Link

Download (dll + docs):

Link
 

Death GOD 7

Club Supporter

FIFA Library 2022 - v22.07.24


New update of my dll,
these are the main new features:

* CrowdPlacement .dat files support -update
* Updates/fixes for rx3 stadium sections (SceneInstance, SceneLayer, Location, CollisionTriMesh, Collision)
* Updates/Fixes to Dds Files (BCnEncoder.Net dll update)
* other Fixes
(see full changelog below)

ChangeLog

- Fix: error when trying get hotspot/nametable sections from memory if it is nothing

- BCnEncoder.Net
* Fix: Ddsfile - Wrong reading of BC5 textures (wrong texture size calculated)
* Updates of BCnEncoder.Shared.Ddsfile to latest version
-> BCnEncoderNet45.dll has been updated !

- added DdsExtensions
RawImages from/to DdsFile now moved, as extension functions "FromRawImages", "ToRawImages" to BCnEncoder.Shared.Ddsfile

- Fix: Corrupt DdsFile being created when the texture size from RawImage is wrong - now a size-check is added

- Updates to rx3 texture-sections (from official infos)
* renamed some 'unknown' to 'pad' (padding values)
* Rx3.TextureHeader : added Enum "EDataFormat" (flags) + code updates

- Rx3.SceneInstance
* Fix: MeshDescriptors not loaded
* Fix: MeshDescriptors shouldnt be loaded when 'Status = 0'

- Rx3.SceneLayer
* Section-Updates: Instances now as array (NumInstances added, according ea docs)

- Rx3.Location
* Fix: TotalSize not auto-calculated now, because is a random value at Rx3b files (FIFA 12/13)

- Rx3.CollisionTriMesh
Section-Updates
* Spaces added (array) (NumSpaces added, according ea docs)
* Shapes added (array) (NumShapes added)
* + other updates

- Rx3.Collision
Section-Updates
* Spaces added (array) (NumSpaces added)
* Shapes added (array) (NumShapes added)
* + other updates

- CrowdPlacement .dat files
CrowdDat.CrwdFile updated according official infos
* 0x0103 version-FileType (FIFA 07 to FIFA 14) : full confirmed
* 0x0105 version-FileType (FIFA 15 or later) : full confirmed
* 0x0104 version-FileType (FIFA WC'14) : not full, some unknown values yet


Info:

-> .NET framework 4.7.2 compatible
-> Code Examples: Here

Credits also to:
* Dmitri, Beedy (research)
* Rinaldo (some small code parts)
* BCnEncoder.NET

GitHub (code):​

Link

Download (dll + docs):

Link
Another major changes!! Lets goooo!!!
 

Faces by Jeff

Club Supporter
For who s waiting the new version of my FIFA Converter tool:
more news coming soon on the thread...
hello bro I hope you are well I have a problem in fifa 11 and it is with transfers in career mode I explain a little what happens that I create a couple of players in CM 11 and add them to a club but when I start a career mode the player appears and
a player disappears from the club but also in others that I add to a club but does not appear for example I created omar abdulrahman I added him in barcelona and andres iniesta disappears from the club I do not know if it is an error in the game or in CM 11
this only happens in career mode I hope you can help me by answering
 

MR ZERO

Club Supporter
guys im new at fifa modding and think i don't know anything about at all i found this thread and i think it contain what i have been looking for all i need to do to export model from rx3 file if it possible To any file format which i can import it to blender like .fbx .obj
 


Top