Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: z64555 on November 16, 2011, 05:31:24 pm
-
Did a quick search through the forums and didn't find anything apparent... (this is after I looked through the names of the source files).
Anywho.
Say I wanted to add a new entry to a .tbl so that I or another modder could define a property differently.
For example: in the hud_gauges.tbl, modders are limited to defining one coordinate for their hud graphics. One solution to this is to make a different Position: property that gives the upper left corner and lower right corner, thus defining a square that can stretch/compact the graphic as desired.
What all is needed to add new properties such as this?
-
Coding skills and time ?
:nervous:
-
Coding skills and time ?
:nervous:
Nah, that's implied for any coding project. :P
I mean, which class/object deals with parsing/decoding the .tbl's, and how does its methods convert the .tbl entries into values that the engine can use?
-
I have no clue about that part of the code since i have not read it.
But my shot in the blue would be to read hud/hudparse.cpp and follow the flow of data from there.
-
But my shot in the blue would be to read hud/hudparse.cpp and follow the flow of data from there.
:snipe:
Yeah, somehow I missed that file, thanks! Going through it now.
-
When I am trying to the the parsing code for a table, I take an existing entry key (the ones with the $, +, or # leading them, like $Damage Type: or #Armor type) from the .tbl and search for it over the entire code base.
-
FYI, the feature the original poster is asking for is something I'm planning on writing. Check the Major Features I'm Working On thread.
-
FYI, the feature the original poster is asking for is something I'm planning on writing. Check the Major Features I'm Working On (http://www.hard-light.net/forums/index.php?topic=78404.msg1550619#msg1550619) thread.
Linked.
BTW, Swifty, I'm looking into adding a feature to the radar that will make it look like an N-gon instead of the standard ellipse. I was wondering if you made the Axes: and Origin: gauge options that Angs used for his review radar (http://www.hard-light.net/forums/index.php?topic=78936.0;topicseen)
-
i kinda think all the command line hud options in the launcher should be set based on hud_gauges.tbl settings instead.
-
i kinda think all the command line hud options in the launcher should be set based on hud_gauges.tbl settings instead.
no no, this is'nt going to be a feature addon that is applied to all craft. Instead, the N-gon constraints will be for specific craft or factions, depending on what the mod developer feels they need.
TTF has three major factions: GalSpan, Bora, and Neutral. Each faction not only has their own fleet of craft, but also their own corresponding hud. Bora, in particular, has an octagonal radar area vs. the standard oval. (So it's implied that N-gon radars will have to be a hud_gauges.tbl setting)
I don't know if FS will get a HUD configurator to allow players to customize their HUD for multi.