Housing as Industries 0.1.1

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
Emperor Jake
Tycoon
Tycoon
Posts: 3074
Joined: 24 Apr 2007 09:37
Location: Straya

Housing as Industries 0.1.1

Post by Emperor Jake » 31 Aug 2011 12:32

This set has been mildly updated and is now available on Bananas. Please use this thread to report any bugs, suggestions or feedback. :)

The source code for 0.1.0 can be found at this post

Update 2018-06-25: Updated to 0.1.1, added parameter

--Original Post Below--

Have you ever wanted to be able to boost passenger production near a station quickly, without waiting for the town to grow? Here's your answer! This was the result of a trip to Sydney and then mucking around with NML - A GRF that adds an Apartment Block as an industry. It accepts Passengers, Mail and Goods, and generates passengers and mail, similar to larger towns. They must be near a town, but it can be any size town.

Suggestions and discussion about the idea are very welcome. This is not really intended for gameplay, it is merely a concept, but it is perfectly playable and works well. (however it is somewhat ugly :twisted: ) If the idea is well-received then I will continue development with proper graphics and industry layouts, better game balance and any ideas and suggestions people may have :) .

Here's a screenshot of the GRF in action, and a tar containing the source and the GRF.
Attachments
Punfingford Transport, 2001-10-21.png
Punfingford Transport, 2001-10-21.png (161.02 KiB) Viewed 6339 times
Apartment-Industry.tar
OUTDATED - Test version only
(10 KiB) Downloaded 232 times
Last edited by Emperor Jake on 25 Jun 2018 14:25, edited 3 times in total.
--Stuff I made (or helped make)--
ImageImageImageImage

--My Award-Winning Screenshots and Videos--

oberhümer
Tycoon
Tycoon
Posts: 1283
Joined: 23 Oct 2009 19:35
Location: Here and there, sometime or another

Re: Concept: Housing blocks as industries

Post by oberhümer » 31 Aug 2011 12:47

FIRS has a hotel in it that's supposed to do pretty much the same thing (and probably looks better). I don't believe it produces mail though.
This would actually fit pretty well into an Industrial Revolution-era city - cheap, shabby housing for all those workers.
Last edited by oberhümer on 31 Aug 2011 12:51, edited 1 time in total.
--- Licenses: GNU LGPL, version 2 or newer, code and graphics. CC-By-SA, graphics, alternatively. If you're using any, I'd like to hear about it --- Call them "track types" ---
--- Mostly inactive developer for: NuTracks - Central European Train Set --- Running/compiling for: Linux (x86) - Android - Windows (32/64 bit) ---

--- Need a file packer? 7-Zip --- BOINC - use your computing power to benefit science --- Block trackers, not ads --- Unix in dispersible pellets, the formula for the future. ---

User avatar
APDAF
Tycoon
Tycoon
Posts: 2639
Joined: 22 Jun 2008 12:26

Re: Concept: Housing blocks as industries

Post by APDAF » 31 Aug 2011 12:48

I will like this.
Visit my screenshot thread--> http://www.tt-forums.net/viewtopic.php?f=47&t=54118
If you want to have a go at War Thunder, PM me, I have an invite code.

User avatar
Emperor Jake
Tycoon
Tycoon
Posts: 3074
Joined: 24 Apr 2007 09:37
Location: Straya

Re: Concept: Housing blocks as industries

Post by Emperor Jake » 31 Aug 2011 12:56

oberhümer wrote:FIRS has a hotel in it that's supposed to do pretty much the same thing (and probably looks better). I don't believe it produces mail though.
This would actually fit pretty well into an Industrial Revolution-era city - cheap, shabby housing for all those workers.
Hmm, haven't checked out the latest nightlies of FIRS - I will try that :P However it fulfills a slightly different purpose. This GRF might even have FIRS compatibility, as it doesn't define any cargos.
About the appearance, you may recognise it as part of the default coal mine - it was simple to code that way as it's temporary. There could possibly be several different styles for housing depending on time period - Industrial Revolution era like you mentioned, then turn of the century tenements, then ugly Soviet style concrete blocks, and finally shiny modern apartment blocks.
--Stuff I made (or helped make)--
ImageImageImageImage

--My Award-Winning Screenshots and Videos--

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9293
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Concept: Housing blocks as industries

Post by planetmaker » 31 Aug 2011 13:33

I'm not entirely sure whether defining houses as industries is the best approach from an overall game perspective. After all those houses fulfill the same purpose as currently any decent town does - but those are houses which you can never remove (just like industries).

User avatar
SAC
Tycoon
Tycoon
Posts: 1519
Joined: 03 Jun 2004 16:35
Location: Gothenburg, Sweden

Re: Concept: Housing blocks as industries

Post by SAC » 31 Aug 2011 13:54

Terrific idea as it allows for a more personalized town layout with buildings that actually has a purpose - rather than just standing there using space! Very good! :))
Simuscape - Chose Your Destination;
Simuscape | Visual Studio | INFRA Diary

INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own

User avatar
Level Crossing
Tycoon
Tycoon
Posts: 1183
Joined: 07 Feb 2011 22:04
Location: East Coast, United States

Re: Concept: Housing blocks as industries

Post by Level Crossing » 31 Aug 2011 15:22

Looks a bit like a coal mine at first glance.

Good job though. Should it be an industry? Or maybe a NewObject (is it possible to have NewObjects produce and accept cargo?)
Like my avatar? See my screenshot thread
Chill's Patchpack, an awesome collection of OTTD patches

User avatar
FooBar
Tycoon
Tycoon
Posts: 6559
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Concept: Housing blocks as industries

Post by FooBar » 31 Aug 2011 16:23

Level Crossing wrote: (is it possible to have NewObjects produce and accept cargo?)
No. Objects have no purpose ingame other than just sit there :)

User avatar
wallyweb
Tycoon
Tycoon
Posts: 5547
Joined: 27 Nov 2004 15:05
Location: Canada

Re: Concept: Housing blocks as industries

Post by wallyweb » 31 Aug 2011 20:50

FooBar wrote:
Level Crossing wrote: (is it possible to have NewObjects produce and accept cargo?)
No. Objects have no purpose ingame other than just sit there :)
... and look pretty. 8)

User avatar
Simons Mith
Transport Coordinator
Transport Coordinator
Posts: 307
Joined: 14 Jan 2010 23:45

Re: Concept: Housing blocks as industries

Post by Simons Mith » 31 Aug 2011 23:48

planetmaker wrote:I'm not entirely sure whether defining houses as industries is the best approach from an overall game perspective. After all those houses fulfill the same purpose as currently any decent town does - but those are houses which you can never remove (just like industries).
Houses appear and disappear at a rather fast rate in the game at present. If they turned over at the same rate as industries, I think that would actually be an improvement. Once a house is built, it ought to stay there for at least 30-50 years, really. Even when you want to demolish something it can easily take ten years of legal struggles before you can go ahead. And shops, yes, some individual businesses may turn over at a rate of every few years, but a row of shops will usually still be a row of shops 50 years later. We're far too spoilt in the game at the moment, IMO :-)

User avatar
Nite Owl
Tycoon
Tycoon
Posts: 1889
Joined: 06 Mar 2007 19:32
Location: In The Dark

Re: Concept: Housing blocks as industries

Post by Nite Owl » 01 Sep 2011 01:50

What if you got together with SAC and took her wonderful buildings and turned them into industries that only produce and accept passengers and mail. This would be ideal for those that want to play passenger only type games. All other industries could be overridden. This would lead to a combo city building and transport type of game but it is a possibility that some may like. Another option could be to have some of these "town" industries also accept goods and food. This would require this Grf to be compatible with either the default industries or new industries Grfs. In either case this idea does have a large range of useful possibilities that could change the landscape of the game in significant ways. Good work.
Humor is the second most subjective thing on the planet
------------------------------------------------------------
Brevity is the soul of wit and obscenity is its downfall
--------------------------------------------------------
Good Night And Good Luck - Read You Soon

User avatar
Emperor Jake
Tycoon
Tycoon
Posts: 3074
Joined: 24 Apr 2007 09:37
Location: Straya

Re: Concept: Housing blocks as industries

Post by Emperor Jake » 01 Sep 2011 03:22

@planetmaker: The advantage is that the player can build them whenever they want, and they can be in complexes much larger than town buildings can be. - besides, the idea seems to be quite popular among others :P
It also serves as a way to absolutely guarantee that a station will accept mail and goods.

@SAC: Thanks! As Nite Owl said, I would be honoured to code some of your graphics into this set, if you were willing :) .

