adventuregamestudio / ags

AGS editor and engine source code
Other
697 stars 159 forks source link

Ashina the red witch demo crashes at start with a unresolved import #1706

Closed i30817 closed 2 years ago

i30817 commented 2 years ago

Describe the bug As in the title, the log is:

Adventure Game Studio v3.6 Interpreter
Copyright (c) 1999-2011 Chris Jones and 2011-2022 others
ACI version 3.6.0.28

Initializing backend libs
Initializing game data
Located game data pak: /home/i3/Downloads/ATRWDEMO/ATRW.exe
Opened game data file: game28.dta
Game data version: 3060021
Compiled with: 3.6.0.22
Startup directory: /home/i3/Downloads/ATRWDEMO
Data directory: /home/i3/Downloads/ATRWDEMO/
Setting up game configuration
audio.vox found and initialized.
Initializing TTF renderer
Initializing mouse: number of buttons reported is 3
Install timer
Audio driver: pulseaudio
AudioCore: opened device "Default OpenAL playback device"
Supported sound decoders:
 - Play modules through ModPlug : 669,AMF,AMS,DBM,DMF,DSM,FAR,GDM,IT,MDL,MED,MOD,MT2,MTM,OKT,PTM,PSM,S3M,STM,ULT,UMX,XM,
 - MPEG-1 Audio Layer I-III : MP3,MP2,MP1,
 - Microsoft WAVE audio format : WAV,
 - Audio Interchange File Format : AIFF,AIF,
 - Sun/NeXT audio file format : AU,
 - Ogg Vorbis audio : OGG,
 - Creative Labs Voice format : VOC,
 - Raw audio : RAW,
 - Shorten-compressed audio data : SHN,
 - Free Lossless Audio Codec : FLAC,FLA,
Install exit handler
Initialize path finder library
Game title: 'Ashina: The Red Witch'
Game GUI version: 119
Requested script API: v3.6.0-alpha (3060000), compat level: v3.2.1 (0)
Plugin 'agsteam-disjoint' could not be loaded (expected 'libagsteam-disjoint.so'), trying built-in plugins...
Placeholder functions for the plugin 'agsteam-disjoint' found.
Plugin 'agsteam' could not be loaded (expected 'libagsteam.so'), trying built-in plugins...
Placeholder functions for the plugin 'agsteam' found.
unresolved import 'Button::Animate^7' in 'Dialog.asc'
Loading game failed with error:
Script link failed.
Error (line unknown): in Dialog.asc: 1 unresolved imports (last: Button::Animate^7).

The game files may be incomplete, corrupt or from unsupported version of AGS.
Quitting the game...
***** ENGINE HAS SHUTDOWN

As far as i know, the Engine/ac/button.h header file only has one Button_Animate function with 5 (6 if you count this i guess, which i'm not sure counts here) arguments. I don't know if the '^7' actually means the number of arguments, but i vaguely recall something like that.

AGS Version 3.6

Game If applicable, link or attach an example game (with optional source) to demonstrate the issue.

search for 'Download Demo' - i haven't tried the real game but i expect nothing different.

To Reproduce Steps to reproduce the behavior:

  1. just run with the compiled master

Desktop (please complete the following information):

ivan-mogilko commented 2 years ago

Pushed eb4c0aec426c1501c84e93851e9aa31eaf8e2f27

i30817 commented 2 years ago

Fixed.