Unpacking track with correct folder structure

Discussion in 'Track Modding' started by fbiehne, Oct 23, 2018.

  1. fbiehne

    fbiehne Registered

    Joined:
    Jan 4, 2017
    Messages:
    54
    Likes Received:
    64
    Hi there,
    I’m trying to unpack a track in order to work on the AIW.

    Unpacking rfcmp-files to get them into dev mode is easy with this handy tool i got from here because everything is arranged in the correct folders and subfolders. However, when it comes to extracting installed tracks where there is no rfcmp file via the mas2.exe it becomes a bit tricky in my opinion, especially when there is more than one track config available.

    Is there an overview on how the folder structure has to look like?
    Also, if there is more than one track config do I still have to extract the whole track with all its configs?
     
  2. Bernd

    Bernd Registered

    Joined:
    Jul 9, 2013
    Messages:
    1,509
    Likes Received:
    755
    There is no special folder structure.
    The important thing is, that the folders are linked properly in the tracks scene / scn file.
    And if you want to edit only the aiw, it should be enough, when you extract the mas file that contains the aiw and link the mas files instead of the folders in the scn.
    What i always would recommend to do is, to delete every mas file that has been extracted.
    If you don't do that, you in most cases get conflicts, with files that are 2 times present.
    One time in the mas file and one time as a loose file.
     
  3. fbiehne

    fbiehne Registered

    Joined:
    Jan 4, 2017
    Messages:
    54
    Likes Received:
    64
    What do you mean by "linked properly in the tracks scene / scn file"?
     
  4. Bernd

    Bernd Registered

    Joined:
    Jul 9, 2013
    Messages:
    1,509
    Likes Received:
    755
    The game has to know where it can find the files of a mod.
    In the scn file you have search pathes and mas file entries.
    Here is an example of joesville:
    SearchPath=.
    SearchPath=JOESVILLE
    SearchPath=JOESVILLE\JOESVILLE_SPEEDWAY
    SearchPath=JOESVILLE\ASSETS\ANIMS
    SearchPath=JOESVILLE\ASSETS\GMT
    SearchPath=JOESVILLE\ASSETS\MAPS
    SearchPath=JOESVILLE\ASSETS\SPONSORMAPS

    //-------------------------------------------------------

    MASFile=COMMONMAPS.MAS

    JOESVILLE is the main folder of the track and the other lines direct to subfolders with different content, like SearchPath=JOESVILLE\ASSETS\GMT, that directs to the subfolder GMT, where all meshs are in.
    If you extract the mas files, add a line for each folder that you use.
    The main track folder has always to be the first if you direct to a subfolder, as it is in the joesville scn file.
    If you don't extract all mas files, you can link the mas files with the MASFile=XXXXX.MAS lines.
    Ensure that there is a SearchPath= line to the folder where the mas files are in.
    And as said, delete the mas files that you have extracted.
     
    fbiehne likes this.
  5. fsuarez79

    fsuarez79 Registered

    Joined:
    Nov 23, 2016
    Messages:
    544
    Likes Received:
    582
    When it comes to tracks you can simply copy/paste the track from your /Installed folder to the ModDev/Locations/ folder.
    This method doesn't work with cars but it's worked with all the tracks I've tried.
     
  6. fbiehne

    fbiehne Registered

    Joined:
    Jan 4, 2017
    Messages:
    54
    Likes Received:
    64
    But in order to work on the AIW file I have to unpack the .mas files and pack it again after I’m done, is that right?
     
  7. Bernd

    Bernd Registered

    Joined:
    Jul 9, 2013
    Messages:
    1,509
    Likes Received:
    755
    Yes.
    And if you only want to work at the AIW, you only have to unpack the MAS where the AIW file is in.
    And don't forget: delete the unpacked MAS File(s). ;)
     
  8. fsuarez79

    fsuarez79 Registered

    Joined:
    Nov 23, 2016
    Messages:
    544
    Likes Received:
    582
    Yes, but not before working on the AIW, only after the new AIW is generated. You don't have to modify any folder structure or scn files, ModDev works with mas files....so:

    1) Copy/Paste your /Installed track in ModDev/Locations
    2) Launch ModDev, go on track and make all the changes you want to make
    3) The game will generate a new AIW file for that specific layout, unpack the mas of the layout you worked on only (as Bernd said)
    4) Replace the AIW, delete unnecessary files and repack again
    5) Create a new rfcmp and you're done.
     
    fbiehne and Hazi like this.

Share This Page