EVNEW: Trick for entering negative inaccuracy

We all know about the cool things that can be done by putting negative values exactly where they do not belong (in the inaccuracy field, and in the subtheta field). However, if we are on windows, we havnt been able to play with them cause EVNEW doesnt let one enter negative numbers where they dont belong (this was intended as a form of error checking). Although this will be fixed in EVNEW pb 1.0.2, I have no clue when that's coming out.
In the meantime, I have a solution to this, however wretched a solution it is.
0. Go download cheat-o-matic from: (url="http://"http://www.gamerzone.com/files/omatic.zip")http://www.gamerzone...iles/omatic.zip(/url)
1. Fire up EVNEW and make your weapon, except for the negative value.
2. Fire up Cheatomatic
3. Put a random number in the field you want a negative in.
4. Search for that value in the program.
5. Repeat 3 and 4 until cheatomatic says it's got it.
6. Enter the negative value you want, and close the EVNEW editor window.
Done. I dont know what will happen if you reopen the editor for that weap.
Enjoy all.
-Az

------------------
It is here. EVNEW Public Beta (url="http://"http://www.aznt.com/EVN/EVNEW")www.aznt.com/EVN/EVNEW(/url)

What does negative inaccuacy do?

------------------

Quote

Originally posted by ChauSara:
**What does negative inaccuacy do?

**

Gives a fixed angular deviation.
(url="http://"http://www.ambrosiasw.com/cgi-bin/ubb/postdisplay.cgi?forum=Forum9&topic;=004881")http://www.ambrosias...m9&topic=004881(/url)
-Az

------------------
It is here. EVNEW Public Beta (url="http://"http://www.aznt.com/EVN/EVNEW")www.aznt.com/EVN/EVNEW(/url)

(This message has been edited by Azratax2 (edited 12-30-2003).)

Sounds very cool.

------------------
(url="http://"http://en.wikipedia.org")En Wikipedia(/url)

Quote

Originally posted by Azratax2:
**Gives a fixed angular deviation.
http://www.ambrosias...m9&topic=004881 **

Unless you're me, in which case it does nothing, which is very annoying.

------------------
(url="http://"http://homepage.mac.com/jonathanboyd/evn/index.html")Classic4Nova plug-in(/url)

Quote

Originally posted by Jonathan Boyd:
**Unless you're me, in which case it does nothing, which is very annoying.

**

Yeah. I would love to see someone other than Orca test it out on 1.0.7. Not that i have any doubts about Orca's competence, of course. Right now it is 1 vs 1 working : not working. Anyone else wanna help see if it works on 1.0.7? (As i have said, I am a PC user - and so i cant test it).
-Az

------------------
It is here. EVNEW Public Beta (url="http://"http://www.aznt.com/EVN/EVNEW")www.aznt.com/EVN/EVNEW(/url)

Ive done it. to my knowlage you cant do (-1)-(-89).

------------------
Links:
(url="http://"http://forum.cjb.net:81/cgi-bin/forum.cgi?forum=unrealslair")Unreals Fourms(/url) (url="http://"http://www.unrealslair.cjb.net/")Unreals Lair(/url) (url="http://"mailto:unrealslair@unrealslair.cjb.net")mailto:unrealslair@unrealslair.cjb.net(/url)unrealslair@unrealslair.cjb.net

There's an easier way to calculate that than guessing and using a cheat program...

EVNEW uses an unsigned short int for the field, while EV:N itself uses a signed short int. The max positive value you can hold in a signed short is 2^15-1, or 32767. HOWEVER, due to the way numbers are represented, 32768 is the same as -32768! 32769 is the same as -32767, and so on and so forth. You can do the math from there. It goes all the way up to 65535, which is -1.

------------------
~Charlie
Sephil Saga Homepage: (url="http://"http://www.cwssoftware.com")www.cwssoftware.com(/url)

Quote

Originally posted by Masamune:
**There's an easier way to calculate that than guessing and using a cheat program...

EVNEW uses an unsigned short int for the field, while EV:N itself uses a signed short int. The max positive value you can hold in a signed short is 2^15-1, or 32767. HOWEVER, due to the way numbers are represented, 32768 is the same as -32768! 32769 is the same as -32767, and so on and so forth. You can do the math from there. It goes all the way up to 65535, which is -1.**

Wait; wouldn't it be 32768 = -32767, etc., since the max is 32767?

------------------
The programmer's code of entomology: there's always another bug.
Windows users: stop asking for plugins. (url="http://"http://www.aznt.com/EVN/EVNEW/")Make one yourself.(/url)
(url="http://"http://www.cwssoftware.com")Sephil Saga Website(/url)

That's an interesting trick, Azratax. EVNEW uses a signed short int whenever EVN does, and likewise for an unsigned short int. Almost every value is a signed short int, except for flags, which are always unsigned short ints, except for spobs, where they're regular unsigned ints, and colors are always regular unsigned ints. Masamune was right about the values. Signed short ints range from -3276 8 to +3276 7. The positive values are all equivalent to unsigned values. Negative numbers are represented in what's known as two's complement notation. To write -x, you flip all of the bits of x and then add 1. So, to get -1, you take 1 = 0x0001, flip the bits to get 0xFFFE, and add 1 to get 0xFFFF. Note that (-1) + 1 = 0xFFFF + 0x0001 = 0x0000 = 0, as it should be. 0xFFFF unsigned would be 65535. To get -32768, you take 32768 = 0x8000, flip the bits to get 0x7FFF, and add 1 to get 0x8000. Thus, -32768 signed is +32768 unsigned, and (-32768) + 32768 = 0x8000 + 0x8000 = 0x0000 = 0.

------------------
Get (url="http://"http://www.aznt.com/EVN/EVNEW")EVNEW(/url) - the free, open-source EVN plugin Editor for Windows!

Quote

Originally posted by Aprosenf:
That's an interesting trick, Azratax. EVNEW uses a signed short int whenever EVN does, and likewise for an unsigned short int. Almost every value is a signed short int, except for flags, which are always unsigned short ints, except for spobs, where they're regular unsigned ints, and colors are always regular unsigned ints. Masamune was right about the values. Signed short ints range from -3276 8 to +3276 7. The positive values are all equivalent to unsigned values. Negative numbers are represented in what's known as two's complement notation. To write -x, you flip all of the bits of x and then add 1. So, to get -1, you take 1 = 0x0001, flip the bits to get 0xFFFE, and add 1 to get 0xFFFF. Note that (-1) + 1 = 0xFFFF + 0x0001 = 0x0000 = 0, as it should be. 0xFFFF unsigned would be 65535. To get -32768, you take 32768 = 0x8000, flip the bits to get 0x7FFF, and add 1 to get 0x8000. Thus, -32768 signed is +32768 unsigned, and (-32768) + 32768 = 0x8000 + 0x8000 = 0x0000 = 0.

Oh, now I get it. I thought it was 32767 on either side of zero. Whoops. Anyway, I have no idea what the last part you said was...this binary stuff is confusing. Meh.

------------------
The programmer's code of entomology: there's always another bug.
Windows users: stop asking for plugins. (url="http://"http://www.aznt.com/EVN/EVNEW/")Make one yourself.(/url)
(url="http://"http://www.cwssoftware.com")Sephil Saga Website(/url)

Can't be 32767 either side: with 16 bits, there are exactly 2^16, so 65532 possibilities, so 65532 different numbers, with the unsigned numbers, it gives you the numbers from 0 to 6553 1 and with the signed numbers it is -32768 to 32767. The same goes for 8-bits and 32-bits integers.

Oh, and this kind of workarounds is no longer necessary: EVNEW public beta 1.0.2 is officially out!

------------------
The (url="http://"https://secure.ambrosiasw.com/cgi-bin/store/hazel.cgi?action=serve&item;=breakdown.html&BREAKDOWN;_SKUID=1480")Ambrosia Mac CD(/url) with other registrations - 5$. Paying for (url="http://"http://www.ambrosiasw.com/games/evn/")EV Nova(/url) as it's such a great game - 30$.
The (url="http://"http://www.ambrosiasw.com/games/evn/tshirts.html")1337 EV Nova T-shirt(/url) - 22$. The (url="http://"http://w00tware.ev-nova.net/")NovaTools(/url) by wOOtWare to tinker with your Nova - FREE!
The feeling you're a Nova geek - priceless.
There are things you can't buy or that are free, for everything else, there's indeed Eurocard Mastercard.

Close, but check your math. 2^16 = 65536, not 65532, so an unsigned 16-bit number can hold anywhere from 0 to 65535.

------------------
Get (url="http://"http://www.aznt.com/EVN/EVNEW")EVNEW(/url) - the free, open-source EVN plugin Editor for Windows!

This is obsolete now. EVNEW 1.0.2 which is available for download (check the link in my sig), allows you to enter negative numbers even where you shouldnt be able to.
It is a facinating discussion on binary though....
-Az

------------------
It is here. EVNEW Public Beta (url="http://"http://www.aznt.com/EVN/EVNEW")www.aznt.com/EVN/EVNEW(/url)
Stuffit is a piece of .sit.

Quote

Originally posted by Azratax2:
**It is a facinating discussion on binary though....
-Az

**

01001001 01101110 01100100 01100101 01100101 01100100 00101110

------------------
Here a slice, there a slice,
everywhere a slice slice.

Translation, for those who are too lazy to look up ASCII: "Indeed."

------------------
Get (url="http://"http://www.aznt.com/EVN/EVNEW")EVNEW(/url) - the free, open-source EVN plugin Editor for Windows!

Aww, don't translate for 'em! Make them do it themselves! 😛

------------------
Here a slice, there a slice,
everywhere a slice slice.

Is anybody else having Futurama flashbacks right now? "And the great robot proclaimed, one zero zero one one zero...."

------------------
~Charlie
Sephil Saga Homepage: (url="http://"http://www.cwssoftware.com")www.cwssoftware.com(/url)

Quote

Originally posted by Azratax2:
**Yeah. I would love to see someone other than Orca test it out on 1.0.7. Not that i have any doubts about Orca's competence, of course. Right now it is 1 vs 1 working : not working. Anyone else wanna help see if it works on 1.0.7? (As i have said, I am a PC user - and so i cant test it).
-Az

**

I've tested both the fields with negative values (Innacuracy and SubTheta) and they work fine for my EVN 1.0.7 running on an E-mac. Finally I got my spreadfire cannon to work right!

------------------
Visit these websites (Not affiliated with Lumpy the Elf)
(list)
()(url="http://"http://www.elfmovie.com")The Elf Movie!(/url)
(
)(url="http://"http://www.elftor.com")The Elf Comics!(/url)
(*)(url="http://"http://www-2.cs.cmu.edu/~fp/elf.html")Elf Programming!(/url)

10 HOME
20 SWEET
30 GOTO 10

(even if it's wrong, as it would never stop actually ;))

orca, hexadecimal is not complicated when you understand it's just a quicker way to say binary: instead of having 01101100010111101010001010100001 you just have $6C5EA2A1. It does take less space, doesn't it? Oh, and either unsigned or signed it's the 32-bit integer 1818141345 (I hope the Windows calculator isn't buggy). Now for the explanation of the negative integers, it's made so that if you bitwise add a number (say, in 8-bit, 76, so 01001100 or $4C) and its opposite (-76 so 10110100 or $B4) you end end up with 00000000 or $00 (and not 100000000 or &100, the last 1+1 result is not carried away and is 0).

On slightly related matters (and to show this kind of stuff can be pretty important) if you get more than 127 lives in Super Mario Bros., the next time you die, you have game over; since the number of lives is oddly internally stored as an unsigned 8-bit integer, if you go over 127 (01111111 or $7F) it becomes -128 (10000000 or $80), you have less than one life remaining, you die, your (intended engrish) game over.

Would you have put 49 6E 64 65 65 64 2E that I would have understood intantly, Katana, I tend not to think in binary at all but in hex now.

------------------
The (url="http://"https://secure.ambrosiasw.com/cgi-bin/store/hazel.cgi?action=serve&item;=breakdown.html&BREAKDOWN;_SKUID=1480")Ambrosia Mac CD(/url) with other registrations - 5$. Paying for (url="http://"http://www.ambrosiasw.com/games/evn/")EV Nova(/url) as it's such a great game - 30$.
The (url="http://"http://www.ambrosiasw.com/games/evn/tshirts.html")1337 EV Nova T-shirt(/url) - 22$. The (url="http://"http://w00tware.ev-nova.net/")NovaTools(/url) by wOOtWare to tinker with your Nova - FREE!
The feeling you're a Nova geek - priceless.
There are things you can't buy or that are free, for everything else, there's indeed Eurocard Mastercard.

(This message has been edited by Zacha Pedro (edited 01-05-2004).)