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 ... 25
1
AGI Development Tools / Re: WinAGI is Back
« on: February 08, 2018, 05:41:17 PM »
Doesn't work too well with SCI Companion though. The one time I tested something with an agi tool, it worked fine.

2
I'll have a look sometime during the holidays...

3
The attached script illustrates it. You set the vanishing point (vanishingY, really) of your room, and call setScale on an actor with a single argument. The actor now scales according to the room perspective. See, for instance, Ernie Leach's office in LB2 or the starting room in SQ5, both of which have odd perspectives and use this feature.

4
I think SCI can do that out of the box if I understand you correctly, I'd have to try it out though...

5
AGI Syntax Help / Re: AGI Random Number Generator
« on: November 19, 2017, 01:36:24 PM »
Lance Ewing HWM and NewRisingSun dug up some authentic source code a while ago and posted it in another thread:
http://sciprogramming.com/community/index.php?topic=1418.15

It's not all there, but happily, the Random function seems to be among the scraps.

6
SCI Syntax Help / Re: Memory Fragmentation in QFG2
« on: November 19, 2017, 12:43:55 PM »
I'm a bit confused here. I was expecting QfG2 to show the same two-button dialog as the later SCI1 games (Memory fragmented  [Who cares] [Debug]). The one in QfG2 actually has only one button, but it should still bring up the debugger as shown (from which the procedure in my first post was supposed to work). It also seems that, for QfG2 to check for fragmentation at all, it must be in the 'suck blue frog' mode? I wanted a snapshot as close to the crash as possible, so this would be preferable to opening the debugger manually, but if there's no other way...

Also, you did finish your playthrough, didn't you?

7
SCI Syntax Help / Re: SCI 1.1 - DrawPic & dpOPEN_INSTANTLY
« on: November 04, 2017, 10:15:10 AM »
I suspect this constant should be removed from the SCI1.1 template game entirely. Its value is -1, which means that all the modifier flags (there are four of them, some seem to be mutually exclusive) are set.

8
SCI Syntax Help / Re: Memory Fragmentation in QFG2
« on: November 02, 2017, 02:19:50 PM »
That's actually how to start it.  "suck blue frog" and then <ALT+F> to give the memory information.
Actually, I meant this:

9
SCI Syntax Help / Re: Memory Fragmentation in QFG2
« on: November 02, 2017, 01:23:37 PM »
But you did get it to work. Was that by luck, or did you do something?

10
SCI Syntax Help / Re: Memory Fragmentation in QFG2
« on: October 27, 2017, 11:35:05 AM »
Well, two things:
  • From the "memory fragmented" dialog, enter the debugger, then press f to get the free heap display.
    This will tell us the size and location of the fragments. I'm not too experienced with the interpretation, though. Inspecting the given memory addresses might help as well. (if the object header 34 12 shows up close to the base address, it's a freed object for example). There is a file in the - now public - SCI distribution which shows some others. https://github.com/OmerMor/SCI16/blob/master/DOC/FRAGMENT.DOC
  • A savegame, as close as possible to the crash. If it is possible to recreate the situation "by hand" starting from that savegame, so much the better.

11
SCI Syntax Help / Re: color names
« on: October 20, 2017, 04:37:41 PM »
Ah, the old IBM PC manuals. My school used to have the one with the BIOS listing and commentary in it. I'm kind of bummed I didn't snatch it while I could; they absolutely did not have expertise to use it. It probably went in the trash, unfortunately. They also had the original PC, which was fun as a plaything, but not much else. It was locked in a little-used room.

12
SCI Syntax Help / Re: color names
« on: October 20, 2017, 09:57:39 AM »
For what it's worth, the Delphi type is similar, even though Delphi has a strong forerunner in DOS text UI, Turbo Vision:
http://docs.embarcadero.com/products/rad_studio/radstudio2007/RS2007_helpupdates/HUpdate3/EN/html/delphivclwin32/Graphics_TColor.html

13
SCI Syntax Help / Re: String pain
« on: October 14, 2017, 03:31:31 PM »
GetFarText and Format both require the address of a buffer workspace. In your first two snippets, no address is given, causing unpredictable behavior. Note that the address pointer is given as the first argument to Format, but as the last argument to GetFarText. The effects of omitting a parameter are subtly different.

http://sierrahelp.com/SCI/SCIStudio3Help/SCC/Kernel_GetFarText.html
http://sierrahelp.com/SCI/SCIStudio3Help/SCC/Kernel_Format.html


14
SCI Syntax Help / Re: Background scrolling
« on: September 07, 2017, 08:07:02 AM »
Do you need actual real-time scrolling, or can you fake it with some arrow icons and the scrolling DrawPic styles?

15
Code: [Select]
void exit(char code)
{
/* ... */
for (i = exitIndex - 1; i >= 0; i--)
exitProcs[i]();

 /* Lots of endscreen code */
/**/ if ((hB800 = ResLoad(RES_VOCAB, 184)))
 /* Lots of endscreen code */
}
I'm a bit surprised this works at all. It runs after the resource manager has been shut down, right?
So you're operating on deallocated resource manager data and loading resources, just hoping it works - could end badly, depending on the situation.

Pages: [1] 2 3 ... 25

SMF 2.0.11 | SMF © 2015, Simple Machines
Simple Audio Video Embedder

Page created in 0.128 seconds with 19 queries.