• This is a reminder of 3 IMPORTANT RULES:

    1- External self-promotion websites or apps are NOT allowed here, like Discord/Twitter/Patreon/etc.

    2- Do NOT post in other languages. English-only.

    3- Crack/Warez/Piracy talk is NOT allowed.

    Breaking any of the above rules will result in your messages being deleted and you will be banned upon repetition.

    Please, stop by this thread SoccerGaming Forum Rules And Guidelines and make sure you read and understand our policies.

    Thank you!

Does anyone know how to edit TRM files?

G2000

Youth Team
@ Katsche - Cool!!! What I need to do is modify one of the TRM files. Which hex-editor did you use btw? When I try using something like EditPlus 2 or HexWorkshop I cant read any of the data in them.

Thanks m8!!!

Prost,
 

Katsche

Youth Team
fixtures-editing-tutorial

Fixtures-Tutorial by Katsche
============================

Files in FIFA 2004
------------------
the fixtures are the *trm files
in the folder:
...FIFA 2004\data\cmn\fe\
for example: spain.trm

Editing-Tool
------------
to edit the *trm files
you need a Hex-Editor.
You can use the folloing Tools:

WinHex (Hex-Editor)
UltraEdit (Hex-Editor)



Hex means the hexadecimal numbering system
to edit the fixtures you need this numerical value:

Dez : Hex Dez : Hex Dez : Hex Dez : Hex
0 : 00 10 : 0A 20 : 14 30 : 1E
1 : 01 11 : 0B 21 : 15 31 : 1F
2 : 02 12 : 0C 22 : 16
3 : 03 13 : 0D 23 : 17
4 : 04 14 : 0E 24 : 18
5 : 05 15 : 0F 25 : 19
6 : 06 16 : 10 26 : 1A
7 : 07 17 : 11 27 : 1B
8 : 08 18 : 12 28 : 1C
9 : 09 19 : 13 29 : 1D


Original-Fixtures
-----------------
you need the original-fixtures from a internet-site
for example: www.sport1.de
or from www.uefa.com with link to the leagues

the fixtures from this sites you copy over the clipboard
in a text file.
this text file you saved: fixtures-spain

the text file shows:

30.08. 19:30 RCD Espanyol Barcelona Real Sociedad San Sebastian 1:1 Verl.1. Splt.
30.08. 19:30 Real Madrid CF Real Betis Sevilla 2:1 Verl.1. Splt.
30.08. 21:00 Malaga CF Villarreal CF 0:0 Verl.1. Splt.
30.08. 21:00 Albacete Balompie CA Osasuna 0:2 Verl.1. Splt.
30.08. 21:30 Athletic Club Bilbao FC Barcelona 0:1 Verl.1. Splt.
30.08. 21:30 Valencia CF Real Valladolid 1:1 Verl.1. Splt.
31.08. 20:00 RC Celta de Vigo Real Murcia CF 1:1 Verl.1. Splt.
31.08. 20:00 Racing Club de Santander RCD Mallorca 2:1 Verl.1. Splt.
31.08. 21:30 Sevilla FC Atletico de Madrid 1:0 Verl.1. Splt.
31.08. 21:30 Real Zaragoza RC Deportivo de La Coruna 0:1 Verl.1.

change it in this form:

30.08. 19:30 RCD Espanyol Barcelona Real Sociedad San Sebastian 1:1 Verl.1.
30.08. 19:30 Real Madrid CF Real Betis Sevilla 2:1 Verl.1. Splt.
30.08. 21:00 Malaga CF Villarreal CF 0:0 Verl.1. Splt.
30.08. 21:00 Albacete Balompie CA Osasuna 0:2 Verl.1. Splt.
30.08. 21:30 Athletic Club Bilbao FC Barcelona 0:1 Verl.1. Splt.
30.08. 21:30 Valencia CF Real Valladolid 1:1 Verl.1. Splt.
31.08. 20:00 RC Celta de Vigo Real Murcia CF 1:1 Verl.1. Splt.
31.08. 20:00 Racing Club de Santander RCD Mallorca 2:1 Verl.1. Splt.
31.08. 21:30 Sevilla FC Atletico de Madrid 1:0 Verl.1. Splt.
31.08. 21:30 Real Zaragoza RC Deportivo de La Coruna 0:1 Verl.1.


