#605: "You are asking too much" power
-----------------------------------------+----------------------------------
 Reporter:  Per                          |              Owner:  gerard_         
     Type:  defect                       |             Status:  new             
 Priority:  major                        |          Milestone:  2.3             
Component:  Engine: Resource Management  |            Version:  svn/trunk       
 Keywords:  power                        |   Operating_system:  All/Non-Specific
Blockedby:                               |           Blocking:                  
-----------------------------------------+----------------------------------
 Playing skirmish on Miza.

  error   |04:50:32: [requestPowerFor] you are asking too much
  error   |04:50:32: [requestPowerFor] Assert in Warzone: power.c:448
  (asPower[player].powerRequested < 1000), last script event: '14
  (CALL_STRUCTBUILT)'
  warzone2100: power.c:448: requestPowerFor: Assertion
  `asPower[player].powerRequested < 1000' failed.

  Program received signal SIGABRT, Aborted.
  0x00000030fb832f05 in raise (sig=<value optimized out>) at
  ../nptl/sysdeps/unix/sysv/linux/raise.c:64
  64        return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
  Missing separate debuginfos, use: debuginfo-install alsa-
  lib-1.0.20-1.fc10.x86_64 freetype-2.3.7-3.fc10.x86_64
  libxcb-1.1.91-6.fc10.x86_64
  (gdb) bt
  #0  0x00000030fb832f05 in raise (sig=<value optimized out>) at
  ../nptl/sysdeps/unix/sysv/linux/raise.c:64
  #1  0x00000030fb834a73 in abort () at abort.c:88
  #2  0x00000030fb82bef9 in __assert_fail (assertion=0x6fd710
  "asPower[player].powerRequested < 1000", file=0x6fd2dc "power.c",
  line=448, function=0x6fd750 "requestPowerFor") at assert.c:78
  #3  0x0000000000560a8f in requestPowerFor (player=0, amount=2952.00024,
  points=410) at power.c:448
  #4  0x00000000005b4731 in aiUpdateStructure (psStructure=0x3467c10,
  mission=false) at structure.c:3405
  #5  0x00000000005b5a4d in structureUpdate (psBuilding=0x3467c10,
  mission=false) at structure.c:3754
  #6  0x0000000000516f77 in gameLoop () at loop.c:373
  #7  0x00000000005193de in runGameLoop () at main.c:653
  #8  0x00000000005197bf in mainLoop () at main.c:841
  #9  0x0000000000519e25 in main (argc=1, argv=0x7fffffffe368) at
  main.c:1069
  (gdb) frame 3
  #3  0x0000000000560a8f in requestPowerFor (player=0, amount=2952.00024,
  points=410) at power.c:448
  448             ASSERT(asPower[player].powerRequested < 1000, "you are
  asking too much");
  (gdb) up
  #4  0x00000000005b4731 in aiUpdateStructure (psStructure=0x3467c10,
  mission=false) at structure.c:3405
  warning: Source file is more recent than executable.
  3405                                            psFactory->timeToBuild -=
  progress;
  (gdb) p powerNeeded
  $1 = 2952.00024
  (gdb) p ((DROID_TEMPLATE *)pSubject)->powerPoints
  $2 = 62
  (gdb) p secondsElapsed
  $3 = 410
  (gdb) p secondsToBuild
  $4 = 8.61111069
  (gdb) p gameTime
  $5 = 744622
  (gdb) p psFactory->timeStarted
  $6 = 333726
  (gdb) p ((DROID_TEMPLATE*)pSubject)->buildPoints
  $7 = 310
  (gdb) p (float)psFactory->productionOutput
  $8 = 36
  (gdb) p psStructure->player
  $10 = 0 '\0'
  (gdb) p selectedPlayer
  $11 = 7

-- 
Ticket URL: <http://developer.wz2100.net/ticket/605>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Resurrection Project
_______________________________________________
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev

Reply via email to