Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: SF-Junky on November 16, 2008, 07:05:04 am

Title: Problem with .tbl/.tbm priority order
Post by: SF-Junky on November 16, 2008, 07:05:04 am
Hello, here I am again with one of my nice little problems:

In my StormFront12 mod, I've recently changed some of the weapons descruptioned displayed in the weapons loadout menu before you launch a mission. But for some reason the game doesn't show the changes, it always shows what the mv_tech-wep.tbm in the MV_Core.vp shows. Only if I remove the MV_Core.vp it shows what I wrote in my weapons.tbl.

With MV_Core in my main folder:
(http://sebastian.ramrod-network.de/Freespace/images/RandomScreen02a.gif)

And without the MV_Core:
(http://sebastian.ramrod-network.de/Freespace/images/RandomScreen02b.gif)

I don't understand this. I thought any .tbl which is in a mod folder is prioritized higher than those in the main folder - especially if they're not even packed in a vp.  :confused:

Title: Re: Problem with .tbl/.tbm priority order
Post by: karajorma on November 16, 2008, 08:05:50 am
Where exactly do you have everything?

Are you running using a mod.ini? If so post it.
Title: Re: Problem with .tbl/.tbm priority order
Post by: SF-Junky on November 16, 2008, 09:59:11 am
Where exactly do you have everything?
The .tbl is in StormFront12/data/tables of course, the VP_Core.vp in the FS2 main folder.

Mod.ini
Code: [Select]
[launcher]
image255x112 = StormFront12-Logo.bmp;
infotext     = The Storm Front Saga - Episodes I & II;
website      = http://sebastian.ramrod-network.de/Freespace/Junk-Productions.html;
forum        = ;

[multimod]
primrylist = StormFront12;
secondarylist = mediavps;

Title: Re: Problem with .tbl/.tbm priority order
Post by: karajorma on November 17, 2008, 10:04:47 am
Is that mod.ini in your StormFront12 foilder or in the main FS2 one? Cause it should be in the StormFront12 one.

Either way remove the entire primarylist  line and try that again.

Title: Re: Problem with .tbl/.tbm priority order
Post by: SF-Junky on November 17, 2008, 10:39:00 am
Done, doesn't work. There are also no other unpacked weapons.tbls or .tbms in the main dir/data/tables order which could be prioritized higher.
Title: Re: Problem with .tbl/.tbm priority order
Post by: blowfish on November 17, 2008, 11:01:46 am
TBMs will always override the default TBL values, regardless of where they are placed.  Putting the values you want in a TBM will work.
Title: Re: Problem with .tbl/.tbm priority order
Post by: pecenipicek on November 17, 2008, 11:04:57 am
you have misspelled primary list if nothing else? also, every Media VP file should be in the mediavps folder.
Title: Re: Problem with .tbl/.tbm priority order
Post by: Scooby_Doo on November 18, 2008, 12:59:20 am
TBMs will always override the default TBL values, regardless of where they are placed.  Putting the values you want in a TBM will work.

Not exactly correct when it comes to mods at least.  For example, I've got a ship with 12 turrets.  I added a mod that replaces this ship but with only 11 turrets (included a tbm entry).  FRED will complain about the missing 12th turret. It looks like it loads the original entries, then overrides any of those entries with the tbm.  If the entry isn't in the tbm then it'll use the original one.
Title: Re: Problem with .tbl/.tbm priority order
Post by: blowfish on November 18, 2008, 01:03:43 am
Well, subsystems aren't handled as a whole, but rather are handled individually.  So a given subsystem's values will always be overridden by a TBM, but once a subsystem is declared, it will always be there.
Title: Re: Problem with .tbl/.tbm priority order
Post by: SF-Junky on November 18, 2008, 12:17:24 pm
It also doesn't make any difference wether I put the Mediavps into an extra folder or just the main folder. I really don't understand this. Why aren't the .tbls of my mod prioritized higher? For what reason do I have to make all that "secondarylist" stuff in the mod.ini at all? If the mediavps are read first anyway?
Title: Re: Problem with .tbl/.tbm priority order
Post by: blowfish on November 18, 2008, 04:45:02 pm
It also doesn't make any difference wether I put the Mediavps into an extra folder or just the main folder. I really don't understand this. Why aren't the .tbls of my mod prioritized higher?

Because TBMs ALWAYS OVERRIDE TBLs

It doesn't matter where they are placed, weapons.tbl will always be overridden by TBMs.  Did you read my first post in this thread? :wtf:
Title: Re: Problem with .tbl/.tbm priority order
Post by: SF-Junky on November 19, 2008, 07:55:44 am
Then, for what reason do I have to make all that "secondarylist" stuff in the mod.ini at all?
Title: Re: Problem with .tbl/.tbm priority order
Post by: blowfish on November 19, 2008, 08:41:02 am
:wtf: So that the launcher can use your mod's dependencies.  Understand that this is much bigger than a matter of TBMs and TBLs.  There are plenty of effects, maps, models, etc that you want to be loaded in order.  All of the mod's stuff will override the mediavp stuff.  TBMs vs TBLs are a special case.  Also, if you put data you need into a TBM, it should work fine.