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

#4341
Quote from: Scorpiorus on Fri 07/05/2004 18:37:18
function abs(int value) {
    if (value < 0) return = -value;
    else return value;
}


Don't you mean:

function abs(int value) {
    if (value < 0) return -value; // no "=" here please!
    else return value;
}


Quote
But bear in mind, you must not declare a string within the struct. Although, the compiler doesn't say anything it will lead to some serious errors, because strings are not supported within the struct!

Although, strings are actually just the same as char[200], which CAN be used inside structs.

Quote
QuoteI don't quite get the char and short variables, and what they are good for.
Well, they just take less memory. But it also defines how large value each of them is able to store, for instance:

int -2147483648 through 2147483647 //really large values
short -32768....32767
char 0....255

Though, you should usually use the int type. :)

Unless faking strings in structs, of course...

I foudn out some interesting stuff my loading ROOMEDIT.CLB into a test editor. It was very handy for making the quick reference guide, but there were some other things too. For example:

#define function int

which means you can actually write things much more like C:

int abs (int value) {
   if (value < 0) return -value; // no "=" here please!
    else return value;
}

oh look... you don't need [ pre ] since the forum upgrade!
#4342
Ah, right, I see.

To be honest, I only saw Bowling once it came on TV.

Sorry for misunderstanding: your earlier post seemed to be in a different tone. Still, the motives, style and appearance of the messenger don't make a message any more or less true.
#4343
I thought of that workaround, too, but would it really work: how does AGS decide on which GUI gets the keypresses?

Anyway, in the savegames with screenshots tutorial I am preparing, you will see how I worked around it.
#4344
Rave, just becuase Dustin Hoffman and Robert Redford (or whatver the real reporters were called) probably were thinking "PULLITZER!" when they stumbled across Watergate, doesn't mean that their work was any less good.

Also, how can yousay that you don't care for his work when you have never seen any of it? Next you'll be telling us that you didn't see The Passion becuase of  the Anti-Semitism in it.
#4345
Advanced Technical Forum / Re: GUI text boxes
Fri 07/05/2004 16:06:08
That's what I gleaned as the problem... it is kind of implied by reading between the lines of the manual!

I thought for a moment that my manual implementation using on_key_press and labels was in vain...
#4346
EDIT:

As Scorp suggested... how about a SetTextBoxFocus(int GUI, int object) to solve this problem, CJ? Or at least make it clear that you're only (effectively) allowed one...

ORIGINAL:

Can you have multiple text boxes on a GUI? The manual doesn't really say one way or another. I assumed no...
#4347
MacPaint on a 128k Mac back in the mid-eighties somewhen. My Dad printed out my pics and hung them somewhere, too.
#4348
Quote from: SteveMcCrea on Thu 06/05/2004 14:04:16
Quote from: Guybrush Peepwood
Bedazzled (or whatever it's spelled)!!!

the guy who wrote it has probably never read the bible

Peter Cook?

Wasn't it Goethe?
#4349
Thanks Ginny and Scuthbert. PM in your inboxes.
#4350
I'm writing a "savegames with screenshots" tutorial for Vel's ezine and I JUST KNOW that even though I've used pretty much the same code in my own game demo, I'll get soemthing wrong, so I'd like to have 2 or 3 beta-testers, please. PM me or reply here and I'll send you the draft article. You can criticise my spelling, too, if you like.

The tutorial should work, even if you have no scripting knowledge, so please anyone volunteer. Ideally, I'd like at least one really inexperiencd tester and one fellow scripting geek...

Advantages: you can have a better save/load dialog. Disadvantages: none.
#4351
General Discussion / Re: what... mad
Wed 05/05/2004 18:32:13
Quote from: Demorgon on Wed 05/05/2004 18:25:14
I'm now confused

At last, he begins to see the truth!
#4352
General Discussion / Re: what... mad
Wed 05/05/2004 18:21:04
Quote from: Demorgon on Wed 05/05/2004 18:15:31
Um, I think you forget one important thing about the US, maybe if ya' check the constitution you'd know that.  ::)
One simple question: if everybody who opposes what the country is doing is tried for treason, as you suggested, then who is going to take the case to the supreme court to try and prove it as unconstitutional?
#4353
I love Raggit becuase his re-starting this shows how warm and fuzzy he is.

