Author Topic: SCI32 Templates  (Read 16548 times)

0 Members and 1 Guest are viewing this topic.

Offline Kawa

Re: SCI32 Templates
« Reply #45 on: April 14, 2022, 06:47:00 AM »
I have indeed Played Around.

I've messed with views, mostly, to correct a bug where color #255 was considered remappable (it's not) and ended up skipped over. This also affected backgrounds as they share a format with view cels and thus share a render function. And since scaleSignal had most of its bits unused I uplifted that to add some more remap effects like "replace every non-skip pixel with #0", "draw them as #253", or "draw them as if #253 is drawn on top", which would usually darken them, SCUMM-style.

I've been working on color table remapping like in TSN, too, for a bit.

But compiling on Windows? Well, no. And no multiplayer.

Offline Dhel

Re: SCI32 Templates
« Reply #46 on: April 14, 2022, 03:07:53 PM »
I have indeed Played Around.

I've messed with views, mostly, to correct a bug where color #255 was considered remappable (it's not) and ended up skipped over. This also affected backgrounds as they share a format with view cels and thus share a render function. And since scaleSignal had most of its bits unused I uplifted that to add some more remap effects like "replace every non-skip pixel with #0", "draw them as #253", or "draw them as if #253 is drawn on top", which would usually darken them, SCUMM-style.

I've been working on color table remapping like in TSN, too, for a bit.

But compiling on Windows? Well, no. And no multiplayer.

Interesting. You are doing this with Omar's sci32 source? Do you have it compiling in DOS? Has it worked in recompiling for any games yet?

Offline Dhel

Re: SCI32 Templates
« Reply #47 on: April 14, 2022, 03:33:36 PM »
I have indeed Played Around.

I've messed with views, mostly, to correct a bug where color #255 was considered remappable (it's not) and ended up skipped over. This also affected backgrounds as they share a format with view cels and thus share a render function. And since scaleSignal had most of its bits unused I uplifted that to add some more remap effects like "replace every non-skip pixel with #0", "draw them as #253", or "draw them as if #253 is drawn on top", which would usually darken them, SCUMM-style.

I've been working on color table remapping like in TSN, too, for a bit.

But compiling on Windows? Well, no. And no multiplayer.

What do you mean by you are working on color table remapping like in TSN?

Offline Kawa

Re: SCI32 Templates
« Reply #48 on: April 16, 2022, 11:03:10 AM »
I'm not sure if it was The Sierra Network or some later incarnation, but it had an avatar creator that included the ability to change colors. Except instead of having the exact same hairstyles several times over for different hair colors, they just had the one cel for each hairstyle and such, and remapped it on the fly. I think the DrawCel call was extended to take an Array pointer.

So what I've been doing first is porting SCI32's Arrays to SCI11+.

Edit: found it was the LSCI scripts that use a DrawCel kernel that takes a clut argument instead of scale factors, and a Clut of ByteArray, which in turn is just an Array with its type preset.
« Last Edit: April 16, 2022, 11:17:05 AM by Kawa »

Offline Kawa

Re: SCI32 Templates
« Reply #49 on: April 16, 2022, 11:25:22 AM »
Interesting. You are doing this with Omar's sci32 source? Do you have it compiling in DOS? Has it worked in recompiling for any games yet?
Missed this post. Everything I just described is based on Omer's SCI16 source, version 1.001.100.

I tried to recompile SCI32, but that wouldn't run anything and the code had implied int all over so no semi-modern compiler would take it as-is.

Offline Dhel

Re: SCI32 Templates
« Reply #50 on: April 16, 2022, 11:42:00 AM »
I'm not sure if it was The Sierra Network or some later incarnation, but it had an avatar creator that included the ability to change colors. Except instead of having the exact same hairstyles several times over for different hair colors, they just had the one cel for each hairstyle and such, and remapped it on the fly. I think the DrawCel call was extended to take an Array pointer.

So what I've been doing first is porting SCI32's Arrays to SCI11+.

Edit: found it was the LSCI scripts that use a DrawCel kernel that takes a clut argument instead of scale factors, and a Clut of ByteArray, which in turn is just an Array with its type preset.

Ahh yes i am very familiar with this. This is how the Realm manages its characters as well, and uses a clut system for remapping. I could probably help give you some insight into this.

Offline Dhel

Re: SCI32 Templates
« Reply #51 on: April 16, 2022, 12:00:03 PM »
Interesting. You are doing this with Omar's sci32 source? Do you have it compiling in DOS? Has it worked in recompiling for any games yet?
Missed this post. Everything I just described is based on Omer's SCI16 source, version 1.001.100.

I tried to recompile SCI32, but that wouldn't run anything and the code had implied int all over so no semi-modern compiler would take it as-is.

Ahh ok I see in your sci11 repo now. Thats cool I might play around with that.

Offline Kawa

Re: SCI32 Templates
« Reply #52 on: April 16, 2022, 05:23:08 PM »
Ahh yes i am very familiar with this. This is how the Realm manages its characters as well, and uses a clut system for remapping. I could probably help give you some insight into this.
No need, I've studied it well enough. The hard part would be to actually do the remapping thing.

Offline Collector

Re: SCI32 Templates
« Reply #53 on: April 16, 2022, 07:51:49 PM »
Any interest in some INN source?
KQII Remake Pic

Offline Dhel

Re: SCI32 Templates
« Reply #54 on: April 16, 2022, 09:03:00 PM »
Any interest in some INN source?

Definitely!

Offline Collector

Re: SCI32 Templates
« Reply #55 on: April 16, 2022, 09:07:55 PM »
Here is the interpreter and some system stuff.
KQII Remake Pic

Offline Dhel

Re: SCI32 Templates
« Reply #56 on: April 16, 2022, 09:09:53 PM »
Here is the interpreter and some system stuff.

Thank you! I am excited to check it out!

Offline Dhel

Re: SCI32 Templates
« Reply #57 on: April 16, 2022, 09:17:56 PM »
A little update with the progress of my FotoSCIhop fork. Right now I have the restructuring finished for both view and picture files. I have a modify properties window that allow to modify pretty much every aspect of the view file. This even allows for adding and subtracting loops and cells, and support for editing 10 link points. Right now it is pretty raw, as I plan to clean up the ui a little more before releasing. But I am already having some fun modifying view files to see what everything does exactly. I have also implemented link point drawing so I can we finally see what those vectors are doing and how they work. The pic files need a little more work, but I was able to finish the main restructuring today. I have some ideas to allow for full cell and priority editing directly in fotoscihop.


Offline Dhel

Re: SCI32 Templates
« Reply #58 on: April 16, 2022, 09:33:59 PM »
Here is the interpreter and some system stuff.

Have you been able to build this yet by any chance?

Offline Kawa

Re: SCI32 Templates
« Reply #59 on: April 17, 2022, 04:29:33 AM »
Have you been able to build this yet by any chance?
This is the SCI16 interpreter code and system scripts, and LSCI system scripts but no interpreter. There is source code for the video drivers and such though, which includes a cel renderer that takes remap tables (cluts).

So for me, the answer is "most of it, yes".


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

Page created in 0.047 seconds with 23 queries.