Refit to carry "Nothing"

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Post Reply
User avatar
Tino Didriksen
Engineer
Engineer
Posts: 25
Joined: 13 Jun 2004 23:14
Location: Odense, Denmark
Contact:

Refit to carry "Nothing"

Post by Tino Didriksen »

Certain trains, such as the monorail 'Millenium Z1', can be refitted. Generally, this is a good thing. However, you cannot refit to carry oil, and you can't just select Nothing, so it's impossible to use that train to do full load for oil. Nice fast and powerful train, but no can do...

Yes, I am aware of the "Leave when any cargo is full" patch, but that's a patch and not a feature. Would be simpler to allow us to refit engine to carry Nothing (or Oil...).
Tino Didriksen / Project JJ / Waterscape
User avatar
lucaspiller
Tycoon
Tycoon
Posts: 1228
Joined: 18 Apr 2004 20:27

Post by lucaspiller »

Ummm, why is it being a patch a problem? All you have to do is turn it on.
User avatar
Tino Didriksen
Engineer
Engineer
Posts: 25
Joined: 13 Jun 2004 23:14
Location: Odense, Denmark
Contact:

Post by Tino Didriksen »

Trains default to having passengers in their engines. Suppose I have a station that picks up oil right next to a town...I'm sure you see the problem.

Of course, I can then refit the train to carry wood, but even that is ugly. It would be far cleaner to let it carry Nothing (which, btw, should be free since it doesn't involve rebuilding but just denying).
Tino Didriksen / Project JJ / Waterscape
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

Tino Didriksen wrote:Trains default to having passengers in their engines. Suppose I have a station that picks up oil right next to a town...I'm sure you see the problem.

Of course, I can then refit the train to carry wood, but even that is ugly. It would be far cleaner to let it carry Nothing (which, btw, should be free since it doesn't involve rebuilding but just denying).
If you would play a tiny bit realistically, you would never use a passanger train to haul oil. Have you ever seen a thalys transport Oil????

Altough I do agree that refitting to nothing might be a nice feature...if someone has time, I'm sure it will be added...but it's not a priority. If you don't play realistically don't expect realistic things :P
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
User avatar
lucaspiller
Tycoon
Tycoon
Posts: 1228
Joined: 18 Apr 2004 20:27

Post by lucaspiller »

Ah, I see. I don't really know much C but I shouldn't think it would be too much of a task so I might have a look later today.
User avatar
Tino Didriksen
Engineer
Engineer
Posts: 25
Joined: 13 Jun 2004 23:14
Location: Odense, Denmark
Contact:

Post by Tino Didriksen »

Darkvater wrote:If you would play a tiny bit realistically, you would never use a passanger train to haul oil. Have you ever seen a thalys transport Oil????

Altough I do agree that refitting to nothing might be a nice feature...if someone has time, I'm sure it will be added...but it's not a priority. If you don't play realistically don't expect realistic things :P
At this point in the game (year 2017) I can build 2 monorail trains; X2001, and Millenium Z1:
- X2001 has 9000HP and a speed of 305km/h. Engine has no capacity.
- Millenium Z1 has 10000HP and a speed of 337km/h. Engine has capacity for 50 passengers.

Now, by all logic I'd want to use the faster and more powerful train for freight, but I'd have to pay extra to refit it to carry something obscure and then use a patch setting to get around the full-load limitation.

Refit to Nothing is far more logic...
Tino Didriksen / Project JJ / Waterscape
User avatar
lucaspiller
Tycoon
Tycoon
Posts: 1228
Joined: 18 Apr 2004 20:27

Post by lucaspiller »

Well, I have sort of done it. But it doesn't really work too well, mainly I think because the game is designed to handle up to only the current number of cargo types - it is mainly a problem with the language files. I think I have been going about it the wrong way though, rather than adding a new cargo type I think I should just change the existing cargo type of nothing - so its back to the drawing board for me. Oh yer, and it causes an assertation in the save load thing. :P
User avatar
lucaspiller
Tycoon
Tycoon
Posts: 1228
Joined: 18 Apr 2004 20:27

Post by lucaspiller »

Well I have sort of done it. I don't think I will be able to get any further so someone else with more experience should probably have a go.

Also it has a load of bugs in it:
- Changing cargo for everything is now set to 0
- It messes up the display and doesn't really work
- I doubt it will work with any other languages apart from English
I doubt that the code fits in with the coding style either. :x

Anyway I will have ago and see if I can improve / fix it after dinner but until then here it is. It sort of works with the latest SVN version. In this version as well I have noticed you can't build depots in pause mode.
Attachments
cargo_nothing.patch
(9.97 KiB) Downloaded 197 times
msalters
Engineer
Engineer
Posts: 34
Joined: 16 Jun 2004 19:21

Post by msalters »

Wouldn't it be easier to implement "nothing" as zero passengers? You'd still have the display problem (obviously) but you don't new cargo types for that.
User avatar
lucaspiller
Tycoon
Tycoon
Posts: 1228
Joined: 18 Apr 2004 20:27

Post by lucaspiller »

Well I gave up on adding a new cargo type and changed it so that the current no cargo thing is used.
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: Semrush [Bot] and 20 guests