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 - lskovlun

Pages: 1 2 [3] 4 5 ... 59
31
SCI Syntax Help / Re: Heap Space Fun
« on: September 21, 2025, 06:19:00 PM »
Well, the fact that the object list is garbled is a good hint. It means there are way too many objects. It occurs to me that there is no way to get a similar, complete list in scummvm (even though you can look up objects by name), otherwise I'd say you can still use scummvm for debugging :)

The main changes are MIDI is differen (and SCI1 compatible), you've got more memory, and there's a pathfinder if you need/want it.anything else of note?


32
SCI Syntax Help / Re: Heap Space Fun
« on: September 19, 2025, 11:02:38 PM »
Ha, one could write a heap visualizer taking SCI0 savegames as input. They aren't compressed, but of course the format is going to vary depending on the version. But I think the main takeaway here is that the heap is not very fragmented, there's just very little memory left. Maybe you'll have to scale back some of the animations/actors.

It's not possible to use the SCI0 template game in SCI01. There was a property lookup table (VOCAB.994?) that provided very fast property lookup for the properties where speed was an issue. That would have to be regenerated, and the standard classes modified to suit. You'd have to switch to the SCI01 template game

But even better? Just switch to ScummVM! Its engine uses a completely different design where this isn't a problem.

33
I'm not sure how much good it would do. In fact I question some of the design choices made in SCI3. They only made four games in SCI3 proper (and SCI3 was never ported to the Mac - the Mac versions were always SCI 2.1) - but part of the re-architecting seems to have been so that they could make those DLL-based games while keeping the backend (the Antara series, Shivers 2...). If indeed the only problem here is numerical constants, that doesn't justify lots of changes to the compiler.

34
That version of SC is not the latest one, unfortunately. Sierra created The Realm with SCI 2.1, a product which was sold off and has been in development since, and that is the version of the compiler that we have. However, Sierra continued their own development, from which came SCI3 and the CSC script format. We do not have those tools.

I agree with Kawa about the solution.

35
SCI Syntax Help / Re: Joke text resoruce LSL3
« on: September 03, 2025, 09:38:28 PM »
The original code (which we have) has a LAST_JOKE define which is equal to 42. The toldJoke array is a bit larger, because
Code: [Select]
        [toldJoke       (+ 3 LAST_JOKE)]                        ;**     a little extra never hurts
The code will try 1000 times to tell all the jokes (I don't care to calculate the probability of that happening), and it it can't, it jumps straight to the duck sequence. If we succeed before that, of course it doesn't take 1000 jokes.

36
SCI Syntax Help / Re: Joke text resoruce LSL3
« on: September 03, 2025, 07:08:08 AM »
The way it's set up, a joke has a maximum of five messages. Any excess ones are marked by a space character (which is impossible to see in the screenshot). And it's not hex; it seems to be a joke number and an alphabetic character. But that's a red herring; the only thing the code looks at is that space character.

37
AGI Development Tools / Re: AGI AI Agent
« on: September 02, 2025, 06:03:12 PM »
With SCI (1 and later), you'd get pathfinding for free. One less problem to solve.

38
SCI Syntax Help / Re: Money, cash greenback
« on: August 20, 2025, 01:22:35 PM »
BTW, if you don't intend to distinguish crowebar and crowbar anywhere, you can just give them a single group number. That's kind of the point of them.

39
SCI Syntax Help / Re: Money, cash greenback
« on: August 20, 2025, 01:11:05 PM »
Kawa, maybe we need to make this print group numbers in decimal? The use cases for hex notation here are rather narrow (mainly related to the special tokens which are located at the top of the 12-bit range). And the interpreter uses decimal.

40
SCI Syntax Help / Re: Money, cash greenback
« on: August 20, 2025, 11:38:52 AM »
SCI Companion shows the group number in hex for some reason. In that case, you need to find group numbers 58 (hex) and 59 (hex) instead.

41
SCI Syntax Help / Re: Money, cash greenback
« on: August 19, 2025, 01:47:50 PM »
What's the best way to troubleshoot "Bad Said Sepc hit return to continue / 88 , 89 )" errors?
Those numbers look like they are word numbers. Try looking them up on the vocab screen in Companion. That'll tell you which spec is at fault (hopefully).

42
SCI Syntax Help / Re: Money, cash greenback
« on: August 14, 2025, 07:54:16 PM »
I am confused now. Don't the system classes handle this (using the saidMe mathod)?

To clarify, I see this in main.sc of LSL3 (in a cond block in handleEvent):
Code: [Select]
((Said 'look>')
(cond
...
((= temp2 (gInventory saidMe:))
                                                (if (temp2 ownedBy: gEgo)
                                                        (temp2 showSelf:)
                                                else
                                                        (Print 0 62) ; "You see nothing special."
                                                )
                                        )


43
You'd want to have a driver that could take its configuration settings from resource.cfg. SCI0 does not allow that.

44
Is this still SCI0? Because there, the answer seems to be no. (Think about how SQ3 for PC includes a digital sample in the intro, but no way to play it) SCI1/SCI1.1 are a different story.

45
The where file is shared by a number of tools, most notably the development version of the SCI interpreter. Instead of resource files, it finds the files in the directories specified by that file.

EDIT: Oh, and the MIDI engine was rewritten quite substantially at one point. It is one of the things I use to distinguish SCI0 from SCI01 and later (I don't always agree with the choices ScummVM has made in that department).

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

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

Page created in 0.048 seconds with 19 queries.