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 ... 23
1
Awesome! Always good to see new stuff.

I played a little bit today and I enjoy the atmosphere of the game. It didn't take long for me to get lost on what I'm supposed to do. I'll play more soon and let you know more when I get farther.

Thanks for the demo. I'm always happy to see new stuff like this.

2
SCI Syntax Help / Re: Can someone explain Flags to me?
« on: June 12, 2019, 02:39:06 PM »
Yes correct, but you need to include all the places in Main.sc or Game.sc or whatever too (scripts that are always loaded).
I see, so if I have any of those procedure already called in the default scripts, those will always be adding towards that 75-time limit.

Even so, it seems likely to me, that 75 is a pretty high number of calls for average use, so I think it will ultimately save.

3
SCI Syntax Help / Re: Can someone explain Flags to me?
« on: June 12, 2019, 02:26:51 PM »
So, read a flag 75 times in currently loaded script code and you've already lost your bytes advantage.
When you say 75 times in currently loaded script, i assume that that means (from a general gameplay perspective) in a single room, but after each room, it's all disposed, correct? So generally speaking, it's a heap saver, but if I were to read the flag(s) 75 times in a single room, it would be heap-negative compared to normal.

Or does it mean 75 times at all?

4
SCI Syntax Help / Re: Can someone explain Flags to me?
« on: June 12, 2019, 02:16:34 PM »
Thanks Troflip et al. I think I finally grasp what going on with this script and I'm very thankful for everyone for bearing with me. I kinda feel like the dumb kid in class asking all these questions, but everyone has been quite patient and accommodating, and for that I'm grateful.

5
SCI Syntax Help / Re: Can someone explain Flags to me?
« on: June 12, 2019, 01:34:00 PM »
Thanks Eric and Charles! I only have one question remaining (I hope!) - the thing I don't understand is how the enums in the subheader relate to the variable and the procedure that references that variable. The enumerated list seems to be unconnected to the variable and procedures. I'm guessing they're connected by something in the procedure, but I don't get it, and it makes me feel like I'm missing something.

6
SCI Syntax Help / Re: Can someone explain Flags to me?
« on: June 12, 2019, 11:27:38 AM »
The flags are enumerated and defined in your GAME.SH file.
Do you define them in the Game.sh file or enumerate them (or does it even matter which?)
I apologize for the hand-holding needed with this, but what does it look like in the subheader?

This is what I see in the Template, but I'm confused on how it relates to the gameFlags:
Code: [Select]
;Event flags
;Example: fBabaFrog (original Sierra naming)

