1
SCI Development Tools / Re: BMP to Vector converter utility
« on: November 01, 2024, 02:36:36 PM »
Oh neat!
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.
What about instead of checking explicitly if the the left button is a modifier, check if the right button is NOT a modifier?
So you're checking for modifier == 1, which logically means if you're holding shift, or have numlock, scroll lock, or caps lock on, or insert turned on, then the result will NOT be 1. and so the logic check will fail. I've never checked that in code, if numlock, scroll lock, or caps lock are properly detected or cause havock with right-clicking.
I have checked that a right-click is the same as holding shift and left clicking. So that's also something that may be messing with your debugging... seemingly random, but maybe you're accidentally pressing caps lock every other time you type or something.
(if
(and
(== (pEvent type?) evMOUSEBUTTON)
(== (pEvent modifiers?) emLEFT_BUTTON)
)
(if
(and
(== (pEvent type?) evMOUSERELEASE)
(== (pEvent modifiers?) emLEFT_BUTTON)
)
I had a similar issue with another SCI0 project where ScummVM just ignores SAVE/LOAD commands if they aren't coming from the scripts it expects. I never bothered looking at the scummvm source code, but I worked around it in the same way using flags. Just an heads up for anyone else who might encounter this oddity.
Yeah, SCI has something similar. The release SCI0 interpreter is called SCIV.EXE (V for volumes).
On a side note, I used to have a list of what the various interpreter naming conventions meant, but I cannot find it. What ones are you aware of?
Command-line parameters for 16-bit interpreters: (case-sensitive):
-a: Do not use "extra memory" even if it was selected via the INSTALL program (i.e. ignore the "memoryDrv=ARM.DRV" setting in RESOURCE.CFG).
-c [n]: Indicate the change of disks (i.e. changing from RESOURCE.00x to RESOURCE.00y) and the access of "extra memory" by changing the shape and/or position of the mouse cursor. "n" is a decimal representation of a bitfield. The bit values have the following meaning: 1: change cursor shape upon disk change, 2: change cursor position upon disk change, 4: change cursor shape upon "extra memory" access, 8: change cursor shape upon "extra memory" access. If "n" was not specified, value 5 is assumed (change shape but not position on both events).
-m: The function of the middle mouse button changes from "switch between walk and selected icon" to "open debugger" (same as Shift-Shift-NumMinus)
-u [filename]: Log use of game resources to filename, default is "resource.use"
-U [filename]: Log use of far-pointer memory to filename, default is "hunk.use". ("Hunk" is what Sierra calls memory accessed via a far pointer, while "heap" is how Sierra calls memory accessed via a near pointer.)
-w top left bottom right: Set the dimensions of the game screen. Default is 10 0 200 320, meaning that ten lines at the top are left blank for a status/icon/menu bar. Some games which do not use such must be run with -w 0 0 200 320, otherwise the picture will be drawn ten pixels too low.
-X Store each handle to a game resource twice in memory so it is noticed when buggy script code overwrites the handle table. (Apparently, that was a problem?)
I have not followed which option was introduced with which interpreter version. The debug-related options will only work as intended, if at all, if the interpreter executable has the debugger included.
Not asked but since I am writing: the meaning of the letters of the interpreter name SCIxxx.EXE:
V present: Load game data from RESOURCE.0xx/RESOURCE.MAP files, using individual files only as replacements, and use RESOURCE.CFG as a config file.
V absent: Load game data from individual files only, and use a file named "WHERE" as a config file which, in addition to the usual hardware-config lines, must contain paths for each resource type.
D present: Pull-down menus not available.
D absent: Pull-down menus available.
U present: Debugger not available.
U absent: Debugger available (Shift-Shift-NumMinus to activate)
H present: 256 colors
H absent: 16 colors
SCIV.EXE therefore means 16 colors, with debugger, with pull-down menus, using RESOURCE.00x files. Interestingly, there never seems to have been a letter to indicate the presence or absence of a parser. Obviously, non-V versions were only used internally. Many games rename the interpreter executable to just SIERRA.EXE.
SMF 2.0.19 |
SMF © 2021, Simple Machines
Simple Audio Video Embedder
Page created in 0.043 seconds with 20 queries.