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 - Doan Sephim

Pages: 1 ... 3 4 [5] 6 7 ... 36
61
I understand how to "FormatPrint" to allow for variable values to be imbedding in a print command, but I'm not sure how to do that with the Inventory's "description." I looked in the Inv script and there's something about IconPrint in the showSelf method, but I confess, I'm a bit baffled.

62
SCI Syntax Help / Re: Importing a Character (a la Quest for Glory)
« on: February 10, 2021, 12:14:30 PM »
It's like Christmas in February.
Agreed! I just wish I were capable of understanding more of this stuff.

63
SCI Syntax Help / Re: SCI0 - Is the Template broken for togglesound?
« on: February 07, 2021, 09:13:59 PM »
This may be what you are looking for: Fixing F2 (ToggleSound) issue with Companion
Thanks. I saw that post earlier and have made the suggested changes, but it doesn't seem to do anything.

As far as I can tell, I'm not even able to change any volume settings at all at this point, so I'm not sure it's really the toggle that's broken. The volume gauge doesn't yield any change in volume either. I guess I could try different drivers.

Ok...I tried the MPUMIDI driver and the volume works (and the toggle as well). So I'm guessing there's something about the MT32 driver that it doesn't like?

64
SCI Syntax Help / SCI0 - Is the Template broken for togglesound?
« on: February 05, 2021, 02:21:44 PM »
I just noticed I can't seem to change the audio volume of the snd resources I'm using in the game and the menubar's toggle for sound doesn't seem to do anything (nor does the manual gauge for setting volume)

I'm using MT-32 as the SCI-synth in Companion and as the driver, if that matters.

65
SCI Syntax Help / Re: SCI0 - Death Icon always set to loop indefinitely
« on: February 05, 2021, 08:55:01 AM »

Thanks. Now I understand what the room number 540 was all about. Instead of the room number, I did like you said and just created a global variable that when true would trigger the code properly.

Code: [Select]
(instance deadIcon of DCIcon
(properties)

(method (init)
(super init:)
(if (== gDeathIconEnd 1)
(= cycler (End new:))
(cycler init: self)
)
)
)

66
SCI Syntax Help / Re: SCI0 - Icon location in Print window
« on: January 23, 2021, 04:04:41 PM »
Yeah, I was just misreading. You did write y-axis. But the same trick applies; once the dimensions of the dialog box are known (i.e. after adding all the stuff to it and calling setSize:), you reposition the icon.
Yup, I basically just made the y-axis number a global variable that I will set when the death menu appears, but will otherwise be set to 4 (what it was before). This may not be the most elegant solution, but it'll do for me

67
SCI Syntax Help / SCI0 - Death Icon always set to loop indefinitely
« on: January 21, 2021, 09:42:20 PM »
I'd like to have some more flexibility with the death handler icon, if possible. It seems to be set to always cycle forward indefinitely.

Is there a way for me to just run the Cels ONCE, like you can do with setCycle: End.

The Method is here, but it's not clear to me how to allow a choice between cycling once or infinite:
Code: [Select]
(instance deadIcon of DCIcon
(properties)

(method (init)
(super init:)
(if (== gRoomNumberExit 540)
(= cycler (End new:))
(cycler init: self)
)
)
)

68
SCI Syntax Help / Re: SCI0 - Icon location in Print window
« on: January 21, 2021, 10:45:15 AM »
The default position on an icon in a window is top left. Is there an easy way to manipulate this? All I really would like to do would be able to center it in the y-axis. Keeping it on the left is fine, but it looks wrong in my death window.
How is this different from the other thread which was marked "SOLVED"? Honest question.
I just didn't know if there was already some way in the code to modify the placement moving it along the y axis. I'm guess there's not and I'll have to customize it a bit.

69
SCI Syntax Help / SCI0 - Icon location in Print window
« on: January 21, 2021, 09:07:17 AM »
The default position on an icon in a window is top left. Is there an easy way to manipulate this? All I really would like to do would be able to center it in the y-axis. Keeping it on the left is fine, but it looks wrong in my death window.

70
SCI Syntax Help / Re: SCI0 - Death Icon at Top of Window
« on: January 12, 2021, 04:09:51 PM »
Nice! That works just right! Thanks!  ;D

71
SCI Syntax Help / Re: SCI0 - Death Icon at Top of Window
« on: January 12, 2021, 08:54:52 AM »
As I'm working on this, I hit upon a small and probably easy to fix issue:

Code: [Select]
(hIcon moveTo: *X* 4)
(hDText moveTo: 4 (+ 4 (hIcon nsBottom?)) )
(hDialog add: hIcon)

I've set the text to be written 4 pixels down from the bottom of the Icon, but setting the Icon's X position is proving difficult for me. I was trying to find the window's length variable, but am not sure where it is.

72
SCI Syntax Help / Re: SCI0 - Death Icon at Top of Window
« on: January 11, 2021, 11:27:58 AM »
OK, so there are two things to be done here. Changing the Print procedure and then changing the death scripts.
The first part is more difficult, so we'll start with that. The central bit of code is this, in Controls.sc (you're still on the old syntax, right?):
Code: [Select]
(if(hIcon)
(send hIcon:moveTo(4 4))
(send hDText:moveTo( (+ 4 (send hIcon:nsRight)) (send hIcon:nsTop) ))
(send hDialog:add(hIcon))
)
As you can see this positions an icon (which was created before this) at the top left, then positions the (also previously created) text next to it. The important thing to note when changing this code is that the position and size of these objects are (and can be) recomputed several times (using the setSize and moveTo methods in particular) as more things are added to the layout. So you can take advantage of this. It's probably better to do this in a separate copy of Print since it's a bit of a mess already (you can always work on integrating them later, and may have to do so out of heap concerns). Then you add an option in the death script to call either of those as desired.
Thanks for pointing me in the right direction! I will work around a bit with this!

Also, I am now working with Sierra Script!

73
SCI Syntax Help / [SOLVED] SCI0 - Death Icon at Top of Window
« on: January 11, 2021, 08:40:28 AM »
Does anyone have any ideas how I can edit the Template to display the death icon at the top of the window instead of always on the left-hand side? Ideally, I'd like to be able to switch this, but I'm having trouble finding out even where to look.

74
SCI Syntax Help / Re: [SOLVED] SCI0 - Autosave
« on: January 04, 2021, 12:29:01 AM »
Can you call it a "more *authentic* Sierra game experience" when QfG4 had it?
Showing my ignorance here. I never played QfG4! Watched my bro play it a million times, but never got familiar with it's save features.

My guess would be that "auto-save" and "Sierra adventure" are two terms not generally thought of together, outliers notwithstanding.

75
Do you still have the source folder? If so, I'd just import all the scr resources, close SCI Companion, and rename the script resources by editing game.ini by hand. If all is well clicking one in Companion's script list should just open the matching source file and you should be good to go from there.

Yes, I still have the src file. Thanks for the tip, I'll try my hand at your suggestion.

Edit - Yup, works like a charm - a slightly tedious charm, but far better than rewriting the scripts!

Pages: 1 ... 3 4 [5] 6 7 ... 36

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

Page created in 0.105 seconds with 21 queries.