syntax error in bot
syntax error in bot
Hi just wanted to let you know since the new patch 6.07 there as been a problem with the bot could you please fix this problem thankyou much rock5
lisa, please dont respond if you cant help. thanks.
lisa, please dont respond if you cant help. thanks.
- Administrator
- Site Admin
- Posts: 5313
- Joined: Sat Jan 05, 2008 4:21 pm
Re: syntax error in bot
A syntax error isn't going to appear when the game updates. You probably broke something when using the SVN update for the scripts and so should probably revert the changes.
That, and if you have an error, you need to give some actual details, not just "Oh there's a problem somewhere. Good luck digging through 20,000 lines of code to find it."
That, and if you have an error, you need to give some actual details, not just "Oh there's a problem somewhere. Good luck digging through 20,000 lines of code to find it."
Re: syntax error in bot
Mine still works fine with the new patch so there is nothing wrong with the bot itself.
Re: syntax error in bot
mine isn't working;
scripts\rom\bot.lua:86:...b/desktop/micromacro/scripts/rom/classes/memorytable.lua:7: bad arguement #2 to 'memoryReadUIntPtr' (number expected, got nil)
scripts\rom\bot.lua:86:...b/desktop/micromacro/scripts/rom/classes/memorytable.lua:7: bad arguement #2 to 'memoryReadUIntPtr' (number expected, got nil)
Re: syntax error in bot
Maybe the version of the bot doesn't match the version of the game. What client version are you using?
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: syntax error in bot
us
version 6.0.7.2691.en
latest patch was today for the anniversary.
micromacro vs 1.04.163
rombot revision 772
version 6.0.7.2691.en
latest patch was today for the anniversary.
micromacro vs 1.04.163
rombot revision 772
Re: syntax error in bot
Sorry, I didn't realize it changed again today. I'll update and check it.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: syntax error in bot
I tested it. I didn't do much but it starts ok.
Maybe you need to do a revert on your rom folder.
Maybe you need to do a revert on your rom folder.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: syntax error in bot
i reverted, nothing fixed.
also reinstalled the whole rombot entirely from scratch, but same issue.
doing a rom\update.lua causes it to actually start, but leaves me with
/classes/pawn.lua:780: attempt to index local 'self' (a number value)
also reinstalled the whole rombot entirely from scratch, but same issue.
doing a rom\update.lua causes it to actually start, but leaves me with
/classes/pawn.lua:780: attempt to index local 'self' (a number value)
Re: syntax error in bot
rev 772 has this in pawn.lua line 780i1own0u wrote:/classes/pawn.lua:780: attempt to index local 'self' (a number value)
Code: Select all
-- Take of end numbers
Huh?shakira wrote:lisa, please dont respond if you cant help. thanks.
Remember no matter you do in life to always have a little fun while you are at it
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
-
- Posts: 19
- Joined: Wed May 01, 2013 4:55 am
Re: syntax error in bot
I had the same error. I removed the userfunction Attackspeed Addon Zero or whatever its name is, and then the error showed up that my ingamefunctions were out of date. Now I'm all set.
Re: syntax error in bot
alright so i did that, and i got the updated version (i was at 7, latest is 10) and now:
pawn.lua:757: attempt to index local 'self' (a number value)
rombot version 3.29, revision 772
game version 6.0.7.2691
somewhere in there right? i should really get notepad+ lol
pawn.lua:757: attempt to index local 'self' (a number value)
rombot version 3.29, revision 772
game version 6.0.7.2691
Code: Select all
function CPawn:getTarget()
self:updateTargetPtr();
if( self.TargetPtr ) then
return CPawn(self.TargetPtr);
else
return nil;
end
end
function CPawn:isAlive()
-- Check if still valid target
if not self:exists() then
return false
end
-- Dead
self:updateHP()
if( self.HP < 1 ) then
return false;
end
-- Also dead (and has loot)
self:updateLootable()
if( self.Lootable ) then
return false;
end
self:updateAlive()
if( not self.Alive ) then
return false;
end
return true
Re: syntax error in bot
Interesting....I got this error just as I was reading this thread lol. I had already run my TinaEvent waypoint on numerous characters then upon running the same thing just now i got this error:
Just odd seeing as I had been using the bot most the day xD
Code: Select all
The game client did not crash.
6:37pm - E:/micromacro/scripts/rom/classes/pawn.lua:757: attempt to index local
'self' (a number value)
Re: syntax error in bot
757 is the buffs, updating official client now, I'll see what is going on.
Remember no matter you do in life to always have a little fun while you are at it
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: syntax error in bot
The only only way I can see 'self' equalling a number is if somewhere you are using pawn.hasBuff(args). Notice the perios(.) instead of a semicolon(:). In this case 'self' will be taken from the first argument which can be a number.ZZZZZ wrote:pawn.lua:757: attempt to index local
'self' (a number value)
The bot has no ".hasBuff" in it. I just did a search and the only one I found was in TinaEvent2014.xml which I just downloaded now to have a look at. So that's your problem. The error is on line 16.
Code: Select all
if not player.hasBuff(506688) and inventory:itemTotalCount(207204) > 0 then
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: syntax error in bot
have a look at userfunctions or what WP you are doing when it crashed.
I just did an player update and printed the entire player table and everything was fine. Just ran andor training and it was fine aswell, no crashes.
I think you might be off the mark there rock, it wouldn't error in the function if they had a . instead of : because it wouldn't be calling that function.
player.hasBuff() wouldn't call the function player:hasBuff()
There is definately an issue if it is saying player is a number but mine is working fine, so I couldn't imagine the issue.
All I can suguest to check your userfunctions and which WP you are using.
--=== Added ===--
I stand corrected.
Did a notepad ++ search in files and there is no player.hasBuff in default bot, must either an edit has been done or a userfunction/WP code needs fixing.
Since it is in pawn.lua don't limit your search to just player.hasBuff as it might be pawn.hasBuff or any other variable you might have, so try a search for
.hasBuff(
I just did an player update and printed the entire player table and everything was fine. Just ran andor training and it was fine aswell, no crashes.
I think you might be off the mark there rock, it wouldn't error in the function if they had a . instead of : because it wouldn't be calling that function.
player.hasBuff() wouldn't call the function player:hasBuff()
There is definately an issue if it is saying player is a number but mine is working fine, so I couldn't imagine the issue.
All I can suguest to check your userfunctions and which WP you are using.
--=== Added ===--
I stand corrected.
Code: Select all
Command> print(player.hasBuff(100400))
onLoad error: C:/micromacro/scripts/rom/classes/pawn.lua:757: attempt to index l
ocal 'self' (a number value)
Code: Select all
Search ".hasBuff" (0 hits in 0 files)
Search "player.hasBuff" (0 hits in 0 files)
.hasBuff(
Remember no matter you do in life to always have a little fun while you are at it
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: syntax error in bot
That's what I did, I searched for ".hasBuff".
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: syntax error in bot
.....fking hell...lol. Hate little things like that :/
Re: syntax error in bot
So how do you all have the exact same issue?ZZZZZ wrote:.....fking hell...lol. Hate little things like that :/
and why is it only appearing after a patch?
*puts on tinfoil hat*
You all got get files from another site and they broke the bot, go on admit it.
LOL
Remember no matter you do in life to always have a little fun while you are at it
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: syntax error in bot
Na, I uploaded a waypoint for the current Tina event. We all must have hit that error on the same file xDlisa wrote: So how do you all have the exact same issue?
and why is it only appearing after a patch?
*puts on tinfoil hat*
You all got get files from another site and they broke the bot, go on admit it.
LOL
My bad
http://www.solarstrike.net/phpBB3/viewt ... =27&t=5629
Also explains why I only got the error running that file considering I had run dailies/mini's etc....just didnt think of it due to running that specific waypoint a number of times already :/
Who is online
Users browsing this forum: No registered users and 5 guests