ModVals for ECMs are wacked!

According to the EVO 1.0.2 bible, when the ModType is an ECM system, the ModVal has kind of a flag for jamming - so if you wanted week type I in the case of the needle jammer it would look like this: $0001 Well if you look in the resource it looks like this: 16 Does anyone have any idea what's going on with this?

My homing projectile fixerupper is coming along nicely except for that dilemma with the ModVals. If anyone cares for this information, I've discovered some things about what types of jamming missles are susceptible to.

Needle = Type I
Pursuit = Type II
SADs and SAEs = Type III

SADs can be fully jammed, SAEs partially, needles fully, and pursuit partially.

------------------
- Lone "Darn, its not in the spellchecker!" Igadzra

(This message has been edited by LoneIgadzra (edited 06-23-2000).)

Have you checked to make sure the templates you're using are correct? For a hex value to show up as "16" (as opposed to "$0016") suggests to me that your ResEdit template is not displaying the data properly... ?

------------------
“If a little knowledge is dangerous, where is the man who has so much as to be out of danger?” - T.H. Huxley

The ModVal fields are set to DWRD (decimal word) in ResEdit, so whatever value you come up with by adding the hex values for the flags together, just convert it to decimal and enter it in. Or, temporarily change the field from a DWRD to an HWRD to make it display in hex.

mcb

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

Quote

Originally posted by mburch:
**The ModVal fields are set to DWRD (decimal word) in ResEdit, so whatever value you come up with by adding the hex values for the flags together, just convert it to decimal and enter it in. Or, temporarily change the field from a DWRD to an HWRD to make it display in hex.

mcb

**

Hey, I don't know anything about "hex" & company, but I think I might have it; if I came up with "$0048" it should be changed to "48" for the ModVal field?

------------------
- Lone "Darn, its not in the spellchecker!" Igadzra

No. If you had $0048 in hex, you need to convert it into decimal form for use in the ModVal field. To convert, do the following:

Take the first digit (8) and leave it alone.
Take the second digit (4) and multiply it by sixteen to the first power (16) to get 64.
Take the third digit (0) and multiply it by sixteen to the second power (256) to get 0.
Take the fourth digit (0) and multiply it by sixteen to the third power (4096) to get 0.

Add all the results together (8+64+0+0) to get 72, the decimal form of $0048, which you then place in the ModVal field.

-reg

------------------
"Now, Mr. Mirnas... start at the beginning."

-The Interrogator