Municipal(Town Owned) Airports

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

User avatar
JimboTG
Engineer
Engineer
Posts: 80
Joined: 08 Sep 2005 10:45
Location: Portsmouth, England

Post by JimboTG »

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
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
User avatar
LordOfThePigs
Route Supervisor
Route Supervisor
Posts: 435
Joined: 01 Jul 2004 10:28
Location: Jura/Switzerland

Post by LordOfThePigs »

Why should I? It open source isn't it? ;)
Sometimes I'm told "Brilliant"...
Sometimes I'm told "Charming"...
And Often I'm told "Shut Up"!
User avatar
JimboTG
Engineer
Engineer
Posts: 80
Joined: 08 Sep 2005 10:45
Location: Portsmouth, England

Post by JimboTG »

nonetheless, Its only polite to ask
I cant put a signature here, I dropped my pen
User avatar
Smoky555
Engineer
Engineer
Posts: 97
Joined: 06 Jan 2005 05:22
Location: Russia, Volgograd
Contact:

Post by Smoky555 »

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
Sorry, but where is subsidiaries.h file ???
User avatar
JimboTG
Engineer
Engineer
Posts: 80
Joined: 08 Sep 2005 10:45
Location: Portsmouth, England

Post by JimboTG »

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
I cant put a signature here, I dropped my pen
MeusH
Tycoon
Tycoon
Posts: 4349
Joined: 25 Oct 2004 15:39
Location: Mississauga

Post by MeusH »

Born 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?
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 same
User avatar
Smoky555
Engineer
Engineer
Posts: 97
Joined: 06 Jan 2005 05:22
Location: Russia, Volgograd
Contact:

Post by Smoky555 »

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
m_airport.c , m_airport.h ...
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
and i get an error
"No rules to compile 'subsidiaries.o' needed for 'openttd'. Stopping..."
i compiling openttd in linux ...
User avatar
JimboTG
Engineer
Engineer
Posts: 80
Joined: 08 Sep 2005 10:45
Location: Portsmouth, England

Post by JimboTG »

Just for you smokey, ive added the line in the makefile :wink:

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?
I cant put a signature here, I dropped my pen
User avatar
Smoky555
Engineer
Engineer
Posts: 97
Joined: 06 Jan 2005 05:22
Location: Russia, Volgograd
Contact:

Post by Smoky555 »

JimboTG wrote:Just for you smokey, ive added the line in the makefile :wink:

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?
Just for you, Jimbo
you didn't add this line ("C_SOURCES += m_airport.c ") to Makefile

look at your diff-file carefully
User avatar
Smoky555
Engineer
Engineer
Posts: 97
Joined: 06 Jan 2005 05:22
Location: Russia, Volgograd
Contact:

Post by Smoky555 »

the part of your diff-file look like this:

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 
do you see this string?
User avatar
JimboTG
Engineer
Engineer
Posts: 80
Joined: 08 Sep 2005 10:45
Location: Portsmouth, England

Post by JimboTG »

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.
I cant put a signature here, I dropped my pen
User avatar
Smoky555
Engineer
Engineer
Posts: 97
Joined: 06 Jan 2005 05:22
Location: Russia, Volgograd
Contact:

Post by Smoky555 »

JimboTG 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.
wait a minute
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)
User avatar
JimboTG
Engineer
Engineer
Posts: 80
Joined: 08 Sep 2005 10:45
Location: Portsmouth, England

Post by JimboTG »

NO I am talking about the makefile, please check again, could someone else verify this aswell please?
I cant put a signature here, I dropped my pen
User avatar
Smoky555
Engineer
Engineer
Posts: 97
Joined: 06 Jan 2005 05:22
Location: Russia, Volgograd
Contact:

Post by Smoky555 »

now - yes
but early (at 9:00 am) - no
User avatar
Smoky555
Engineer
Engineer
Posts: 97
Joined: 06 Jan 2005 05:22
Location: Russia, Volgograd
Contact:

Post by Smoky555 »

To: JimboTG
Sorry, yesterday was a bad day for me :cry:
User avatar
JimboTG
Engineer
Engineer
Posts: 80
Joined: 08 Sep 2005 10:45
Location: Portsmouth, England

Post by JimboTG »

No problem, we all have bad days.

Has anyone got any suggestions/feedback about the patch, Ive run out of things to do
I cant put a signature here, I dropped my pen
User avatar
bobingabout
Tycoon
Tycoon
Posts: 1850
Joined: 21 May 2005 15:10
Location: Hull, England

Post by bobingabout »

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]
oVRoM
Engineer
Engineer
Posts: 37
Joined: 11 Jan 2003 10:40
Location: Utah

Post by oVRoM »

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 get this as soon as I click the button to show all aircrafts servicing an airport on any Municipal Airport:
Image
I'm using the Municipal Airports & subsidiaries combo patch on rev 3077 by the way.
User avatar
JimboTG
Engineer
Engineer
Posts: 80
Joined: 08 Sep 2005 10:45
Location: Portsmouth, England

Post by JimboTG »

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
I cant put a signature here, I dropped my pen
oVRoM
Engineer
Engineer
Posts: 37
Joined: 11 Jan 2003 10:40
Location: Utah

Post by oVRoM »

Yep, same problem with trunk 3077 and only MA.

relevant part of player.h:

Code: Select all

static inline Player* GetPlayer(PlayerID i)
{ 
        assert(i < lengthof(_players);
        return &_players[i];
}
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 :-)

Code: Select all

assert(i < lengthof(_players) || 15);
;-)
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 3 guests