inseven / opolua

A compiled-OPL interpreter for iOS written in Lua
https://opolua.org
MIT License
12 stars 0 forks source link

[RMRSol] Internal Error: sound.lua:39: No support for compressed sound data! #450

Open kapfab opened 1 month ago

kapfab commented 1 month ago

Description

Occurs when selecting a card. Until these sound files are handled, this error could probably be silent.

Metadata

Key Value
Title RMRSol
Source URL https://archive.org/download/3-libjune-05/3LIBJUNE05.iso/library%2Fepocgames%2Frmrsol%2FRMRSol.sis

Details

sound.lua:39: No support for compressed sound data!
RMRSOL\DOSOUND:00009191: FF [NextOpcodeTable] 18 CallOpxFunc 0 39 (SYSTEM PlaySoundA)
RMRSOL\DOEVENT:0000225A: 53 [RunProcedure] 0x00A4 (name="DOSOUND" nargs=1)
RMRSOL\PLAY:00000DEE: 53 [RunProcedure] 0x0034 (name="DOEVENT" nargs=0)
RMRSOL\MAIN:00000AA8: 53 [RunProcedure] 0x065C (name="PLAY" nargs=0)
RMRSHARED\TBARLINK:000008FD: 6B [CallProcByStringExpr] nargs=0 type=
RMRSOL\TOOL:000000C0: 53 [RunProcedure] 0x0012 (name="TBARLINK" nargs=1)
stack traceback:
    [C]: in function 'assert'
    sound.lua:39: in function 'sound.parseWveFile'
    opl.lua:1471: in function <opl.lua:1459>
    (...tail calls...)
    opx/system.lua:344: in function 'opx.system.PlaySoundA'
    ops.lua:2457: in function 'ops.CallOpxFunc'
    ops.lua:2334: in function 'ops.NextOpcodeTable'
    runtime.lua:899: in function <runtime.lua:884>
    [C]: in function 'xpcall'
    runtime.lua:1018: in method 'pcallProc'
    runtime.lua:1305: in function 'runtime.runOpo'
tomsci commented 1 month ago

error downgraded from a non-catchable assert to returning an error code to the OPL code in 338c2ed6bd60e5ed3c3665a9ced88d992c767185

kapfab commented 1 month ago

RMRSol now works fine with this fix, thanks!