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

Pages: 1 [2] 3 4 ... 104
SCI Development Tools / Re: Batch export vector draw commands one by one
« on: October 12, 2020, 05:29:54 PM »
That sounds incredibly tedious. Maybe a hundred or more drawing “frames” and cropping et al.

I've done this many times before for making twitter gifs, I don't find it hard at all. It takes about as long as it takes to hold down the down arrow key in the cmd window, or slide the horizontal slider across the screen. Then bam, save gif and you're done.

Not sure what cropping you'd need to do. Just position gifcam over the portion of the pic window that has the pic?

SCI Development Tools / Re: Batch export vector draw commands one by one
« on: October 11, 2020, 01:27:16 PM »
There's no way to animate the steps, no. That would be neat though.

You can just use a gif capture tool (like GifCam) and either manually move the pic slider, or put focus at the top of the piccommand cmd window and arrow down.

SCI Syntax Help / Re: editing PICs
« on: October 10, 2020, 09:51:37 PM »
Unfortunately there's no way to do that  :-\

And yes, there are still some crashing bugs in the pic editor when cutting/pasting/transforming coords. Still haven't been able to track it down.

SCI Syntax Help / Re: editing PICs
« on: October 10, 2020, 12:40:13 PM »
There's a "transform coords" button in the toolbar, to the right of the Toggle Priority Lines button.

If this is checked, then when you hover over the image, the "control points" of whatever drawing tool is selected (pen, line, fill) will light up and you can drag them.

That only works for individual points though.

To move groups of things, select the cmds in the cmd window on the left, then cut (ctrl-x) and paste back (ctrl-v). Then you should be able to drag them as a group in the image area (there are also hotkeys, on the numpad I think, to stretch/shrink them).

I was going to switch to SCI Companion, but that has an even dumber problem. The MIDI playback tool has a very silly bug in it. It plays at the right speed, but it only plays notes AFTER the loop point, and not the ones ON the loop point like it should. This results in a lot of sound cutting out.

Looking at the code, it seems this is quite explicit, I even added a comment to that effect:

Code: [Select]
void MidiPlayer::_OnStreamDone()
    if (!_fStoppingStream)
        // There is more to this stream... keep going.
        if (_cRemainingStreamEvents)
            _CuePosition(_cTotalStreamEvents - _cRemainingStreamEvents);
            if (_dwLoopPoint != SoundComponent::LoopPointNone)
                // Cue the loop point. We start playing events *after* the loop point, not at the loop point.
                CueTickPosition(_dwLoopPoint + 1);

I'm not sure why I thought that though. Maybe it's true for some SCI versions and not others? I wonder what ScummVM does.

1 - In certain rooms up and down arrow will result in diagonal movement. Codename: Iceman has this in one or two of the beach rooms at the beginning. it's subtle, but saves a lot of up-left-up-left movement to get through a narrow 45 degree angle path.

In the Rm properties, assign values to vanishingX and vanishingY. They indicate where the vanishing point ( of the room is. Pressing up will make the player walk towards the vanishing point, pressing down will make them walk away from it. (Assuming it's all hooked up properly in the SCI0 template - not sure it is because it was based off LSL3, which maybe didn't use this feature.)

Typical values might be
Code: [Select]
vanishingX 160 ; right in the middle
vanishingY -200 ; 200 pixels above the top of the screen

You could probably make the player walk at close to 45 degrees if you placed it way off to the side, like I dunno, (-1000, 1160) or something.

SCI Syntax Help / Re: Old SCI0 Template Save Bug
« on: July 18, 2020, 04:45:24 PM »
Wow! You should feel good about finding that one!  :)

SCI Syntax Help / Re: Old SCI0 Template Save Bug
« on: July 17, 2020, 12:15:39 AM »
I think the thread took a turn and stopped being about the save bug  :P

SCI Syntax Help / Re: Old SCI0 Template Save Bug
« on: July 14, 2020, 12:14:18 AM »
Troflip, do you think it might be possible to hack around it with some custom post-processing that would (re)create the .dir file with the correct values?

