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] 2 3 ... 32
1
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

2
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)
)
)
)

3
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.

4
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.

5
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

6
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.

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

8
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.

9
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.

10
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!

11
Alright, I've successfully rebuild the game in terms of putting all the resources back in, except for the Scripts.

Is there any way to import them as well?

12
It's a command line application. If running resource resource.001 from a command line isn't your bag, try dragging and dropping resource.001's icon onto Resource.exe's icon.
Thanks for being patient with me. It worked perfectly

13
Kawa, how do I run this program properly? Is this a plugin or do I just run it independently? When I run it, it opens, runs, then closes all in a second so I have no idea what's happening.


14
You can in fact extract all your resources from a lone .001 file! Just run Resource resource.001 and get all your files back.

It should just work. I just gave it the .001 file from SCI Tetris and the only complaint was several older copies of the main script.

Awesome! I'll give it a go wjen I have a minute

15
I managed to really screw up something.

I did the rebuild while the game was open causing the issue this thread is about. While trying to fix the issue I didn't realize I was NOT actually changing the file extension while I was doing it. I renamed respak to resource.001, but it was still a tmp file. I didn't realize I hadn't changed the extention because extensions were hidden in my settings. So basically I had something called resource.001.tmp, which clearly wasn't going to do anything. I'm not sure how or why, but I did have a resource.001 file already in the folder. I opened the game in companion and everything was blank. I rebuilt the resources (which I think was the big mistake) and now when I do change the correct file to a .001 file and not a .tmp file, when I try to open the game, It's all blank.

The only thing I'd like to salvage is the artwork even if everything else is gone. I have the resource file, is there anyway to mine it for resources or am I basically just out of luck.

It looks like the rebuild blanked out the resource.map file. It's almost completely empty. Wow! It was very foolish of me to not create a whole copy of this before doing what I did!

Pages: [1] 2 3 ... 32

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

Page created in 0.119 seconds with 20 queries.