Municipal(Town Owned) Airports
Moderator: OpenTTD Developers
Fox,
Im using MSVC6 so I dont get as many error warnings as others, and it compiles without a hitch for me, Ive even combined subsidiarys and municipal airports successfully(without a single error!) heres my combined patch file, ive disabled tax on my patch if station sharing is on because i dont think its fair to be taxed by two different patches.
pls be specific with your warnings and compiler errors, so as i may be of some help
PS. LordOfThePigs - I hope you dont mind
Im using MSVC6 so I dont get as many error warnings as others, and it compiles without a hitch for me, Ive even combined subsidiarys and municipal airports successfully(without a single error!) heres my combined patch file, ive disabled tax on my patch if station sharing is on because i dont think its fair to be taxed by two different patches.
pls be specific with your warnings and compiler errors, so as i may be of some help
PS. LordOfThePigs - I hope you dont mind
- Attachments
-
- MunicipalAirportsAndSubsidiarys.patch
- against r3070
- (188.96 KiB) Downloaded 270 times
Last edited by JimboTG on 20 Oct 2005 07:28, edited 2 times in total.
I cant put a signature here, I dropped my pen
- LordOfThePigs
- Route Supervisor
- Posts: 435
- Joined: 01 Jul 2004 10:28
- Location: Jura/Switzerland
Sorry, but where is subsidiaries.h file ???JimboTG wrote:Fox,
Im using MSVC6 so I dont get as many error warnings as others, and it compiles without a hitch for me, Ive even combined subsidiarys and municipal airports successfully(without a single error!) heres my combined patch file, ive disabled tax on my patch if station sharing is on because i dont think its fair to be taxed by two different patches.
pls be specific with your warnings and compiler errors, so as i may be of some help
PS. LordOfThePigs - I hope you dont mind
In "town actions" just like "build statue" or "fund local road reconstruction"? I've proposed that, too, but I've been told that wouldn't be good, now I think the sameBorn Acorn wrote:It would be good if you could "Propose airfield building" in smaller towns, and the town builds an airfield minimum 6 tiles away from the town centre?
m_airport.c , m_airport.h ...JimboTG wrote:oops, my bad. I have a memory like a goldfish and i forgot to add the relevant files. Ive corrected that now so just redownload the patch
bad memory
but, in new version of your patch you forget again to add this string in Makefile:
Code: Select all
C_SOURCES += m_airport.c
"No rules to compile 'subsidiaries.o' needed for 'openttd'. Stopping..."
i compiling openttd in linux ...
Just for you, JimboJimboTG wrote:Just for you smokey, ive added the line in the makefile
as for your other error, I really cant help as im not a linux user(windows is convenient for me) so maybe if anyone else has any suggestions?
you didn't add this line ("C_SOURCES += m_airport.c ") to Makefile
look at your diff-file carefully
the part of your diff-file look like this:
do you see this string?
Code: Select all
Index: Makefile
===================================================================
--- Makefile (revision 3070)
+++ Makefile (working copy)
@@ -685,6 +685,9 @@
C_SOURCES += sound/null_s.c
C_SOURCES += video/dedicated_v.c
C_SOURCES += video/null_v.c
+C_SOURCES += subsidiaries.c
+C_SOURCES += subsidiaries_cmd.c
+C_SOURCES += subsidiaries_gui.c
# AI related files
C_SOURCES += ai/ai.c
wait a minuteJimboTG wrote:I have just checked BOTH posted diffs and they both contain the added string, this I can guarantee because ive done a clean SVN checkout twice, and applied the diffs from this forum then manually checked the makefiles.
you add this string in openttd.dsp file, for compiling in MSVC, but i tell you about Makefile (for compiling in cygwin or in Linux)
- bobingabout
- Tycoon
- Posts: 1850
- Joined: 21 May 2005 15:10
- Location: Hull, England
it seems like a great patch. thats about all i can say without playing it. and i can't play it ATM.
JPG SUX!!! USE PNG!!!
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.
[/url]
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.
[/url]
Code: Select all
2005-10-23 01:18:40.292 openttd[11962] An assertion has failed and OpenTTD must quit.
GetPlayer in player.h (line 213)
"i < lengthof(_players)"
I'm using the Municipal Airports & subsidiaries combo patch on rev 3077 by the way.
thats a new one;
Im in the process of upgrading to visual studio 2003 right now, I should be up and running by tomorrow night, could you do me a favour and see if you can repeat the bug with just the municipal airports patch alone, then I will have a good idea of where to start.
thanks
Im in the process of upgrading to visual studio 2003 right now, I should be up and running by tomorrow night, could you do me a favour and see if you can repeat the bug with just the municipal airports patch alone, then I will have a good idea of where to start.
thanks
I cant put a signature here, I dropped my pen
Yep, same problem with trunk 3077 and only MA.
relevant part of player.h:
I guess it's sort of logical that this fails... I suppose since the town doesn't count as a player, this assert failes. The PlayerID i is 15 here when it halts by the way.
So a quick & very dirty patch would be simple :-) ;-)
relevant part of player.h:
Code: Select all
static inline Player* GetPlayer(PlayerID i)
{
assert(i < lengthof(_players);
return &_players[i];
}
So a quick & very dirty patch would be simple :-)
Code: Select all
assert(i < lengthof(_players) || 15);
Who is online
Users browsing this forum: No registered users and 3 guests