gemot encubed  

Go Back   gemot encubed > Gemot > Technical Issues

Technical Issues For bug reports, problem solving, and help running Japanese software.

Reply
 
Thread Tools Display Modes
  #1  
Old 2011-12-01, 20:44
Pencil Pencil is offline
Visitor
 
Join Date: Nov 2011
Posts: 5
Question $RLDEV? (A kprl question)

I'm currently attempting to translate Kichiku Megane, an old RealLive engine VN. I'm having trouble de-encrypting SEEN.txt into anything that resembles anything, so I thought I'd try eglaysher's updated fork of RLDev. When I boot up kprl in the command line, though, I get the following error:
Quote:
Error:Error:unable to locate reallive.kfn. Try setting $RLDEV to your RLDev installation directory.
As fair as I know, the installation directory is usually the folder where all the program files are kept after a program is installed, but as far as I can tell, I never actually installed any part of RLDev; it's all run from the folder I downloaded. $RLDev doesn't seem to refer to anything contained therein, and I can't find any info about it online, reallive.kfn is in the lib folder.

This may be a newb question, but how do I set $RLDev like the program wants me to?
Reply With Quote
  #2  
Old 2011-12-01, 23:06
jyuichi's Avatar
jyuichi jyuichi is offline
Obsessive
 
Join Date: May 2007
Location: San Diego
Posts: 294
Default

Quote:
Originally Posted by Pencil View Post
This may be a newb question, but how do I set $RLDev like the program wants me to?
Type this in to command line:

HTML Code:
set RLDEV=PATH_TO_YOUR_RLDEV
Follow the RLDev manual for the rest (or see this thread when I asked the same question for another game 5 years ago)
__________________
Twitter: @jyuichi
Reply With Quote
  #3  
Old 2011-12-02, 07:53
Pencil Pencil is offline
Visitor
 
Join Date: Nov 2011
Posts: 5
Default

That worked perfectly, thanks. My only question now is, when I did managed to dissamsemble SEEN into its various parts, I got a lot of different error messages about the resulting code. A whole bunch of "out of parameters", an unimplemented function, and the odd message "expected '{', found 0x0a in read_select". I asked a few other people, and apparently I need to go and fiddle around with the code of the actual disassembler. I haven't touched a drop of code in about two years, so I was wondering if you could give me a small heads up about what in the disassembler's code I want to be looking for that could cause these errors.

I forgot to mention this, but I'm using eglaysher's 98772 fork of RLDev.
Reply With Quote
  #4  
Old 2011-12-26, 12:21
DrBlue
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Pencil View Post
My only question now is, when I did managed to dissamsemble SEEN into its various parts, I got a lot of different error messages about the resulting code.
If you're trying to disassemble a game using RealLive v1.5 or later, you'll have to figure out the game specific key, passed to rldev with -y. I vaguely remember getting bytecode parsing errors when trying to disassemble one game or another.

Quote:
Originally Posted by Pencil View Post
A whole bunch of "out of parameters", an unimplemented function, and the odd message "expected '{', found 0x0a in read_select". I asked a few other people, and apparently I need to go and fiddle around with the code of the actual disassembler. I haven't touched a drop of code in about two years, so I was wondering if you could give me a small heads up about what in the disassembler's code I want to be looking for that could cause these errors.
The rldev parser is incomplete. If you intend to debug this, you should:
  • Keep the rldev manual open, especially section 5.7.1, which is about the select command. (I assume this is where you'll be working due to read_select being in the error message.)
  • You'll probably want to start in src/kprl/disassembler.ml. read_select is defined there.
  • For debugging purposes, you'll want to run kprl with -x for extract instead of -d for disassemble. This will give you a bunch of .uncompressed files that are the decrypted bytecode, but not disassembled. Look at these files in a hex editor for what binary string isn't being parsed correctly.
  • If you do figure out the new select syntax, please send a pull request on github so I can integrate your patch.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
a question about RLdev Calorate Technical Issues 5 2017-01-30 13:07
Error with Kprl hqhoangvuong Technical Issues 0 2015-12-22 23:28
A question about rlBabel and RLDev Kit RazoR Production & Help 2 2014-08-27 13:44
a question about rldev and rlbabel Unregistered Technical Issues 1 2007-09-03 23:19
Sorry,may I ask a question about RLDEV? Konomii Technical Issues 22 2006-07-06 04:47


All times are GMT -8. The time now is 22:12.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.