Prohibition
Moderator: Graphics Moderators
Prohibition
Prohibition industry NewGRF
[more explanation on the files to follow here soon]
[more explanation on the files to follow here soon]
- Attachments
-
- prohibition.grf
- (68.17 KiB) Downloaded 242 times
-
- prohibition.zip
- (167.15 KiB) Downloaded 233 times
Last edited by ebla71 on 02 Oct 2023 00:26, edited 2 times in total.
Re: Prohibition
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
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
Smuggler ship: produces champagne and suspects, accepts coast guard officers (to carry out a search
)
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
)
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
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?!?
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

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

Smuggler ship: produces champagne and suspects, accepts coast guard officers (to carry out a search

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

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

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?!?
Re: Prohibition
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
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
Re: Prohibition
Hahaha, nice idea!
viewtopic.php?f=67&t=84564
EDIT:
There is also an old little GRF-pack around that has this car: 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...
Funny cars has two 1920's style gangstercars:- 1920s/1930s limousines to carry around the gangsters and jazz musicians
viewtopic.php?f=67&t=84564
EDIT:
There is also an old little GRF-pack around that has this car: 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.
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.
Re: Prohibition
This is new to me!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...

Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!

Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets

Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Re: Prohibition

Well, this is in the pack (all as separate GRFs): 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...
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.
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.
Re: Prohibition
Oh, these cars are beautiful and would perfectly match with the theme of the Prohibition NewGRF.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...
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"

Finally, the long "Leyland van" strongly calls for adding another cargo and "industry" - "retired" gangsters to be transported to the cemetary


Re: Prohibition
This little fun project of mine is now also available via the online content download: https://bananas.openttd.org/package/newgrf/50524f48
Re: Prohibition
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.
Gangsters and police need some "tools" for their work

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.
Re: Prohibition
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.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.
The "gangster hideout" actually is already there - it's the pizzeria

As I'm a big fan of Martin Scorsese and related films, does not come as a surprise, I guess.
Re: Prohibition
I'm still annoyed that I've not found this little gem.kamnet wrote: 02 Oct 2023 21:33This is new to me!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...![]()

Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!

Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets

Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Re: Prohibition
Haha, I've been looking for it too! This sounds like a fun set.
-
- Tycoon
- Posts: 1309
- Joined: 16 Oct 2018 08:31
- Location: Heart of the Highlands. Not Scottish. Czech.
Re: Prohibition
A lot of graphics were lost...
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.

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.

Re: Prohibition
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?!?
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 wayArgus wrote: 11 Feb 2024 22:48 OTIS based industry? Why not, at least I'll learn to work with objects.![]()

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
Re: Prohibition
For this purpose you can use grfcodec.exe:there is no way to "reverse engineer" and extract at least the graphics from the *.grf file
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.
Re: Prohibition
Hello

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
... 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
Re: Prohibition
There isn't also, by any chance, also a *.nfo to *.nml converter, to complete the "reverse engineering cycle"?chujo wrote: 12 Feb 2024 08:16For this purpose you can use grfcodec.exe:there is no way to "reverse engineer" and extract at least the graphics from the *.grf file
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.
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

- 2TallTyler
- Director
- Posts: 567
- Joined: 11 Aug 2019 18:15
- Contact:
Re: Prohibition
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.
Re: Prohibition
I see, hope you learned a lot thenebla71 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.


Understood. I don't really watch movies so yeah... But the having an GRF based on movies is pretty coolebla71 wrote: 11 Feb 2024 15:09 The "gangster hideout" actually is already there - it's the pizzeria
As I'm a big fan of Martin Scorsese and related films, does not come as a surprise, I guess.

Owner of WolfTrans.com. An fictional trucking company.
Re: Prohibition
Depends on what timescale "in the future" indicates to you

Who is online
Users browsing this forum: Google Adsense [Bot] and 3 guests