English grim.tab size

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

Post Reply
jdm
Posts: 3
Joined: Wed May 27, 2009 7:01 am

English grim.tab size

Post by jdm »

In order to make residual run Grim for me, I had to change the size of the English grim.tab to 362164 in detection.cpp. It might be because I'm not running a patched version, perhaps?

Also, I started playing through the game from the start, and ran into an assertion error at the end of the movie entering the land of the living:

residual: ./common/str.h:185: char Common::String::operator[](int) const: Assertion `_str && idx >= 0 && idx < (int)_size' failed.

I'll trying and run the game again under gdb and reproduce it when I have some free time.
jdm
Posts: 3
Joined: Wed May 27, 2009 7:01 am

Post by jdm »

Looks like I got the same assertion while skipping a line of dialog in the computer screen in Don's office as well.

residual: ./common/str.h:185: char Common::String::operator[](int) const: Assertion `_str && idx >= 0 && idx < (int)_size' failed.

Program received signal SIGABRT, Aborted.
0x001c4416 in __kernel_vsyscall ()
(gdb) bt
#0 0x001c4416 in __kernel_vsyscall ()
#1 0x00a5b460 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2 0x00a5ce28 in abort () at abort.c:88
#3 0x00a5440e in __assert_fail (
assertion=0x80e4d3c "_str && idx >= 0 && idx < (int)_size",
file=0x80e4d2c "./common/str.h", line=185,
function=0x80e5980 "char Common::String::operator[](int) const")
at assert.c:78
#4 0x0804d3c6 in Common::String::operator[] (this=0xbfffe460, idx=-1)
at ./common/str.h:185
#5 0x08074195 in Grim::TextObject::createBitmap (this=0xdb4b8c8)
at engines/grim/textobject.cpp:134
#6 0x0806410a in ChangeTextObject () at engines/grim/lua.cpp:2171
#7 0x0807d52b in callC (f=0x806400c <ChangeTextObject>, base=7)
at engines/grim/lua/ldo.cpp:147
#8 0x0807dec7 in Grim::luaD_call (base=7, nResults=0)
at engines/grim/lua/ldo.cpp:264
#9 0x0808c0da in Grim::luaV_execute (ci=0xd9d7c64)
at engines/grim/lua/lvm.cpp:668
#10 0x08088e97 in Grim::lua_runtasks () at engines/grim/lua/ltask.cpp:258
#11 0x0805893a in Grim::GrimEngine::luaUpdate (this=0x8180a50)
at engines/grim/grim.cpp:545
#12 0x08059a7a in Grim::GrimEngine::mainLoop (this=0x8180a50)
---Type <return> to continue, or q <return> to quit---
at engines/grim/grim.cpp:730
#13 0x08059eeb in Grim::GrimEngine::run (this=0x8180a50)
at engines/grim/grim.cpp:408
#14 0x0804dfd6 in runGame (plugin=0x8141188, system=@0x813b188,
edebuglevels=@0xbffff104) at base/main.cpp:161
#15 0x0804eea8 in residual_main (argc=2, argv=0xbffff3f4) at base/main.cpp:242
#16 0x0804c909 in main (argc=2, argv=0xbffff3f4)
at backends/platform/sdl/sdl_driver.cpp:1195
(gdb)

(gdb) f 5
#5 0x08074195 in Grim::TextObject::createBitmap (this=0xdb4b8c8)
at engines/grim/textobject.cpp:134
134 for (; msg != ' '; i--)
(gdb) p i
$1 = 4294967295
(gdb)

That would explain it.
jdm
Posts: 3
Joined: Wed May 27, 2009 7:01 am

Post by jdm »

Some more detective work:

(gdb) p _width
$4 = 480
(gdb) p lineWidth
$5 = 0
(gdb) p _x
$6 = 12194464
(gdb)

That's a very large coordinate for a 640x480 screen.
User avatar
Graxer
Posts: 453
Joined: Sat Sep 13, 2008 2:24 pm
Location: Scotland

Post by Graxer »

As far as I know its currently impossible to get any futher than arriving at the land of the living. It has an error then for me too.
User avatar
MeddlingMonk
Posts: 221
Joined: Wed Jan 21, 2009 10:06 pm

Post by MeddlingMonk »

To share some recently-acquired knowledge: Add to your config file the line "last_set=" (without the quotes) and use the debug sets info from the wiki to tell ResidualVM what location in the game to start with. For example, if you put in "last_set=cb.set" the game will start on the balcony outside Manny's office in Year Two.
George22
Posts: 26
Joined: Wed May 13, 2009 8:55 pm

The game seems to be unknown

Post by George22 »

I got this message on start of Grim Fandango (english version):
The game in 'I:\GRIMDATA\' seems to be unknown.
Please, report the following data to the ScummVM team along with name of the game you tried to add and its version/language/etc.: "grim.tab", "cfb333d6aec260c905151b6b98ef71e8", 362164
User avatar
gamin
Posts: 28
Joined: Wed Mar 15, 2006 2:50 pm
Location: Belgium

Post by gamin »

I second that : exactly the same error message since detection.cpp has been changed on may 25th (grim.tab filesize is supposed to be 362212, while mine directly copied from original CD is 362164). am I missing something ?

also, here are the informations for the french version (tested and compiled my own, working like a charm) :

"grim.tab", "3bd00ca87214862c012ac99e1758dd83", 385763
Post Reply