11-01-2011, 01:02 PM | #31 | ||
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
|
Chrono Quest is practically guaranteed to use a completely different method of storing data - it would have to be reverse-engineered from scratch.
And then someone would have to translate the text portion of the game anyhow.
__________________
"God. Can't you people see I'm trying to commit a crime against science and nature here?" -- Reed Richards Last edited by The Fifth Horseman; 11-01-2011 at 01:07 PM. |
||
|
|
11-01-2011, 05:07 PM | #32 | ||
Join Date: Dec 2010
Location: ,
Posts: 202
|
Quote:
I was unable to find a sequence that was spaced more than 127 pixels apart, but that is a very good question. The full screen graphics for this program all have a 3 color rectangular border around the edge. If this were combined with the interleaving, odds are it would probably cause a break in any sequence larger than 127, so maybe the graphics were planned this way to avoid having to code around those situations. If that isn't the explanation, my theory would be that the byte indicating the next repeat sequence location would be FF and the byte at current location plus FF would be FF (or the next repeat sequence location number) until the sequence longer than 127 pixels apart was broken. The original format handles all palette indexes over 127 as the correct palette index except for the first byte of the graphic. If the first byte is larger than 00, it is handled as the indicator for the number of pixels to be repeated. My logic fails when it comes to figuring out what happens to the second byte when the first byte is 00, but it does not matter, at least for this program, since all of the graphics that need to be converted have the first line of on screen pixels set to be a sequence of three or more.
__________________
I can ride my bike with no handlebars |
||
|
|
11-01-2011, 07:54 PM | #33 | ||
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
|
Okay, I've changed it so that it should work within the limitations.
If the program processes 126 single pixels and encounters another one without finding a sequence, it sets the 127th as a one-length repeated sequence. This should work as a fail-safe. Quote:
For the time being, I've added a failsafe that assumes it will mimic RLE's behavior. We'll see how that works out. Will it be okay with you if the utility uses PCX images as input?
__________________
"God. Can't you people see I'm trying to commit a crime against science and nature here?" -- Reed Richards Last edited by The Fifth Horseman; 11-01-2011 at 08:08 PM. |
||
|
|
11-01-2011, 11:33 PM | #34 | ||
Join Date: Dec 2010
Location: ,
Posts: 202
|
I was not clear enough, sorry. The repeat sequence consists of at least three bytes: a repeat sequence count, a palette index and a stop current sequence / next sequence start byte. Outside of these repeat sequences, and even inside with the palette index byte, the values can be anywhere from 00 to FF. Within the repeat sequence, between the palette index and the stop current sequence / next start byte can be another byte with a value in excess of 7F which would allow the current repeat sequence to keep repeating with the new information of repeat count and new palette index. I am not sure if that is any clearer or if it makes things more confusing.
PCX formatting would be great. In fact, when I was looking at the graphic files in hex and searching on the internet, I was almost sure the format used by the game was a PCX. I only have access to versions 0, 2 and 5 to convert the files to though, so the utility either needs to identify one of those versions, or I need to find another program, maybe.
__________________
I can ride my bike with no handlebars |
||
|
|
12-01-2011, 05:28 AM | #35 | ||
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
|
This actually clears things up.
Quote:
PCX formats 2 and 5 (v2.8 with palette and v3.0, respectively) will do just fine.
__________________
"God. Can't you people see I'm trying to commit a crime against science and nature here?" -- Reed Richards Last edited by The Fifth Horseman; 12-01-2011 at 08:12 AM. |
||
|
|
12-01-2011, 01:13 PM | #36 | ||
Join Date: Dec 2010
Location: ,
Posts: 202
|
Quote:
The graphic for the game ending I finished last night. Thank you again for all of your help with this, otherwise it would be a long, long time before I could even attempt to complete it.
__________________
I can ride my bike with no handlebars |
||
|
|
12-01-2011, 01:32 PM | #37 | ||
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
|
Ripping out raw palette indexes from the PCXes works now. All that's left is the interlacing and we're done.
__________________
"God. Can't you people see I'm trying to commit a crime against science and nature here?" -- Reed Richards Last edited by The Fifth Horseman; 12-01-2011 at 01:51 PM. |
||
|
|
12-01-2011, 06:09 PM | #38 | ||
Join Date: Dec 2010
Location: ,
Posts: 202
|
I am excited!
Awesome! That is fantastic! Hopefully, I didn't overlook anything else...
__________________
I can ride my bike with no handlebars |
||
|
|
13-01-2011, 11:43 AM | #39 | ||
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
|
This should do the trick. Let me know if there are any problems.
|
||
|
|
13-01-2011, 02:24 PM | #40 | ||
Join Date: Dec 2010
Location: ,
Posts: 202
|
Quote:
Any suggestions?
__________________
I can ride my bike with no handlebars |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Lost City Of Atlantis, The | Romano | Games Discussion | 26 | 28-02-2014 09:11 PM |
Lost City of Atlantis | Bazly | Gaming Zone | 26 | 10-06-2011 07:04 PM |
City of Lost Children, The | Paco | C | 11 | 28-06-2010 07:29 AM |
City of Lost Children, The | Paco | Approved Requests | 1 | 27-02-2010 09:46 AM |
Atlantis - The Lost Tales [GoG] | Stroggy | Invalid Requests | 43 | 09-01-2010 07:17 PM |
Thread Tools | |
Display Modes | |
|
|
||
  |