More cargoes

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

User avatar
GarryG
Tycoon
Tycoon
Posts: 5850
Joined: 14 Feb 2015 00:44
Location: Newcastle, Australia

More cargoes

Post by GarryG »

Just a question for now s not sure if problem with me or with the new Nightlies or with NML.

I added 10 more cargos to my Industry set ID numbers 32 to 41 .. to give me a total of 42 cargos

When tested the game none of these cargos would load ... I tested using Polroad RVs and my own AuzTrains which I had added the new Cargo codes too.

All the other 32 cargos 0 to 31 had no trouble with.

One of the new cargos was Cereal Crops ID 35 .. so for curiosity I changed it to ID 21 and 21 was Wheat, which I changed to 35.

The Cereal will now load, but not the wheat.

The cargo chain works ok .. showing the new cargos and what Industries accept and produce them.

Any suggestions?

Cheers
Soot Happens
Screenshot Of The Month Winner March 2020
All my projects are GPLv2 License unless stated.
Auz Road Sets: viewtopic.php?f=29&t=87335
Auz Project Releases: viewtopic.php?f=67&t=84725
Auz Trains: http://www.tt-forums.net/viewtopic.php?f=26&t=74193
Auz Industry Sets: http://www.tt-forums.net/viewtopic.php?f=26&t=74471
Auz Objects: viewtopic.php?f=26&t=75657
Auz Bridges: viewtopic.php?f=26&t=75248
Auz Stations: viewtopic.php?f=26&t=76390
Auz Tracks: viewtopic.php?f=26&t=82691
Auz Subway Stations: viewtopic.php?f=26&t=85335
Auz Eyecandy TramTracks: viewtopic.php?t=89908
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: More cargoes

Post by planetmaker »

I moved your posting from the website thread to here as it deserves attention by a different audience.

I would wonder, as it seems to work for FIRS. Hard to judge what went wrong without the code and maybe a test savegame tbh.
User avatar
andythenorth
Tycoon
Tycoon
Posts: 5656
Joined: 31 Mar 2007 14:23
Location: Lost in Music

Re: More cargoes

Post by andythenorth »

So GarryG we should step through one thing at a time:

- first check the nightly you have is correct: you can do that with the test FIRS version with 47 cargos linked here https://github.com/OpenTTD/OpenTTD/pull ... -399734518

- if that works, next step is check your nml version, and then your cargo code ;)
User avatar
GarryG
Tycoon
Tycoon
Posts: 5850
Joined: 14 Feb 2015 00:44
Location: Newcastle, Australia

Re: More cargoes

Post by GarryG »

I went to that link and took me to here:
andy-1.png
andy-1.png (31.47 KiB) Viewed 448 times
I presume I was to down load the FIRS.GRF bottom left corner? But it only has 18 cargos.

Wonder if can just pm me the grf file I need and names of some of the cargo with the code IDs 32 to 40.

The NML I using I down loaded from the Index of: https://bundles.openttdcoop.org/?C=M&O=D
and downloaded "nml-2019-01-09-g7b7fcaf5-windows-win32.zip.md5"

I have OpenTTD 20190126-master-g36e299fb.

Curiosity you mention my cargo Code.

I using the same that you used in FIRS 1.4.3 :D Is it possible that is out of date?

Code: Select all

    spriteset(cargoicon_farm_supplies) { [10 + 20 * 8, 10 + 20 * 1, 10, 10, 0, 0, "gfx/other/cargoicons.png"] }


     item(FEAT_CARGOS, farm_supplies, 38) {
        property {
            number: 38;
            type_name: string(STR_CARGO_NAME_FARM_SUPPLIES);
            unit_name: string(STR_CARGO_NAME_FARM_SUPPLIES);
            type_abbreviation: string(STR_CID_FARM_SUPPLIES);
            sprite: NEW_CARGO_SPRITE;
            weight: 0.5625;
            station_list_colour: 75;
            cargo_payment_list_colour: 75;
            is_freight: 1;
            cargo_classes: bitmask(CC_EXPRESS, CC_PIECE_GOODS);
            cargo_label: "FMSP";
            town_growth_effect: TOWNGROWTH_NONE;
            town_growth_multiplier: 1.0;
            units_of_cargo: 84;
            items_of_cargo: string(STR_CARGO_UNIT_FMSP);
            penalty_lowerbound: 6;
            single_penalty_length: 36;
            price_factor: 128.11088562;
            capacity_multiplier: 1;
        }
        graphics {
            station_rating: switch_station_rating;
            cargoicon_farm_supplies;
        }
    }
