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

#241
Looks like you're missing a few )s and a }  there.

Code: ags

//character attack------------------------------

if(Random (20)<(getstats(1,4)-(getstats(2,1)))
{
setstats (2,2,getstats(1,3)-Random (3));
Display ("You swing and hit");
}
else if (Random (20)>(getstats(1,4)-(getstats(2,1)))
{
setstats (2,2,getstats(1,3)-Random (3));
Display ("You swing and miss");
}


This should work.
#242
I'd assume that any graphics are stored in the same bitdepth they were loaded in.

Athlon XP 1600+
512 MB horrible SDRAM
GF FX 5200 (insert complaint about nVidia's crappy 9x drivers here)
About 70 fps.
#243
Quote from: PunK N PiE on Thu 13/11/2003 21:05:53
and the only reason i was typing with stars and capitals is so that someone actually payed attention and responded to my post...and guess what?! it worked !!!

It didn't. People would have read it anyway. This isn't one of those huge forums with thousands of active members where there are hundreds of new topics each day and no one ever reads anything. Thus, trying to grab attention like this doesn't have any effect other than getting on people's nerves and quite possibly turning them away from reading your thread.
#244
Quote from: remixor on Wed 12/11/2003 14:54:21
It would seem to me that 32-bit color is 2^16 times as big as 16-bit color.

That would be 1048576-bit color, which you'll probably agree is an intensely silly idea. As Isegrim said, 32-bit images would only be twice as large as 16-bit ones.

As for compression: if CJ uses Allegro's packfile routines, then AGS data files are compressed using the LZSS algorithm, which should work fairly well depending on the image in question.
#245
I know that. I have no idea what I was thinking up there, but it was probably stupid. I need to get somebody to shoot me in the head before I get a chance to press "Post" next time.
#246
Here. (If you need to rename it, that's no problem. The new filename has to start with AGS, though.)

Here's how it works: it uses AGS' int variables to store 32-bit floating point numbers. The following script functions are imported:

int int_to_float(int);

Converts a normal integer to a floating point number.

int float_to_int(int);

Converts a floating point number back to a normal integer.

int fadd(int,int);
int fmul(int,int);
int fdiv(int,int);

Adds, multiplies, divides two floating point numbers.

int fcomp(int,int);

Compares floating point numbers. Returns 0 if they're equal, -1 if the first is smaller, 1 if the second is smaller. Note that floating point maths aren't always very accurate, so you might be better off seeing if they're within a reasonable distance of one another.

int sin(int);
int cos(int);
int exp(int);
int log(int);
int pow(int,int);
int sqrt(int);

What it says on the box.

There is no fabs() because the standard abs() should work just fine. (unless it turns out AGS doesn't have one; in which case the usual way of replacing it should work)
#247
Well, no. You can't accurately represent irrational numbers. I'm assuming you're asking for floating-point numbers; CJ is not planning on adding these as far as I'm aware. Try using fixed point numbers and power series.

For example:

sin(x) = x^1/1! - x^3/3! + x^5/5! - x^7/7! + ...
cos(x) = x^0/0! - x^2/2! + x^4/4! - x^6/6! + ...

You can use these to approximate, which is what computers and calculators do.

If you don't want to, or need more accuracy, get somebody to write a plugin for you that would add support for floating point numbers. It shouldn't take more than maybe half an hour. (I think I have one lying about somewhere that I made a while ago, I'll post again later)
#248
General Discussion / Re:21, FINALLY!
Fri 10/10/2003 20:06:51
Happy birthday.

Quote from: Bodyart on Fri 10/10/2003 17:18:17
I wish I lived in Canada... 19 is the legal limit there.  Naw, screw canada... I wish I lived in Germany... what's the legal limit there?  5?

AFAIK: 16 for beer and other relatively weak beverages, 18 for harder ones. Don't take my word for it, I don't drink so I don't care much about these things.
#249
General Discussion / Re:Shenanigans!
Wed 08/10/2003 01:49:41
I ate a sandwich that had some garlic on it once.

Now, this was just before biology class - and the biology teacher I had at the time *hated* me. Thus, the reason I ate it was clearly my malicious intent to disturb the class with the HIDEOUS GARLIC STENCH OF DOOM AND GARLIC, and I had to sit outside the door during the lesson. Hooray!
#250
Ah, the ??? in your post confused me.

And thanks. :)
#251
It's a pun, silly. :)

Go look up the origin of the word "tragedy" somewhere, I'm sure you'll find a site on etymology. Maybe dictionary.com has it, I recall occasionally seeing that kind of information in entries there.
#252
http://asdruihofvnuaeiorsz7iasnodfiaz7sd.com/tragedy.mp3

A while ago, I set out to make the worst, most annoying track ever. As some people actually LIKED it, it was a complete failure. The horrible melody thingy in my entry for this week goes along the same lines.

DISCLAIMER: These are generic goat samples off the web, and I don't know whether or not the goats are male; so this might *not* be tragic.
#253
\o/

Good luck, and don't get caught "painting" those "sheds".
#254
Right. Sorry to make you miss the deadline again, remixor, but it really is time to judge. Maybe you'll make it next time. :)

And I give next week to... EldKatt again, though it's a bit awkward to just hand the reins back.
Good work all around - but to me DNA's and loominous' entries didn't sound very panicky at all. If you disagree - remember, I'm just some idiot on the Global InterCybernetic iNetWeb (dot com). Don't take it personally. :)
#255
Panic! Waagh!

That's the theme this week (since people don't like theoretical or otherwise technical restrictions :P). Entries should evoke a frantic struggle to escape from whatever, like the police, or having to clean the bathroom, or a blasphemous monstrosity from beyond the stars raining torment from a burning sky, or your neighbour's dog, or angry pirates (considering it's the 19th). Anything's fine, as long as it sounds like OH CRAP THEY'RE COMING FOR ME.

Have fun, and best of luck. Rar.
#256
A sample of me speaking some random nonsense used by a granular synthesizer and fed through a bunch of effects, two copies of a little drum synth I wrote, and again sampling, this time of typing and of messing with an empty potato crisp package, smorbled up by the tracker generator I was using... it's really not easy to explain in detail unless you're familiar with Buzz.
#257
\o/

I thought it fell far short of what I could/should have made of it, had I invested a little more time and effort, but apparently it was good enough. :)

Time to think of a new one.
#258
Advanced Technical Forum / Re:avi files
Sun 14/09/2003 03:50:04
Is the avi file in the Compiled folder?
#259
You're almost two weeks late. :P
(not that it isn't good)

Here's the original location.
#260
Mine!

I apologize for the simplicity and repetitiveness, but it was necessary for the tone I was trying to achieve (not that I was all that successful).
SMF spam blocked by CleanTalk