akarnokd / open-ig

Free & open-source reimplementation of Imperium Galactica. Download the Installer below the file list!
GNU Lesser General Public License v3.0
244 stars 55 forks source link

Garthog AI doesnt work #376

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
An unexpected error occurred.
You should consider submitting an error report via the project issue list:
http://code.google.com/p/open-ig/issues/list
Please include the following diagnostic information followed by the error 
stacktrace(s):
   Java version: 1.6.0_29
   Java vendor: Sun Microsystems Inc. (http://java.sun.com/)
   Java class version: 50.0
   Operating system: Windows 7, x86, 6.1
   Game version: 0.94.364
   Command line: [-memonce]
   Available memory: 241 MB
   Maximum memory: 742 MB
   Parallelism: 2
   Startup language: hu
----
java.lang.NullPointerException
    at hu.openig.mechanics.AI.spaceBattle(AI.java:142)
    at hu.openig.screen.items.SpacewarScreen.doSpacewarSimulation(SpacewarScreen.java:3536)
    at hu.openig.screen.items.SpacewarScreen$7.invoke(SpacewarScreen.java:2857)
    at hu.openig.screen.CommonResources.doTimerTick(CommonResources.java:714)
    at hu.openig.screen.CommonResources$2.actionPerformed(CommonResources.java:215)
    at javax.swing.Timer.fireActionPerformed(Unknown Source)
    at javax.swing.Timer$DoPostEvent.run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$000(Unknown Source)
    at java.awt.EventQueue$1.run(Unknown Source)
    at java.awt.EventQueue$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

Im at the third period in the game. I have to Conquer all Garthog planet and 
defeat them.
When i attack a Garthog planet the Garthog space fleet and planetary defences 
do nothing, they dont fire back, they just le me destroy them. Furthermore the 
Garthogs never attack any of my planets. 

I remember in Imperium Galactica Garthogs often attacked my planets and i have 
hard times to defend them, but it was a good challenge. In original game in 
space battles Garthog fighters when they had low hp used kamikaze against my 
bigger ships with quite a good succes.
Garthog capital ships used rockets and bombs too.

Original issue reported on code.google.com by Sylo...@yahoo.com on 28 Apr 2012 at 10:15

GoogleCodeExporter commented 9 years ago
Thanks for reporting. Could you please upload a save?

Original comment by akarn...@gmail.com on 28 Apr 2012 at 12:08

GoogleCodeExporter commented 9 years ago
I've made adjustments to the AI, it should now fire its rockets and fighters 
below 10% health will kamikaze. Try version 0.94.365

Original comment by akarn...@gmail.com on 29 Apr 2012 at 10:37

GoogleCodeExporter commented 9 years ago
I can send the save after Wednesday, because now i am not at home. 
Note about the kamikaze. If they start it from ther maximum fire distance at 
10% hp they will never reach any of my ship. The key for succes is that they 
come close (not very just moderate) start fireing and approx 25% hp do 
kamikaze. The fighter nearer i got less chance to destroy it. The priority 
witch ship should collide to would be the biggest and the nearest.

In original at hard level the only way to destroy Garthop capital ships while 
you have much weaker army was this. 

Original comment by Sylo...@yahoo.com on 30 Apr 2012 at 3:47

GoogleCodeExporter commented 9 years ago

Original comment by akarn...@gmail.com on 30 Apr 2012 at 7:11