maximedt 0 Posted October 17, 2010 Report Share Posted October 17, 2010 Hello, I can't access to the test bots I made yesterday.When I click into the .ubot file or when I try to "Open bot" : it crashes. The programm doesn't answer and Windows (windows server 2008) closes it.I tried to reboot my server and it's the same, I can open a bot that I downloaded from the forum.How I can debug ? It's very boring... I can't use the software if the things I save don't load after! Thanks. Quote Link to post Share on other sites
Praney Behl 314 Posted October 17, 2010 Report Share Posted October 17, 2010 Try to uninstall and reinstall Ubot studio on the system. Praney Quote Link to post Share on other sites
maximedt 0 Posted October 17, 2010 Author Report Share Posted October 17, 2010 Did it.It's the same bug... Quote Link to post Share on other sites
IRobot 43 Posted October 17, 2010 Report Share Posted October 17, 2010 Is your system up to date with the latest Windows Updates? Quote Link to post Share on other sites
Praney Behl 314 Posted October 17, 2010 Report Share Posted October 17, 2010 What version of .NET is installed on your system? Quote Link to post Share on other sites
maximedt 0 Posted October 17, 2010 Author Report Share Posted October 17, 2010 Yes I did the Windows updates.My NET framework is 3.5.1. Quote Link to post Share on other sites
IRobot 43 Posted October 17, 2010 Report Share Posted October 17, 2010 Have you renamed the bot to a non-standard filename, e.g. mybot+1/@1.ubot? If it's confidential, and you don't want to post the bot on the forum, then it may be best to send the bot to admin: http://ubotstudio.com/forum/index.php?/topic/2107-bug-report-forum-rules-read-before-posting/page__view__findpost__p__4708 Quote Link to post Share on other sites
maximedt 0 Posted October 17, 2010 Author Report Share Posted October 17, 2010 So, I move the bots into a folder (they was in the Desktop) and now they launch but Ubot says me :"There was an error including a bot." and when i press ok i can access to my bot but it's still annoying I think... I don't know where the error come from in my bot.I joined the bots to figure out where is the problem. Thanks for helping me.scraper.ubotGlobal.ubot Quote Link to post Share on other sites
IRobot 43 Posted October 17, 2010 Report Share Posted October 17, 2010 The error is not a bug with ubot studio, but a problem with your code:Your scraper.ubot contains an include command to include itself. Remove this include. Although it may still work, It's not good practise to:1. Place includes in loops.2. Hard code paths. Quote Link to post Share on other sites
maximedt 0 Posted October 17, 2010 Author Report Share Posted October 17, 2010 Ok thanks.And is it possible to add a while into a loop ?And add a variable into an url. Quote Link to post Share on other sites
IRobot 43 Posted October 17, 2010 Report Share Posted October 17, 2010 Yes & Yes. Quote Link to post Share on other sites
maximedt 0 Posted October 17, 2010 Author Report Share Posted October 17, 2010 I tried both and I wasn't able to do that...Is there a text or video tutorial corresponding to my need ? Quote Link to post Share on other sites
MiriamMB 63 Posted October 17, 2010 Report Share Posted October 17, 2010 Lets say i want to be able to type in something else following the slash in ubotstudio.com/I want to use the ui text box and I want whatever I type inot the UI text box to follow that slash. The process would look like the following screenshots: There are lots fo examples on looping with and add to list command here: http://www.ubotblog.com/ Quote Link to post Share on other sites
Praney Behl 314 Posted October 17, 2010 Report Share Posted October 17, 2010 I had a look at the 2 .ubot files you uploaded here, from the code i see you are trying to scrape twitter no. of followers for given twitter users which are added to list from a file. But I do not see a reason to use include statement here. If you are just trying to run a loop to go through every user or link in the text file, you only need to run the loop - listtotal times, and include the while statement inside the loop, for it to be able to scrape all. With existing code you will only scrape for the last list item from the file as the loop will continue until the last list item and the flow of control will then be passed to the while statement. Another way of doing it will be to put the while statement in a sub and from with the loop use runsub command to run the while statement for every list item. Cheers! Praney 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.