Global variable

Discuss the new AI features ("NoAI") introduced into OpenTTD 0.7, allowing you to implement custom AIs, and the new Game Scripts available in OpenTTD 1.2 and higher.

Moderator: OpenTTD Developers

Post Reply
User avatar
fanioz
Transport Coordinator
Transport Coordinator
Posts: 320
Joined: 19 Dec 2008 05:03
Location: Indonesia
Contact:

Global variable

Post by fanioz »

What happened with global variable (declared in root) if the 'reload ai' button is pressed? Runing 0.7.1 rc2, the openttd quit back to command line and said, segmentation fault (on ubuntu hardy).
On win xp, it display fatal box with crash report button. Or should I attach files and report them to bugs.openttd.org?
Note: my global variable is a table and contain function and instance of class. The crash happened when my TransAI crash and I would like to reload it. (Only occured with this un-released version)
Correct me If I am wrong - PM me if my English was bad :D

**[OpenTTD AI]** Image
***[NewGRF] *** Image
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: Global variable

Post by Rubidium »

An AI that crashes OpenTTD itself is a big problem. We make the release candidates to catch those kinds of bugs that can be caused by fixing bugs. So please make a bug report for it.
User avatar
fanioz
Transport Coordinator
Transport Coordinator
Posts: 320
Joined: 19 Dec 2008 05:03
Location: Indonesia
Contact:

Re: Global variable

Post by fanioz »

I've to made something clear :
fanioz wrote:The crash happened when my TransAI crash and I would like to reload it. (Only occured with this un-released version)
un-released here, refer to TransAI not OpenTTD 0.7.1 RC-2

FS#2935 - Crash by AI
Correct me If I am wrong - PM me if my English was bad :D

**[OpenTTD AI]** Image
***[NewGRF] *** Image
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 24 guests