Shared Textures

Discussion in 'Component and Mod Packaging' started by chogger, Aug 29, 2020.

  1. chogger

    chogger Registered

    Joined:
    May 27, 2012
    Messages:
    69
    Likes Received:
    9
    Guys, i need help with packaging...
    I have a bunch of cars running perfectly in Mod Dev. But can't get them working ingame because of some Shared Textures... (I'm able to get cars ingame, not just with shared textures...

    My Folder Structure (Mod Dev):
    Vehicles\chogger_shared\*.dds Files
    Vehicles\chogger_car_1\ -> Everything else

    My Gen File:
    SearchPath=<VEHDIR>
    SearchPath=<VEHDIR>\chogger_shared
    SearchPath=<VEHDIR>\chogger_car_1
    SearchPath=<VEHDIR>\chogger_car_1\data

    So, i created a chogger_shared.mas and a chogger_shared.rfcmp
    When I install that I get the following in the Installed\Vehicles Folder:

    chogger_shared\0.1\chogger_shared.mas (and mft)

    What do I need to add to the *.gen Files to get that textures loaded because right now the game can't find the shared textures when it loads the car.

    Thanks :)
     
  2. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    3,959
    Likes Received:
    2,809
    When you create a rfcmp with a mas File, that only contains the shared Texture Files, the Game can not know for what they are good for and will ignore it.
    You have 2 Options.
    1. Add the chogger_shared.mas to each rfcmp of a single Car Model that uses that Textures.
    2. Build a rfcmp with all Cars that use the Textures from the chogger_shared.mas and add that mas to it too.
     
  3. chogger

    chogger Registered

    Joined:
    May 27, 2012
    Messages:
    69
    Likes Received:
    9
    Thanks for the replay. I already did version 1... Is the game smart enough to only load the .mas file once to the ram?
     
  4. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    3,959
    Likes Received:
    2,809
    The mas is only the Package.
    Better ask if a Texture gets loaded only 1 Time.
    Test it or ask a Dev, how it gets handled after all the Changes in the Games Code. ;)
     

Share This Page