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
Zoning - Local Authorities
Moderator: OpenTTD Developers
Re: Zoning - Local Authorities
Oh hai,
I just registered on this forum to say the following:
Awesome patch, I will have to give it a go. Good job

I just registered on this forum to say the following:
Awesome patch, I will have to give it a go. Good job


Re: Zoning - Local Authorities
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:
A squashed SVN-style patch is attached.
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.
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
Patch Pack, Github
Re: Zoning - Local Authorities
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?
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?
Who is online
Users browsing this forum: No registered users and 10 guests