Author Topic: Compatibility problem.  (Read 974 times)

Offline megafan

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Compatibility problem.
« on: December 20, 2009, 12:29:38 PM »
Hi,
first sorry for my bad english.
So, I'm the creator of an ogame like game call o10c (www.o10c.eu if you want to look) But that's not the goal of this post.  :)
I'm writtting this game whith asp.net et sql server for databases.
The game is now 95% finished.
In order to be compatible with simulators i've search a very long time on the net, the algorithm used in Ogame.
With the informations found, i've wrote my own combat function, but it'still not totally compatible with drago.
In fact i've just find today where the problem is.
With an example i'will be more precise.

So imagine attacker and diffender are 10/10/10
Attaquant fleet 200 Large Cargo
Defender 1 Plasma turret

1st round
Attaquant will fires 200 times with 200 x 5 x (1+10/10) = 1000

the defender have a shield of : 1 x 300 x (1 + 10/10)= 600 and 1 x 10.000 x (1+10/10)= 20.000 Armour

In my algorithm i substract 600 form shield then Armour take 400 dammage (600+400=1000).
In the combat report of the same simulation with drago, i show this :
The defending shields absorb 996 damage

So my question is just how 996 is calculate ?  :-\

Thank by advance
Megafan









Online MrMage

  • Administrator
  • *****
  • Posts: 399
  • Karma: 3
Re: Compatibility problem.
« Reply #1 on: December 20, 2009, 03:39:57 PM »
As far as I remember, the damage of the attacking ship is rounded down to an integral percentage of the defending units' shield. E.g. a transporter shoots with 5 damage onto a plasma, and the plasma has 300 shield => the damage gets rounded down to 1% of the plasma's shield, e.g. 3 damage. Or something like that.

Offline megafan

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Compatibility problem.
« Reply #2 on: December 20, 2009, 04:33:26 PM »
But how can you explain that is the shield who is increased ?
the calculated shield value is 600 and not 996.
Thank by advance if you can explain me how you obtain this particular value.
Megafan

Online MrMage

  • Administrator
  • *****
  • Posts: 399
  • Karma: 3
Re: Compatibility problem.
« Reply #3 on: December 20, 2009, 05:14:00 PM »
For the first 99 ships, the damage is reduced from 5 to 3. So 3 damage is dealt to the shield, but 5 damage is effectively avoided. So it counts 495 absorbed dam. After those 99 shots, there is 3 shield remaining. These are removed directly and added. 495 + 3 = 498.
« Last Edit: December 20, 2009, 05:19:41 PM by MrMage »

Offline megafan

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Compatibility problem.
« Reply #4 on: December 21, 2009, 06:45:17 PM »
Ok, so the dammage value is not equal to the Attack value !
it's a percentage of the shield.
I try with this elements.
Thank you
Megafan

Offline megafan

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Compatibility problem.
« Reply #5 on: December 29, 2009, 03:10:29 PM »
A last question.
Is a Ship can shoot the same target more than one time with rf (in the same round) ?
thk
megafan

Online MrMage

  • Administrator
  • *****
  • Posts: 399
  • Karma: 3
Re: Compatibility problem.
« Reply #6 on: December 29, 2009, 03:12:21 PM »
Yes, it can.

Offline megafan

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Compatibility problem.
« Reply #7 on: January 02, 2010, 04:59:36 PM »
Ok, thanks a lot, now my algo is rather good..
Bye and perhas see you on o10c
Megafan