Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Xorcist

Pages: [1]
1
Mega Tokyo SCI Archive / Re:SCI Studio QFG import/export
« on: May 05, 2003, 07:53:09 PM »
plarfem, e-mail me.

Xorcist@POBoxes.com

I think I can help you out a little,
and maybe you can help me as well.

:)

2
Mega Tokyo SCI Archive / Hero's Quest (Import File Format Needed)
« on: February 19, 2003, 11:05:43 PM »
Hi, just wondering if anyone knows the format of the file that gets created at the end of Hero's Quest for import to Quest for Glory 2. The first X bytes seem to be used for the name followed by a period seperator and then a series of 86 bytes that I assume map to the various attribute values. If anyone has any info please pass it my way, otherwise I'll just have figure it out the hard way.

3
Mega Tokyo SCI Archive / Re:Hero's Quest (Import File Format Needed)
« on: April 14, 2002, 12:19:42 AM »
Thanks for the info, I never considered they might be error checking. Now it makes a bit more sense, because that AND insures they only get the first seven bits of the byte. Cool. Now I just have to work on the progressive XORs they're using, so I can reverse the process.

4
Mega Tokyo SCI Archive / Re:Hero's Quest (Import File Format Needed)
« on: April 12, 2002, 04:36:41 PM »
Um... okay, I just noticed statsKey is defined as such:

statsKey = $53

so.... what does that mean? statsKey couldn't be an array, as $53 is nothing more than 83 in decimal. But whenever I've seen brackets elsewhere in the script it represents a string or array, so it's gotta be.

Looks like I'm going to need some serious help deciphering this stuff. If anyone is up to the task, just drop me a line I could use all the help I can get.

5
Mega Tokyo SCI Archive / Re:Hero's Quest (Import File Format Needed)
« on: April 12, 2002, 04:14:06 PM »
Okay, I've made some progress, but not alot. Something that is completely confusing me is the checksums that are supposedly getting generated. The code is as follows:


(= checkSum1 checkSumKey)
(for ((= whichSkill 0)) (< whichSkill (+ NUMSTATS CHECK_DATA)) (+= whichSkill 2))
 (= [statsKey (+ whichSkill 1)] (& [statsKey (+ whichSkill 1)] 127))
 (+= checkSum1 [statsKey (+ whichSkill 1)])
)


Now checkSumKey is a predetermined value, so don't worry about that. But I interpret this code as looping while whichSkill is less than NUMSTATS + CHECK_DATA, each loop incrementing whichSkill by 2. That's pretty staight foward, however the actual code in the loop:


 (= [statsKey (+ whichSkill 1)] (& [statsKey (+ whichSkill 1)] 127))
 (+= checkSum1 [statsKey (+ whichSkill 1)])


isn't quite as clear. It looks to me that the first line is setting the whichSkill + 1 element of statsKey equal to the logical AND of that exact same element and 127. But 127 is 1111111 in binary... so ANDing that with any other number will yield the same number! (i.e. 100 & 127 = 100). So why is this line being run? It seems to be doing nothing (unless my interpretation is wrong). At least the next line makes sense. I'm just continually adding the value stored in the whichSkill + 1 element of statsKey to the checksum, which will end up giving me something, but I haven't gotten as far as using actualy values to determine a checksum yet.

Anyone have any ideas?

6
Mega Tokyo SCI Archive / Re:Hero's Quest (Import File Format Needed)
« on: April 11, 2002, 03:10:43 PM »
Crap! That's right... like I said, so much for my programming degree, that's what years of prolonged exposure to Pascal will do to you. Thanks for the info (I really do need to brush up on my C). I just downloaded SCI Studio, so hopfully there will be a decent amount of info on the scripting language in there. Thanks again, I'll post when I've got some more info on the file generation (either then, or when I need more help).

:)

7
Mega Tokyo SCI Archive / Re:Hero's Quest (Import File Format Needed)
« on: April 11, 2002, 02:35:14 PM »
Stupid me... once again over-analysing everything. I'm pretty sure ^= is setting one pointer equal to another. So much for my programming degree... god I feel stupid. Correct me if I'm wrong though.

8
Mega Tokyo SCI Archive / Re:Hero's Quest (Import File Format Needed)
« on: April 11, 2002, 02:32:25 PM »
Okay I was able to get my hands on some of the script, but don't know a great deal about the original language itself. Can anyone point me in the right direction as far as documentation. Things like data types used when declaring variables an such. Is everything basically a byte (and arrays of bytes)? And operator meanings...

I assume & and | are logical AND and OR respectively, but there is another ^ which normally I would assume is used for exponents, but seems to be used in the manner X ^= Y, so I'm not quite sure what's going on there.

Any help would be appreciated.


9
Mega Tokyo SCI Archive / Hero's Quest (Import File Format Needed)
« on: April 10, 2002, 04:16:08 PM »
Hi, just wondering if anyone knows the format of the file that gets created at the end of Hero's Quest for import to Quest for Glory 2. The first X bytes seem to be used for the name followed by a seperator and then a series of 86 bytes that I assume map to the various attribute values and items held (data after the plain text name might be encrypted, but I can't be sure). If anyone has any info pass it my way, otherwise I'll just have figure it out the hard way.  

Pages: [1]

SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.057 seconds with 20 queries.