If like can try my game file and test any of these cargos:
COWS Cattle
SHEP Sheep
PIGS Pigs
CERE Cereal Crops
MAIZ Corn
SGCN Sugarcane
FMSP Farm Supplies
FERT Fertilizer
PMIK Processed Milk
COLA SOFT DRINKS

as they are the extra ones coded 32 to 41 and the ones I have problems with. all the others coded 0 to 31 work fine.

Thanks kindly for lending me a hand.
Attachments
AuzInd8.rar
(1.62 MiB) Downloaded 67 times
Soot Happens
Screenshot Of The Month Winner March 2020
All my projects are GPLv2 License unless stated.
Auz Road Sets: viewtopic.php?f=29&t=87335
Auz Project Releases: viewtopic.php?f=67&t=84725
Auz Trains: http://www.tt-forums.net/viewtopic.php?f=26&t=74193
Auz Industry Sets: http://www.tt-forums.net/viewtopic.php?f=26&t=74471
Auz Objects: viewtopic.php?f=26&t=75657
Auz Bridges: viewtopic.php?f=26&t=75248
Auz Stations: viewtopic.php?f=26&t=76390
Auz Tracks: viewtopic.php?f=26&t=82691
Auz Subway Stations: viewtopic.php?f=26&t=85335
Auz Eyecandy TramTracks: viewtopic.php?t=89908
User avatar
andythenorth
Tycoon
Tycoon
Posts: 5656
Joined: 31 Mar 2007 14:23
Location: Lost in Music

Re: More cargoes

Post by andythenorth »

GarryG wrote:I presume I was to down load the FIRS.GRF bottom left corner? But it only has 18 cargos.
Correct grf link. Title in grf list should include 'r6024M', look for that.

But set economy to 'Extreme' in parameters.

Cargo list will look like this:
47-cargo.png
47-cargo.png (225.61 KiB) Viewed 448 times
User avatar
GarryG
Tycoon
Tycoon
Posts: 5850
Joined: 14 Feb 2015 00:44
Location: Newcastle, Australia

Re: More cargoes

Post by GarryG »

andythenorth wrote:But set economy to 'Extreme' in parameters.
Silly me .. I should have known that .. maybe because I haven't woken up properly yet :D

I shall give it a try and let you know.

Cheers
Soot Happens
Screenshot Of The Month Winner March 2020
All my projects are GPLv2 License unless stated.
Auz Road Sets: viewtopic.php?f=29&t=87335
Auz Project Releases: viewtopic.php?f=67&t=84725
Auz Trains: http://www.tt-forums.net/viewtopic.php?f=26&t=74193
Auz Industry Sets: http://www.tt-forums.net/viewtopic.php?f=26&t=74471
Auz Objects: viewtopic.php?f=26&t=75657
Auz Bridges: viewtopic.php?f=26&t=75248
Auz Stations: viewtopic.php?f=26&t=76390
Auz Tracks: viewtopic.php?f=26&t=82691
Auz Subway Stations: viewtopic.php?f=26&t=85335
Auz Eyecandy TramTracks: viewtopic.php?t=89908
User avatar
GarryG
Tycoon
Tycoon
Posts: 5850
Joined: 14 Feb 2015 00:44
Location: Newcastle, Australia

Re: More cargoes

Post by GarryG »

I seem to be having problems with FIRS too. Some Cargos when click on them not showing chain to what Industries produce or accept.

And when I went through all the Industries none are showing the Industry that produce or accept these cargos.

These cargos are the problem.
Acid, Chorine, Coke, Copper, Electric machines, Limestone, Manganese, Pig Iron, Pipe, Rubber, Salt, Slag, Soda Ash, Sulphur, Vehicle Parts, Zinc.

