Author Topic: SCI Companion - resource compression type  (Read 7100 times)

0 Members and 1 Guest are viewing this topic.

Offline gumby

SCI Companion - resource compression type
« on: October 12, 2010, 10:22:12 PM »
Okay, so how does one go about changing the compression type on a resource? When I open up SQ3, and go to the text resources, there are a handful that have no compression and the rest are LZW.  However, I cannot see how one can either change the compression or specify what the compression should be upon a resource when it's created.


In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition

Offline gumby

Re: SCI Companion - resource compression type
« Reply #1 on: October 23, 2010, 05:35:27 PM »
 I checked this out in Studio & setting compression options also do not seem to be there.
In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition

Offline Collector

Re: SCI Companion - resource compression type
« Reply #2 on: October 23, 2010, 07:30:34 PM »
Too bad that the the source for Companion has not been released. At least there is the source for Studio is available. If Omni can make any headway with Studio VGA to make it usable, the source will be there for it, too. He hasn't been around much lately, though.
KQII Remake Pic

Offline gumby

Re: SCI Companion - resource compression type
« Reply #3 on: October 23, 2010, 10:14:00 PM »
I could always go diving into the Studio code for the algorithm - I know that Companion can read LZW compressed resources (surely Studio can too).  I'm also guessing (haven't tried it) that you can edit & save a LZW compressed resource & it would save it with LZW.  Just seems odd that setting the compression type option isn't available.
In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition

Offline troflip

Re: SCI Companion - resource compression type
« Reply #4 on: January 05, 2011, 06:00:54 PM »
I don't believe that SCI Studio or SCI Companion have the option to *save* resources with any compression algorithms.
Check out my website: http://icefallgames.com
Groundhog Day Competition

Offline gumby

Re: SCI Companion - resource compression type
« Reply #5 on: January 05, 2011, 07:28:11 PM »
Yeah, no saving with compression with Companion.   Studio is the same...  I looked into this when I was working on a tool to extract, modify, then reload text resources from resource files.  Thanks for the confirmation that I wasn't missing some option, though.  

I still haven't tried opening up a compressed resource & modifying it.  Would it save the entire resource in an uncompressed format?  I suppose it would.

Good to see you are still around!
« Last Edit: January 05, 2011, 07:39:59 PM by gumby »
In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition

Offline troflip

Re: SCI Companion - resource compression type
« Reply #6 on: January 05, 2011, 07:59:30 PM »
Yes, it would save it uncompressed. The code to save it in one of the compression formats just doesn't exist in SCI Studio (I could be wrong, but I think that's correct) or SCI Companion.

I'm curious why you'd even want this though. It was important when the resources existed on floppy disks, but even the uncompressed sizes are tiny by today's standards.
Check out my website: http://icefallgames.com
Groundhog Day Competition

Offline Omni

Re: SCI Companion - resource compression type
« Reply #7 on: January 05, 2011, 08:55:41 PM »
Yes you are correct, SCI Studio does not recompress the resources. I believe the main 2 reasons are it takes a trivial amount of extra space and the patents surrounding LZW

Offline gumby

Re: SCI Companion - resource compression type
« Reply #8 on: January 05, 2011, 09:17:23 PM »
The main reason is to keep prying eyes from viewing the resource files for hints for solving games.  Obviously, this would only impact the text resources - and only from a casual browser; someone who was really motivated could decompress them.

I thought it might have to do with patents.  But wouldn't that work both directions, encrypting & decrypting?  I also thought I saw somewhere that those had (recently) been lifted or that LZW encryption algorithms had been released to the public, or something along those lines.
« Last Edit: January 05, 2011, 09:19:59 PM by gumby »
In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition

Offline Omni

Re: SCI Companion - resource compression type
« Reply #9 on: January 05, 2011, 09:54:48 PM »
You are allowed to decompress LZW but not compress. Compress requires royalties and payments =p. Similiar to how h264 is patented but royalty free for so many years to get market penetration.

Now as to LZW expiring I would not be surprised, I know it was close.

Offline gumby

Re: SCI Companion - resource compression type
« Reply #10 on: January 05, 2011, 10:09:26 PM »
Yeah, that matches what I was roughly thinking about LZW.  

Wikipedia indicates that:
Quote
On June 20, 2003, this patent on the LZW algorithm expired [1]. All patents on the LZW algorithm worldwide have also expired (see Graphics Interchange Format#Unisys and LZW patent enforcement).

In SCI0, there is also Huffman encoding that we could use.  I may be the only interested party in this endeavor & might implement it (either LZW or Huffman) as an 'after-compilation' solution (external tool).
« Last Edit: January 05, 2011, 10:12:18 PM by gumby »
In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition

Offline MusicallyInspired

Re: SCI Companion - resource compression type
« Reply #11 on: January 06, 2011, 06:40:02 PM »
Troflip! Nice to see you!
Brass Lantern Prop Competition


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

Page created in 0.049 seconds with 23 queries.