Jump to content
  • LoadProfile and slow loading of profile steps


    Pudge
    • Version: All Product: WRobot General Type: Bug Status: Fixed

    Hello. 

    I dont know is this a bug or not. Each time one profile is loaded from another profile using the "LoadProfile" action =>  the profile steps are loading more and more and more slowly. I just got tired of killing the bot process to load profile steps faster. Is it possible to fix that? 

    Thanks in advance.



    User Feedback

    Recommended Comments

    Droidz

    Posted

    Hi,

    Anyone else is getting this problem? I don't think I can do much, the best would be to optimize your profile to avoid loading too much (maybe create loader profile)

    Talamin

    Posted

    Yes, had this with my old Questingprofiles too. Even the "Loader" Profiles will get slower and slower, each time you restart them. Atleast i noticed this in the WOTLK client. @Droidz You can reproduce this when you take a larger profile and restart this. You should notice this after the second restart. Tbh, i have this since i started with wrobot, but i was told that this is already known but can´t be changed.

    Energia

    Posted

    Indeed it's true. When you stop and play big profile like quester many times the bot get's slower and slower. Closing the bot completely and reopen it helps.

    Droidz

    Posted

    You get problem with encrypted profile? I can't reproduce problem, I tested with several profiles that size is bigger that 1 MB (2 MB for one) . You have try without plugins?

    Talamin

    Posted

    Not Encrypted. It´s a 1-80 Loadprofile. The profile itself has 397 KB, so it isn´t about the size, more about the number of If  Statements inside. I can toss you an example File when you want.

    Droidz

    Posted

    yes if someone can send me a profile that causes this problem (and tell me the context of the character, if possible easy to reproduce) that I try.

    Talamin

    Posted

    i did so, in Discord and via PN. Now i am out of Options.

    Droidz

    Posted

    ok I found, sorry I rarely watch Discord

    Droidz

    Posted

    I found cause (C# compiler,  more he has compiled code, slower it is) .
    For the moment, I don't know if I'll be able to fix it.

    Droidz

    Posted

    I fixed it in new update, now the bot compiles all the steps at start (in one time) and the calls from the cache. For that this works, must be no error in the C # codes used in profile "steps" (a lot of profiles have bad code, you have an error log when profile is loaded if error and the steps codes are compiled 1 by 1 as before)

    Pudge

    Posted

    On 4/21/2021 at 5:16 PM, Droidz said:

    I fixed it in new update, now the bot compiles all the steps at start (in one time) and the calls from the cache. For that this works, must be no error in the C # codes used in profile "steps" (a lot of profiles have bad code, you have an error log when profile is loaded if error and the steps codes are compiled 1 by 1 as before)


    Thanks a lot. But now before loading steps the error appears (doesn't seem to affect the work of the bot):

    [E] 14:23:18 - Compilator Error (steps cache) : q:\WRobot_gatherer1\Data\temp\3dkmob2h.0.cs(778,51) : error CS1002: ; expected q:\WRobot_gatherer1\Data\temp\3dkmob2h.0.cs(3407,2) : error CS1026: ) expected

    Droidz

    Posted

    you have probably error on one of your steps, in this case bot use old method to run steps (you will get again slow problem)

    Pudge

    Posted

    On 4/24/2021 at 3:51 PM, Droidz said:

    you have probably error on one of your steps, in this case bot use old method to run steps (you will get again slow problem)


    How can I find a problematic 'step' if I have hundreds and thousands of them in the one profile? Now I have a major headache because of this errors...

    [E] 15:00:57 - Compilator Error (steps cache) : q:\WRobot_gatherer1\Data\temp\agsvn3p3.0.cs(1111,12) : error CS0411: The type arguments for method 'robotManager.Helpful.Var.GetVar(string)' cannot be inferred from the usage. Try specifying the type arguments explicitly. q:\WRobot_gatherer1\Data\temp\agsvn3p3.0.cs(1115,12) : error CS0411: The type arguments for method 'robotManager.Helpful.Var.GetVar(string)' cannot be inferred from the usage. Try specifying the type arguments explicitly.

    Pudge

    Posted

    @Droidz I have no idea how to fix this, I'm trying to find error in the one profile for about 2 hours but still got them ........ please help

    Pudge

    Posted

    How can I find error like this? When I have about 1000+ steps in profile?

    [E] 11:13:17 - Compilator Error (steps cache) :
    q:\WRobot\Data\temp\l1r0zg2v.0.cs(3488,2) : error CS1026: ) expected

    libai

    Posted

    On 4/30/2021 at 4:30 PM, Pudge said:

    How can I find error like this? When I have about 1000+ steps in profile?

    [E] 11:13:17 - Compilator Error (steps cache) :
    q:\WRobot\Data\temp\l1r0zg2v.0.cs(3488,2) : error CS1026: ) expected

    the temp file is a middle state will be delete quickly , i try to save it after created and before it gone, but failed....

    Droidz

    Posted

    Code should look like :

    Var.GetVar<int>("RND5451") == 2

     



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...