Author Topic: SQ3: missing defines in decompilation?  (Read 2824 times)

0 Members and 1 Guest are viewing this topic.

Offline ZvikaZ

SQ3: missing defines in decompilation?
« on: July 21, 2020, 08:56:04 AM »
Well, another SQ3 question :-)

When I decompile it with latest SCICompanion, there are compilation errors in rm001.sc - it uses unrecognized constants:
Code: [Select]
Error: (rm001.sc) Undeclared identifier 'dsWIDTH' .  Line: 98, col: 6
Error: (rm001.sc) Undeclared identifier 'dsCOORD' .  Line: 100, col: 6
and more errors follow.

With Phil's version, it just uses numerical values.

i.e.,
Code: [Select]
                    (Display
                        {^D 1989 Sierra On-Line, Inc.}
                        106
                        250
                        100

instead of:
Code: [Select]
(Display
{\04 1989 Sierra On-Line, Inc.}
dsWIDTH
250
dsCOORD

Of course, I prefer Kawa's version...
But what is missing?
'grep' didn't help me find where these are defined.



Offline Kawa

Re: SQ3: missing defines in decompilation?
« Reply #1 on: July 21, 2020, 09:06:32 AM »
They're defined in sci.sh. If you grepped in the game's src folder you wouldn't find it. Are you missing an (include sci.sh) line?

Offline ZvikaZ

Re: SQ3: missing defines in decompilation?
« Reply #2 on: July 21, 2020, 09:57:35 AM »
They're defined in sci.sh. If you grepped in the game's src folder you wouldn't find it. Are you missing an (include sci.sh) line?

Well, I *do* have the (include sci.sh) line, but it doesn't seem to find the sci.sh file.
That explains another error/warning I got:
Code: [Select]
Unable to load \.

If I comment the (include sci.sh), this Unable to load \. disappears.

So, my problem is that SCICompanion can't find the sci.sh file.

Solved it, by copying the latest SCICompanion.exe I was using (which was standalone, without any files), to a directory with older installation of SCICompanion.

Now it's working!
Thanks




Offline Kawa

Re: SQ3: missing defines in decompilation?
« Reply #3 on: July 21, 2020, 10:34:50 AM »
I should put a startup check in...

Offline ZvikaZ

Re: SQ3: missing defines in decompilation?
« Reply #4 on: July 21, 2020, 11:30:06 AM »
I should put a startup check in...

That would be great.
And also, maybe put a zip file with everything, in your stash, instead of just the .exe file.

Offline Kawa

Re: SQ3: missing defines in decompilation?
« Reply #5 on: July 21, 2020, 12:38:44 PM »
Done and done.


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

Page created in 0.037 seconds with 23 queries.