Author Topic: Hardcoded tables for Mentu?  (Read 5625 times)

0 Members and 3 Guests are viewing this topic.

Offline Zarax

  • 210
Hardcoded tables for Mentu?
Hello,

I was trying to mod the Mentu in ships.tbl to have its firepower closer to the Aelous according to its turret layout, however it seems there's something funny going on with it.
I attached two images, one representing the tables in FRED 24.2 and one the actual weapons displayed in the first turret, please note that every single turret seems to have the same issue.

No other ships in my table files are having the same issues, also including the ships.tbl file.

Do you have any idea of what could be causing the issue?

Thank you!
The Best is Yet to Come

 

Offline Zarax

  • 210
Re: Hardcoded tables for Mentu?
Ok, after some digging this might be related to virtual POFs.
Guess modding FS2 got a little more complicated in the last decade...
The Best is Yet to Come

 

Offline mjn.mixael

  • Cutscene Master
  • Moderator
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: Hardcoded tables for Mentu?
What's the issue exactly?

FSU does not currently use any virtual POFs.
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

 

Offline Zarax

  • 210
Re: Hardcoded tables for Mentu?
For certain Shivan and Vasudan turrets the table files are overridden by something else.

Basically certain turrets become xxx -> vasudan turret or xxx -> shivan flak even when there is a ships.tbl (in the FSU data/tables folder) specifying something else.
It doesn't seem like species.tbl and the only place in the wiki I found where that kind of substitution happens is virtual POFs.
The Best is Yet to Come

 

Offline mjn.mixael

  • Cutscene Master
  • Moderator
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: Hardcoded tables for Mentu?
FSU uses modular tbms almost exclusively and relies on the retail tbls for most data that's not required for visual upgrades. I don't discount that FSU includes some default turret weapon settings somewhere. You'd have to check the -shp.tbms and override those.
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

 

Offline Zarax

  • 210
Re: Hardcoded tables for Mentu?
Thank you, I will check that out.
BTW, if I rename something on ships.tbl using the same pof I get the vanilla model instead of the FSU one, is that related to ships.tbm as well?
The Best is Yet to Come

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: Hardcoded tables for Mentu?
Scroll ran into this issue too.  We changed the default turret loadout on a few ships, but the MediaVPs overrode them, so we had to override them again.  FSU's original intention was to change the various Terran Turrets to Vasudan Turrets for Vasudan ship classes, but this can have unexpected side effects.

I developed a tool for Scroll to print out the weapons assigned to turrets, among other information.  This helped troubleshoot whether the loaded game data differed from what the mod expected.  If there's interest, I can add this as an FSO feature, similar to -weaponspew and other debug logging tools.

 

Offline Zarax

  • 210
Re: Hardcoded tables for Mentu?
It would be useful indeed but imho this might be classified as a bug.
IIRC a tbl file in the data folder should always override the same file packed contents, shouldn't it?

Unless of course the logic changed with knossos and the old ways aren't valid anymore...
The Best is Yet to Come

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: Hardcoded tables for Mentu?
The table loading logic hasn't changed, but it can be confusing.  If files have the same name, the file in the data folder will override the file in the .vp.  But modular tables in every dependency, including the MediaVPs, will still be applied.

 

Offline Zarax

  • 210
Re: Hardcoded tables for Mentu?
Now, finding the right modular table within the various VPs will be fun...
Still, HLP is the most successful game preservation project overall and definitely in the top 3 in terms of source code improvements.
The Best is Yet to Come