Zoning - Local Authorities

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Michi_cc
OpenTTD Developer
OpenTTD Developer
Posts: 619
Joined: 14 Jun 2004 23:27
Location: Berlin, Germany
Contact:

Re: Zoning - Local Authorities

Post by Michi_cc »

If you want your patch to actually work when adding NewGRFs, you need to fix up how you load those extra sprites.

Look in tables/sprites.h for SPR_NEWGRFS_BASE how the sprites before are defined and add a new block there. For loading these sprites an action 5 is probably best, which means that you have to modify GraphicsNew in newgrf.cpp accordingly.


-- Michael Lutz
Soup
Engineer
Engineer
Posts: 1
Joined: 25 Nov 2010 05:36

Re: Zoning - Local Authorities

Post by Soup »

Oh hai,
I just registered on this forum to say the following:

Awesome patch, I will have to give it a go. Good job :)
:bow:
User avatar
JGR
Tycoon
Tycoon
Posts: 2605
Joined: 08 Aug 2005 13:46
Location: Ipswich

Re: Zoning - Local Authorities

Post by JGR »

This is a bit of a bump, however the patch posted earlier in the thread (version 1.1) doesn't seem to apply cleanly on the trunk version it was diffed from, and in general the patch has a few issues.
So I've done a bit of cleaning, implemented most of the TODOs, and rebased it onto r27346.
Specifically the changes are:
  • Implement station ownership checks: unserved buildings, station acceptance, etc. now only check stations from the current company
  • The unserved industries mode now disregards stations which only have a bus stop.
  • Remove the unimplemented modes from the menu
  • Whitespace, style, misc fixes, etc.
The branch with changes is here.
A squashed SVN-style patch is attached.
Attachments
zoning-1.2-r27346.patch
(30.97 KiB) Downloaded 230 times
Ex TTDPatch Coder
Patch Pack, Github
User avatar
nulio
Traffic Manager
Traffic Manager
Posts: 157
Joined: 23 Aug 2007 21:20
Location: Portugal

Re: Zoning - Local Authorities

Post by nulio »

Hi,

I just reinstalled OpenTTD after a long time, I was wondering about how to check combined stations catching area and Google brought me here.

I used to patch/compile the game back where I still had a Mac (iirc I even posted some compiled stuff) but I completely forgot how things work, where to check the patches going into trunk, etc, etc, etc, so be gentle with me if I'm necro-ing or making stupid questions.

Is this (or something similar) planned to go into the trunk?
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 10 guests