Author Topic: QfGIVCD view corruption when editing 936.v56  (Read 434 times)

0 Members and 1 Guest are viewing this topic.

Offline doomlazer

QfGIVCD view corruption when editing 936.v56
« on: April 04, 2026, 12:35:50 AM »
Here's a weird one.

If you make any changes to QfG4CD view 936, some of the cels get corrupted (see top three buttons in attached image). Doesn't matter if you change a pixel, alter the palette, export every cel to bmp and reimport them, move an origin point, etc.. Saving any change breaks the view in game. Adding new loops and moving cels around makes the corruption manifest differently, but in erratic ways based on my testing so far.

If you're wondering who cares about modifying some dumb shop buttons, the answer is, of course, translators.

I'm hesitant to blame this on a SCICompanion bug, because I'm told PhotoSCIhop complains about the view palette, though I haven't tested that myself.
« Last Edit: April 04, 2026, 04:03:06 AM by doomlazer »



Offline doomlazer

Re: QfGIVCD view corruption when editing 936.v56
« Reply #1 on: April 08, 2026, 10:38:14 PM »
I finally looked up QfGIVCD on the sciwiki. Turns out it's SCI2.1, not SCI1.1 like I assumed.

I'm guessing SCICompanion just isn't able edit those views properly. It's not just 936, probably most the views have issue of some kind when edited. The corruption is expressed in seemingly random ways too based on the few I tested this afternoon.

PhotoSCIchop can modify these views with a bit of effort, but I can't really expect SC to.

SCI2 is also annoying that the Display kernel function was removed, so it's not easy to just print a string of text without a bmp background anymore. Oh, well

Offline Collector

Re: QfGIVCD view corruption when editing 936.v56
« Reply #2 on: April 09, 2026, 08:10:08 AM »
So, out side of template games, is it mostly a matter of SCI2+ capable view and pic editors for Companion to be able work with SCI2 and higher games?
KQII Remake Pic

Offline doomlazer

Re: QfGIVCD view corruption when editing 936.v56
« Reply #3 on: April 09, 2026, 05:04:53 PM »
Seems to be. I've been working with ashlancer's qfg4-enhanced patches recently and everything appears to compile and work in game correctly. I've not encountered any issues and, so far, the translators using the patches haven't reported any problems. Probably why I didn't realize it was sci2.1 - it's working too well except for the views, which still seem to break randomly in different ways.

Edit: There are some issues I forgot about. KString (0x83) and KArray (0x82) will not compile in SCICompanion. KString should use the same hex value as String, so we can skirt that easily. KArray is only used twice in QfG4CD (array.sc and polyedit.sc), but that might require manual hex editing, because Array is a class in QfG4. None of the exported patches in Ash's repo contain KString or KArray, so I haven't actually dealt with them yet. Also pretty sure I've had issues compiling Phant and LSL7 scripts before, but too long ago to remember. QfG4CD seem mostly good, but since I'm only compiling/testing what Ash patched there certainly could be issues I haven't encountered.

I'm looking at Enrico Rolfi's Tradusci, but 2.4 was hosted in google drive, which blocked the downloads because of 'infection'; which is complete nonsense because a google 'scan' of .scr files always finds an infection, until you rename the extension and the virus magically disappears. /rant

Enrico removed the .exe from the source code for 2.4 this morning, so I'll try building it after work, but I understand it's not so much a view editor as a tool to replace cels of the same size with externally edited bitmaps. It will be interesting to see what its limitations are.

As for the original 936.v56 file I was working with in SCICompanion, changing a pixel adds 10k of bytes in four repeating blocks (view has 4 loops) to the end of the file. I'd like figure out what that extra data is supposed to be and if any loop or cel entries actually point to it. Also need to compare other views known to corrupt when saved, but time is in short supply at the moment.
« Last Edit: April 10, 2026, 12:41:22 AM by doomlazer »

Offline lskovlun

Re: QfGIVCD view corruption when editing 936.v56
« Reply #4 on: April 10, 2026, 10:43:06 PM »
If you were compiling for LSL7, it would certainly have been the demo. The demo is SCI2.1 ("late", as ScummVM calls it), but the full game is SCI3. Similarly, QFG4CD is SCI2.1, but the floppy version is SCI2.0. I fixed a bug related to that many years ago (pull request #1467 if you're interested).

Offline doomlazer

Re: QfGIVCD view corruption when editing 936.v56
« Reply #5 on: Yesterday at 12:34:56 PM »
I fixed a bug related to that many years ago (pull request #1467 if you're interested).

In which repo? Not seeing the PR in the IceFall or Kawa githubs.

Offline lskovlun


Offline Kawa

Re: QfGIVCD view corruption when editing 936.v56
« Reply #7 on: Yesterday at 03:14:06 PM »
Wait. How does that relate to view corruption?

Offline lskovlun

Re: QfGIVCD view corruption when editing 936.v56
« Reply #8 on: Yesterday at 03:46:44 PM »
 It was an aside. I was talking about "late" SCI2.1 versus SCI3. That's also why I didn't link the first time.


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

Page created in 0.041 seconds with 17 queries.