How to reorganise a mod to work with mod vault

Everything about mods can be found here.

Moderator: Morax

How to reorganise a mod to work with mod vault

Postby Axle » 20 Feb 2016, 03:17

Hi, I have a mod (SCTA, see viewtopic.php?f=2&t=5296&start=0) which is designed to work with a custom init script. ie you activate the mod by going:

C:\ProgramData\FAForever\bin\ForgedAlliance.exe /init init_scta.lua

As I understand, this will probably work very nicely as a "featured mod" with FAF, but I'm guessing it will be kind of difficult to convince anyone to help me make this mod a "featured mod".

So instead I was wondering whether its possible to make it a regular selectable mod, downloadable from the mod vault and activated when you host a regular FAF custom game?

Does anyone have any pointers for me on what I need to do the mod to make it suitable for use with FAF as a downloadable mod from the mod vault?
Axle
Avatar-of-War
 
Posts: 93
Joined: 02 Apr 2013, 10:14
Has liked: 0 time
Been liked: 4 times
FAF User Name: Axle

Re: How to reorganise a mod to work with mod vault

Postby Axle » 20 Feb 2016, 15:21

I think I can be a little more specific about the help I need for the first problem I'm having.

I just extracted the .scd archives into my "mods" directory and created a mod_info.lua for it. I enable the mod and launch the game. I see this in the logs:

Code: Select all
info: DISK: AddSearchPath: 'c:\users\alex\documents\my games\gas powered games\supreme commander forged alliance\mods\001scta', mounted as '/mods/001scta/'
...
Initializing unit blueprint for armaca:
    info: Unable to load texture from file: /textures/ui/common/game/strategicicons/icon_fighter2_engineer_rest.dds
    info: Failed to load 'rest' icon /textures/ui/common/game/strategicicons/icon_fighter2_engineer_rest.dds
...


So my mod (001scta) is mounting ok to /mods/001scta, but the textures can't be found at /textures. Infact they're located in /mods/001SCTA/textures because thats where the mod was mounted.

What should I do?
- is there some way to get my textures mounted to /textures instead of /mods/001SCTA/textures ?
- do I need to hunt down all references to /textures and change them to /mods/001SCTA/textures ? This might be a problem because the above texture file paths are being dynamically generated and I can't find where
- I tried using /mods/001SCTA/shadow, but that didn't work. Should it ?
Axle
Avatar-of-War
 
Posts: 93
Joined: 02 Apr 2013, 10:14
Has liked: 0 time
Been liked: 4 times
FAF User Name: Axle


Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest