The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Topic started by: Junna on March 30, 2015, 03:52:46 PM

Title: Something with bridges
Post by: Junna on March 30, 2015, 03:52:46 PM
Devel new crashes for me when dragging a bridge.
Title: Re: Something with bridges
Post by: jamespetts on March 30, 2015, 07:52:33 PM
I am having trouble reproducing this one - can you elaborate on the steps necessary to reproduce this?
Title: Re: Something with bridges
Post by: Junna on March 30, 2015, 08:09:42 PM
Just building a bridge anywhere causes a freeze forthwith for me.

Could it be something with the pak?

http://www.mediafire.com/download/zj6feglenqd3d0a/Pak128.Britain-Ex-0.9.2J.7z
Title: Re: Something with bridges
Post by: jamespetts on March 30, 2015, 08:55:06 PM
I cannot reproduce the crash in your pakset, but the track on your bridges is invisible, as you need to set has_own_way_graphics=0 for those for which I have removed the way part of the image.
Title: Re: Something with bridges
Post by: Junna on March 30, 2015, 09:44:41 PM
I have not changed the setting of has_own_way_graphics from the source, though? I assume those that miss it are those which I imported quite some time ago from standard manually...

I guess I'll have to compile a debug and see if it says anything worthwhile. My friend also got the same bug, so it ought to be reproducible.
Title: Re: Something with bridges
Post by: jamespetts on March 30, 2015, 09:46:37 PM
Hmm, that really is very odd.

As to the bridge graphics, are you using the latest compile of Makeobj-Experimental?
Title: Re: Something with bridges
Post by: Junna on March 30, 2015, 09:55:20 PM
Oh, I guess that one has been updated? No, mine is from last summer, so I reckon it is outdated and why then.
Quote
First-chance exception at 0x004A7DA1 in Simutrans-Experimental-debug.exe: 0xC0000005: Access violation reading location 0x8C000010.
Unhandled exception at 0x004A7DA1 in Simutrans-Experimental-debug.exe: 0xC0000005: Access violation reading location 0x8C000010.
'
Quote
    96:     inline sint32 get_wartung() const { return maintenance; }
004A7D90 55                   push        ebp 
004A7D91 8B EC                mov         ebp,esp 
004A7D93 51                   push        ecx 
004A7D94 C7 45 FC CC CC CC CC mov         dword ptr [this],0CCCCCCCCh 
004A7D9B 89 4D FC             mov         dword ptr [this],ecx 
004A7D9E 8B 45 FC             mov         eax,dword ptr [this] 
(green arrow here>)004A7DA1 8B 40 10             mov         eax,dword ptr [eax+10h] 
Title: Re: Something with bridges
Post by: jamespetts on March 30, 2015, 11:17:46 PM
Can you try recompiling with the latest bridges to see whether that fixes your issue?
Title: Re: Something with bridges
Post by: Junna on March 31, 2015, 12:14:30 AM
Well, that gives:

>makeobj pak128 ./ ./
Makeobj version 55.3 for simutrans 120.0.1 Experimental Development build 12.900
0 and higher
writing invidual files to ./
   reading file ./asphalt-roads.dat
   writing file ./way.hr-asphalt-road-heavy.pak
      packing way.hr-asphalt-road-heavy
libpng warning: Application built with libpng-1.2.52 but running with 1.5.14
ERROR: while loading PNG:       Could not create read struct in ././images/hot-r
olled-asphalt-road-heavy.png.
For help with this error or to file a bug report please see the Simutrans forum:

http://forum.simutrans.com
Title: Re: Something with bridges
Post by: Junna on April 05, 2015, 08:24:21 PM
I can't figure out how to get a useable libpng...
Title: Re: Something with bridges
Post by: jamespetts on April 05, 2015, 08:44:04 PM
Are you on Linux or Windows?
Title: Re: Something with bridges
Post by: Junna on April 06, 2015, 02:23:28 AM
Windows. I tried compiling libpng but it doesn't seem to recognise this when adding this to library in MSVS while compiling makeobj, which proceeds to be compiled fine but cannot be used (it returns the error previously posted, about needing 1.5.14).
Title: Re: Something with bridges
Post by: jamespetts on April 06, 2015, 11:10:01 AM
I have just e-mailed you the version that I use - please let me know whether this assists.

Edit: I am afraid that your e-mail address did not work: can you e-mail me your current address?
Title: Re: Something with bridges
Post by: Junna on April 08, 2015, 08:21:33 AM
Thank you, I managed to compile a new version with that.

Alas, it appeared it was unrelated to the issue. But I did manage to discover after some tedious attempts that it was a certain few bridges that were the problem, old deprecated bridges which were still around in the form of old pak files, and it was only when trying to build one of those that the executable would crash. Deleting those, the problem is no longer; presumably this was due to some old setting for the experimental bridges that did not line up to the new bridge system, I guess.
Title: Re: Something with bridges
Post by: jamespetts on April 10, 2015, 09:35:49 AM
Ahh, perhaps the problem is that they are not half-height compatible bridges?
Title: Re: Something with bridges
Post by: Junna on April 10, 2015, 11:41:19 AM
Oh, they were half-heights compatible, but left over from (mid-2014) compiled pak-set and did not support the new way system.