google-code-export / game-golem

Automatically exported from code.google.com/p/game-golem
0 stars 0 forks source link

Land worker loop #247

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. rebooting and restarting browser
2. launching separate tab for CA via FB bookmarklet
3. everything is as expected until the land worker kicks in, now stuck in a 
loop retrieving 7300000000 gold and trying to buy 7800000000 worth of Elf Sact. 
but when that fails Bank worker kicks in and deposit, then goes back to Land 
worker.
4. Disable Land worker ;)

What is the expected output? What do you see instead?
Status infos shows: "Land: Buying 10x Elven Sanctum for $7.3 B (Available Cash: 
$7.2 B)"

What version of Golem are you using? Beta or release? On what browser?
"Castle Age Golem r955" "Chrome 8.0.552.224"

[r955] [07:52:55] Page->Elite: Elite guard full, wait 12 hours
chrome-extension://onfncfheocnidgnejgnlcnfiifoidemg/worker_+queue.js:287[r955] 
[07:52:56] Queue: Trigger Land
chrome-extension://onfncfheocnidgnejgnlcnfiifoidemg/worker_+page.js:246[r955] 
[07:52:57] Queue->Land->Bank->Page: Navigating to keep.php
chrome-extension://onfncfheocnidgnejgnlcnfiifoidemg/worker_+page.js:246[r955] 
[07:53:30] Queue->Land->Page: Navigating to land.php
chrome-extension://onfncfheocnidgnejgnlcnfiifoidemg/worker_+debug.js:129[r955] 
[07:53:31]: TypeError: Cannot read property 'cost' of undefined
->Page._update({"worker":"[worker 
Page]","self":"true","type":"trigger","id":"page_change","selector":"#app4675502
8429_app_body_container, #app46755028429_globalContainer"})
  ->Page.update({"worker":"[worker Page]","self":"true","type":"trigger","id":"page_change","selector":"#app46755028429_app_body_container, #app46755028429_globalContainer"})
    ->Land._flush()
      ->Land._save()
        ->Land._update({"type":"data","self":"true","worker":"[worker Land]"})
          ->Land.update({"type":"data","self":"true","worker":"[worker Land]"})
chrome-extension://onfncfheocnidgnejgnlcnfiifoidemg/worker_ca_land.js:196[r955] 
[07:53:32] Queue->Land: Buying 10 x Elven Sanctum for $7.3 B
chrome-extension://onfncfheocnidgnejgnlcnfiifoidemg/worker_+queue.js:287[r955] 
[07:53:32] Queue: Trigger Bank
chrome-extension://onfncfheocnidgnejgnlcnfiifoidemg/worker_+debug.js:129[r955] 
[07:53:33]: TypeError: Cannot read property 'cost' of undefined
->Page._update({"worker":"[worker 
Page]","self":"true","type":"trigger","id":"page_change","selector":"#app4675502
8429_app_body_container, #app46755028429_globalContainer"})
  ->Page.update({"worker":"[worker Page]","self":"true","type":"trigger","id":"page_change","selector":"#app46755028429_app_body_container, #app46755028429_globalContainer"})
    ->Land._flush()
      ->Land._save()
        ->Land._update({"type":"data","self":"true","worker":"[worker Land]"})
          ->Land.update({"type":"data","self":"true","worker":"[worker Land]"})
chrome-extension://onfncfheocnidgnejgnlcnfiifoidemg/worker_+page.js:246[r955] 
[07:54:03] Queue->Bank->Page: Navigating to keep.php
chrome-extension://onfncfheocnidgnejgnlcnfiifoidemg/worker_+queue.js:287[r955] 
[07:54:36] Queue: Trigger Land
chrome-extension://onfncfheocnidgnejgnlcnfiifoidemg/worker_+page.js:246[r955] 
[07:54:36] Queue->Land->Bank->Page: Navigating to keep.php
chrome-extension://onfncfheocnidgnejgnlcnfiifoidemg/worker_+page.js:246[r955] 
[07:55:09] Queue->Land->Page: Navigating to land.php
chrome-extension://onfncfheocnidgnejgnlcnfiifoidemg/worker_+debug.js:129[r955] 
[07:55:10]: TypeError: Cannot read property 'cost' of undefined
->Page._update({"worker":"[worker 
Page]","self":"true","type":"trigger","id":"page_change","selector":"#app4675502
8429_app_body_container, #app46755028429_globalContainer"})
  ->Page.update({"worker":"[worker Page]","self":"true","type":"trigger","id":"page_change","selector":"#app46755028429_app_body_container, #app46755028429_globalContainer"})
    ->Land._flush()
      ->Land._save()
        ->Land._update({"type":"data","self":"true","worker":"[worker Land]"})
          ->Land.update({"type":"data","self":"true","worker":"[worker Land]"})
chrome-extension://onfncfheocnidgnejgnlcnfiifoidemg/worker_ca_land.js:196[r955] 
[07:55:11] Queue->Land: Buying 10 x Elven Sanctum for $7.3 B
chrome-extension://onfncfheocnidgnejgnlcnfiifoidemg/worker_+queue.js:287[r955] 
[07:55:11] Queue: Trigger Bank
chrome-extension://onfncfheocnidgnejgnlcnfiifoidemg/worker_+debug.js:129[r955] 
[07:55:12]: TypeError: Cannot read property 'cost' of undefined
->Page._update({"worker":"[worker 
Page]","self":"true","type":"trigger","id":"page_change","selector":"#app4675502
8429_app_body_container, #app46755028429_globalContainer"})
  ->Page.update({"worker":"[worker Page]","self":"true","type":"trigger","id":"page_change","selector":"#app46755028429_app_body_container, #app46755028429_globalContainer"})
    ->Land._flush()
      ->Land._save()
        ->Land._update({"type":"data","self":"true","worker":"[worker Land]"})
          ->Land.update({"type":"data","self":"true","worker":"[worker Land]"})
chrome-extension://onfncfheocnidgnejgnlcnfiifoidemg/worker_+page.js:246[r955] 
[07:55:41] Queue->Bank->Page: Navigating to keep.php
chrome-extension://onfncfheocnidgnejgnlcnfiifoidemg/worker_+queue.js:287[r955] 
[07:56:14] Queue: Trigger Land
chrome-extension://onfncfheocnidgnejgnlcnfiifoidemg/worker_+page.js:246[r955] 
[07:56:15] Queue->Land->Bank->Page: Navigating to keep.php
chrome-extension://onfncfheocnidgnejgnlcnfiifoidemg/worker_+debug.js:129[r955] 
[07:56:23]: TypeError: Cannot read property 'cost' of undefined
->Land._update({"type":"save","id":"option"})
  ->Land._save("option")
    ->Land._update({"type":"option","self":"true","worker":"[worker Land]"})
      ->Land.update({"type":"option","self":"true","worker":"[worker Land]"})
chrome-extension://onfncfheocnidgnejgnlcnfiifoidemg/worker_+queue.js:287[r955] 
[07:56:53] Queue: Trigger Bank
chrome-extension://onfncfheocnidgnejgnlcnfiifoidemg/worker_+page.js:246[r955] 
[07:56:54] Queue->Bank->Page: Navigating to keep.php
chrome-extension://onfncfheocnidgnejgnlcnfiifoidemg/worker_+queue.js:287

Please provide any additional information below.
Thank you! Thank you! Thank You!! Love all of your work!

Original issue reported on code.google.com by cygnus.x...@gmail.com on 11 Jan 2011 at 4:09

GoogleCodeExporter commented 9 years ago
Still happening after the most recent update, now on beta R956

Since I had more than a million over the requested amount according to the 
worker, I paused the Golem and manually made the purchase, however the status 
indicator on the main display is still showing the old values even after 
unpausing the golem and re-enabling the land worker and letting it sit. Now 
it's waiting for my money to build back up.

I also noticed there is a slight display glitch when I go to the in-game Land 
section, the "Income: $nnnnnnn" display for the Elf Sanctum and the Dwarven 
Mine appears to have a <br> between income and the amount displayed. Not sure 
if that means anything but the console (as pasted in my initial post) is 
showing a data retrieval error.

Original comment by cygnus.x...@gmail.com on 12 Jan 2011 at 12:18

GoogleCodeExporter commented 9 years ago
Land should be sorted as of r959/r960. There was a parsing issue that was 
basically parsing all land data overtop the Dwarven Mine data, but under 
another name. I think it should all be good now though.

Original comment by lur...@hotmail.com on 12 Jan 2011 at 3:41

GoogleCodeExporter commented 9 years ago
-- status change only --

Original comment by lur...@hotmail.com on 12 Jan 2011 at 3:42

GoogleCodeExporter commented 9 years ago

Original comment by RycochetTM on 12 Jan 2011 at 9:05

GoogleCodeExporter commented 9 years ago
Fix confirmed, thank you very very much ^_^

Original comment by cygnus.x...@gmail.com on 12 Jan 2011 at 9:42

GoogleCodeExporter commented 9 years ago

Original comment by RycochetTM on 17 Jan 2011 at 6:20