Editing AIW from Reiza track

Discussion in 'Technical & Support' started by Nokto, Dec 14, 2019.

Tags:
  1. Nokto

    Nokto Registered

    Joined:
    Dec 14, 2019
    Messages:
    20
    Likes Received:
    9
    Hello,
    I am enthusiastic about rfactor2 and the stuff around it.
    I am also curious and I wanted to play with AI stuff and so editing AIW. Lastly, I have raced quite a lot with the formula vee on the Imola 2018 track from reiza. Maybe, I am not very good, but I feel IA player with that specific car often brake later than me, making my life difficult.
    So I wanted to learn to make own AIW file.
    I have used that video tutorial:
    With the Imola track, I have some differences;
    - In the installed/Locations/Imola18_2018, I have a 1.02 directory and an 1.03 directory.
    In the 1.02 directory I have 3 files
    - Imola18_ANIMs.mas
    - Imola18_GMT.mas
    - Imola18_MAPs.mas

    When I try loading one of those files with the MAS file utility I get "Unable to open MAS file". I suspect them to be somehow protected.
    In the 1.03 directory, I have 2 mas file which I can extract to a ModeDev location.

    When I tried to launch the game in devmode it chrashed saying that a file was missing. I copied the Imola18_ANIMs.mas, Imola18_GMT.mas, Imola18_MAPs.mas rawly in my ModDev/Locations/Imola18 directory, and I had the joy to see that when I launched the game in dev mod, the race was beiing loaded. But just at the moment of reaching the main race screen, I chrash without reason given.

    I am missing something ? Is there a way to edit an AIW from "official content"?
    I understand the need to protect copyrighted content, I just want to modify IA stuff.

    Thanks :)
     
  2. Bernd

    Bernd Registered

    Joined:
    Jul 9, 2013
    Messages:
    1,509
    Likes Received:
    755
    Try this:
    In the devmode folder "Locations", create a new folder and call it "Imola18".
    From the installed track, extract the whole content of the 2 mas files of the 1.03 subfolder into the new devmode folder Imola18.
    Then copy the 3 mas files from the folder 1.02 and put them into the new devmode folder imola18 too.
    In the devmode Imola18 folder, open the gdb file and change the line
    TerrainDataFile = ..\Imola18.tdf
    into
    TerrainDataFile = Imola18.tdf
    and save it.
    Now open the scn file and replace the existing entries that start with
    SearchPath=
    and
    MASFile=

    with these entries:

    SearchPath=.
    SearchPath=Imola18
    MASFile=Imola18_GMTs.MAS
    MASFile=Imola18_MAPs.MAS
    MASFile=Imola18_ANIMs.MAS
    MASFile=COMMONMAPS.MAS

    and save it.

    With that the track should load (if i haven't forgotten something) and you can start to work at a new aiw.
     
  3. Nokto

    Nokto Registered

    Joined:
    Dec 14, 2019
    Messages:
    20
    Likes Received:
    9
    It works!

    Thanks a lot Bernd!
     
  4. Nokto

    Nokto Registered

    Joined:
    Dec 14, 2019
    Messages:
    20
    Likes Received:
    9
    Hum,
    In fact, it sends me to a second problem.
    I would like to use the formula Vee for the AI path. But I can't load the car in the dev mod. I have read https://forum.studio-397.com/index.php?threads/installing-car-in-to-dev-mode.59191/ but I don't find a .gen file.

    I have played a bit with an .mft file without success for now:

    [Component]
    Name=FVee_2018
    Version=1.06
    Type=2
    Author=Mod Team
    Origin=0
    Category=0
    ID=AAA9999
    URL=www.YourModSite.com
    Desc=Your new mod.
    Date=132010236081600000
    Flags=269627392
    RefCount=2
    Signature=8a25b49846f5833664258dc5c706397d89d2489c5fdaab62a8ca0810ded8f174
    MASFile=FVee_MAIN.mas bb47e5b3c99e473bac77d4ff97fd5d963050d8a7175c0ba847e729f207b3d591
    MASFile=FVee_MAPS.mas d3468df21ee6fb743dbe8febcc7058668f64602d3ec8d91d1c3a952e3561a301
    MASFile=FVee_SOUNDS.mas 646c11d72d40968c2e9f804c8c867229d52805b96037b86c31d54811ca8e6034
    MASFile=FVee_TALENT.mas c29efd4f700258b7448956f4bd2fb2db14a513b810e8a2a54c77400475fe1ab7
    SearchPath=.
    SearchPath=./FVee_2018
     
  5. Bernd

    Bernd Registered

    Joined:
    Jul 9, 2013
    Messages:
    1,509
    Likes Received:
    755
    @Nokto Yes, it's the same problem with cars, that you have with tracks. If you can not link the folders/files properly, it won't work.
    Where you have to set the search pathes and involved mas files in the tracks scn file and the link to the tdf file in the gdb file properly, you have to do the same thing in the cars gen file.
    I don't know why S397 don't puts these files into the unencrypted mas files.
    From my point of view, they don't include high security informations.
    And even if the physics files would stay in their encrypted mas files, i suppose that encrypted cars would work in devmode, if we could get access to the gen files.
     

Share This Page