7
Got 'em back!
Conversion misplaced a single parenthesis that threw the whole thing off.
I had this:
Code: [Select]
(Display
text
dsCOORD
(+ nsLeft (>> (- w [rect rtRIGHT]) 1))
(+ (+ nsTop (>> (- h [rect rtBOTTOM]) 1)) 1 dsCOLOR)
                        gWndColor
But I realized that it should have been this:
Code: [Select]
(Display
text
dsCOORD
(+ nsLeft (>> (- w [rect rtRIGHT]) 1))
(+ (+ nsTop (>> (- h [rect rtBOTTOM]) 1)) 1)
dsCOLOR
                        gWndColor

8
Borders up, but smooshed...no text  :o
Hmmm...looks like the template did half the trick lol

9
Hmm...no dice.
I'm also experiencing some strange behavior with my character changing region script...

Will tinker around a bit.

EDIT:
Got my text back, but lost my sweet custom button artwork. One step forward, One step back :)
This is with the following template code in the Controls script
Code: [Select]
(method (setSize &tmp [rect 4])
(TextSize @rect text font)
(= [rect rtBOTTOM] (+ [rect rtBOTTOM] 2))
(= [rect rtRIGHT] (+ [rect rtRIGHT] 2))
(= nsBottom (+ nsTop [rect rtBOTTOM]))
(= [rect rtRIGHT] (* (/ (+ [rect rtRIGHT] 15) 16) 16))
(= nsRight (+ [rect rtRIGHT] nsLeft))
)

10
SCI Syntax Help / Where'd my buttons go (Sierra Script Conversion)
« on: June 11, 2019, 07:12:48 PM »
All Scripts are now converted and without error message, and yet...
See attachment
Here's the code I was using from the Controls Script:
Code: [Select]
(method (setSize &tmp [rect 4])
(TextSize @rect text font)
(= [rect rtBOTTOM] (+ [rect rtBOTTOM] 2))
(= [rect rtRIGHT] (+ [rect rtRIGHT] 2))
(= nsBottom (+ nsTop [rect rtBOTTOM]))
(= [rect rtRIGHT] (* (/ (+ [rect rtRIGHT] 15) 16) 16))
(= nsRight (+ [rect rtRIGHT] nsLeft))
)
(method (draw &tmp x y x2 y2 w h [rect 4])
; Calculate the areas
(= x2 (- nsRight 8))
(= y2 (- nsBottom 8))
(= w (- nsRight nsLeft))
(= h (- nsBottom nsTop))
(TextSize @rect text font)
; Draw the side borders
(for ( (= y (+ nsTop 8))) (< y y2)  ( (= y (+ y 8))) (DrawCel gWB 0 4 nsLeft y -1) (DrawCel gWB 0 6 x2 y -1))
; Draw the top and bottom borders
(for ( (= x (+ nsLeft 8))) (< x x2)  ( (= x (+ x 8))) (DrawCel gWB 0 5 x nsTop -1) (DrawCel gWB 0 7 x y2 -1))
; Draw the corners
(DrawCel gWB 0 0 nsLeft nsTop -1)
(DrawCel gWB 0 1 x2 nsTop -1)
(DrawCel gWB 0 2 nsLeft y2 -1)
(DrawCel gWB 0 3 x2 y2 -1)
; Draw the text
(Display
text
dsCOORD
(+ nsLeft (>> (- w [rect rtRIGHT]) 1))
(+ (+ nsTop (>> (- h [rect rtBOTTOM]) 1)) 1 dsCOLOR)
gWndColor
dsBACKGROUND
clTRANSPARENT
dsFONT
font
dsWIDTH
[rect
rtRIGHT]
)
)

11
That does it. Thanks.

The conversion works quite well, there were just a few hang-ups with some of my own bad coding and some Randoms that got a little mangled. All in all the conversion is nearly finished.

12
I should have chosen a different example. It doesn't like it for moving to other actors either

13
I'm currently going through and fixing some errors in the conversion of Betrayed Alliance from Studio script to Sierra Script and I keep coming up against the same error message.
In Studio, I can can
Code: [Select]
(squirrel:setMotion(MoveTo(squirrel:x) (squirrel:y))) and it's all good to go
In Sierra,
Code: [Select]
(squirrel setMotion: MoveTo squirrel x? squirrel y?) is not something it likes at all.
Anyone have thoughts?

14
SCI Syntax Help / Re: Can someone explain Flags to me?
« on: June 11, 2019, 03:05:38 PM »
This is quite helpful, thank you.
Follow up: I'm working in an older project, and it is not yet in Sierra script. It'll be translated over in time, but when I run the auto-convert I end up with about 140 or so errors (I'll get around to them eventually ;)
In the meantime, I'm working on the scripts with studio scripting. In the code you provided, there is the mathematical operation of "mod."
I've never seen that operation in studio script and was wondering if anyone knew the symbol for that operation in Studio.
Thanks again for your help with flags. I always suspected there was a better way to do these type of things, but never knew about it until now

Edit: Mod's symbol appears to be % in studio script.
When I'm defining in the game.sc script, does that take up heap space?

15
SCI Syntax Help / Can someone explain Flags to me?
« on: June 11, 2019, 11:35:48 AM »
In the past, I've used Global variables for TRUE/FALSE situations like "the first time you enter a room." While it works, it does produce a hefty main.sc which limits what I can do in other rooms/regions. Since then, I've heard a bit about using Flags in the place of global variables for those kinds of uses. The direction given was to look through the QfG1 decompiles, but after having spent some time looking through the forums and scripts, I'm not sure I understand how to implement this.

I'm not a native programmer, so things often go over my head. Can someone point this out to me?

Pages: [1] 2 3 ... 23

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

Page created in 0.12 seconds with 21 queries.