Page 1 of 1

I lost my permissions in MY multiplayer game

Posted: Sun Aug 29, 2021 6:45 pm
by TheNewHere
MOD I used :Krastorio2_ and space exploration
What i did: befor last time save my game. i open the Console use '/admin' to created a new permission group,because i didn't some guy jump in and destory everything, when i open the permission ui, i saw two groups: Default and default_satellite. so i deleted default_satellite, and disable all Default group permission. at same time i set up a new permission group name ADMIN. move my and my friend's name to ADMIN and save, exit
Problem I have: when i back In the game, only two things i can do. First, watch the map . Second, pause the game.
What i think : i might do something worng about permission group. but i can't find a way to reset it.
Can someone help me solve this problem?

Re: I lost my permissions in MY multiplayer game

Posted: Mon Aug 30, 2021 11:21 am
by eradicator
Can you open the /permissions screen again and checked if you actually are in the ADMIN group? The name "default_sattelite" sounds like Space Exploration might change your permission group when you use sattelite navigation mode, in which cases it might just not work without that group, and if that is the case re-creating it might also not work depending on how SE implements that part.

If you're in a group without any permissions then you can't use console commands either. So either you need someone who can (the server console of a headless server maybe?). Or you could try writing a mod that reassigns you. Control lua code would look something liks this:

Code: Select all

script.on_event(defines.events.on_tick, function()
  for _, g in pairs(game.permissions.groups) do
    if g.name == 'ADMIN' then game.players['YOUR NAME'].permission_group = g end
    end
  end)