Author Topic: Max ships?  (Read 5250 times)

0 Members and 1 Guest are viewing this topic.

What is the maximum number of ships that can be added to to the ships.tbl? and is this changable so it is higher?
The Irresponsible Captain Nathan
http://steamcommunity.com/id/IrresponsibleCaptNathan/
Team Leader - Star Wars Original Trilogy Mod
http://www.moddb.com/mods/star-wars-the-original-trilogy-mod

 

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
130 is the limit for non-inferno builds (which is basically almost everything).  That includes the ones that are already in there (I forget the exact number), but I think you have somewhere around 20 ships breathing room.  This can be changed via code (actually its relatively simple), but I've heard it does weird things to pilot files.

 

Offline Hellstryker

  • waffles
  • 210
    • Skype
Theres a simple answer... just use an inf build  :cool:

 

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
Theres a simple answer... just use an inf build  :cool:

Difficult for those of us who aren't on windows...

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
So...how exactly do you get an inf build anyway? (or where is the code that controls the the limit?)
(´・ω・`)
=============================================================

 

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
Search in Recent Builds for an Inferno build.

Before worrying about code, you must make sure you are set up to compile (with all the source from SVN etc ... if you don't know what I'm talking about, you are not prepared to start changing code).  IIRC it is in globals.h and should look something like this:

Code: [Select]
#ifdef INFERNO(or something like that)
    #define MAX_SHIP_CLASSES 200
#else
    #define MAX_SHIP_CLASSES 130
#endif

Basically you need to change that 130 number to something larger.  I have no idea what adverse effects this could have on everything else though.

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
You can't simply change the number of ships, you have to activate the INFERNO compile-time variable.  This triggers a number of checks and balances in the code to deal with bumped limits.

 

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
Are those checks and balances specific to 200 ships, or could the limit for Inferno builds be expanded?  And why hasn't this been done for regular builds as well (you don't have to post a detailed answer as it will probably just lead to more questions)?

 
* Scooby_Doo patiently waits for dynamic ship class count.  ;)
That's cool and ....disturbing at the same time o_o  - Vasudan Admiral

"Don't play games with me. You just killed someone I like, that is not a safe place to stand. I'm the Doctor. And you're in the biggest library in the universe. Look me up."

"Quick everyone out of the universe now!"

 
if you put the original ships.tbl in your mod's folder, you can delete any extra ships that won't be used (knossos, meson bomb, etc) to make extra room for your ships. just put the tbl data directly into the above-mentioned tbl file.
Sig nuked! New one coming soon!

 

Offline Getter Robo G

  • 211
  • Elite Super Robot Pilot
Here's a good counter question noe one has asked.

For everyone who says "Just use an Inferno build"... WHAT do you lose by doing so (if anything) by not using 3.6.9 or 3.6.10??

Is the max ship number the only difference between builds?
I'd like to have that answered by a SCP person...

If that's the case then I will switch to that, as long as no errors pop up during testing. (I had a bazillion of them trying to swtich to 3.6.9 from 3.6 and had to start over from scratch! I'm not looking forward to another such restart.)
"Don't think of it as being out-numbered, think of it as having a WIDE target selection!"

"I am the one and ONLY Star Dragon..."
Proof for the noobs:  Member Search

[I'm Just an idea guy, NOT: a modeler, texturer, or coder... Word of advice, "Watch out for the ducks!"]

Robotech II - Continuing...
FS2 Trek - Snails move faster than me...
Star Blazers: Journey to Iscandar...
FS GUNDAM - The Myth lives on... :)

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Are those checks and balances specific to 200 ships, or could the limit for Inferno builds be expanded?  And why hasn't this been done for regular builds as well (you don't have to post a detailed answer as it will probably just lead to more questions)?
Inferno has 400 ships, not 200.  And no, it can't be bumped without causing the same problems that led to the Inferno build in the first place.

Bumping is not a trivial matter, in this case, because it breaks EVERYTHING.  (Well, not everything, but most things.)  It's nowhere near as simple as, say, bumping SEXP_NODES (which have been made dynamic anyway).  The two major problems are the pilot files are rendered incompatible and multiplayer doesn't work.  However there are a bunch of other seemingly unrelated issues that follow from these.

As for why haven't these problems been fixed yet -- the answer is that we've been trying to.  Taylor, bless him, has been working on the 3.7 code for probably over two years now.  When 3.7 is ready, ship limits will be obsolete.  Until then, you'll have to live with what you've got.


Here's a good counter question noe one has asked.

For everyone who says "Just use an Inferno build"... WHAT do you lose by doing so (if anything) by not using 3.6.9 or 3.6.10??

Is the max ship number the only difference between builds?
I'd like to have that answered by a SCP person...
Well, you can't interchange Inferno pilots and regular pilots, for one thing.  Inferno not only bumps ship limits, it bumps weapon limits too, and a few others, I think.

We really need an SCP FAQ somewhere.  This question has been asked before, but every six months a new group of people comes along who haven't heard the old answer. ;)

EDIT: I know.  Somebody should do a search for the common SCP questions and post them up on the Wiki. :)
« Last Edit: March 24, 2008, 09:47:33 am by Goober5000 »

 
thanks for all the info guys, guess ill just have to clean out my ship.tbl for things that i know i wont use for now.  how far along is version 3.7?
The Irresponsible Captain Nathan
http://steamcommunity.com/id/IrresponsibleCaptNathan/
Team Leader - Star Wars Original Trilogy Mod
http://www.moddb.com/mods/star-wars-the-original-trilogy-mod

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
There's a weapon limit? SH*T! I have a feeling I'm going to hit that too...soon... >.<

Oh well *starts clearing ships.tbl of redundant entries*...*waits for 3.7*
(´・ω・`)
=============================================================

 
There's a weapon limit? SH*T! I have a feeling I'm going to hit that too...soon... >.<

Oh well *starts clearing ships.tbl of redundant entries*...*waits for 3.7*

my advice is actually being used?  :eek:
Sig nuked! New one coming soon!

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Yup, sicne its basically the best way to do this without screwing around with stuff that I don't want messed up.

What is the weapon limit anyway? 130? less? more?
(´・ω・`)
=============================================================

 

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
Weapon limit is 200, 300 in Inferno builds.

 

Offline Whitelight

  • 29
  • Thing, man like
Inferno ship limit is not 200, its 250.  :p
Simpicity of character is the natural resualt of profound thought

 

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
I just saw that.  I was closer than Goober though.

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Gah.  I looked at the code too quickly. :rolleyes:

Here it is:

Code: [Select]
// from ship.h
#define MAX_SHIPS 400 // max number of ship instances there can be.DTP; bumped from 200 to 400
#define SHIPS_LIMIT 400 // what MAX_SHIPS will be at release time (for error checking in debug mode); dtp Bumped from 200 to 400

// ****************************************************************
// DO NOT CHANGE THIS - IT WILL LIKELY BREAK FREESPACE2 PXO SUPPORT
// TALK TO DAVE B FIRST
// ****************************************************************
#define MAX_SHIP_CLASSES_MULTI 130

#ifdef INF_BUILD
#define MAX_SHIP_CLASSES 250
#else
#define MAX_SHIP_CLASSES 130
#endif