Of course, this tread will stop as soon as you-know-who posts here, becasuse who in all conscience could say they love him?


EDIT: And Andail has my undying devotion becasue he said something nice about my family
#4354
General Discussion / Re: what... mad
Wed 05/05/2004 18:09:36
Well, its all very nice and fluffy to say "I hate all forms of abuse of power", etc. but tat gets to vague and general and unspecific to really have any feeling about. While, specific things like killing Kyoto, invading Iraq, supporting Sharon, etc. are quite easy to get angry about.

As for RichAshton/DeMorgan/EricPersecutionComplexMan... anything USA does is fine... well, would you still hold that view if your country decided that swearing on the internet was banned? because they certainly are suppressing free speech in Iraq.

And i seem to remember kids at school used to use the excuse "but Johnny was doing it too, Miss!".

btw, my h key seems to only work when hit quite hard... new keyboard time...!

#4356
General Discussion / Re: what... mad
Wed 05/05/2004 16:32:35
It makes me mad that...

America can do what it blimmin well likes and there's nothing the rest of us can do to stop them

That most of the UK press takes any European issue and uses it to stir up anti-French and German xenophobia

That people who are wrong in an argument use techniques to divert the debate away from the issue

That the UK government is going to waste a pile of MY money on ID cards

That our local council recnetly sent workmen to put up two signs next to a broken mini-bridge on a footpath (one plank is missing) to say that the bridge is dangerous and shouldn't be used, wen you can easily step over the gap and te long way around adds about 10 minutes walking and it probably took longer for the signs to be put up than it would have taken to fix the bridge.
#4357
Most online digital photo printers will do the job cheaper for T-shirts, mugs, etc/ (and if you're outside the US shipping will be much less with a local one)

All we now need is someone to do a definitive AGS T-shirt design...
#4358
Quote from: Kinoko on Sun 25/04/2004 16:17:09
I also hate ads about raising awareness of STDs like the current "thrush" ads (I think it's thrush). They show all sorts of woman saying "I've had it", "I've had it too", "I got it ages ago", "I've got it right now!", "I'm getting it for my birthday!" (okay, the last couple are of my own creation). Then they reveal that lots of people have this particular STD. It's just stupid, and sick, and I hate the message. 'Lots of people have STDs so you shouldn't be ashamed about it. It's NORMAL!'

Actually, thrush is not exlusively or even typically an STD. The spores that cause it are found everywhere, often it is present but not infecting because one's "friendly bacteria" keep it at bay. It is often triggered by a course of antibiotics as this kills of the firendly bacteria and the thrush gets a foothold.  Many babies get it after antibiotics. Another reason to stop antibotics being over-used.


Anyway, Ocean Finace adverts are the most annoying. They have lots of actors pretending to be real people by having very badly wirtten lines to read out. Including one woman who says "They don't babble you with science or whatever".

a) WTF has science got to do with loans?
b) It's baffle, not babble, anyway
c) Lose some weight, you big lardball. And that goes for all the other women in that advert too. The first one looks like Les Dawson.
d) And the husband who makes the pathetic joke wife: "It was really easy" husband: "Even for me"  wife (looks at him with barely concealed loathing) "Hehe".
e) Stop pretending you help people when you just let them get deeper into debt
f) Die, scum
#4359
BEST PHOTOSHOP PHRIDAY EVAAAH!!!1!!1!!
#4360
Advanced Technical Forum / Re: screen zooming
Tue 04/05/2004 19:22:14
Check out http://www.adventuregamestudio.co.uk/yabb/index.php?topic=12744.0... but I've removed the demo from my server... it just did a full-screen zoom in on a big sprite.

If you use TK's suggestion, you could capture the screen by using the savegames with screenshot feature and reload it bigger than the original...

Or write a plugin...
SMF spam blocked by CleanTalk