Page 4 of 4

Re: Zoning - Local Authorities

Posted: 10 Jul 2010 15:20
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

Re: Zoning - Local Authorities

Posted: 25 Nov 2010 05:40
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:

Re: Zoning - Local Authorities

Posted: 02 Aug 2015 12:34
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.

Re: Zoning - Local Authorities

Posted: 20 Sep 2015 22:19
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?