Rombot doesn´t work since race change

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Darax
Posts: 6
Joined: Mon Jun 30, 2014 11:32 am

Rombot doesn´t work since race change

#1 Post by Darax » Mon Jun 30, 2014 11:38 am

Hello,
I´ve got a little problem:
yesterday I changed the race from one of mine characters (on private server)
since then rombot can´t detect the name anymore it just says "We cant find your profile '<UNKNOWN>.xml'..."
When I run RoM multiple times I get to the screen where I can select the character I want to bot on, but when I clicked the one with the changed race the upper message appears.
The other characters work fine.

In some older thread I read that it should help to delete the macro.bsd from the affected character but this didn´t work for me :?

Thank you

Edit:
I just realized that if I use the profile "userdefault.xml" my character walks up the path also targets mobs but doesnt attack them :(

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rombot doesn´t work since race change

#2 Post by rock5 » Mon Jun 30, 2014 9:56 pm

Something funny and unexpected might have happened when you changed race. It might be a bit tricky to figure out. First I'll need to see the full error message with file name and line number info. Just copy and paste the whole error message.
  • 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

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rombot doesn´t work since race change

#3 Post by rock5 » Mon Jun 30, 2014 10:02 pm

Wait, I found it. Now lets see what's going on.

Try this. First start the commandline with the default user profile.

Code: Select all

rom/bot path:commandline profile:userdefault
Print the player name.

Code: Select all

print(player.Name)
Print the converted name it uses for file names.

Code: Select all

print(convertProfileName(player.Name))
See if they display what you expect.
  • 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

Darax
Posts: 6
Joined: Mon Jun 30, 2014 11:32 am

Re: Rombot doesn´t work since race change

#4 Post by Darax » Tue Jul 01, 2014 9:07 am

Thank you for your reply.. I tried it, but it doesn´t seem to work

Edit:
I just added the message I get if I don´t create the profile "userdefault.xml".
And I don´t know if it´s somehow relevant but I changed from an female elf to an female dwarf, now this class doesn´t exist in the normal game so can this somehow be a reason for the problem?
Attachments
oldmsg.png
robo.png

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rombot doesn´t work since race change

#5 Post by rock5 » Tue Jul 01, 2014 12:06 pm

Darax wrote:And I don´t know if it´s somehow relevant but I changed from an female elf to an female dwarf, now this class doesn't exist in the normal game so can this somehow be a reason for the problem?
Possibly. Try printing the players Id

Code: Select all

print(player.Id)
There is a player id for each race and gender. Currently the maximum is 1004. I suspect it will print 1005. If so, edit settings.lua and find the following on line 191.

Code: Select all

PLAYERID_MAX = 1004
and change it to 1005.
  • 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

Darax
Posts: 6
Joined: Mon Jun 30, 2014 11:32 am

Re: Rombot doesn´t work since race change

#6 Post by Darax » Tue Jul 01, 2014 4:00 pm

print(player.Id) responded with -1,
but the change from 1004 to 1005 fixed it, thanks a lot it seems to work again :)

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rombot doesn´t work since race change

#7 Post by rock5 » Tue Jul 01, 2014 10:21 pm

Cool. I'll add that to my next commit.

I should probably do a commit soon.
  • 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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest