Prohibition

Find and discuss all the latest NewGRF releases for TTDPatch and OpenTTD here.

Moderator: Graphics Moderators

ebla71
Transport Coordinator
Transport Coordinator
Posts: 346
Joined: 14 Apr 2021 21:48
Location: Earth

Prohibition

Post by ebla71 »

Prohibition industry NewGRF

[more explanation on the files to follow here soon]
Attachments
prohibition.grf
(68.17 KiB) Downloaded 56 times
prohibition.zip
(167.15 KiB) Downloaded 48 times
Last edited by ebla71 on 02 Oct 2023 00:26, edited 2 times in total.
ebla71
Transport Coordinator
Transport Coordinator
Posts: 346
Joined: 14 Apr 2021 21:48
Location: Earth

Re: Prohibition

Post by ebla71 »

While working on another "full" industry NewGRF set, I was overwhelmed by the number of options and the amount of work this creates if you want to use the full range of cargos and include about a hundred industries.

Therefore, I decided to have a little fun side project with only a limited number of features, to learn more about NML coding while - at the same time - getting something playable quickly.

And while watching a crime movie on TV at night, I immediately had an idea for a theme and thus "Prohibition" was born 8)

As the name suggests, this industry NewGRF is set in the 1920s United States, when alcohol was forbidden due to, well, the prohibition

Available cargos, in addition to the standard passengers and mail: moonshine, champagne, money, pizza, gangsters, jazz musicians, police officers, coast guard officers, suspects, convicts

Available industries: smuggler ship, moonshine destillery, pizzeria, hotel, illegal bar, jazz club, bank, police station, coast guard station, courthouse, prison

Some are primary or terminal industries, while others both accept and produce cargo.

Currently, there are two main limits:

a) cargo acceptance and cargo production are not "coupled" yet, so a courthouse will produce convicts even with no suspects delivered
b) the graphics are borrowed from OTIS, since the "main" industry GRF I'm working on also has "single tile" industries as a key element and I'm a major desaster at drawing graphics :lol:

Smuggler ship: produces champagne and suspects, accepts coast guard officers (to carry out a search :lol: )
Moonshine destillery: produces, well, moonshine (= illegally brewed whiskey)
Hotel: "produces" jazz musicians
Illegal bar: produces money and suspects, accepts moonshine, gangsters, and police officers
Jazz club: produces money and suspects, accepts champagne, jazz musicians, gangsters, and police officers
Pizzeria: produces gangsters (sorry, my dear Italian friends for this cliche) and pizza, accepts money
Police station: "produces" police officers
Coast guard station: surprise, surprise, "produces" coast guard officers (to raid the smuggler ship)
Bank: accepts gangster and police officers (when robbed), produces money and suspects (if police catches the gangsters 8) )
Courthouse: accepts suspects and pizza (hey, the judge and clerks have to eat something during long court sessisons), produces convicts
Prison: accepts convicts (and if you are a gangster, a life-sentence is likely, therefore this is a terminal "industry")

To make things more interesting, different industries can only be built in different locations and the suspects and convicts need an armoured vehicle for transport 8)

I tried playing around with it a bit and with the exceptions noted above, found no bugs - but would appreciate your comments and suggestions for improvement.

Also hope that you discover the pop cultural references that I have added here or there and don't take the overall thing too serious. And hey, is there any video game that allows you to transport jazz musicians around?!?
ebla71
Transport Coordinator
Transport Coordinator
Posts: 346
Joined: 14 Apr 2021 21:48
Location: Earth

Re: Prohibition

Post by ebla71 »

Furthermore, maybe this industry set will inspire some people better at graphics than me?

Interesting targets for graphics and matching vehicle NewGRFs might be:

- a speedboat to get offshore to collect the champagne from the smugglers ship (aka "rum runners")
- a coast guard cutter trying to catch them
- 1920s/1930s limousines to carry around the gangsters and jazz musicians
- police cars of different styles (although not exactly matching the targeted epoch, wasn't there a vehicle set with the legenday "Bluesmobile"?)
- prisoner van to move convicts from courthouse to jail
User avatar
Quast65
Tycoon
Tycoon
Posts: 2665
Joined: 09 Oct 2011 13:51
Location: The Netherlands

Re: Prohibition

Post by Quast65 »

Hahaha, nice idea!
- 1920s/1930s limousines to carry around the gangsters and jazz musicians
Funny cars has two 1920's style gangstercars:
viewtopic.php?f=67&t=84564

EDIT:
There is also an old little GRF-pack around that has this car:
Example908.png
Example908.png (2.05 KiB) Viewed 3327 times
But I am unable to find a download location..
It's from an old pack, something called allwrhvehicles, the GRF itself is duesenburgtest.grf
Maybe Kamnet knows...
Projects: http://www.tt-forums.net/viewtopic.php?f=26&t=57266
Screenshots: http://www.tt-forums.net/viewtopic.php?f=47&t=56959
Scenario of The Netherlands: viewtopic.php?f=60&t=87604

Winner of the following screenshot competitions:
sep 2012, jan 2013, apr 2013, aug 2013, mar 2014, mar 2016, oct 2020
All my work is released under GPL-license (either V2 or V3), if not clearly stated otherwise.
User avatar
kamnet
Moderator
Moderator
Posts: 8589
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: Prohibition

Post by kamnet »

Quast65 wrote: 02 Oct 2023 08:00 There is also an old little GRF-pack around that has this car:
Example908.png
But I am unable to find a download location..
It's from an old pack, something called allwrhvehicles, the GRF itself is duesenburgtest.grf
Maybe Kamnet knows...
This is new to me! :)
User avatar
Quast65
Tycoon
Tycoon
Posts: 2665
Joined: 09 Oct 2011 13:51
Location: The Netherlands

Re: Prohibition

Post by Quast65 »

kamnet wrote: 02 Oct 2023 21:33 This is new to me! :)
8o
Well, this is in the pack (all as separate GRFs):
Example911.png
Example911.png (5.01 KiB) Viewed 3203 times
It's probably from around 2009 and only 2 cars have some extra information:
drawn by AnD
coded by BeST-Com, and he may still be around...
BeSt-Com wrote: 07 Jan 2019 12:34 PING!
Projects: http://www.tt-forums.net/viewtopic.php?f=26&t=57266
Screenshots: http://www.tt-forums.net/viewtopic.php?f=47&t=56959
Scenario of The Netherlands: viewtopic.php?f=60&t=87604

Winner of the following screenshot competitions:
sep 2012, jan 2013, apr 2013, aug 2013, mar 2014, mar 2016, oct 2020
All my work is released under GPL-license (either V2 or V3), if not clearly stated otherwise.
ebla71
Transport Coordinator
Transport Coordinator
Posts: 346
Joined: 14 Apr 2021 21:48
Location: Earth

Re: Prohibition

Post by ebla71 »

Quast65 wrote: 02 Oct 2023 22:18 Well, this is in the pack (all as separate GRFs):
Example911.png
It's probably from around 2009 and only 2 cars have some extra information:
drawn by AnD
coded by BeST-Com, and he may still be around...
Oh, these cars are beautiful and would perfectly match with the theme of the Prohibition NewGRF.

It even looks like the "Anglia Panda car" has some police car light on top, so would only need to re-color to match the black-white style of many US police cars.

And the transit van would be perfect for "pizza delivery" 8)

Finally, the long "Leyland van" strongly calls for adding another cargo and "industry" - "retired" gangsters to be transported to the cemetary :lol: (sorry, this set is possibly to be R-rated 8) )
ebla71
Transport Coordinator
Transport Coordinator
Posts: 346
Joined: 14 Apr 2021 21:48
Location: Earth

Re: Prohibition

Post by ebla71 »

This little fun project of mine is now also available via the online content download: https://bananas.openttd.org/package/newgrf/50524f48
User avatar
WolfRamXx
Engineer
Engineer
Posts: 102
Joined: 24 May 2020 17:20
Location: Western country of eastern block.

Re: Prohibition

Post by WolfRamXx »

Hi, just a few notes/ideas.

Gangsters and police need some "tools" for their work ;) Those "tools" as well as some other evidence also could be taken away from gangsters by the police to help court decide the sentence. Where to get the "tools" thou? Smuggler ship, "tool" dealers (probably something like barn in the countryside) or straight from the source.

Another note is that gangsters need some hideouts as well. This could be the place where "tools" are given to gangsters (or maybe passengers turned into gangsters when both are delivered). Could be used as main producer of "gangsters" as well.
Owner of WolfTrans.com. An fictional trucking company.
ebla71
Transport Coordinator
Transport Coordinator
Posts: 346
Joined: 14 Apr 2021 21:48
Location: Earth

Re: Prohibition

Post by ebla71 »

WolfRamXx wrote: 11 Feb 2024 14:05 Another note is that gangsters need some hideouts as well. This could be the place where "tools" are given to gangsters (or maybe passengers turned into gangsters when both are delivered). Could be used as main producer of "gangsters" as well.
Thank you very much for your suggestions - this project was pretty much mostly for me to learn a bit of NML and therefore I will possibly not spend much time on it in the near future.

The "gangster hideout" actually is already there - it's the pizzeria 8)

As I'm a big fan of Martin Scorsese and related films, does not come as a surprise, I guess.
User avatar
kamnet
Moderator
Moderator
Posts: 8589
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: Prohibition

Post by kamnet »

kamnet wrote: 02 Oct 2023 21:33
Quast65 wrote: 02 Oct 2023 08:00 There is also an old little GRF-pack around that has this car:
Example908.png
But I am unable to find a download location..
It's from an old pack, something called allwrhvehicles, the GRF itself is duesenburgtest.grf
Maybe Kamnet knows...
This is new to me! :)
I'm still annoyed that I've not found this little gem. :)
Fredinho
Traffic Manager
Traffic Manager
Posts: 239
Joined: 16 Mar 2019 00:46
Location: Oslo, Norway
Contact:

Re: Prohibition

Post by Fredinho »

