Main Guide Introduction Basics Efficiency Buildings Citizens Military Hacking Spying Sciences Trade Fame Strategies Files

 
Hacking Calculations (Advanced Math Involved)


This is meant for programmers or players who wish to program utilities, or have an advanced knowledge of the underlying calculations involved in Hacking. It is not necessary to know for playing Ominix, and may only improve your game slightly. If you do not understand please do not worry, as some of the best players have not even read these calculations.
 
The algorithm:
 
my_rating = number of hackers sent * (rating/100) (+ science bonus %)
their_rating = number of hackers in country * (rating/100) (+ science bonus %)
 
ratio = multiplier*(my_rating/their_rating) [/2 if enemy has protection or paranoia]
if ratio < 0.5, ratio = 0.5
if ratio > 2.0 ratio = 2.0
 
probability of success = (ratio-0.5)*66.7 %
 
Here is a walkthrough of the algorithm used:
You take the number of hackers you send, and multiply it by your rating divided by 100. Then you multiply that by your science bonus for hacking, if any, and add what you get to your value. So if you send out 450 hackers, and have a science bonus of 20%, and a rating of 95%, then you take the 450 and multiply it by .95(95/100 = .95), and take the 427, and multiply it by your science bonus of .2(20%) to get 85. You then add the 85 to the 427 to get a my_rating of 512. Now you take the number of hackers your target has, and multiply it by their rating divided by 100. Then you multiply that by their science bonus for hacking, if any, and add what you get to your value. So if they have 210 hackers with a bonus of 3% a rating of 100%, and hacking protection, then you take the 210, multiply it by 1, and take that, and times it by .03 to get 6, and add the 6 to the 210 to get a their_rating of 216. Each hacking attack has a multiplier, and the easier the attack, the higher the multiplier. Now lets say you are doing a 'Bank Computer Hacking' attack, which has a multiplier of 1. Now you take that multiplier and multiply it by my_rating divided by their_rating to get ratio. So if you have a my_rating of 512, and they have a their_rating of 216, then you divide the 512 by the 216 to get a ratio value of 2.37 and times that by the multiplier of 1. This yields 2.37. Since he has hacking protection, you divide the 2.37 by 2 to get 1.185. If the ratio is less than .5, it's counted as .5, and if it's higher than 2, it's counted as 2. Since this is not below .5 or above 2, it is left alone. Now to get the probability of success, subtract .5 from the ratio, and then multiply by 66.7 to get the chance of success. If you get a 10, then you have a 10% chance of success, if you get a 47, you have a 47% chance of success. If you get a 90%, you have a 90% chance of success. If you get a 100.05, then you have 100% chance of success. In the walkthrough example above, you subtract .5 from the 1.185 to get .685, and then you multiply the .685 by 66.7 to get 45, which means you have a 45% chance of success. In actuality, you have closer to 46.44% chance of success, but I cut off several of the decimals in order to simplify the walkthrough a bit. Had the target not had hacking protection, then the 2.37 which is above 2, would have become a 2, and then had .5 subtracted from it to become 1.5, which would then have been multiplied by 66.7 to yield 100.05, which is a 100% chance of success.
 
 
[warning, land size is involved in self-hack calculations, but I do not know how, yet]
The self-hacking algorithm is:
 
(% of hackers sent + bonus) * multiplier * rating
 
So, if you send 80% of your hackers, have a 10% science bonus, a rating of 100%, and do a paranoia attack, then you take the 80, and multiply it by .1(the 10% science bonus for hacking), to get 8, and add that to the 80 to get 88%. Then you multiply the 88% by the multiplier for paranoia, which is .5, to get 44, and you multiply that by your rating, which is 1(100%), to get a 44% chance of success.
 
 
The multipliers for each attack are as follows:
 
Access Enemy Database -- 5.0
Hacking Protection -- 3.0
Bank Computer Hacking -- 1.0
Boost Mines -- 1.0
Broadcast Subliminal TV -- 0.9
Spread Panic -- 0.7
Send Bio Virus -- 0.5
Paranoia -- 0.5
Incite Revolt -- 0.5
Military Satellite Hacking -- 0.3
 
 
The algorithm for the rating decrease after an attack is:
 
20*(number of hackers sent)/(total number of hackers) if it's < 5, then rating decreases 5 points anyway
 
So, if you have 500 hackers, and send 250, then you multiply the 20 by the 250 sent, then divide that by the total of 500 to get 10.

©1999 David Simal