Community

SCI Programming => SCI Development Tools => Topic started by: doomlazer on October 14, 2021, 02:15:25 PM

Title: SCI10 SCI1.1 export/import
Post by: doomlazer on October 14, 2021, 02:15:25 PM
I'm finding exported views, pics, and sounds have problems going between SCI10 and SCI1.1. Are the formats supposed to be incompatible between the two versions? If I export a view from PQ3 and import it into any of the template games I either get a grey box or wildly garbled cels.

Is there a tool to covert these without cut&pasting each cel? I get having to do that between AGI/SCI, but from SCI1 to SCI1.1 seems like it should be compatible.

Title: Re: SCI10 SCI1.1 export/import
Post by: MusicallyInspired on October 14, 2021, 07:28:25 PM
There's definitely a difference in the sound resources for sure. SCI1.1 backgrounds can also be full 200 pixels high or standard 190 so there's a difference there. If those have differences then the Views likely do as well.
Title: Re: SCI10 SCI1.1 export/import
Post by: Collector on October 14, 2021, 11:55:33 PM
I seem to remember that there were a few resource version converters in Omer's collection of Sierra internal tools.
Title: Re: SCI10 SCI1.1 export/import
Post by: Kawa on October 15, 2021, 02:52:24 AM
Views do indeed have version differences. There's a VIEW2NEW in the internal tools, but good luck getting that to work.
Title: Re: SCI10 SCI1.1 export/import
Post by: doomlazer on October 15, 2021, 09:53:14 AM
I'll look into batch exporting resources from command line version of SV. If I can export all the cels faster, it's not too bad rebuilding the view loops with "import image sequence" in SC.

Edit: using 'graphics.exe xxx.v56' from SCIViewer (CLI) exports the VIEW cels quickly as individual .bmp files.

I wish it was possible to copy and paste background pic commands between instances of SC. Importing pics from .bmp works great, except there isn't a way to import the priority and control as well, so it's very slow to recreate them by hand. Oh, well. Sorry for whining.
Title: Re: SCI10 SCI1.1 export/import
Post by: Kawa on October 15, 2021, 11:16:34 AM
They're valid enough complaints.
Title: Re: SCI10 SCI1.1 export/import
Post by: Collector on October 16, 2021, 09:25:17 AM
It is too bad that the source for SV no longer exists.
Title: Re: SCI10 SCI1.1 export/import
Post by: Kawa on October 16, 2021, 10:02:47 AM
I think just the ability to import old-style V56 files into SCI11 games entirely within SCI Companion would be nice enough. Detect that the file is the old format, convert it on the fly.

It's too bad I for one couldn't begin to imagine how to implement such a thing...

THAT WAS CLASSIFIED A LIE. This very thing is now implemented and the only thing you should need do after importing an old-format view is to re-save it. Just put a transparent pixel where there already is one in the cel of your choice. Just... don't try to import EGA, it breaks down on the cellular level :3

Now available from my signature.
Title: Re: SCI10 SCI1.1 export/import
Post by: MusicallyInspired on October 16, 2021, 03:04:42 PM
Wooo!
Title: Re: SCI10 SCI1.1 export/import
Post by: doomlazer on October 16, 2021, 04:25:34 PM
Works great. Thank you! I didn't even need to re-save for view I tested. Every thing came in correctly on import!

Title: Re: SCI10 SCI1.1 export/import
Post by: MusicallyInspired on October 16, 2021, 05:19:35 PM
Does it also work vice versa?
Title: Re: SCI10 SCI1.1 export/import
Post by: Kawa on October 16, 2021, 06:13:43 PM
Works great. Thank you! I didn't even need to re-save for view I tested. Every thing came in correctly on import!
NOT RECOMMENDED! Just that SCI Companion can now handle SCI1.0 views in an SCI1.1 game doesn't mean the interpreter can! When I opened my test game in yesterday's SCI Companion, Larry rendered as a single gray square after all. Re-saving forces the view to become the new format, and your game won't hang the moment it tries to load the view.

Does it also work vice versa?
... No :3
Title: Re: SCI10 SCI1.1 export/import
Post by: doomlazer on October 16, 2021, 06:49:20 PM
After I posted I realized, there was probably a reason you said to do it the first place!

Your version also seems to fix an issue I was having with reliably running a game through SC, so kudos for that.
Title: Re: SCI10 SCI1.1 export/import
Post by: Kawa on October 16, 2021, 07:27:40 PM
I'm just kinda impressed that it took less than half an hour after saying I probably wouldn't be able to do it, to actually do it X3


I have confidence issues.
Title: Re: SCI10 SCI1.1 export/import
Post by: doomlazer on October 16, 2021, 09:00:31 PM
I think it's a big improvement. Very useful, thank you!