Author Topic: Adding new tbl entries?  (Read 2533 times)

0 Members and 1 Guest are viewing this topic.

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Steam
Adding new tbl entries?
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?

Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.

 

Offline Eli2

  • 26
Re: Adding new tbl entries?
Coding skills and time ?
 :nervous:

 

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Steam
Re: Adding new tbl entries?
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?
Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.

 

Offline Eli2

  • 26
Re: Adding new tbl entries?
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.

 

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Steam
Re: Adding new tbl entries?
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.
Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.

 

Offline Iss Mneur

  • 210
  • TODO:
Re: Adding new tbl entries?
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.
"I love deadlines. I like the whooshing sound they make as they fly by." -Douglas Adams
wxLauncher 0.9.4 public beta (now with no config file editing for FRED) | wxLauncher 2.0 Request for Comments

 

Offline Swifty

  • 210
  • I reject your fantasy & substitute my own
Re: Adding new tbl entries?
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.

  

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Steam
Re: Adding new tbl entries?
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.

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
Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: Adding new tbl entries?
i kinda think all the command line hud options in the launcher should be set based on hud_gauges.tbl settings instead.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Steam
Re: Adding new tbl entries?
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.
Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.