Numbering of the Teams
----------------------
in the fixtures are the games specified
in this form: 1 vs. 4, 2 vs. 9 ...
to detect what number which team has,
you must look in FIFA 2004 in the team selection menue.
the order in FIFA 2004 you wrote by numbering the teams
beginning with number 0 (zero).

Nr. : Hex = Team Nr. : Hex = Team
0 : 00 = Atletico Madrid 10 : 0A = Real Murcia
1 : 01 = Albacete 11 : 0B = Osasuna
2 : 02 = FC Barcelona 12 : 0C = Real Madrid
3 : 03 = Athletic Bilbao 13 : 0D = Real Sociedad
4 : 04 = Celta Vigo 14 : 0E = Racing Santander
5 : 05 = Deportivo La Coruna 15 : 0F = Real Saragossa
6 : 06 = Espanyol Barcelona 16 : 10 = Real Betis Sevilla
7 : 07 = FC Malaga 17 : 11 = FC Valencia
8 : 08 = FC Sevilla 18 : 12 = Real Valladolid
9 : 09 = RCD Mallorca 19 : 13 = Villareal



Preparations of the fixtures
----------------------------
for editing preparation the fixtures in this way:

with the Hex-Editor (WinHex) do this:
> WinHex open
> Files > Open ... fixtures-spain
you will see the 3-column display of the Hex-Editor
1. Offset = line
2. 0 bis F = Position (Hexwerte)
3. Text

> search
> Text replace
search for: RCD Espanyol Barcelona
replace with: 05 Espanyol Barcelona
> OK
"RCD Espanol Barcelona" were on 38 positions replaced
> OK

do this with all the teams in die league
then:
> file > save
> WinHex closing

=> you can this also with an text-Programm like word

after all this changes the fixtures looks like this:

30.08. 19:30 06 Espanyol Barcelona 0D Real Sociedad 1:1 Verl.1. Splt.
30.08. 19:30 0C Real Madrid 10 Real Betis Sevilla 2:1 Verl.1. Splt. 30.08. 21:00 07 FC Malaga 13 Villarreal 0:0 Verl.1. Splt.
30.08. 21:00 01 Albacete 0B Osasuna 0:2 Verl.1. Splt.
30.08. 21:30 03 Athletic Bilbao 02 FC Barcelona 0:1 Verl.1. Splt.
30.08. 21:30 11 FC Valencia 12 Real Valladolid 1:1 Verl.1. Splt.
31.08. 20:00 04 Celta Vigo 0A Real Murcia 1:1 Verl.1. Splt.
31.08. 20:00 0E Racing Santander 09 RCD Mallorca 2:1 Verl.1. Splt.
31.08. 21:30 08 FC Sevilla 00 Atletico Madrid 1:0 Verl.1. Splt.
31.08. 21:30 0F Real Saragossa 05 Deportivo La Coruna 0:1 Verl.1.

print this out !


FIFA 2004 fixtures editing
--------------------------
> WinHex open
> file > open
C:\Programme\EA SPORTS\FIFA 2004\data\cmn\fe\spain.trm

Offset 0 1 2 3 4 5 6 7 8 9 A B C D E F

00000000 04 00 00 00 00 20 0C 4D 1A F8 1F E0 00 00 00 00 ..... .M.ø.à....
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000020 01 00 2B 09 00 08 03 01 08 03 02 08 00 03 08 00 ..+.............
00000030 04 09 00 05 09 00 11 01 02 12 01 02 13 01 02 20 ...............
00000040 01 00 00 05 02 07 00 14 02 13 01 0C 14 0B 03 01 ................
00000050 00 0E 00 11 00 2A 00 1A 00 09 01 29 01 00 00 14 .....*.....)....
00000060 0F 04 00 05 06 0A 0D 00 25 00 08 02 00 00 00 14 ........%.......
00000070 09 07 00 12 03 00 00 14 09 07 00 04 11 00 00 14 ................
00000080 09 07 00 05 10 00 00 14 09 07 00 0F 06 00 00 14 ................
00000090 09 07 00 0E 07 00 00 14 09 07 00 08 0D 00 00 14 ................
000000A0 09 07 00 09 0C 00 00 14 09 07 00 0B 0A 00 00 14 ................
000000B0 09 07 00 01 13 00 00 14 09 07 00 12 00 00 00 14 ................
000000C0 10 07 00 11 01 00 00 14 10 07 00 02 10 00 00 14 ................
000000D0 10 07 00 03 0F 00 00 14 10 07 00 0E 04 00 00 14 ................
000000E0 10 07 00 0D 05 00 00 14 10 07 00 06 0C 00 00 14 ................
000000F0 10 07 00 07 0B 00 00 14 10 07 00 0A 08 00 00 14 ................
00000100 10 07 00 09 13 00 00 14 10 07 00 00 0B 00 00 14 ................

the dataline of a game looks like this:

12 03 00 00 14 09 07 00

meaning:

12 03 = Team (Hex-Nr. 12) plays vs. Team (Hex-Nr. 03)
00 00 = empty
14 = i think 14 = day 27 = night
(but it not worked in the game)
09 07 = day and Month (Month minus 1)
00 = 2003 (01 = 2004)

so the dataline means:
Team (Hex 12) plays vs. Team (Hex 03) on 09.08.2003 (9. August 2003)

the datalines of a day of play yow will see
by the numbers-column 00 00 14

the fisrt day of play form premier league beginns
in the line Offset 00000060 column B = Offset: 6B
with the dataline: 02 00 00 00 14 09 07 00
= Team (Hex 12) plays vs. Team (Hex 00) on 09.08.2003

In the original-fixtures of the league the first game is:
= Team (Hex 06) spielt gegen Team (Hex 0D) on 30.08.2003
so you must edit the dataline to:
06 0D 00 00 14 1E 07 00

Edit first the games:
06 0D 0C 10
07 13 01 0B
03 02 11 12
04 0A 0E 09
08 00 0F 05
like the original-fixtures of the league
and then the dates !

after editing it shows:

Offset 0 1 2 3 4 5 6 7 8 9 A B C D E F

00000000 04 00 00 00 00 20 0C 4D 1A F8 1F E0 00 00 00 00 ..... .M.ø.à....
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000020 01 00 2B 09 00 08 03 01 08 03 02 08 00 03 08 00 ..+.............
00000030 04 09 00 05 09 00 11 01 02 12 01 02 13 01 02 20 ...............
00000040 01 00 00 05 02 07 00 14 02 13 01 0C 14 0B 03 01 ................
00000050 00 0E 00 11 00 2A 00 1A 00 09 01 29 01 00 00 14 .....*.....)....
00000060 0F 04 00 05 06 0A 0D 00 25 00 08 06 0D 00 00 14 ........%.......
00000070 1E 07 00 0C 10 00 00 14 1E 07 00 07 13 00 00 14 ................
00000080 1E 07 00 01 0B 00 00 14 1E 07 00 03 02 00 00 14 ................
00000090 1E 07 00 11 12 00 00 14 1E 07 00 04 0A 00 00 14 ................
000000A0 1F 07 00 0E 09 00 00 14 1F 07 00 08 00 00 00 14 ................
000000B0 1F 07 00 0F 05 00 00 14 1F 07 00 12 00 00 00 14 ................
000000C0 10 07 00 11 01 00 00 14 10 07 00 02 10 00 00 14 ................
000000D0 10 07 00 03 0F 00 00 14 10 07 00 0E 04 00 00 14 ................
000000E0 10 07 00 0D 05 00 00 14 10 07 00 06 0C 00 00 14 ................
000000F0 10 07 00 07 0B 00 00 14 10 07 00 0A 08 00 00 14 ................
00000100 10 07 00 09 13 00 00 14 10 07 00 00 0B 00 00 14 ................

make saves after every day of games
notices the offset-position from every day of games on the printes fixtures
on the position BB you must editing the 2. day of games

after eding 1. day of games make a test in FIFA 2004

after eding all games checked all games in FIFA 2004 with the printed fixtures

happy editing!
 

G2000

Youth Team
Katsche my friend this is very good stuff!!! Danke!!! ;)
I think I have a lot of work cut out for me - since I need to remove teams from the trm file.

Thanks again... This is a very good start :):rockman:


@ Hakeem - Katsche wins major point here!!!
 


Top