Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: WMCoolmon on April 15, 2005, 11:14:41 pm

Title: Never, ever, start making ships.tbl tags optional...
Post by: WMCoolmon on April 15, 2005, 11:14:41 pm
...it's highly addictive. ;)

The full list of required tags in ships.tbl is now:
Code: [Select]
$Name:
$POF file:


Of course, that'll just give you a cargo box with basically no explosion, hitpoints of 100, and unpredictable physics. :p

All the optional tags default to 0 or some reasonable amount (eg $max oclk speed defaults to 1.5 times the ship's normal speed)

I tossed in some code to automatically calculate techroom stuff as well. (Zoom, position)
Title: Never, ever, start making ships.tbl tags optional...
Post by: StratComm on April 16, 2005, 12:46:36 am
Cool.  No more broken tables over sonething stupid.
Title: Never, ever, start making ships.tbl tags optional...
Post by: Goober5000 on April 16, 2005, 02:17:10 am
Actually, you can still run into errors if you put the tags in the wrong order.

I wonder if WMC's next accomplishment will be to remove that restriction. :nervous:
Title: Never, ever, start making ships.tbl tags optional...
Post by: WMCoolmon on April 16, 2005, 02:44:48 am
Probably not. :p

It'd mean you'd have a devil of a time reading tables if someone was lazy, and make the parser more likely to make mistakes...

More likely would be to make modular tables leave unspecified values alone, or make Ship_info dynamically allocated again, so that people could use modular tables. :D

Or finish the *ahem* storybook :nervous:
Title: Never, ever, start making ships.tbl tags optional...
Post by: FireCrack on April 16, 2005, 02:58:03 am
Make pof file default to that big question mark pof.
Title: Never, ever, start making ships.tbl tags optional...
Post by: Nuke on April 16, 2005, 03:04:50 am
cool. i need a way to add new weapons to old ships without redoing the entire table entry.
Title: Never, ever, start making ships.tbl tags optional...
Post by: WMCoolmon on April 16, 2005, 03:08:25 am
Quote
Originally posted by FireCrack
Make pof file default to that big question mark pof.


Should I have name default to something too? Invisible ship entries!! :lol:

I think if you're too lazy to even make a cube to represent your ship, a tbl entry isn't going to do you much good. :p

...But I might. :drevil:
Title: Never, ever, start making ships.tbl tags optional...
Post by: TopAce on April 16, 2005, 05:43:00 am
Quote
Originally posted by FireCrack
Make pof file default to that big question mark pof.


Or the Ulysses perhaps?
Title: Never, ever, start making ships.tbl tags optional...
Post by: Taristin on April 16, 2005, 09:08:12 am
Quote
Originally posted by WMCoolmon


Should I have name default to something too? Invisible ship entries!! :lol:
 


So you hit the ship limit with one vessel because the game autogenerates 300 entries? :rolleyes:
Title: Never, ever, start making ships.tbl tags optional...
Post by: Flipside on April 16, 2005, 10:38:23 am
Quote
Originally posted by TopAce


Or the Ulysses perhaps?


I think the '?' is a lot better idea, especially for campaigns, which may use Ulysses' in the mission, making it difficult to find out what's going wrong.
Title: Never, ever, start making ships.tbl tags optional...
Post by: Blitzerland on April 16, 2005, 07:18:39 pm
Not that difficult. In fact, it can even be painfully obvious.

Command: "CRAPJINKENS! THE GIGAS IS GONNA KILL US ALL!"

*Gigas emerges from subspace*

Command: "Huh, thought it would be larger."

*Alpha 1 takes down Ulysses*

Command: "Congrats, pilot! You've saved the universe from almost certain doom! How ever did you do it?"

*Promotions follow*
Title: Never, ever, start making ships.tbl tags optional...
Post by: WMCoolmon on April 16, 2005, 07:19:25 pm
Quote
Originally posted by Flipside


I think the '?' is a lot better idea, especially for campaigns, which may use Ulysses' in the mission, making it difficult to find out what's going wrong.

Obviously they left the $POF file tag out. :p
Title: Never, ever, start making ships.tbl tags optional...
Post by: TopAce on April 20, 2005, 09:49:10 am
Quote
Originally posted by Flipside


I think the '?' is a lot better idea, especially for campaigns, which may use Ulysses' in the mission, making it difficult to find out what's going wrong.


This aspect of yours is right. I wasn't thinking of this while typing that post. I concur.