I lost my permissions in MY multiplayer game

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
TheNewHere
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sun Aug 29, 2021 6:24 pm
Contact:

I lost my permissions in MY multiplayer game

Post 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?
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: I lost my permissions in MY multiplayer game

Post 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)
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Post Reply

Return to “Gameplay Help”