I think you could hack around it by limiting the save game count to 19 instead of 20.

I haven't tried it, but if you change this to a 19, it should limit the save game count to 19, and then I think the bug doesn't repro:

Code: [Select]
(procedure (CheckForFreeSpace)
(if (< local2 20) (CheckFreeSpace gSaveDirPtr))

SCI Syntax Help / Re: Old SCI0 Template Save Bug
« on: July 13, 2020, 02:58:22 PM »
It looks like the values returned by the GetSaveFiles kernel are wrong (or at least don't match the files). It always has 0 in the first slot. These are the contents of strPtrs just after the GetSaveFiles call in SRDialog:init.

SCI Syntax Help / Re: Old SCI0 Template Save Bug
« on: July 13, 2020, 02:24:48 PM »
Back to the original issue:

After saving 20 games, A-T, the beginning of gamename.dir will look like:
13 00 73 0a 12 00 72 0a      slot 19 (T), slot 18 (S), ...
That's basically, slot number (in hex) followed by string that appears to be 0a-terminated.

Then I save over S (2nd in the list). And I get:

12 00 72 0a 13 00 73 0a      slot 18 (S), slot 19 (T), ...

Looks great, exactly as it should look.
The time stamp on the file shows gamename.dir and gamename.018 written to, which is correct.

But now if I delete gamename.018, I can still load S (but actually it's not S, see below)

However, if I delete gamename.000, I can no longer load S. Which means loading S is actually trying to load the wrong save.

So what's going on: S is being saved properly (to gamename.018), but when we load we are loading gamename.000. This is despite gamename.dir linking S to slot 18. This isn't some kind of memory corruption, it persists even if I close and reopen the game.
If I rename gamename.000 to gamename.018, then I can load the "missing" S save.

So somehow, it appears the save games get into a state where the first slot number in gamename.dir is always getting treated as 0 by the game, despite the data in gamename.dir.

SCI Syntax Help / Re: Old SCI0 Template Save Bug
« on: July 13, 2020, 02:06:59 PM »
I took a quick look at this.

It seems like even if you save over the most recent, it doesn't work properly. For instance,
- I save 20 games, A through T
- Then I try to save over T and give it the same name
- The result is that it deletes game A, and now there are two game T's.

Any reason that you did not use the standard Ctrl+x for cut? Ctrl+c is usually the standard for copy.

typo, fixed it

You can do this in SCI Companion. It's a bit flaky, but you need to select all pic commands, cut (ctrl-x), then paste (ctrl-v). Then, there are some hot keys for manipulating the pasted commands. Looks like numpad 2 and 8 flip horizontally. I think there used to be a bug where the result was off by one, I forget if it's fixed in the official version of SCI Companion, or what. After you're done moving/modifying the pasted commands, double click on the selection rect in the pic view area and to commit the commands.

Code: [Select]
        switch (nChar)
        case VK_RIGHT:
        case VK_LEFT:
        case VK_UP:
        case VK_DOWN:
        case VK_NUMPAD4:
        case VK_NUMPAD6:
            _fVFlip = !_fVFlip;
        case VK_NUMPAD8:
        case VK_NUMPAD2:
            _fHFlip = !_fHFlip;

        case VK_NUMPAD7:
            _iAngle -= 5;
        case VK_NUMPAD9:
            _iAngle += 5;

SCI Development Tools / Re: Decompilation Archive
« on: May 16, 2020, 07:57:40 PM »
It should work if you compile over and over (unless two scripts have cross dependencies). It probably wouldn't be difficult to modify SCI Companion to just automatically generate the .sco file if none exists (e.g. it doesn't need a successful compilation, just syntax pass).

Pages: 1 [2] 3 4 ... 104

SMF 2.0.14 | SMF © 2017, Simple Machines
Simple Audio Video Embedder

Page created in 0.217 seconds with 21 queries.