Maximum number of ships

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

Post Reply
User avatar
SirXavius
Transport Coordinator
Transport Coordinator
Posts: 302
Joined: 28 Jun 2006 18:25
Location: Florida

Maximum number of ships

Post by SirXavius »

After searching, i found here that the max number of ships (as in ship models) is 11. Is this still true as of the latest nightly or are there patches that raise that number?
User avatar
cmoiromain
Chief Executive
Chief Executive
Posts: 655
Joined: 15 Jan 2007 21:45
Location: FRANCE
Contact:

Re: Maximum number of ships

Post by cmoiromain »

I think it has increased with the new vehicle pool. Not sure though, maybe someone could confirm?
I am little, ugly, and nasty. How do you do?
User avatar
andythenorth
Tycoon
Tycoon
Posts: 5705
Joined: 31 Mar 2007 14:23
Location: Lost in Music

Re: Maximum number of ships

Post by andythenorth »

SirXavius wrote:After searching, i found here that the max number of ships (as in ship models) is 11. Is this still true as of the latest nightly or are there patches that raise that number?
I have been fooling around with ship code from an existing grf which has 11 ships in it. I added a 12th ship and couldn't get it to show up in a game that had engine pool enabled.

This however might have been coder error, I may have had an ID wrong somewhere in the nfo. I didn't investigate further, I just changed some attributes of one the existing 11 ships instead.

I will be investigating this further at some point. A ship set is on my list of 'things to do'. However that's a pretty long list!

cheers,

Andy
User avatar
SirXavius
Transport Coordinator
Transport Coordinator
Posts: 302
Joined: 28 Jun 2006 18:25
Location: Florida

Re: Maximum number of ships

Post by SirXavius »

Thanks, andythenorth. :wink: Your work in this regard will be important to an upcoming project for OTTD i have coming up, so if you find that you can do something about that limit, PM me or post it here, or start a thread on this subject. Much gratitude! 8)
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2897
Joined: 16 May 2007 16:59

Re: Maximum number of ships

Post by Zephyris »

The engine pool should raise the limit to 256 in a single grf, if it doesn't work then I think a bug...
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1794
Joined: 30 Mar 2005 09:43

Re: Maximum number of ships

Post by peter1138 »

65535. Although you couldn't have other vehicle types with that amount... You don't need to have 'multiple engine sets' enable, either.

http://wiki.ttdpatch.net/tiki-index.php?page=VehicleIDs
He's like, some kind of OpenTTD developer.
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2897
Joined: 16 May 2007 16:59

Re: Maximum number of ships

Post by Zephyris »

lol, forgot they could be words and not just bytes!
User avatar
SirXavius
Transport Coordinator
Transport Coordinator
Posts: 302
Joined: 28 Jun 2006 18:25
Location: Florida

Re: Maximum number of ships

Post by SirXavius »

Thanks guys! That answers my question -- you CAN have more than 11 ships, up to 65536. Thank you, peter1138, for that valuable info and link!
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Google [Bot] and 6 guests