Page 1 of 3

Housing as Industries 0.1.1

Posted: 31 Aug 2011 12:32
by Emperor Jake
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.

Re: Concept: Housing blocks as industries

Posted: 31 Aug 2011 12:47
by oberhümer
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.

Re: Concept: Housing blocks as industries

Posted: 31 Aug 2011 12:48
by APDAF
I will like this.

Re: Concept: Housing blocks as industries

Posted: 31 Aug 2011 12:56
by Emperor Jake
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.

Re: Concept: Housing blocks as industries

Posted: 31 Aug 2011 13:33
by planetmaker
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).

Re: Concept: Housing blocks as industries

Posted: 31 Aug 2011 13:54
by SAC
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! :))

Re: Concept: Housing blocks as industries

Posted: 31 Aug 2011 15:22
by Level Crossing
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?)

Re: Concept: Housing blocks as industries

Posted: 31 Aug 2011 16:23
by FooBar
Level Crossing wrote: (is it possible to have NewObjects produce and accept cargo?)
No. Objects have no purpose ingame other than just sit there :)

Re: Concept: Housing blocks as industries

Posted: 31 Aug 2011 20:50
by wallyweb
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)

Re: Concept: Housing blocks as industries

Posted: 31 Aug 2011 23:48
by Simons Mith
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 :-)

Re: Concept: Housing blocks as industries

Posted: 01 Sep 2011 01:50
by Nite Owl
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.

Re: Concept: Housing blocks as industries

Posted: 01 Sep 2011 03:22
by Emperor Jake
@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:

Re: Concept: Housing blocks as industries

Posted: 01 Sep 2011 06:10
by planetmaker
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.

Re: Concept: Housing blocks as industries

Posted: 01 Sep 2011 07:28
by andythenorth
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.

Re: Concept: Housing blocks as industries

Posted: 01 Sep 2011 07:57
by ColdIce
: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)

Re: Concept: Housing blocks as industries

Posted: 01 Sep 2011 11:43
by Simons Mith
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.

Re: Concept: Housing blocks as industries

Posted: 01 Sep 2011 16:33
by Bob_Mackenzie
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?

Re: Concept: Housing blocks as industries

Posted: 01 Sep 2011 16:40
by planetmaker
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.

Re: Concept: Housing blocks as industries

Posted: 04 Oct 2011 00:43
by Emperor Jake
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 12146 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

Re: Concept: Housing blocks as industries

Posted: 04 Oct 2011 01:27
by Leanden
Do these work with other Industry GRFs? FIRS for example?

How many available slots are there for industries anyway?