[Python] set_profile()


#1

I tried to change the Profile through Python with
set_profile('PLVL')

But when i looked under “Auto Configure” the Profile didn´t changed
It seems i need just the Profile name. I found nothing about Full Path in the gitbook.
Can someone tell me whats my mistake?

Edit:
Bot Version: 21.7.3


#2

It does the same thing as the script profile command. Does that also not work?


#3

I didn‘t tried that.
Is just the Name enough without extension?


#4

Yes. profile,name.


#5

I will try it tomorrow and let you know


#6

I made an Test now.
With script profile,name it works

But not with Python
Any Idea?


#7

Found the problem. The set_profile function was not accepting arguments. It’ll work in the next version.


#8

Thank you


#9

Script:
walk,21433,4318,-846
profile,Default
use,returnscroll
Log:
[07:53:09] Script: Walking to 21433, 4318
[07:53:11] Script: Changing profile to [Default]
[07:53:14] Returning to town due to user request
[07:53:14] Script: Waiting 35 seconds before continuing the script
[07:53:51] Script: Finished

Profile not changed after this. Whats wrong?


#10

I’m pretty sure it was changed but it didn’t change from “default” in the UI where you are looking.


#11

Nope. Setting did not changed and bot keep returning town until no more scrolls left because it could not found the right script


#12

I tried it out after it was fixed with python and it worked


#13

its definitely not working in script. uppp


#14

I made an Test now with Version 21.7.9 and it works

walk,-
walk,-
walk,-
profile,Test

#15

Does your profile already exist? It should if you want it to switch.


#16

i am trying to switch Default profile. THE DEFAULT one. maybe it can not find because of actually default profile has no name in the file itself ?


#17

The Default Profile is Just Default
You have to press “new” and give them a name like “PLVL”, “Taxi” or whatever
Then make your settings.
Chang back to Default Profile and than run your script with “profile, PLVL” for example


#18

i want to switch my profile from XXX to default. not you have wrote.


#19

Its the same way if the Default Profile exists already

profile, Default


#20

have you tried it and is it working ?