tel8618217223380 / game-golem

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

Problem in Player worker #283

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using a player with no War Rank

What is the expected output? What do you see instead?
Generals Page wont show generals or generals with problems, cause Player worker 
wont get attack/defense info.

What version of Golem are you using? Beta or release? On what browser?
Beta Chrome 1041

Problem is here

      if (keep.length) {
            this.set('myname', $('div.keep_stat_title_inc > span', keep).text().regex(/"(.*)"/));
            this.set('battle', $('td.statsTMainback img[src*=rank_medals]').attr('src').filepart().regex(/(\d+)/));
------>     this.set('war', $('td.statsTMainback 
img[src*=rank_medals_war]').attr('src').filepart().regex(/(\d+)/));
            stats = $('div.attribute_stat_container', keep);
            this.set('maxenergy', $(stats).eq(0).text().regex(/(\d+)/));
            this.set('maxstamina', $(stats).eq(1).text().regex(/(\d+)/));

And no more player info is set below that point.

Workaround: Start War.

Original issue reported on code.google.com by anarel...@gmail.com on 2 Apr 2011 at 9:41

GoogleCodeExporter commented 9 years ago
Well, war can't be started at level 25 :S So no workaround.

Original comment by anarel...@gmail.com on 2 Apr 2011 at 9:43

GoogleCodeExporter commented 9 years ago
Fixed in 1043.

Original comment by RycochetTM on 2 Apr 2011 at 11:14

GoogleCodeExporter commented 9 years ago
Steps
Update to r1043
Close Chrome
Deleted local storage (start anew)
Start Chrome
Console output attached

That seems to be only first problem into a bigger one. Its not clear to me 
where the Generals data info is first initialized if its in Keep page or 
generals page, it crashes here cause data is not initialized.

          stale = true;
        }
    }
    if (Page.page === 'heroes_generals') {
        current = $('div.general_name_div3').first().text().trim();
---->   if (this.data[current]){
            $('div[style*="model_items.jpg"] img[title]').each(function(i){
                var temp = $(this).attr('title');

Original comment by anarel...@gmail.com on 2 Apr 2011 at 12:14

Attachments:

GoogleCodeExporter commented 9 years ago
Console output for the last comment.

[r1043] [14:15:43]: TypeError: Cannot read property 'Aeris' of undefined
->Page._update({"worker":"[worker 
Page]","self":true,"type":"trigger","id":"page_change","selector":"#app467550284
29_app_body_container, #app46755028429_globalContainer"})
  ->Page.update({"worker":"[worker Page]","self":true,"type":"trigger","id":"page_change","selector":"#app46755028429_app_body_container, #app46755028429_globalContainer"})
    ->Generals._parse(false)
      ->Generals.parse(false)

Original comment by anarel...@gmail.com on 2 Apr 2011 at 12:16

GoogleCodeExporter commented 9 years ago
That one was in Generals so should have been a separate issue - but should be 
fixed now too.

Original comment by RycochetTM on 2 Apr 2011 at 1:39

GoogleCodeExporter commented 9 years ago
Ok sorry, then first bug is solved. There seems to be more in Generals (i'll 
open a new issue after i investigate through).

Thanks ;)

Original comment by anarel...@gmail.com on 2 Apr 2011 at 2:19

GoogleCodeExporter commented 9 years ago

Original comment by 0Artifi...@gmail.com on 5 May 2011 at 7:50