Author Topic: Can I get some help with the tables?  (Read 1221 times)

0 Members and 1 Guest are viewing this topic.

Can I get some help with the tables?
I am in a computer science class and for my project, I am making a program that would give a more visual interface for table files. I know people are busy, but I could use a big favor. I have most of the program done but I need some info about the table file entries.

What I need are all the entries a section can have, if that entry is required, and what types of data it takes., if it can be repeated in the same item. I need the entries in order for the ships, primaries, and secondaries.

Data types are like number, numbers separated with commas, numbers in parentheses separated with commas, string, xstr

If this helps, I use,
1 for required, 0 for not
0=Name
1=String
2=Species
3=XSTR
4=(#,#,#,...)
5=# # #...
6=Yes/No
7=#
8=#, #, #, ...
9=Banks/Flags etc. ( "Flag" "Flag"...)
10=AI Ranks
11=Groups like $Trail and $Section
12=Subsystem

For example,
$Name:,1,0,
$Short name:,1,1,
$Species:,1,2,
+Type:,0,3,
+Maneuverability:,0,3,
+Armor:,0,3,

I know this is alot to ask but the wiki only has retail stuff and it is difficult to keep up with the changes that are made. any help would be appreciated. I also know that the way it seems i am processing things are inefficent, but thats the only way my teacher will accept it.

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Re: Can I get some help with the tables?
Try the function parse_ship() in code/ship/ship.cpp, and the function parse_weapon() in code/weapon/weapon.cpp.

There's an old list posted somewhere on the forums. But, any info like this would be helpful to have in the wiki
-C

 
Re: Can I get some help with the tables?
thanks

 

Offline Mewgen1

  • 25
Re: Can I get some help with the tables?
hm, odd, I was just about to ask the same thing for the same reason.  Any chance you go to school in Montana?

  
Re: Can I get some help with the tables?
Nope, MD