How to backup shortcuts (shortcut-bar) config?

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Post Reply
Kocou
Manual Inserter
Manual Inserter
Posts: 3
Joined: Tue Nov 30, 2021 11:14 am
Contact:

How to backup shortcuts (shortcut-bar) config?

Post by Kocou »

Hello. Is there any way to backup the "shortcut-bar" config? I need to backup and restore the order of the my shortcuts. It resets each time I change the modpack (disable most of current mods).

Image

User avatar
Silari
Filter Inserter
Filter Inserter
Posts: 490
Joined: Sat Jan 27, 2018 10:04 pm
Contact:

Re: How to backup shortcuts (shortcut-bar) config?

Post by Silari »

AFAIK, there is no way to do so ingame. The info is saved in your player-data.json (each shortcut stores the name, whether it's enabled, and if it's docked) and gets removed if the shortcut stops existing, and mods can't affect what shortcuts are displayed on the bar.

You could manually copy/paste that file before/after switching mod sets and that might work. There is some other stuff stored in there though, like a history of console usage, what tips you've watched, that sort of thing.

Kocou
Manual Inserter
Manual Inserter
Posts: 3
Joined: Tue Nov 30, 2021 11:14 am
Contact:

Re: How to backup shortcuts (shortcut-bar) config?

Post by Kocou »

Are you sure about that? Because I already tried to backup/restore player-data.json. It doesn't have an effect. I even tried to backup all "%AppData%\Factorio" dir – same result. It seems like player-data.json just reflects config of last session.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: How to backup shortcuts (shortcut-bar) config?

Post by DaveMcW »

Do you have Steam Cloud enabled?

User avatar
Silari
Filter Inserter
Filter Inserter
Posts: 490
Joined: Sat Jan 27, 2018 10:04 pm
Contact:

Re: How to backup shortcuts (shortcut-bar) config?

Post by Silari »

Yeah if using the steam version the game uses one in the steam install directory instead, so you'd have to copy/paste that one instead. I have all the cloud stuff off entirely and it still seems to be using the cloud one.

It's in your steam install, in my case as C:\Program Files (x86)\Steam\userdata\<numbers that represent your steam account>\427520\remote\player-data.json - the 427520 is the steam ID for the game.

Kocou
Manual Inserter
Manual Inserter
Posts: 3
Joined: Tue Nov 30, 2021 11:14 am
Contact:

Re: How to backup shortcuts (shortcut-bar) config?

Post by Kocou »

Yes, you're right, I have steam cloud enabled. So replacing player-data.json in Steam\userdata helped. Thank you very much for help! It was so painful to reconfigure shortcut bar before.

Post Reply

Return to “Technical Help”