I thinking it might conflict with something so I loaded it just with Polroad RVs and my AuzTrains

I originally had OpenTTD 20190126-master-g36e299fb loaded.

I changed it to "20190128-master-g9f458ecb" and tried both win32 and win64 version.

EDIT:

Shouldn't make a difference, but thought I'd let you know I using Window 7 64 bit operating system.

EDIT SOME MORE:

I just checked the VR and trains I told to load some of the new Cargo that giving problems.

The new cargo is listed in the Refit section. But when I check the capacity of the RV or Train it shows a different Cargo then what I asked it to refit. No matter who many times I try to refit it to one of the new cargos, it still shows it waiting for something different. That explains why they are not loading.
Soot Happens
Screenshot Of The Month Winner March 2020
All my projects are GPLv2 License unless stated.
Auz Road Sets: viewtopic.php?f=29&t=87335
Auz Project Releases: viewtopic.php?f=67&t=84725
Auz Trains: http://www.tt-forums.net/viewtopic.php?f=26&t=74193
Auz Industry Sets: http://www.tt-forums.net/viewtopic.php?f=26&t=74471
Auz Objects: viewtopic.php?f=26&t=75657
Auz Bridges: viewtopic.php?f=26&t=75248
Auz Stations: viewtopic.php?f=26&t=76390
Auz Tracks: viewtopic.php?f=26&t=82691
Auz Subway Stations: viewtopic.php?f=26&t=85335
Auz Eyecandy TramTracks: viewtopic.php?t=89908
User avatar
andythenorth
Tycoon
Tycoon
Posts: 5656
Joined: 31 Mar 2007 14:23
Location: Lost in Music

Re: More cargoes

Post by andythenorth »

GarryG wrote:I seem to be having problems with FIRS too. Some Cargos when click on them not showing chain to what Industries produce or accept
Yair that's an easy one - the test version of FIRS doesn't have any industries using those cargos. That test version is just a quick hack to test the 64 limit is raised :)

Refits

You're right about the vehicle refits not being applied.

I'm seeing that problem with Iron Horse trains. I'll investigate :twisted:
User avatar
GarryG
Tycoon
Tycoon
Posts: 5850
Joined: 14 Feb 2015 00:44
Location: Newcastle, Australia

Re: More cargoes

Post by GarryG »

andythenorth wrote:I'm seeing that problem with Iron Horse trains. I'll investigate
Seems like transport in the game are renumbering the cargos. Those beyond 32 carhos they strt from top again.

Testing with the first extra cargos ID 32 to 36 when we first select refit show correct cargos we want, but in the capacity of the transport, whether it road or trains, show either Coal, Mail, Oil, Livestock or Goods.

Had some result with my rail set as well as 2CC Train set and Polroad RV set.

If you want us to test with any other transport let me know.

Cheers
Soot Happens
Screenshot Of The Month Winner March 2020
All my projects are GPLv2 License unless stated.
Auz Road Sets: viewtopic.php?f=29&t=87335
Auz Project Releases: viewtopic.php?f=67&t=84725
Auz Trains: http://www.tt-forums.net/viewtopic.php?f=26&t=74193
Auz Industry Sets: http://www.tt-forums.net/viewtopic.php?f=26&t=74471
Auz Objects: viewtopic.php?f=26&t=75657
Auz Bridges: viewtopic.php?f=26&t=75248
Auz Stations: viewtopic.php?f=26&t=76390
Auz Tracks: viewtopic.php?f=26&t=82691
Auz Subway Stations: viewtopic.php?f=26&t=85335
Auz Eyecandy TramTracks: viewtopic.php?t=89908
User avatar
andythenorth
Tycoon
Tycoon
Posts: 5656
Joined: 31 Mar 2007 14:23
Location: Lost in Music

Re: More cargoes

Post by andythenorth »

Here we go with an answer from peter1138:

Code: Select all

