lfnetwork.com mark read register faq members calendar

Thread: CMI Variable names
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 05-27-2003, 07:05 AM   #1
James Isaac
Moderator
 
James Isaac's Avatar
 
Join Date: Apr 2003
Location: London, UK
Posts: 1,058
LFN Staff Member 
CMI Variable names

I was just wandering if it was possible to see what the variable names in the code of CMI are (you can see the ones in EMI using EMI Resource Viewer).

If it is could someone please upload the tool that allows you to see them. It would be much better than having to look at:

pushVar 00 00 00 74!

James Isaac is offline   you may: quote & reply,
Old 05-27-2003, 07:22 AM   #2
john_doe
 
john_doe's Avatar
 
Join Date: Feb 2002
Location: The pit
Posts: 137
No, it's impossible.
In the CMI scripts there are no symbol names stored, just plain numbers.
In EMI and Grim Fandango you can see all function and variable names because they use the open-source Lua scripting language (www.lua.org) which stores all symbol names in the script files.
john_doe is offline   you may: quote & reply,
Old 05-27-2003, 09:28 AM   #3
James Isaac
Moderator
 
James Isaac's Avatar
 
Join Date: Apr 2003
Location: London, UK
Posts: 1,058
LFN Staff Member 
OK

James Isaac is offline   you may: quote & reply,
Old 05-28-2003, 11:33 PM   #4
Ender
Rookie
 
Join Date: Dec 2001
Location: Perth, Western Australia
Posts: 203
Of course it's not a total loss - you can see what the major ones are by looking at scumm/vars.cpp in the ScummVM source (search for Scumm_v8::setupScummVars). Of course if you were using ScummVM's descumm utilities, it should automatically label these variables anyway.

Stuff thats strictly game puzzle related, you'd have to guess, or try and bug Serge for his personal varnames.ini


-- Ender
Project Leader Thingy,
ScummVM - http://www.scummvm.org/
Ender is offline   you may: quote & reply,
Old 05-29-2003, 08:01 AM   #5
bgbennyboy
Festively Plump
 
bgbennyboy's Avatar
 
Status: Super Moderator
Join Date: Feb 2002
Location: England
Posts: 1,984
LFN Staff Member 
VarNames.ini that rings a bell.

Heh the one I have looks like this:

[Vars]
30 = override_hit
31 = current_room
130 = sputm_debug

Something tells me thats not quite the full one....

bgbennyboy is offline   you may: quote & reply,
Old 05-29-2003, 08:37 AM   #6
Ender
Rookie
 
Join Date: Dec 2001
Location: Perth, Western Australia
Posts: 203
Quote:
Originally posted by bgbennyboy
VarNames.ini that rings a bell.

Something tells me thats not quite the full one....
Yeah, VarNames.ini is the mapping file for CMIDec (of course)... but the only ones I've seen are very incomplete.

I know Serge must have a slightly larger version, because I've seen decompiled scripts from him with named variables. Unless he didn't use his own programs feature, and added them in by hand for posting


-- Ender
Project Leader Thingy,
ScummVM - http://www.scummvm.org/
Ender is offline   you may: quote & reply,
Old 05-30-2003, 02:44 PM   #7
Serge
SCUMMLord
 
Join Date: Mar 2002
Location: Denmark
Posts: 196
I did. I think I had a list of about 20-30 varnames and guesses at varnames. Didn't add the rest, since they were non-engine variables and I wasn't sure if they were used for different purposes in different scripts. Never got down to checking, so...

- Serge
Serge is offline   you may: quote & reply,
Old 06-14-2003, 09:59 PM   #8
bgbennyboy
Festively Plump
 
bgbennyboy's Avatar
 
Status: Super Moderator
Join Date: Feb 2002
Location: England
Posts: 1,984
LFN Staff Member 
I've just dug up a longer varnames.ini on my hd

1 = room_width?
2 = room_height?
3 = cursor_x?
4 = cursor_y?
5 = cursor_screen_x?
6 = cursor_screen_y?
7 = cursor_state?
8 = userface_state?
9 = camera_x
10 = camera_y
11 = camera_dest_x
12 = camera_dest_y
15 = message_stuff?
24 = timedate_year?
25 = timedate_month?
26 = timedate_day?
27 = timedate_hour?
28 = timedate_minute?
29 = timedate_second?
30 = override_hit
31 = current_room
39 = voice_text_mode
42 = current_disk_number
51 = script_before_roomentry
52 = script_after_roomentry
53 = script_before_roomexit
54 = script_after_roomexit
56 = sentence_script
57 = pickup_script
58 = cutscene_script
59 = endcutscene_script
64 = pause_key?
65 = saveload_key?
126 = default_actor
129 = text_delay?
130 = sputm_debug
221 = text_speed
625 = ambient_sounds

bgbennyboy is offline   you may: quote & reply,
Old 06-15-2003, 03:37 AM   #9
James Isaac
Moderator
 
James Isaac's Avatar
 
Join Date: Apr 2003
Location: London, UK
Posts: 1,058
LFN Staff Member 
Great! Thanks!

James Isaac is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Mixnmojo.com > Community Discussion Forums > SCUMM > CMI Variable names

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:08 PM.


LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.