Flags (The ship resource in particular.)

Leafing through the EVO bible I discovered that you need to set a flag for the X offsets to work and that this flag is 0x0080 according to the EVO bible. I've had limited success before with just ignoring the "0x" and adding the flag to what's already there.

I have just now discovered that this is not the proper method for doing flags as a ship with just $0080 in the flag field worked with the X offset, something, for example, that already had $0042 in the flag field would not work because when added to $0080 it's $0122 and the flag doesn't work.

So I am wondering if anyone could describe for me the proper method of calculating flags.

------------------
"Landing request denied."

Company Tritanium Enterprises: (url="http://"http://www.megalink.net/~joe1/w/")http://www.megalink.net/~joe1/w/(/url)

If you just add the flags up off the bat, you'll end up with a different type number, say you had $0042, and want to add $0080...4+8= 12 so you put down a "C" instead of $0122. It should be $00C2, for it to be correct.

Object's formulas explain that pretty well, as the EV/O bible doesn't. (it should though)

10=A 11=B 12=C 13=D 14=E 15=F

those are the basic letters if your flag number adds up beyond 10.
Well, hope that helped...PEACE YO!

------------------
~Kwanza~

"Quoted the Kwanza Man...nevermore"

Thanks.

------------------
"Landing request denied."

Company Tritanium Enterprises: (url="http://"http://www.megalink.net/~joe1/w/")http://www.megalink.net/~joe1/w/(/url)

Brief expansion on this: flags like this are stored in base 16 notation, or hexadecimal notation (as shown by the $ preceding the number), because it translates to binary notation easier than decimal notation. If I had to guess, I'd say that mcb figured anyone who was working on creating a plugin would have known about hexadecimal notation beforehand. Oh well...

------------------
Knucklehead, Aeon Productions

=======================

(Insert witty remark here)

Like Knucklehead said, it's in base 16. And using six letters is a lot easier than coming up with six weird symbols you have to memorize (heh... windows users would have to memorize something like ALT-2957)

In my opinion, it would have been more newbie freindly if mcb had decided to do it in base 8 (that way, you would only have 1, 2, and 4 to add up, and you don't have to know (about) hex).

------------------
Zacha K
(url="http://"http://users.aol.com/zachakplug/sigdir/index.html")The Zacha K Space(/url)
(url="http://"http://users.aol.com/zachakplug/sigdir/azach.html")Find out more about the Zachit(/url)
(url="http://"mailto:ZachaKPlug@aol.com")mailto:ZachaKPlug@aol.com(/url)ZachaKPlug@aol.com

Quote

Originally posted by Knucklehead:
I'd say that mcb figured anyone who was working on creating a plugin would have known about hexadecimal notation beforehand.

Yes. Doesn't everyone? 🙂

mcb

------------------
Matt Burch
(url="http://"mailto:mburch@ambrosiasw.com")mailto:mburch@ambrosiasw.com(/url)mburch@ambrosiasw.com