#6739 closed defect (fixed)

Orange flashing pop counter on cheat code

Reported by: Langbart Owned by: Freagarach
Priority: Should Have Milestone: Alpha 27
Component: UI & Simulation Keywords:
Cc: Patch: Phab:D4939

Description

to reproduce

  • start a map with a civ of your own choice
  • enter gift from the gods
  • select CC and enter salad bowl 200
    • You may have to run the command twice for civs with a large CC like Han/Ptol/Maur
  • notice the pop counter blinks orange
  • delete all units, it still flashes
  • it only stops when producing a new unit
  • minimal replay (~1min)

reproducible

  • does not occur in A25b
  • starts to occur with A26

bisect

(none, likely [26000])

possible solution ?

  • binaries/data/mods/public/simulation/components/Trainer.js

    a b Trainer.prototype.Item.prototype.Spawn = function()  
    304304    }
    305305    if (this.count)
    306306    {
     307        const cmpProductionQueue = Engine.QueryInterface(this.trainer, IID_ProductionQueue);
     308        if (cmpProductionQueue.queue.length)
    307309        cmpPlayer.BlockTraining();
    308310
    309311        if (!this.spawnNotified)

Attachments (1)

commands.txt (4.5 KB ) - added by Langbart 15 months ago.

Download all attachments as: .zip

Change History (3)

by Langbart, 15 months ago

Attachment: commands.txt added

comment:1 by Freagarach, 15 months ago

Owner: set to Freagarach
Patch: Phab:D4939

comment:2 by Freagarach, 15 months ago

Resolution: fixed
Status: newclosed

In 27549:

Fix batch not stopped when using the spawn cheat.

Reported and tested by @Langbart.
Differential revision: https://code.wildfiregames.com/D4939
Fixes #6739

Note: See TracTickets for help on using tickets.