Haha, I've been looking for it too! This sounds like a fun set.
Argus
Tycoon
Tycoon
Posts: 1204
Joined: 16 Oct 2018 08:31
Location: Heart of the Highlands. Not Scottish. Czech.

Re: Prohibition

Post by Argus »

A lot of graphics were lost... :cry:
Otherwise, black and white police cars are in Eyecandy vehicles, and the new Real Cars. :)
OTIS based industry? Why not, at least I'll learn to work with objects. :)
ebla71
Transport Coordinator
Transport Coordinator
Posts: 346
Joined: 14 Apr 2021 21:48
Location: Earth

Re: Prohibition

Post by ebla71 »

Argus wrote: 11 Feb 2024 22:48 A lot of graphics were lost... :cry:
It's a strong reminder for all content developers to put their stuff on GitHub or at least post graphics and NML source files here, otherwise a lot of work will be lost forever and as far as I know there is no way to "reverse engineer" and extract at least the graphics from the *.grf file?!?
Argus wrote: 11 Feb 2024 22:48 OTIS based industry? Why not, at least I'll learn to work with objects. :)
Well, the idea was also to learn how to do simple 1x1 graphics and then replace the OTIS marks one by one. But "real life" is a b**** and came in the way :cry:

The other thing that is still missing is to tune the cargo production.

If anybody wants to take the framework further - the source is here:

viewtopic.php?p=1264954#p1264954
User avatar
chujo
Engineer
Engineer
Posts: 28
Joined: 30 Nov 2022 13:26

Re: Prohibition

Post by chujo »

there is no way to "reverse engineer" and extract at least the graphics from the *.grf file
For this purpose you can use grfcodec.exe:

Code: Select all

       grfcodec -d <grf-file>
       This will put a pcx file in a subdirectory called "sprites". It
       will also make a .NFO file that is needed to reconstruct the GRF
       file.
(Sometimes you have to switch to the correct palette - win/dos - but it works)
Auge
Director
Director
Posts: 636
Joined: 23 Oct 2006 02:07
Location: Berlin

Re: Prohibition

Post by Auge »

Hello
ebla71 wrote: 12 Feb 2024 01:14
Argus wrote: 11 Feb 2024 22:48 A lot of graphics were lost... :cry:
It's a strong reminder for all content developers to put their stuff on GitHub ...
... or any similar service like Gitlab, Codeberg ... just to formulate this in a provider-independent way. ;-)

Regardless of this, I can only agree with you. Making the sources available on an external platform or maybe on more than one platform makes them much more resilient against a local hardware fail (whereever "local" is). If the code and the sprites are also made publicly available under a suitable licence, this increases the likelihood that someone else will take care of any errors or further development if the author abandons the project.

Tschö, Auge
ebla71
Transport Coordinator
Transport Coordinator
Posts: 346
Joined: 14 Apr 2021 21:48
Location: Earth

Re: Prohibition

Post by ebla71 »

chujo wrote: 12 Feb 2024 08:16
there is no way to "reverse engineer" and extract at least the graphics from the *.grf file
For this purpose you can use grfcodec.exe:

Code: Select all

       grfcodec -d <grf-file>
       This will put a pcx file in a subdirectory called "sprites". It
       will also make a .NFO file that is needed to reconstruct the GRF
       file.
There isn't also, by any chance, also a *.nfo to *.nml converter, to complete the "reverse engineering cycle"?

I did a bit of Assembler programming about 100 years ago and I will not dive into such things again, simply too old brain for that 8)
User avatar
2TallTyler
Route Supervisor
Route Supervisor
Posts: 507
Joined: 11 Aug 2019 18:15
Contact:

Re: Prohibition

Post by 2TallTyler »

NML to NFO is a one-way conversion that loses a lot of information. You could try YAGL to decompile a GRF file into something that tries to be human-readable.
User avatar
WolfRamXx
Engineer
Engineer
Posts: 102
Joined: 24 May 2020 17:20
Location: Western country of eastern block.

Re: Prohibition

Post by WolfRamXx »

ebla71 wrote: 11 Feb 2024 15:09 Thank you very much for your suggestions - this project was pretty much mostly for me to learn a bit of NML and therefore I will possibly not spend much time on it in the near future.
I see, hope you learned a lot then :wink: Maybe in future we will see remake? :mrgreen:
ebla71 wrote: 11 Feb 2024 15:09 The "gangster hideout" actually is already there - it's the pizzeria 8)

As I'm a big fan of Martin Scorsese and related films, does not come as a surprise, I guess.
Understood. I don't really watch movies so yeah... But the having an GRF based on movies is pretty cool :D
Owner of WolfTrans.com. An fictional trucking company.
ebla71
Transport Coordinator
Transport Coordinator
Posts: 346
Joined: 14 Apr 2021 21:48
Location: Earth

Re: Prohibition

Post by ebla71 »

WolfRamXx wrote: 12 Feb 2024 16:41 Maybe in future we will see remake?
Depends on what timescale "in the future" indicates to you 8)
Post Reply

Return to “Graphics Releases”

Who is online

Users browsing this forum: belgi and 20 guests