Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - doomlazer

Pages: 1 2 [3] 4 5 ... 34
31
SCI Syntax Help / Re: SCI1.1 File::readString first byte
« on: October 25, 2025, 10:43:23 AM »
I guess it is the trailing 0x00 string terminator. Kinda annoying though. It should know to stop reading via the max size. Why do I need to +1? Also, if you set max size larger than the file it knows to stop anyway. *shakes fist at clouds*

32
SCI Syntax Help / SCI1.1 File::readString first byte
« on: October 24, 2025, 10:43:07 PM »
Consider a text file containing the alphabet. If we use the File class's readString with a max size property of 5 and then print the string, the output is 'abcd', if the max size is 1, then we get a blank text box; max size of 2 results in 'a'.

A hex editor confirms that the first byte of the text file is 0x61 (a), so what's up with that 'empty' first byte in the max size property?


33
SCI Syntax Help / Re: SCICompanion compile issues with LB2CD
« on: October 10, 2025, 04:35:30 PM »
I guess it does explain that right in the notes above the instruction list. Makes sense now. ty

Edit: SC also seems to like to replace whitespaces in instance names; such as changing 'Talking Bear' to 'Talking_Bear'

34
SCI Syntax Help / Re: SCICompanion compile issues with LB2CD
« on: October 10, 2025, 03:53:27 PM »
As I'm looking at the byte code, I notice recompiling might be making some small instruction changes. Like from 0x00 to 0x01 and 0x02 to 0x03. This reference seems to show there are many duplicate instructions that take the same number of bytes as parameters.

Code: [Select]
  op 0x00: bnot (1 byte)
op 0x01: bnot (1 byte)
Binary not:
acc ^= 0xffff;
  op 0x02: add (1 byte)
op 0x03: add (1 byte)
Addition:
acc += pop();

So why all the duplicates? Place holders? 

35
SCI Syntax Help / Re: SCICompanion compile issues with LB2CD
« on: October 10, 2025, 10:37:23 AM »
oops that was a list of files to check for the problem. I assumed they all did as rm710 has the ramses a & b swap.

36
SCI Syntax Help / Re: SCICompanion compile issues with LB2CD
« on: October 09, 2025, 10:04:46 PM »
This order switching seems to happen with other files as well. in rm710 ramse_a & ramses_b get flipped, but that seem benign.Here's a list Avo gave me of scripts that seem to do this:

ClickMenu.sco
Gauge.sco
InvI.sco
Lesbian Flapper.sco
Lo Fat.sco
O'Riley.sco
Talking Bear.sco
Main.sco
rm220.sco
‎rm240.sco
‎rm260.sco‎
‎rm280.sco
rm710.sco
rm770.sco

37
SCI Syntax Help / Re: SCICompanion compile issues with LB2CD
« on: October 09, 2025, 05:20:26 PM »
I think your copy is fine. To clarify, it decompiles with the correct values, same as you posted in the image. It's only if you compile main that it swaps them around. It's a bit baffling why that happens when no changes have been made.

38
SCI Syntax Help / Re: SCICompanion compile issues with LB2CD
« on: October 09, 2025, 10:45:31 AM »
but if you were to compile lb2 main I'm assuming it would swap them, witch is spooky

39
SCI Syntax Help / Re: SCICompanion compile issues with LB2CD
« on: October 09, 2025, 10:36:39 AM »
Ok I guess you have to compile script 0 in SC for it to swap the values in main.sco. I thought decompiling all scripts was enough, but testing again proves otherwise.

Still weird it swaps them.

40
SCI Syntax Help / Re: SCICompanion compile issues with LB2CD
« on: October 09, 2025, 08:51:32 AM »
ah, I know Avo tried both an icefall games and kawa build with the same results. I always use a 'recent' nightly build, though I'm probably using something from July-ish. Will double check with the latest when I'm able, but not sure why you can't reproduce it.

41
SCI Syntax Help / Re: SCICompanion compile issues with LB2CD
« on: October 09, 2025, 08:34:50 AM »
Hmm... I thought there was only one version of LB2CD and I'm experiencing the same results as avo323. I believe mine came from GOG?

42
SCI Syntax Help / SCICompanion compile issues with LB2CD
« on: October 08, 2025, 09:14:16 PM »
SCICompanion seems to have issues with LB2CD where scripts expect WrapMusic to have the class value of 0x86 and Actions to be 0x2E, but decompiling results in a .sco file where WrapMusic is 0x2E and Actions are 0x86.

Spanish translator Avo323 discovered if you swap the WrapMusic and Actions class definitions in main, it compiles other scripts with the correct class values that they expect and you can generate working patches that don't break WrapMusic; though if main (and .hep) is exported as a patch with this method it crashes the game. Actions is defined in both main and objCue and doesn't seem to care what the class value is (or is only using objCue version), where as a broken WrapMusic breaks audio in game; sometime resulting in later crashes because of undisposed audio.

So we have a solution to create working patches (barring changes to main, which can be hex edited), but it's still frustrating that it's unknown where the fundamental issue lies. LB2 floppy was missing a vocab file, but this seems specific to a 0.sco problem. It would be better to understand the cause, but I guess I can live without knowing if need be.

Is it a case of some Sierra dev making changes to main before release and not recompiling the other scripts? Curious if anyone has insight to this, before moving on.

43
SCI Development Tools / Re: SCI01 Template Game
« on: September 27, 2025, 12:31:41 AM »
You can export all patches in a few clicks with Game>Properties>Manage as patch files. Unchecking the option rebuilds resource.000 (Kawa - this generates a bunch "confirm delete y/n" alert pop-ups that might be good to suppress (tested w/ LB2)), but if the template game doesn't know about the new files I assume it's not going to import them into resourse.000. Or maybe it does, I haven't tested

44
SCI Syntax Help / Re: Joke text resoruce LSL3
« on: September 04, 2025, 01:24:04 AM »
Checking a thousand times seems wasteful and, as mentioned, has a chance not tell every joke each playthrough. Would Fisher-Yates save or increase resource usage in an SCI implementation here? That's &tmp [jokeList 42], right? Seems smaller than most string literals.

I guess with only 42 jokes you might not burn through all 1k iterations, but you could shuffle once on room load and increment over the list. It would greatly simplify the code; not that the Sierra devs had time for optimization.

You could probably assign the initial values in a loop instead of defining [jokeList 42] = [0 ... 41] in local. ScummVM might throw a console warning though.

45
Do you have a link to the tools?

Pages: 1 2 [3] 4 5 ... 34

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

Page created in 0.023 seconds with 19 queries.