AGS Engine Ports

Porting AGS to various platforms; platform-specific issues

Bug Issue: Metal Dead runtime error: cannot resolve global variable

Pages: [1]

seemoss

  • AGSer
  • Posts: 0
« on: 15 Feb 2013, 20:05 »
Built AGS for Linux from git on a 32-bit Debian stable system:

ags_3.21.1115~JJS-1_i386.deb

Trying to play Metal Dead but AGS does not even start because of error:

[...]
AGS: Install exit handler
AGS: Initialize path finder library
AGS: Initialize gfx
AGS: Load game data
Script link failed: Runtime error: cannot resolve global variable, key = 48

A previous version of AGS for Linux that I built back in October 2012 starts
with no problems and plays the game (albeit slowly).

I can provide any additional debug info needed.

Crimson Wizard

  • AGSer
  • Posts: 8,649
« Reply #1 on: 23 Feb 2013, 17:29 »
This is a very strange issue.
The error means that some script tries to access memory beyond available data.
I debugged Metal Dead with AGS 3.2.1.1115, and it shows same thing, the difference is only that vanilla AGS did not make such error checks.

I will disable this check temporarily, to let the game run, but that could be indication of bug in AGS script compiler.
I am going to contact Metal Dead developers, probably they may provide information on how their script looks like, so I could try to reproduce this behavior.
  • Status changed from New to Confirmed
  • Version changed from github.com/adventuregamestudio/ags to github.com/adventuregamestudio/ags, master
  • Category changed from Linux to General
  • Issue renamed from "AGS Linux runtime error: cannot resolve global variable" to "Metal Dead runtime error: cannot resolve global variable"
« Last Edit: 23 Feb 2013, 17:29 by Crimson Wizard »

Crimson Wizard

  • AGSer
  • Posts: 8,649
« Reply #2 on: 29 Sep 2015, 09:20 »
*UPDATE*
I remember I sent email to "Metal Dead" developers, asking to provide some information on their scripts, but they never replied back...

Crimson Wizard

  • AGSer
  • Posts: 8,649
« Reply #3 on: 25 Jul 2018, 09:55 »
After several years we've occasionally found the cause of the problem and opened a ticket in the repository:
https://github.com/adventuregamestudio/ags/issues/385

As for this particular issue, the engine has a workaround to let the game run, so I am closing this.
  • Status changed from Confirmed to Closed
« Last Edit: 25 Jul 2018, 09:55 by Crimson Wizard »

Pages: [1]

Issue Details

  • Reported
    15 Feb 2013, 20:05
  • Updated
    25 Jul 2018, 09:55
  • View Status
    Public
  • Type
    Bug
  • Status
    Closed
  • Priority
    Normal
  • Version
    github.com/adventuregamestudio/ags, master
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    General

Tags



Powered by: SMF Project Tools 0.5.4 © Niko Pahajoki 2007-2011