peter1138: CargoID new_cid = GB(p2, 0, 5);
[07:42am] peter1138: Yeah...
[07:42am] peter1138: CmdRefitVehicle limits it to 32 still. Oops.
That'll get fixed sometime, and there'll be a new nightly. Good to have nightlies back to catch this stuff :)
User avatar
GarryG
Tycoon
Tycoon
Posts: 5850
Joined: 14 Feb 2015 00:44
Location: Newcastle, Australia

Re: More cargoes

Post by GarryG »

Isn't it a bumma when we do all the hard work coding things and some one comes along and finds a problem. :roll: Don't it give you the (I can't sware here so I just do this) :evil:

Cheers
Soot Happens
Screenshot Of The Month Winner March 2020
All my projects are GPLv2 License unless stated.
Auz Road Sets: viewtopic.php?f=29&t=87335
Auz Project Releases: viewtopic.php?f=67&t=84725
Auz Trains: http://www.tt-forums.net/viewtopic.php?f=26&t=74193
Auz Industry Sets: http://www.tt-forums.net/viewtopic.php?f=26&t=74471
Auz Objects: viewtopic.php?f=26&t=75657
Auz Bridges: viewtopic.php?f=26&t=75248
Auz Stations: viewtopic.php?f=26&t=76390
Auz Tracks: viewtopic.php?f=26&t=82691
Auz Subway Stations: viewtopic.php?f=26&t=85335
Auz Eyecandy TramTracks: viewtopic.php?t=89908
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: More cargoes

Post by planetmaker »

GarryG wrote:Isn't it a bumma when we do all the hard work coding things and some one comes along and finds a problem. :roll: Don't it give you the (I can't sware here so I just do this) :evil:

Cheers
That's how it works. And it's nothing to be really worried-about too much less be personally offended.

No software is bug-free. And mistakes and oversights happen - we are all humans. And it all happened only in the development versions of OpenTTD... so only hardcore users which compile the game themselves are affected so far. In terms of NewGRF development: it's like finding bugs in a version not released on bananas. So... for this very reason it's indeed very good and helpful to have back the nightlies to expand the test coverage :)
User avatar
GarryG
Tycoon
Tycoon
Posts: 5850
Joined: 14 Feb 2015 00:44
Location: Newcastle, Australia

Re: More cargoes

Post by GarryG »

Yep, agree. :bow:

Some ask why I not put more on Bananas and same reason not sure yet if I got rid of all the bugs and some people use thing different to how we first intend and their help is really appreciated as they find things we didn't notice.

Cheers
Soot Happens
Screenshot Of The Month Winner March 2020
All my projects are GPLv2 License unless stated.
Auz Road Sets: viewtopic.php?f=29&t=87335
Auz Project Releases: viewtopic.php?f=67&t=84725
Auz Trains: http://www.tt-forums.net/viewtopic.php?f=26&t=74193
Auz Industry Sets: http://www.tt-forums.net/viewtopic.php?f=26&t=74471
Auz Objects: viewtopic.php?f=26&t=75657
Auz Bridges: viewtopic.php?f=26&t=75248
Auz Stations: viewtopic.php?f=26&t=76390
Auz Tracks: viewtopic.php?f=26&t=82691
Auz Subway Stations: viewtopic.php?f=26&t=85335
Auz Eyecandy TramTracks: viewtopic.php?t=89908
User avatar
GarryG
Tycoon
Tycoon
Posts: 5850
Joined: 14 Feb 2015 00:44
Location: Newcastle, Australia

Re: More cargoes

Post by GarryG »

:bow: great work .. looking forward to when it available.
Soot Happens
Screenshot Of The Month Winner March 2020
All my projects are GPLv2 License unless stated.
Auz Road Sets: viewtopic.php?f=29&t=87335
Auz Project Releases: viewtopic.php?f=67&t=84725
Auz Trains: http://www.tt-forums.net/viewtopic.php?f=26&t=74193
Auz Industry Sets: http://www.tt-forums.net/viewtopic.php?f=26&t=74471
Auz Objects: viewtopic.php?f=26&t=75657
Auz Bridges: viewtopic.php?f=26&t=75248
Auz Stations: viewtopic.php?f=26&t=76390
Auz Tracks: viewtopic.php?f=26&t=82691
Auz Subway Stations: viewtopic.php?f=26&t=85335
Auz Eyecandy TramTracks: viewtopic.php?t=89908
User avatar
GarryG
Tycoon
Tycoon
Posts: 5850
Joined: 14 Feb 2015 00:44
Location: Newcastle, Australia

Re: More cargoes

Post by GarryG »

Hi,

Thought you'd like to know that the version of Nightlies openttd-20190129-master-ga1c37810-windows-win64 is working with extra cargos.

Would you like me to upload a copy of that Industry set here so other can experiment to with it to see if they find something we haven't?

Great work guys.

Cheers
Soot Happens
Screenshot Of The Month Winner March 2020
All my projects are GPLv2 License unless stated.
Auz Road Sets: viewtopic.php?f=29&t=87335
Auz Project Releases: viewtopic.php?f=67&t=84725
Auz Trains: http://www.tt-forums.net/viewtopic.php?f=26&t=74193
Auz Industry Sets: http://www.tt-forums.net/viewtopic.php?f=26&t=74471
Auz Objects: viewtopic.php?f=26&t=75657
Auz Bridges: viewtopic.php?f=26&t=75248
Auz Stations: viewtopic.php?f=26&t=76390
Auz Tracks: viewtopic.php?f=26&t=82691
Auz Subway Stations: viewtopic.php?f=26&t=85335
Auz Eyecandy TramTracks: viewtopic.php?t=89908
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1729
Joined: 30 Mar 2005 09:43

Re: More cargoes

Post by peter1138 »

Hi Garry, glad to hear it is working now.

If you could post a test version for users to play with that would be great, as there has not been a lot of comprehensive play testing of more cargoes and many other features introduced since 1.8.0.
He's like, some kind of OpenTTD developer.
User avatar
GarryG
Tycoon
Tycoon
Posts: 5850
Joined: 14 Feb 2015 00:44
Location: Newcastle, Australia

Re: More cargoes

Post by GarryG »

peter1138 wrote:Hi Garry, glad to hear it is working now.
If you could post a test version for users to play with that would be great, as there has not been a lot of comprehensive play testing of more cargoes and many other features introduced since 1.8.0.
I just placed a copy of the Industry set I'm experimenting with over in my forum at: Auztralian Industries (AuzInd)
viewtopic.php?f=26&t=74471&p=1217978#p1217978

I've added 14 extra cargos (but one of them isn't link to a Industry yet) .. it all explained in my forum.
Soot Happens
Screenshot Of The Month Winner March 2020
All my projects are GPLv2 License unless stated.
Auz Road Sets: viewtopic.php?f=29&t=87335
Auz Project Releases: viewtopic.php?f=67&t=84725
Auz Trains: http://www.tt-forums.net/viewtopic.php?f=26&t=74193
Auz Industry Sets: http://www.tt-forums.net/viewtopic.php?f=26&t=74471
Auz Objects: viewtopic.php?f=26&t=75657
Auz Bridges: viewtopic.php?f=26&t=75248
Auz Stations: viewtopic.php?f=26&t=76390
Auz Tracks: viewtopic.php?f=26&t=82691
Auz Subway Stations: viewtopic.php?f=26&t=85335
Auz Eyecandy TramTracks: viewtopic.php?t=89908
User avatar
stefino_cz
Transport Coordinator
Transport Coordinator
Posts: 268
Joined: 02 Jul 2015 08:05
Location: Czech Republic
Contact:

Re: More cargoes

Post by stefino_cz »

Hi. So is it possible to have 64 types of cargos in one grf? My NML says that I can input only 32 => so is the problem that I have old NML? Thx :)
Image
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: More cargoes

Post by planetmaker »

stefino_cz wrote:Hi. So is it possible to have 64 types of cargos in one grf? My NML says that I can input only 32 => so is the problem that I have old NML? Thx :)
Yes, you will need as of writing the latest development build of NML: http://bundles.openttdcoop.org/nml/nightlies/LATEST/
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 4 guests