Skip to content
This repository has been archived by the owner on Jul 17, 2018. It is now read-only.

Not gaining XP #63

Closed
Archen55 opened this issue Jun 23, 2018 · 19 comments · Fixed by #77
Closed

Not gaining XP #63

Archen55 opened this issue Jun 23, 2018 · 19 comments · Fixed by #77

Comments

@Archen55
Copy link

Any reason why some users are not getting XP at all after running the script for some time?

@anditsung
Copy link

what version are you running?

@Archen55
Copy link
Author

Archen55 commented Jun 23, 2018

18
Edit: I'll update and see if I will keep running on this issue. I'll report later after idling for some time.

@meepen meepen closed this as completed Jun 23, 2018
@Archen55
Copy link
Author

Update: so, I'm on ver. 24 and it's still stuck. I was forever stuck on 75045 XP, and there was no way to make the script pass over it. I had to play myself to make it go up, and the script simply seems to not be working properly, as I'm still not getting XP.

Would you kindly investigate?

@anditsung
Copy link

im using firefox using tampermonkey and its working fine.

@meepen
Copy link
Owner

meepen commented Jun 23, 2018

Can you give your whole setup to me @Archen55 ? browser, userscript manager, version

@meepen meepen reopened this Jun 23, 2018
@callmenemo491
Copy link
Contributor

callmenemo491 commented Jun 23, 2018

i believe what is happening, is that the script is choosing the tile which is like 99.9999% completed, and whilst you are playing that tile, the tile becomes 100%, so when you complete it, the game rejects your XP earned, and therefore it is not 'saved'.
perhaps, it is better to make the script, filter out tiles which are like 99% completed, or something like that.

looking at console debug:, am puzzled.

Mythology Planet zone 73 (1, 6) progress: 0.9648227691650391 difficulty: 3
join to zone 73
73

Arguments { … }
Navigated to https://steamcommunity.com/saliengame/play

Mythology Planet zone 36 (0, 3) progress: 0.005151200108230114 difficulty: 2
join to zone 36
36

Server reported level 7 (156810 / 180000)
continued!
Mythology Planet zone 80 (8, 6) progress: 0.005579200107604265 difficulty: 2
join to zone 80
80

Arguments { … }
Navigated to https://steamcommunity.com/saliengame/play

Mythology Planet zone 70 (10, 5) progress: 0.005936400033533573 difficulty: 2
join to zone 70
70

@callmenemo491
Copy link
Contributor

FireFox 60.0.2 x64, Tampermonkey 4.7.5788 + Script v24

@memehammad
Copy link

i'm using the headless mode and i'm also not gaining any xp

@VanackSabbadium
Copy link

The "normal" script works good, but the headless one doesn't make me gain any xp points also.

Google Chrome 66.0.3359.170 + Tampermonkey 4.6 + Script v24

@VoidedHeadPort
Copy link

I had issues with both scripts.

I was able to get the "normal" script to reward xp again by changing my character's customisation options back to the ones seen when the script is running (which for some reason were the same options as when I first ran the script - except for the body type which was changing)

@memehammad
Copy link

the game seems to restart too quickly, its already reloading while its still uploading my score

@MainFighter
Copy link

yeah headless isn't working for me either, just not gaining exp

@VoidedHeadPort
Copy link

It could actually be one of those errors at, which forces it to reload.

@Scyoni
Copy link

Scyoni commented Jun 23, 2018

The issue is definitely the timeout. Fixed (clumsily) by adding a delay before clicking the continue button. Here's my fix in const TryContinue:

if (GAME.m_State.m_VictoryScreen) {
        GAME.m_State.m_VictoryScreen.children.forEach(function(child) {
            if (child.visible && child.x == 155 && child.y == 300) {// TODO: not this
                continued = true;
                isJoining = true;
                setTimeout(() => {
                    isJoining = false
                }, 6000);
		setTimeout(() => {
		    child.pointertap();
                }, 5000);
            }
        })
    }
    if (GAME.m_State.m_LevelUpScreen) {
        continued = false;
        GAME.m_State.m_LevelUpScreen.children.forEach(function(child) {
            if (child.visible && child.x == 155 && child.y == 300) {// TODO: not this
                continued = true;
                isJoining = true;
                setTimeout(() => {
                    isJoining = false
                }, 6000);
		setTimeout(() => {
		    child.pointertap();
                }, 5000);
            }
        })
    }

@VanackSabbadium
Copy link

@Scyoni it doesn't work for me. I replaced it in index.user.js, is that right?

@memehammad
Copy link

this only works on the web version

@Scyoni
Copy link

Scyoni commented Jun 23, 2018

@VanackSabbadium Yes, but it will only fix the user script version not the headless one. If it's still redirecting before your score is uploaded you can increase the delay by changing the 5000 and 6000 to a higher number (just make sure whatever you replace 5000 with, you replace 6000 with something 1000 higher). That'd be one slow connection, but just sayin'.

@VanackSabbadium
Copy link

@Scyoni oh, i understand. Well, my user script version works fine, i need a fix for the headless version, since i'd like to close Google Chrome to free some RAM. I'll wait for a fix by @meepen :)

@callmenemo491
Copy link
Contributor

tested the solution provided by @Scyoni, and it works for me very well.
have done a pull request so its in the final solution

meepen pushed a commit that referenced this issue Jun 23, 2018
close #63

tested it out, and its much better, with the increased timeout.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants