Skip to content

widberg/fror-research

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ford Racing Off Road Research

Information that might be useful for modding Ford Racing Off Road (2008) by Razorworks.

External Wikis

Prior Work

Notes

Files

Extensions

Standard formats

Glob Type
*.at3 ATRAC3+ (Adaptive TRansform Acoustic Coding 3+)
*.dds DirectDraw Surface
*.wav Waveform Audio File Format (WAVE)
*.wiv Uncompressed WAVE
*.WMA Windows Media Audio

Ford Racing Off Road formats

Glob Type Compressed Pattern
*.dbf False dbf.hexpat
*.npc False npc.hexpat
*.pcg True pcg.hexpat
*.pse Particle Effects/text False
*.pvs Potentially visible set True pvs.hexpat
*.spc False spc.hexpat
*.ui ui/text False
3dobjdb.pc False three_d_obj_db_pc.hexpat
3dobjs.pc True three_d_objs_pc.hexpat
3dobjsp.pc True three_d_objsp_pc.hexpat
bininfo.bin False bininfo_bin.hexpat
fonts.dat False fonts_dat.hexpat
fonts.hdr False fonts_hdr.hexpat
fonts/*.raw False fonts_raw.hexpat
FORRacing Save Game False for_racing.hexpat
gradient.dat False gradient_dat.hexpat
textures.pc True textures_pc.hexpat

ImHex Patterns

The patterns in the patterns directory can be run with ImHex.

DDS

texconv can be used to convert to/from DDS from/to standard formats like PNG. When converting to DDS from PNG, the command should look something like this:

texconv -f BC1_UNORM -dx9 --mip-levels 0 --overwrite image.png

BC1_UNORM or DXT1 corresponds to DXT1. You can also use BC2_UNORM or DXT3 for DXT3, R8G8B8A8_UNORM or RGBA for RGBA, and RGB24 for RGB. --mip-levels 0 will generate all mipmaps, 1 will remove mipmaps, and other values will use that many levels. Avoid mip maps smaller than 4x4. There are also many more options available on the texconv wiki page.

Scripts

The main fror cli tool can be installed using uv:

uv pip install --system --editable scripts/fror

Then from anywhere on your system you can run:

fror --help

Save Editor

Run the following command to open ImHex in save editor mode with the Ford Racing Off Road save file format pattern loaded.

imhex --save-editor file patterns/for_racing.hexpat

Once open you can select the save file, for me this is %AppData%\Ford Racing Off Road\autosave\FORRacing. But, you can check the Ford Racing Off Road page on PCGamingWiki for alternative locations.

Signatures

FordORR.exe

PE32
    Operation system: Windows(XP)[I386, 32-bit, GUI]
    Linker: Watcom Linker(2.18*)[GUI32]
    Compiler: Watcom C/C++
    Language: C/C++
    (Heur)Protection: Generic[Custom DOS]
    (Heur)Licensing: Licensing[Strings]

signsrch -e FordORR.exe

- open file "FordORR.exe"
- 2250240 bytes allocated
- load signatures
- open file C:\Users\widberg\signsrch\signsrch.sig
- 3079 signatures in the database
- start 12 threads
- start signatures scanning:

  offset   num  description [bits.endian.size]
  --------------------------------------------
  0040b6ad 3048 DMC compression [32.le.16&]
  0047f5e0 1038 padding used in hashing algorithms (0x80 0 ... 0) [..64]
  005ee1e8 2190 CRC32_DS [32.le.68&]
  005eef8c 648  CRC-32-IEEE 802.3 [crc32.0xedb88320 lenorev 1.1024]
  005eef8c 641  CRC-32-IEEE 802.3 [crc32.0x04c11db7 le rev int_min.1024]
  005ef43c 2294 zinflate_lengthExtraBits [32.le.116]
  005ef4ad 2304 zinflate_distanceExtraBits [32.be.120]
  005ef4b0 2303 zinflate_distanceExtraBits [32.le.120]
  005efa80 1086 Zlib dist_code [..512]
  005efc80 1087 Zlib length_code [..256]
  005efd80 1089 Zlib base_length [32.le.116]
  005efdf4 1091 Zlib base_dist [32.le.120]
  005efeec 2289 zinflate_lengthStarts [16.le.58]
  005eff68 2296 zinflate_distanceStarts [16.le.60]
  005effa4 2301 zinflate_distanceExtraBits [16.le.60]
  005fe930 3038 unlzx table_three [32.le.64]
  0060814c 3051 compression algorithm seen in the game DreamKiller [32.be.12&]

- 17 signatures found in the file in 1 seconds

dumpbin /HEADERS FordORR.exe

Details
Microsoft (R) COFF/PE Dumper Version 14.44.35215.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file FordORR.exe

PE signature found

File Type: EXECUTABLE IMAGE

FILE HEADER VALUES
             14C machine (x86)
               5 number of sections
        47B22E96 time date stamp Tue Feb 12 18:41:10 2008
               0 file pointer to symbol table
               0 number of symbols
              E0 size of optional header
             182 characteristics
                   Executable
                   Bytes reversed
                   32 bit word machine

OPTIONAL HEADER VALUES
             10B magic # (PE32)
            2.18 linker version
          1B4A00 size of code
           57400 size of initialized data
          4BBE00 size of uninitialized data
          1A9AD0 entry point (005A9AD0)
            1000 base of code
          1B6000 base of data
          400000 image base (00400000 to 00AE3FFF)
            1000 section alignment
             200 file alignment
            1.11 operating system version
            0.00 image version
            4.00 subsystem version
               0 Win32 version
          6E4000 size of image
             400 size of headers
               0 checksum
               2 subsystem (Windows GUI)
               0 DLL characteristics
           1F400 size of stack reserve
           10000 size of stack commit
            2000 size of heap reserve
            1000 size of heap commit
               0 loader flags
              10 number of directories
               0 [       0] RVA [size] of Export Directory
          1B6000 [    165A] RVA [size] of Import Directory
               0 [       0] RVA [size] of Resource Directory
               0 [       0] RVA [size] of Exception Directory
               0 [       0] RVA [size] of Certificates Directory
          6CA000 [   19328] RVA [size] of Base Relocation Directory
               0 [       0] RVA [size] of Debug Directory
               0 [       0] RVA [size] of Architecture Directory
               0 [       0] RVA [size] of Global Pointer Directory
               0 [       0] RVA [size] of Thread Storage Directory
               0 [       0] RVA [size] of Load Configuration Directory
               0 [       0] RVA [size] of Bound Import Directory
               0 [       0] RVA [size] of Import Address Table Directory
               0 [       0] RVA [size] of Delay Import Directory
               0 [       0] RVA [size] of COM Descriptor Directory
               0 [       0] RVA [size] of Reserved Directory


SECTION HEADER #1
    AUTO name
  1B49EA virtual size
    1000 virtual address (00401000 to 005B59E9)
  1B4A00 size of raw data
     400 file pointer to raw data (00000400 to 001B4DFF)
       0 file pointer to relocation table
       0 file pointer to line numbers
       0 number of relocations
       0 number of line numbers
60000020 flags
         Code
         Execute Read

SECTION HEADER #2
  .idata name
    165A virtual size
  1B6000 virtual address (005B6000 to 005B7659)
    1800 size of raw data
  1B4E00 file pointer to raw data (001B4E00 to 001B65FF)
       0 file pointer to relocation table
       0 file pointer to line numbers
       0 number of relocations
       0 number of line numbers
C0000040 flags
         Initialized Data
         Read Write

SECTION HEADER #3
  DGROUP name
   55B8C virtual size
  1B8000 virtual address (005B8000 to 0060DB8B)
   55C00 size of raw data
  1B6600 file pointer to raw data (001B6600 to 0020C1FF)
       0 file pointer to relocation table
       0 file pointer to line numbers
       0 number of relocations
       0 number of line numbers
C0000040 flags
         Initialized Data
         Read Write

SECTION HEADER #4
    .bss name
       0 virtual size
  20E000 virtual address
  4BBE00 size of raw data
       0 file pointer to raw data
       0 file pointer to relocation table
       0 file pointer to line numbers
       0 number of relocations
       0 number of line numbers
C0000080 flags
         Uninitialized Data
         Read Write

SECTION HEADER #5
  .reloc name
       0 virtual size
  6CA000 virtual address
   19400 size of raw data
  20C200 file pointer to raw data (0020C200 to 002255FF)
       0 file pointer to relocation table
       0 file pointer to line numbers
       0 number of relocations
       0 number of line numbers
42000040 flags
         Initialized Data
         Discardable
         Read Only

  Summary

      4BC000 .bss
        2000 .idata
       1A000 .reloc
      1B5000 AUTO
       56000 DGROUP

About

Information that might be useful for modding Ford Racing Off Road (2008) by Razorworks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages