Author Topic: Number of GOODS catagories  (Read 4208 times)

0 Members and 1 Guest are viewing this topic.

Offline Spartanis

Number of GOODS catagories
« on: July 22, 2012, 04:15:08 AM »
According to TIKI WIKI,


there are 15 categories of goods one can create. Is this a finite number? or can we create up to say.... 100 types of goods?


And on the subject of goods,


what types of goods categories DO we transport? is there more than we know? lol


Special
  - other stuff not defined
liquid (mass liquid tanks)
  - Oil, Water, fuel, etc
crates (packed Goods)
  - Small Boxed goods, Palletized goods (bags stacked on pallets),  or any goods that is box shaped
bulk (mass substances
  sand, rocks, soil, rubbish, etc
frozen/cooled
  -packed foodstuff, skinned cows (ready for the butcher!), scientific stuff etc
bags
 - Mail, Recycled clothings, etc
Unusual Loads
 - big items load (oversized loads) eg: transporting DUMP TRUCKS
long goods
 - Lumber, Steel pipes, Rubber pipes, etc
cars
 - self explanatory
People
 - public transport
Secured Loads
 - extreme valueble stuffs (gold, money, etc)




Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4224
  • Total likes: 168
  • Helpful: 148
  • Languages: EN, DE, AT
Re: Number of GOODS catagories
« Reply #1 on: July 22, 2012, 06:56:47 AM »
You can define up to 255 (or 254?) types of goods with the same max number of categories. However, this includes the special good types passenger, mail, and none (which is there to indicate that a vehicle does not carry anything).
Parsley, sage, rosemary, and maggikraut.

Offline Spartanis

Re: Number of GOODS catagories
« Reply #2 on: July 22, 2012, 09:24:58 AM »
ok.. catg 0 can have 255 (or 254) goods

Understandable,

But how many Catg's can we have.. really?

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4674
  • Total likes: 170
  • Helpful: 108
  • Languages: EN, NO
Re: Number of GOODS catagories
« Reply #3 on: July 22, 2012, 09:31:13 AM »
Isn't the maximum number of categories 31 plus special, as their identifiers are defined in a static list in the executable? So either 255 or 254 types of goods divided into 32 categories, including the uncategoriezed category (special)?

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4224
  • Total likes: 168
  • Helpful: 148
  • Languages: EN, DE, AT
Re: Number of GOODS catagories
« Reply #4 on: July 22, 2012, 10:01:54 AM »
There is this hard-coded table, which assumes 31 categories. (Special goods are not counted, ie goods with category=0).

However,  it seems to me this table is only used for retrieving a name for the categories. And such can be easily extended, if there is a need to have more than 31 categories.
Parsley, sage, rosemary, and maggikraut.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4674
  • Total likes: 170
  • Helpful: 108
  • Languages: EN, NO
Re: Number of GOODS catagories
« Reply #5 on: July 22, 2012, 12:00:32 PM »
Perhaps true, but it would require a change in the game itself by a developer, at least to get the goods list dialog to list more than 31 categories correctly. It's not something a pak can do on its own. The translation tool must also be aware of the new category identifiers somehow, if the pak is to be translateable there.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 8745
  • Total likes: 305
  • Helpful: 229
  • Languages: De,EN,JP
Re: Number of GOODS catagories
« Reply #6 on: July 22, 2012, 11:31:13 PM »
I think, you will hit into the limit of 251 goods before. Otherwise you would have lots of categories with only a single good; but this is equivalent to making them special freight.

However, as Dwachs said: No pak came ever close to reaching this limit. Especially, since this would require 256 vehicles per waytype at least without any choice.

Offline Spartanis

Re: Number of GOODS catagories
« Reply #7 on: July 23, 2012, 10:16:29 AM »
This discussion is rather interesting, I actually agree with and belive Prissi's statement. it is inconceivable that one would reach the limit. Unless one is a die-hard :P

Im just trying to understand about the game as much as i can, bit by bit, as it would help me create paks and stuff. The more I learn, the more... er.. expert amongst you experts i become! :D

hehe

So im just going to say 15 catg's is pretty much the limit.. with perhaps 200 goods per catg's.. so what,.. that be 200x15 number of possible goods the game can handle?

Offline Combuijs

  • Web Team
  • Devotee
  • *
  • Posts: 1386
  • Total likes: 22
  • Helpful: 53
  • Maintainer of maps.simutrans.com
    • Combuijs
  • Languages: EN, NL
Re: Number of GOODS catagories
« Reply #8 on: July 23, 2012, 10:26:47 AM »
No, the game can "only" handle 251 goods in total.
Bob Marley: No woman, no cry

Programmer: No user, no bugs



Offline Spartanis

Re: Number of GOODS catagories
« Reply #9 on: July 23, 2012, 10:30:49 AM »
ahhh... so 251 goods, split up to fill up to x amount of Catg's? correct?

Offline Combuijs

  • Web Team
  • Devotee
  • *
  • Posts: 1386
  • Total likes: 22
  • Helpful: 53
  • Maintainer of maps.simutrans.com
    • Combuijs
  • Languages: EN, NL
Re: Number of GOODS catagories
« Reply #10 on: July 23, 2012, 10:58:17 AM »
ahhh... so 251 goods, split up to fill up to x amount of Catg's? correct?

Fully correct!!!
Bob Marley: No woman, no cry

Programmer: No user, no bugs



Offline Spartanis

Re: Number of GOODS catagories
« Reply #11 on: July 23, 2012, 11:00:25 AM »
Thank you Sir Combuijs!! :)

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 4674
  • Total likes: 170
  • Helpful: 108
  • Languages: EN, NO
Re: Number of GOODS catagories
« Reply #12 on: July 23, 2012, 11:32:06 AM »
ahhh... so 251 goods, split up to fill up to x amount of Catg's? correct?

I think x should be 31, and goods don't have to be in a category. Categories just mean that a vehicle carrying one type of cargo, can also carry all other goods in the same category.