Jump to content
UBot Underground

Ubot 4.2.20 Eval Has Stopped Working


Recommended Posts

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

post-2792-0-78794200-1470711203_thumb.png

Link to post
Share on other sites

this is from the ubot_log
2016-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_log
2016-08-09 03:36:32 (13672): Browser Core Started
2016-08-09 03:36:32 (13672): Starting up...
2016-08-09 03:36:32 (13672): Configuring WebCore
2016-08-09 03:36:32 (13672): Initializing WebCore
2016-08-09 03:36:32 (13672): Creating Session
2016-08-09 03:36:32 (13672): Sent ready command
2016-08-09 03:36:32 (13672): Terminating
2016-08-09 03:36:32 (5232): Browser Core Started
2016-08-09 03:36:32 (5232): Starting up...
2016-08-09 03:36:32 (5232): Configuring WebCore
2016-08-09 03:36:32 (5232): Initializing WebCore
2016-08-09 03:36:32 (5232): Creating Session
2016-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 here
http://network.ubotstudio.com/forum/index.php/topic/19740-please-wait-while-downloading-support-files/?do=findComment&comment=123359

and in the bugtracker
http://tracker.ubotstudio.com/issues/1068
 

Link to post
Share on other sites

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")

post-5560-0-99373100-1470717169_thumb.png

Link to post
Share on other sites

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, yes

add 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 too

TL;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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...