skanck 2 Posted August 9, 2016 Report Share Posted August 9, 2016 this works if it is the only code in the bot set(#num1, 50, "Global")set(#perpage, 20, "Global")set(#loopit, $eval("var worknum = {#num1}/{#perpage};worknumrnd = Math.floor(worknum);worknumrnd"), "Global") but if it is not the only code in the bot and when run it opens the about:blank page in the bot window but does not change the variable. anyone know what's happening?thanks Quote Link to post Share on other sites
skanck 2 Posted August 9, 2016 Author Report Share Posted August 9, 2016 this is from the ubot_log2016-08-09 11:21:58: Executing javascript failed: try { if(typeof uscript !== 'undefined') { ubot.storeResult(uscript.stringify(eval("var worknum = 8367/120;\nworknumrnd = Math.ceil(worknum);\nworknumrnd"))); } else { ubot.storeResult("uscript_error"); } } catch(e) { ubot.log('UBot Error: ' + e.message + '(' + e.lineNumber + ')'); ubot.storeResult("uscript_error"); }and brower_log2016-08-09 03:36:32 (13672): Browser Core Started2016-08-09 03:36:32 (13672): Starting up...2016-08-09 03:36:32 (13672): Configuring WebCore2016-08-09 03:36:32 (13672): Initializing WebCore2016-08-09 03:36:32 (13672): Creating Session2016-08-09 03:36:32 (13672): Sent ready command2016-08-09 03:36:32 (13672): Terminating2016-08-09 03:36:32 (5232): Browser Core Started2016-08-09 03:36:32 (5232): Starting up...2016-08-09 03:36:32 (5232): Configuring WebCore2016-08-09 03:36:32 (5232): Initializing WebCore2016-08-09 03:36:32 (5232): Creating Session2016-08-09 03:36:32 (5232): Sent ready command so every time a bot is opened it talks to ubot server?is this related to the cannot run bots locally any more?mentioned herehttp://network.ubotstudio.com/forum/index.php/topic/19740-please-wait-while-downloading-support-files/?do=findComment&comment=123359and in the bugtrackerhttp://tracker.ubotstudio.com/issues/1068 Quote Link to post Share on other sites
pash 504 Posted August 9, 2016 Report Share Posted August 9, 2016 Ubot 4?i test it working. set(#num1, 50, "Global") set(#perpage, 20, "Global") set(#loopit, $eval("var worknum = {#num1}/{#perpage}; worknumrnd = Math.floor(worknum); worknumrnd;"), "Global") Quote Link to post Share on other sites
skanck 2 Posted August 9, 2016 Author Report Share Posted August 9, 2016 this works if it is the only code in the botthanks for replying Pash Quote Link to post Share on other sites
skanck 2 Posted August 10, 2016 Author Report Share Posted August 10, 2016 i uninstalled 4 & 5, re-installed both, updated java, net 4.5: still not working.. weird to test it yourself copy pasta the above eval code into a bot, works great, yesadd some other code like open a file as a table (I use the large data plugin-which is excellent btw thank you), set a variable from this large table and use this variable in the eval and see if it does not work for you tooTL;DR: it's fixed: using a navigate FIRST before the eval calculation is done, but does it qualify as a bug?anyway, please close this thread thanks Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.