Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: origin on December 08, 2009, 08:30:05 am

Title: Hud_gauges
Post by: origin on December 08, 2009, 08:30:05 am
I put in a Hud_gauges table in the mod I am working on and first of all I really like the ability to change the layout a bit.  The problem I am having is that if I use the #Main Gauges command I can move the gauges where I want them, but if I use the #Ships Main Gauges there is no affect to the gauge locations.  I know that the ship must be specified the '$Ship:' line.  I am putting in the ships name that is in the Shp.tbm.

So is this function not working - I see in Wiki that the code is not complete.  I think that this a great table - it will really helps to give the feel that you are in different ships.

This works like a champ

  #Main Gauges
     $Resolution: (1024 768)
     $Player shield: (865 430)
     $Target shield: (865 630)
  #End


This has no affect on the gauges

  #Ships Main Gauges
     $Ship: Viper                         ;Name of the ship that appears in the xxx-shp.tbm table
     $Resolution: (1024 768)
     $Player shield: (865 430)
     $Target shield: (865 630)
  #End
Title: Re: Hud_gauges
Post by: chief1983 on December 08, 2009, 09:43:30 am
Not sure if I mentioned this in the wiki or not, but the hud_gauges table does not report parse errors, and instead silently dies.  Everything up to that point in the file will take effect though, and everything after will not be seen.  Pretty ****ty I know, but no one's been able to even go back and add basic error reporting to it yet.  I commented on this in a critical Mantis issue, #1936 (http://scp.indiegames.us/mantis/view.php?id=1936).  So hopefully someone feels like diving in and figuring out that code at some point.  Error checking itself is probably trivial to add, obviously the code is aware when it decides to stop parsing the file, it just needs to report why, or at least where it did, when it doesn't finish the file.
Title: Re: Hud_gauges
Post by: KeldorKatarn on December 18, 2009, 10:26:21 pm
I already posted a fix for this, since WC Saga is using this also. So far it hasn't found its way into trunk yet though.
Title: Re: Hud_gauges
Post by: origin on December 23, 2009, 10:12:20 pm
Are there any plans to move this forward - if not how do we do that?