ResidualVM logo Forum Index - ResidualVM website - Contact us - Rules Login    Register     Search curved edge
It is currently Sun Oct 20, 2019 2:44 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Aug 19, 2013 3:08 pm 
Offline

Joined: Mon Aug 19, 2013 2:47 pm
Posts: 2
Hi everyone,

the last days I analyzed the GrimE engine through the source code of the ResidualVM project because I was interested in how certain functions in an adventure game engine are done. Since I'm familiar with C++ and (a bit) lua and was playing all the lucas arts classics I remembered that Grim Fandango used these techniques and I was able to understand/learn a lot from the engine since now.
The thing I wondered about is, if one is able to read the actual lua scripts used to build the heart of the game? I used bgbennyboy's LAB file Creator/Dumper to dump the data files. Now when opening the lua scripts all it shows are strange signs and none of the files are readable. I assume they are encrypted or something?
So I tried to track down the way of the
Code:
dofile("_system.lua");
call in lua.cpp in the engine folder. But it led me somewhere into the modified lua files and at some point I completely lost track what's going on.

I would appreciate any comments/help on this topic since I wasn't really able to find anything useful in the internet.

Greets, Lex


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 19, 2013 10:47 pm 
Offline
ResidualVM Developer
User avatar

Joined: Wed Nov 24, 2010 2:44 am
Posts: 323
The scripts are compiled, a process which in this case is somewhat reversable, see our residualvm-tools-repos for a tool named "delua".


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 20, 2013 1:22 am 
Offline

Joined: Mon Aug 19, 2013 2:47 pm
Posts: 2
Thanks for your help..since another decompiler didn't work I thought this could not be the key. Took me a while to compile the tools under windows but it is finally working and I managed to write the Scripts to readable files.
Once again: Thank you.

Greetings, Lex


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Forum design by ScummVM team, icons by raina, adopted for ResidualVM
curved edge   curved edge