Author Topic: ChangeOwner and/or Empire bugs  (Read 533 times)

0 Members and 1 Guest are viewing this topic.

Mihhaelo

  • Sapling
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 67
ChangeOwner and/or Empire bugs
« on: November 09, 2011, 11:26:05 AM »
As far as I can see, when GetAsteroid():ChangeOwner() is used in script, it doesn't update the information GetEmpire():GetNumOwnedAsteroids() returns.

Likewise, GetEmpire():GetRandomAsteroid() also fails.

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 1
  • -Receive: 20
  • Posts: 1,483
  • They'll eat you next!
  • Eufloria: Yes
Re: ChangeOwner and/or Empire bugs
« Reply #1 on: November 09, 2011, 05:51:03 PM »
I don't use ChangeOwner()... I use .Owner = x :P

But the GetRandomAsteroid() fail is strange...

Alex

  • Administrator
  • Ent
  • *****
  • Thank You
  • -Given: 3
  • -Receive: 13
  • Posts: 1,035
Re: ChangeOwner and/or Empire bugs
« Reply #2 on: November 14, 2011, 03:35:42 PM »
You may need the game to run an update before that number is corrected... you may in fact be able to call the empire's update from the script so that the number gets updated.