Zoning - Local Authorities
Moderator: OpenTTD Developers
Re: Zoning - Local Authorities
Just an idea. What about using this patch to create nations aswell?
I think it could be cool to use this system to join cities aswell into nations. This could give a nicer level of gaming in ttd, we could make real national/international/intercontinental transportations and have special taxes and fees for that... With cargodest aswell it could be a nice implementation
think is a nice idea?
I think it could be cool to use this system to join cities aswell into nations. This could give a nicer level of gaming in ttd, we could make real national/international/intercontinental transportations and have special taxes and fees for that... With cargodest aswell it could be a nice implementation
think is a nice idea?
greetz,
Rasael
Rasael
Re: Zoning - Local Authorities
What a bump! Or eh.
No seriously, I am considering reviving this patch again, given whether there is still any interest in this patch left or whether it has actually made its way towards trunk or some such! I don't feel like reinventing the wheel or inventing a wheel nobody wants to use.
Sure, it wasn't perfect, but all things have rough beginnings. I think what happened was me getting distracted by life in general. And then, unfortunately, I forgot about OpenTTD. It's shameful, I know.
So if someone out there is still hooked on the idea, I am willing to get cracking.
No seriously, I am considering reviving this patch again, given whether there is still any interest in this patch left or whether it has actually made its way towards trunk or some such! I don't feel like reinventing the wheel or inventing a wheel nobody wants to use.
Sure, it wasn't perfect, but all things have rough beginnings. I think what happened was me getting distracted by life in general. And then, unfortunately, I forgot about OpenTTD. It's shameful, I know.
So if someone out there is still hooked on the idea, I am willing to get cracking.
Re: Zoning - Local Authorities
Interested, this patch will be very useful.
Re: Zoning - Local Authorities
I am currently working on updating my 3 year old code to the modern versions of OpenTTD. So that might take some time getting all the bolts working.
Edit: Just a little status update for those who care. I have now successfully converted my former code to the new version of OpenTTD. The basics work now, and there is a widget and all. However, I still cannot figure out how to make the dropdown menus show what you select. Even after spending hours trying to understand the newgame gui.
But anyway, here is a screenshot.
By the way, suggestions for types of zoning are very welcome. Right now I have local authority and where you cannot build working. And I am working on implementing industry catchment. But there could be many more!
Edit: Just a little status update for those who care. I have now successfully converted my former code to the new version of OpenTTD. The basics work now, and there is a widget and all. However, I still cannot figure out how to make the dropdown menus show what you select. Even after spending hours trying to understand the newgame gui.
But anyway, here is a screenshot.
By the way, suggestions for types of zoning are very welcome. Right now I have local authority and where you cannot build working. And I am working on implementing industry catchment. But there could be many more!
Re: Zoning - Local Authorities
Apologies for the double post, but excellent happenings!
I have fixed all the obvious issues with this patch, and shall now release a simple 1.0 version. It will get many more features, but this is a stable simple version, that should provide you with the two basics. I realise the dropdown has a setting called 'Industry catchment', but it does not work as of right now.
So here is a screenshot, the patch and of course the grf file (though it is the same as before).
I have fixed all the obvious issues with this patch, and shall now release a simple 1.0 version. It will get many more features, but this is a stable simple version, that should provide you with the two basics. I realise the dropdown has a setting called 'Industry catchment', but it does not work as of right now.
So here is a screenshot, the patch and of course the grf file (though it is the same as before).
- Attachments
-
- zoning-1.0.patch
- The patch.
- (16.62 KiB) Downloaded 155 times
-
- innerhighlight.grf
- The grf file (just shove into your data-dir).
- (6.79 KiB) Downloaded 158 times
Re: Zoning - Local Authorities
Nice, very nice! I like this a lot!
Re: Zoning - Local Authorities
This looks really nifty, I'd like to see it make it into trunk.
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: Zoning - Local Authorities
I appreciate the positive feedback. Also, I am having the following extra ideas for zoning types (in addition to industry catchment):
Edit 2: A little tease on the unserved buildings. It is however, not perfect. It would have produced the same results had I placed a lorry station, which cannot serve buildings. But checking for such will come!
For the record, right now a building is a MP_HOUSE that accepts and/or produces mail and/or passengers.
Edit 3: And a showcase of station catchment!
- City catchment (or 'building catchment')
- Unserved industries
- Unserved buildings
- 1-3 White (lorry/bus)
- 4 Blue (train station/some airports)
- 5 Green (docks/some airports)
- 6 Yellow (some airports)
- 7-9 Light blue (international airport)
Edit 2: A little tease on the unserved buildings. It is however, not perfect. It would have produced the same results had I placed a lorry station, which cannot serve buildings. But checking for such will come!
For the record, right now a building is a MP_HOUSE that accepts and/or produces mail and/or passengers.
Edit 3: And a showcase of station catchment!
-
- Engineer
- Posts: 11
- Joined: 14 Jun 2010 17:11
Re: Zoning - Local Authorities
This looks really interesting! I've had many occasions in the past where I would've liked to have a station catchment display. It would be extra interesting if the cells belonging to a specific station would highlight when you hover your mouse over that station (or maybe right-click the station, if hover isn't something the UI can detect). Or as another alternative, put a button on a station window to toggle the catchment area for that station on or off. Lots of potential here, keep it up!
Re: Zoning - Local Authorities
Well, right now the focus is overlay, rather than interaction. But maybe in a future 'offspring', perhaps.
Anyway, after some trial and error, I fixed the dreaded 'station catchment' issue. And here is a screenshot to showcase this.
So it would only be natural to combine this with unserved buildings, so you can see if some of the buildings are only getting served, but cannot serve back.
Anyway, after some trial and error, I fixed the dreaded 'station catchment' issue. And here is a screenshot to showcase this.
So it would only be natural to combine this with unserved buildings, so you can see if some of the buildings are only getting served, but cannot serve back.
Re: Zoning - Local Authorities
Are you sure lorry stations do not serve buildings?Svip wrote: Edit 2: A little tease on the unserved buildings. It is however, not perfect. It would have produced the same results had I placed a lorry station, which cannot serve buildings. But checking for such will come!
Mail is delivered to houses, mail is transported by lorries, lorries stop at lorry stations.
When I was testing player owned stations are marked as "where I can't build". I think this should be changed in the final version.
For player owned roads the behaviour is correct.
Looking forward to the next version of this very nice patch.
I have attached a few suggestions, hope you do not mind.
- Attachments
-
- suggestions_coding_style_zoning-1.0.txt
- (1.17 KiB) Downloaded 171 times
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.
Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.
Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
Re: Zoning - Local Authorities
Hi, is nice to see this project moving forward!
I give my little suggestion some time ago, in one of the latest posts.
if you like I can get more in detail with it
nice work anyhow!
I give my little suggestion some time ago, in one of the latest posts.
if you like I can get more in detail with it
nice work anyhow!
greetz,
Rasael
Rasael
Re: Zoning - Local Authorities
very nice
The TT forums trivia tournament! Come along and join in the fun
http://www.funtrivia.com/private/main.cfm?tid=90722
http://www.funtrivia.com/private/main.cfm?tid=90722
Re: Zoning - Local Authorities
You are right! But some buildings (like stations) only accept passengers. So there still need to be a check.ChillCore wrote:Are you sure lorry stations do not serve buildings?Svip wrote: Edit 2: A little tease on the unserved buildings. It is however, not perfect. It would have produced the same results had I placed a lorry station, which cannot serve buildings. But checking for such will come!
Mail is delivered to houses, mail is transported by lorries, lorries stop at lorry stations.
This is true. Fix shall come!ChillCore wrote:When I was testing player owned stations are marked as "where I can't build". I think this should be changed in the final version.
For player owned roads the behaviour is correct.
Well, I usually do my coding by first getting it to work, then I clean it up afterwards. I prefer to clean up code that works. But that's just me.ChillCore wrote:Looking forward to the next version of this very nice patch.
I have attached a few suggestions, hope you do not mind.
Oh, I wouldn't mind if you did repost it. And if you have further details, even better!Psicho wrote:Hi, is nice to see this project moving forward!
I give my little suggestion some time ago, in one of the latest posts.
if you like I can get more in detail with it
nice work anyhow!
Re: Zoning - Local Authorities
Which is perfectly fine. I used to think the same way.Svip wrote:Well, I usually do my coding by first getting it to work, then I clean it up afterwards. I prefer to clean up code that works. But that's just me.ChillCore wrote: Looking forward to the next version of this very nice patch.
I have attached a few suggestions, hope you do not mind.
However after debugging, and applying coding style to, a certain patch for quite some time now, I have two good reasons for applying coding style as I go:
- When I know I have done it, I have peace of mind knowing that it is done and I do not have to go back just for coding style.
- When someone reviews the code and does coding style in his head at the same time (we all do that automatically I think), it distracts from the essential which is the code. (I know for a fact some people will stop reading just for that reason ...)
Anyway I do not want to get to far off topic so I'll leave it at that.
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.
Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.
Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
Re: Zoning - Local Authorities
Sure, it was just on the top of this pageh, I wouldn't mind if you did repost it. And if you have further details, even better!
Psicho wrote:Just an idea. What about using this patch to create nations aswell?
I think it could be cool to use this system to join cities aswell into nations. This could give a nicer level of gaming in ttd, we could make real national/international/intercontinental transportations and have special taxes and fees for that... With cargodest aswell it could be a nice implementation
think is a nice idea?
greetz,
Rasael
Rasael
Re: Zoning - Local Authorities
Maybe, but probably there is no connection with that existing path. And merging it into one path is probably the best way to avoid including it into trunk.Psicho wrote:I think it could be cool to use this system to join cities aswell into nations. This could give a nicer level of gaming in ttd, we could make real national/international/intercontinental transportations and have special taxes and fees for that... With cargodest aswell it could be a nice implementation
think is a nice idea?
Last edited by Kogut on 09 Jul 2010 14:27, edited 1 time in total.
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
AIAI - AI for OpenTTD
Re: Zoning - Local Authorities
Kogut is right. The introduction of nations should not be served by this patch. While this patch could 'illustrate' them, the idea of this patch is not to introduce new gameplay features, but rather a new interface module, that will help you with currently implemented gameplay features.
It is not that I do not like the idea of introducing nations and such; I love it (one of the things I love about Railroad Tycoon 3), but this is the wrong patch.
It is not that I do not like the idea of introducing nations and such; I love it (one of the things I love about Railroad Tycoon 3), but this is the wrong patch.
Re: Zoning - Local Authorities
I did my effort and cleaned up most of my code, so I have attached version 1.1 (however, industry/city catchment remains unimplemented and there are TODOs on the other methods as well, but many things works rather nicely, so it is worthy of a 1.1 release).Svip wrote:Well, I usually do my coding by first getting it to work, then I clean it up afterwards. I prefer to clean up code that works. But that's just me.ChillCore wrote:Looking forward to the next version of this very nice patch.
I have attached a few suggestions, hope you do not mind.
Remember, this patch is developed for r20082. It should most likely have no problems with current trunk version, but I have not tested this myself yet.
I do apologise for the double post, but I felt a real update was worthy of its own post.
- Attachments
-
- zoning-1.1.patch
- Patch created for r20082.
- (29.13 KiB) Downloaded 232 times
-
- innerhighlight.grf
- Attaching this again for old time sake (nothing has changed, btw, so if you already have it, it would be pointless to obtain).
- (6.79 KiB) Downloaded 200 times
Re: Zoning - Local Authorities
Oh my goodness, I be triple posting, yo.
But I have screenshots to compensate for that! Specifically three. I have now created industry and city catchments, as you can see in these screenshots.
But I have screenshots to compensate for that! Specifically three. I have now created industry and city catchments, as you can see in these screenshots.
Who is online
Users browsing this forum: Amazon [Bot] and 44 guests