#cant add admins

69 messages · Page 1 of 1 (latest)

round plaza
#

trying to add admins into the admin.ron config file on the website no matter what i put in the V1({}) space it just makes the config file invalid. what am i supposed to add to this file to make it valid? game is veloren btw

cloud finch
#

As far as I know you can add admins via console. I don't remember the command.

round plaza
#

yeah and i cant find it anywhere and the support team didnt tell me either

cloud finch
#

Let me Google the command

round plaza
#

good luck

#

its not add admin or "username" admin

cloud finch
#

I found admin add username

round plaza
#

doesnt work

#

were talking the zap console correct?

cloud finch
#

Yes

round plaza
#

yeah it doesnt do anything just add the line to the console but doesntchange anything

round plaza
#

ive looded and tried everything in that already none of it seems to work on zap

cloud finch
#

According to my research you have to put the admins inside the configuration.toml file like this:

[admin]
users = ["username"]
round plaza
#

is that the same file as admin.ron?

cloud finch
#

Nope

round plaza
#

where do i find that file

cloud finch
#

config/config.toml

round plaza
#

just put that in file explorer? lol

cloud finch
#

Uhm yeah, edit and upload it.

round plaza
#

upload to what? im not server savvy obviously

cloud finch
#

As I understood the file has been downloaded when u wanted to open it, right?

round plaza
#

this what what im looking at on the website

#

and it didnt find a file by that name

cloud finch
#

Ah ok, i thought that you are doing it via ftp.

round plaza
#

i was using the configs via the website

cloud finch
#

Alright, looks like my research wasn't correct. Admins.ron should be the correct file. Let me try to find its syntax.

round plaza
#

this is what i see when i go to edit it

cloud finch
#

And the command would be: adminify <user>

#

Please let me know if it works.

round plaza
#

V1({[
"4741550989512566959",
]})

#

i got the number from the console'

#

2023-03-05T22:23:29.914577Z INFO veloren_server::login_provider: Validating token username_or_token="4741550989512566959"

#

gonna restart server to see if its invalid

#

yep its invalid

cloud finch
#

Try adding yourself with the command adminify <user>

#

without < >

round plaza
#

nope

#

bout to just switch host it shouldnt be this difficulkt

cloud finch
#

Well it's not because of the host. It's because of the server developers

round plaza
#

well zap isnt making it easy

#

its just adding a admin it shouldnt be this confusing or hard

cloud finch
#

What a hosting provider does is setting up the server as the developers say. You will have the same issues on any other hosts.

round plaza
#

well it seems weve run out of options

cloud finch
#

Well I'm looking for a solution

round plaza
#

do you know hopw to find the uuid?

cloud finch
#

To get the UUID of a player in Veloren, you can use the /uuid command in-game.

round plaza
#

says it couldnt find that command

cloud finch
#

Google found it kek

#

Idk

round plaza
#

could u link the page that said that

cloud finch
#

I'm gonna ask AI at the point XD

round plaza
#

yeah i feel like ive tried everything

cloud finch
#

Here is what AI says:

1. Open the admins.ron file located in the veloren/data/ folder.
2. Add a user to the users list in the file, using this format:
    "user": {
        "name": "UserName",
        "perms": ["admin"]
    }
3. Save the admins.ron file.
4. Restart the Veloren server.
5. The user will now have admin permissions in the game.
round plaza
#

should i put it in the V1{(}) or delete that and just copy paste?

cloud finch
#

Delete that

round plaza
#

aight restarting now

#

"user": {
"name": "FearTheSol",
"perms": ["admin"]
}

#

like that right i dont need to edit anything else?

cloud finch
#

Correct

round plaza
#

no dice even changed it in file explorer to no avail

cloud finch
#

Have you edited the right file? There are some files with "invalid" behind them.

round plaza
#

yes it was the one without invalid, when i restart it just adds another invalid file

cloud finch
cloud finch
#

Could you solve this yet?