@Level Crossing: It is actually part of the coal mine - it was simpler to code it to use one of the default industry tiles. It is only a test concept after all.

@Nite Owl: I'm sure it's possible to write a NewGRF that removes all other industries. I haven't tested this set's compatibility with other industry sets thoroughly, but loading it together with FIRS didn't cause any problems at first glance :wink:

I'm glad to see that this idea is being well-received. I may throw together a version with an ugly concrete tower block soon :twisted:
--Stuff I made (or helped make)--
ImageImageImageImage

--My Award-Winning Screenshots and Videos--

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9293
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Concept: Housing blocks as industries

Post by planetmaker » 01 Sep 2011 06:10

Simons Mith wrote:(...)Once a house is built, it ought to stay there for at least 30-50 years, really.(...)
That's just a matter of adequately programming the NewGRF. Easily done.

User avatar
andythenorth
Tycoon
Tycoon
Posts: 4974
Joined: 31 Mar 2007 14:23
Location: Lost in Music

Re: Concept: Housing blocks as industries

Post by andythenorth » 01 Sep 2011 07:28

You can reuse the base set house graphics - just find their IDs using the sprite picker in-game.

There's something weird about doing houses as industries but there's no harm in it.

You'll probably want to disable closure.

ColdIce
Transport Coordinator
Transport Coordinator
Posts: 261
Joined: 25 Apr 2006 10:22
Location: Bucharest

Re: Concept: Housing blocks as industries

Post by ColdIce » 01 Sep 2011 07:57

:bow: thank you. very useful when I dont want to wipeout a town just to put a station so i can have more passengers (i dont like the ideea of remote station :P)
ImageImage

User avatar
Simons Mith
Transport Coordinator
Transport Coordinator
Posts: 307
Joined: 14 Jan 2010 23:45

Re: Concept: Housing blocks as industries

Post by Simons Mith » 01 Sep 2011 11:43

FooBar wrote:
Level Crossing wrote: (is it possible to have NewObjects produce and accept cargo?)
No. Objects have no purpose ingame other than just sit there :)
Trees are a kind of removable object... Some coding changes would be needed, naturally, to stop the game letting you plant forests of pylons, to customise the demolition cost etc. But you could reuse much of the tree code for all manner of ephemeral objects.

User avatar
Bob_Mackenzie
Chairman
Chairman
Posts: 823
Joined: 25 Mar 2010 13:36

Re: Concept: Housing blocks as industries

Post by Bob_Mackenzie » 01 Sep 2011 16:33

You could use much the same approach for caravan parks (can you restrict to within x squares of water?), stately homes and all other manner of tourist attractions

(edit)

If it was used with FIRs which mechanism for production increase would it use?

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9293
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Concept: Housing blocks as industries

Post by planetmaker » 01 Sep 2011 16:40

Bob_Mackenzie wrote: If it was used with FIRs which mechanism for production increase would it use?
The one it is programmed to use. It cannot reference FIRS' functions (though it could be copied, if the newgrf is GPL-licensed).

Checking for water vicinity is definitely possible.

User avatar
Emperor Jake
Tycoon
Tycoon
Posts: 3074
Joined: 24 Apr 2007 09:37
Location: Straya

Re: Concept: Housing blocks as industries

Post by Emperor Jake » 04 Oct 2011 00:43

I've been working on this, using some TTRS apartments blocks (with Zimmlock's kind permission of course). Having gotten the hang of tilelayouts and spritelayouts I put together these complexes:
apartments.png
apartments.png (569.82 KiB) Viewed 5656 times
Now I have some questions:

- How do I make the buildings vary depending on the date it was built? For example, the big grey blocks should only appear if the apartment is built between 1960 and 1990, and from 1970 the smaller modern one would appear. This would also extend to Victorian-era tenements and stuff.

- Is it possible for the buildings to vary depending on whether they're built near water? More luxurious buildings would appear near water.

Thanks,
Jake
--Stuff I made (or helped make)--
ImageImageImageImage

--My Award-Winning Screenshots and Videos--

User avatar
Leanden
Tycoon
Tycoon
Posts: 2620
Joined: 19 Mar 2009 19:25
Location: Kent

Re: Concept: Housing blocks as industries

Post by Leanden » 04 Oct 2011 01:27

Do these work with other Industry GRFs? FIRS for example?

How many available slots are there for industries anyway?
Image

Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 10 guests