The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: sander3991 on January 05, 2018, 04:57:59 PM

Title: Crash with AI players: index out of bounds
Post by: sander3991 on January 05, 2018, 04:57:59 PM
Hello everyone!

I started a game on a 512x512 map in year 1750. I added 2 AI players and when the game was unpaused after a while it crashed with an error shown in the attached picture. It seems that the error occurs when AI players are trying to build something.

This happened on each load. Without AI players the game on the same map works normally.

Saved game: https://drive.google.com/file/d/1Cc6dh-tD6-9ssmOyeHMvFNpLNupBjRzV/view?usp=sharing (https://drive.google.com/file/d/1Cc6dh-tD6-9ssmOyeHMvFNpLNupBjRzV/view?usp=sharing)
Title: Re: Crash with AI players: index out of bounds
Post by: Milko on January 05, 2018, 05:20:03 PM
Hello


I think correct section for this post is "Simutrans extended Devolopment" here only solved bug.


Giuseppe
Title: Re: Crash with AI players: index out of bounds
Post by: sander3991 on January 05, 2018, 05:27:46 PM
Oh, I'm sorry. How can I move this topic?
Title: Re: Crash with AI players: index out of bounds
Post by: jamespetts on January 05, 2018, 11:31:49 PM
Thank you for the report: apologies that you are having trouble. I have now moved your topic to the correct subforum. I am currently away from home without access to my normal coding machine, but I will look at this when I get home next week.

However, the AI in Simutrans is extremely basic, and it has not been updated for Simutrans-Extended at all; I generally recommend a multi-player online game instead if you want to play on a map with other transport companies; humans are much more interesting than a basic AI.

Welcome to the forums, incidentally!
Title: Re: Crash with AI players: index out of bounds
Post by: sander3991 on January 06, 2018, 09:37:48 AM
Hello, James!

Thank you for attention!

I forgot to mention the game version I'm using (if that matters): Simutrans 120.2.1 Extended, build 13.0 #a3d5028.

And I'll try a multi-player game. Indeed it's going to be much more interesting. Though I already enjoy the game. Thank you for your job!
Title: Re: Crash with AI players: index out of bounds
Post by: jamespetts on January 08, 2018, 10:30:16 AM
Thank you for the report. I think that I have now fixed this - I should be grateful if you could re-test with to-morrow's nightly build.
Title: Re: Crash with AI players: index out of bounds
Post by: sander3991 on January 08, 2018, 10:58:09 AM
Thank you, James!

I'll do a test and give a response if the problem is solved.