Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: stavpoly4789 on November 10, 2005, 09:27:04 pm

Title: Can I get some help with the tables?
Post by: stavpoly4789 on November 10, 2005, 09:27:04 pm
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.
Title: Re: Can I get some help with the tables?
Post by: WMCoolmon on November 10, 2005, 11:30:39 pm
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
Title: Re: Can I get some help with the tables?
Post by: stavpoly4789 on November 11, 2005, 02:41:31 pm
thanks
Title: Re: Can I get some help with the tables?
Post by: Mewgen1 on November 22, 2005, 12:30:32 am
hm, odd, I was just about to ask the same thing for the same reason.  Any chance you go to school in Montana?
Title: Re: Can I get some help with the tables?
Post by: stavpoly4789 on November 23, 2005, 08:58:18 am
Nope, MD