Menu

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.

Show posts Menu

Messages - SSH

#5121
Avast! September the 19th be the day I married my lass, gone five years past. Oi reckon I do be telling her that the day is extra special now. And hope she do not batter me head in and call me a scurvy scallawag.

Ooo Arrr, I got a brand new combine harvester, oops getting mixed up with me west country accent...
#5122
Looks OK to me, too, but made me think: does AGS scripts have exacly the same precedence and association rules as C/C++? i.e.

is a - b - c  equivalent to (a-b) - c   or   a - (b - c)  ?

Maybe you could try (to be safe):

VoltageConnectedDigit2 = ( ( VoltageConnected - (VoltageConnectedDigit1 * 1000000))/ 100000 ) ;

RoundOffRest = ((VoltageConnected - (1000000 * VoltageConnectedDigit1)) - (100000 * VoltageConnectedDigit2) );
#5123
Also, is "threetasks" declared as a global? If not, you might just be adding 1 to 0 all the time?

Come to think of it, are you using "threetasks" as a graphical variable? in other words, did you initialise it using the GUI rather then in a script somewhere? If so,m you have to use Get/SetGrahicalVariable in the scripts instead of just myvar = 123;

If you want, you can send me the script dump or the game and I can try and debug it?
#5124
If only I'd discovered AGS while I was still living in Bristol, I could have paid my respects to the great Puma in person...

VWG: It looks like you're on the isle of Arran or something
#5125
I'd like to point out another bug, just to wind up CJ, but unfortunately I can't find any right now.

*SSH gives CJ an asprin
#5126
Funnily enough, the keywords are already in there and work fine when you click on the "See alsos" at the bottom of a function ref, but they're just not in the index!
#5127
Quote from: Minimi on Wed 03/09/2003 11:59:00
I think porno sucks the most of all things on earth!!

If I were you, I'd avoid using words like "sucks" in this context, or in other words: fnar fnar snicker snicker
#5128
I'm sure that there would be plenty of volunteers to re-do the help file if you were to ask for help (e.g. me, but I have no idea about creating Help files  :( )
#5129
Critics' Lounge / Re:C&C on my tune, please
Wed 03/09/2003 11:54:46
If you tell me where the MIDI is, I'll let you know!  ;)
#5130
Critics' Lounge / C&C on my tune, please
Tue 02/09/2003 17:01:50
This is a song I wrote for my wife. There's some romantic lyrics, too, but you don't get to see them (unless you have Noteworthy Composer, too and get the original NWC file :P )

http://www.angelfire.com/space/little_flower/Took_your_hand2.mid

I'm pleased with the melody, but I'm not sure what more to do on the backing.
#5131
It seems that lots of people are having trouble finding pre-existing functions in the help file index and getting RTFMed as a result.
For example, search for walkbehind and you get 3 topics: Character functions, Object functions and Room/Screen functions. It would be better if you got 1 topic for each function that has "walkbehind" in the name or description, not to mention the part of then room tutorial where walkbehinds are done.
#5132
Calm down, guys!

Sorry, subspark, I was away doing other stuff for a while, I hadn't forgotten you!

I can't find anything to turn walkbehinds off, either, although I seem to remember someone else wanting to do it in a thread ages ago about this.

What I meant before is can you post just the closed door sprite without any background, ie what you get from the sprite manager export option

ahah... this is what you need!

SetObjectIgnoreWalkbehinds (int object, int ignore)


Looks like you should have RTFM after all!  ;D ;D ;D

(sometimes these things aren't quite where you think they are, but I found this by searching the forums for "walkbehinds")

Actually, that's a problem with the Help search: it gives you general areas to look at, but it would be nice if it found specific function names in the index rather than function sections...

Edit:

by the way, subspark, the graphics look great. Can't wait to see the game (with my name in the credits for scripting help, of course  ;) )
#5133
Can you post the closed door sprite, too, please?
#5134
When you get your import definition wrong in the script header (i.e. forget the parameters of the function) the error messages you get can be confusing (as they were for subspark). Is there any chance of a messgae like

Error: script_header import function does not match function declaration.

Oh, and when it pops up the editor to fix a script header syntax problem, it opens the wrong script (ie not the script header). Try removing a semicolon from the script header and see what happens when you Save Game. (v255)
#5135
Actually, I think this is a common thing to forget and it would be nice if CJ could produce a better error message when your import doesn't match the global function definition...

I knwo becuase I did the same as subspark did first time, then I checked the manual and fixed it.
#5136
I can't think of anything else: maybe if you could post a screenshot or the game we could have a better idea?
#5137
What error?
How is your script header set up? I've jst tried your code, calling with "left", not left and it works fiune for me. My script header has:

import function FaceDirection(int, string);
#5138
I mean you need to call the function with:
FaceDirection (EGO, "left");

for example
#5139
Are you sure that the transparent colour for your door-closed sprite isn't cropping up in the wrong place, maybe? Check the sprite in AGS: does it have purple where you don't expect it to be?
#5140
Do you mean:
RemoveWalkableArea (int areanum)

and

RestoreWalkableArea (int areanum)
?

EDIT:
To be frank, subspark, a lot of these questions would be better in the Beginners forum, rather than Technical...
SMF spam blocked by CleanTalk