News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

r2173 (and some earlier) - access violation Pak128

Started by jamespetts, December 20, 2008, 12:44:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jamespetts

Whenever I try to use Pak128 (either original or nightly) in r2173 (and some earlier versions, too), I get the following error during pakset initialisation:

[code]Unhandled exception at 0x0045f051 in Simutrans.exe: 0xC0000005: Access violation reading location 0x00000014.


When I run the compiled code in debug mode, it points to the following line in weg_besch.h:

uint16 get_intro_year_month() const { return intro_date; }

Oddly, however, when I quit the game, load pak64, then start the game again, that error goes away, only to return if I quit the game and load pak128 again. Even more oddly, if, instead of loading pak64, I load pak96.comic, pak96.comic will load fine, but the error will still be there when I quit and reload pak128.[/code]
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

prissi

Most likely you start in a year where no road is defined yet?

jamespetts

No, since this happens before any savegame is loaded, and is idiosyncratic (happens sometimes and not others in apparently the same conditions).
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

prissi


jamespetts

I don't seem to be having this in recent builds. I suggest that this be marked as solved.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.