[0.17] QuickBar Import/Export
[0.17] QuickBar Import/Export
Description
This mod allows you to import the current state of your fancy new quickbar as a string and import it in another save. It is the same principle as blueprint strings. So, you can either use this to take the laborious work you did on your quickbar to a new save of yours, or share it with others.
Has support for quickbar and keyboard shortcuts, EN, DE and FR localisations, multiplayer, and hopefully compatability with any other mod.
Sadly, the current modding API doesn't allow me to migrate your blueprints over in a clean way, so they will show up blank on import.
Mod Portal Link
Source code on GitHub
Hopefully it works for everyone, if not, or if you have any suggestion, feel free to PM/email me, or post it right here!
This mod allows you to import the current state of your fancy new quickbar as a string and import it in another save. It is the same principle as blueprint strings. So, you can either use this to take the laborious work you did on your quickbar to a new save of yours, or share it with others.
Has support for quickbar and keyboard shortcuts, EN, DE and FR localisations, multiplayer, and hopefully compatability with any other mod.
Sadly, the current modding API doesn't allow me to migrate your blueprints over in a clean way, so they will show up blank on import.
Mod Portal Link
Source code on GitHub
Hopefully it works for everyone, if not, or if you have any suggestion, feel free to PM/email me, or post it right here!
Last edited by Therenas on Tue Mar 12, 2019 11:20 am, edited 3 times in total.
Re: [0.17] QuickBar Import/Export
This mod's awesome!
Would be nice if export can restore same blueprint book.
Would be nice if export can restore same blueprint book.
Re: [0.17] QuickBar Import/Export
Thanks! Yeah that doesn‘t work currently, and the solution might be a bit complicated, I will take a look at it tomorrow.
Re: [0.17] QuickBar Import/Export
Would it be possible to add a config option that you can paste an exported quickbar config into, and then automatically import that just once when starting a new game? (but not change anything when loading an existing save) That would be really neat
Re: [0.17] QuickBar Import/Export
So you want to set a sort of default quickbar setup that will always be loaded when you start a new save?
Re: [0.17] QuickBar Import/Export
Yeah. Set it up once, export it, paste it into a player specific mod setting, and then automatically import it from the on_player_created event, which triggers when a player joins a map for the first time (i.e. when starting a new game or when joining a multiplayer game you haven't been in before). That would let me have a "default" quickbar
Re: [0.17] QuickBar Import/Export
Hm that is a nice idea, but I don't think it is such a frequent use case for me to implement it. You can just store the string anywhere else. In principle it would be a simple thing, but as soon as I add any kind of permanent state to the mod (stuff that will be saved anywhere), it complicates the whole thing quite a bit. Also, now that I think about it, I don't think mods even have any good way to save data 'outside' of specific saves. I guess you could use a string mod setting, as you aluded to, but that seems really hacky.
Re: [0.17] QuickBar Import/Export
You can abuse a blueprint which is stored in the library.
Give it a distinct name (Toolbar 01) and put the filtered items in it.
Give it a distinct name (Toolbar 01) and put the filtered items in it.
Re: [0.17] QuickBar Import/Export
Would be nice if export windows has copy button (if possible).
IDK about modding but is it hard to make QBIE button to standard button(top left rocket silo status button)?
IDK about modding but is it hard to make QBIE button to standard button(top left rocket silo status button)?
Re: [0.17] QuickBar Import/Export
Yeah that is a way to do it, This mod pretty much does that. I will investigate what is possible with the blueprint library, but I might be satisfied leaving it as is for now.
Modders don't currently have access to a players clipboard (for good reasons), so I can't add a copy button. I would love to select the whole text for you, but that is no possible either currently (I posted an API feature request though).
I'm not sure what you mean by your second sentence, mind explaining it a bit differently?
Re: [0.17] QuickBar Import/Export
it's about button style.
icon button instead of text button. and button location to most upper line. (like rocket silo icon button)
icon button instead of text button. and button location to most upper line. (like rocket silo icon button)
Last edited by GTrak on Sun Mar 10, 2019 3:12 pm, edited 1 time in total.
Re: [0.17] QuickBar Import/Export
Oh I realised that I was doing the button placement wrong, my bad! The new version fixes this, thanks for the tip. I also changed it to a pretty generic icon, I myself sadly don't have the artistics talent to do a custom one.
(Also, if the button bothers you, you can now also evoque the import/export from your quickbar shortcuts and disable the button in settings)
(Also, if the button bothers you, you can now also evoque the import/export from your quickbar shortcuts and disable the button in settings)
Re: [0.17] QuickBar Import/Export
it looks dandy. thank you for quick update.
I also like new shortcut bar feature.
but, is it necessary to remove empty blueprints?
I always using empty blueprint for temporary in quickbar. (copy & paste is similar to temp blueprint but definitely different)
I think it's good as placeholder. It doesn't make people confused about what item was in empty slot even it's empty blueprint.
I also like new shortcut bar feature.
but, is it necessary to remove empty blueprints?
I always using empty blueprint for temporary in quickbar. (copy & paste is similar to temp blueprint but definitely different)
I think it's good as placeholder. It doesn't make people confused about what item was in empty slot even it's empty blueprint.
Re: [0.17] QuickBar Import/Export
You make a really good point there. It is better to see an empty blueprint instead of wondering where everything went. I incorporated it in the newest version. Would love to make it actually work though in the future, if the API gets extended at some point.
Re: [0.17] QuickBar Import/Export
thank you for update.
the last thing is to wait for the API to extend.
this is not important, but what do you think about changing text import/export buttons to icon buttons? (icons are already in vanilla)
the last thing is to wait for the API to extend.
this is not important, but what do you think about changing text import/export buttons to icon buttons? (icons are already in vanilla)
Re: [0.17] QuickBar Import/Export
Well I think I want to leave it the way it is. I saw the icons and they are nice, but the text is more intuitive at a glance. Also, as those buttons aren‘t on screen most of the time, the space they take up doesn‘t matter much.