Jump to content

[1.2.0] Toolbar 1.7.13 - Common API for draggable/resizable buttons toolbar


blizzy78

Recommended Posts

Is there an installation order to follow? I just installed Crew Manifest and Ship Manifest, then the Toolbar (JSGME Modmanager) and it told me it had to overwrite stuff. As suspected nothing shows up ingame.

Link to comment
Share on other sites

If you install the Toolbar Plugin by itself (thus using the absolute latest version), you can simply delete the 000_Toolbar\ folder from your GameData\ folder, then copy the 000_Toolbar\ folder from the download into your GameData\ folder. (It is backwards compatible.)

Please note that third-party plugin authors are advised to include the Toolbar Plugin into their downloads to provide a seamless experience, but of course that may be an earlier version. So overwriting that version manually by installing the latest version is indeed the best option for players who want the latest version.

Link to comment
Share on other sites

@ TNM: while I know and use JSGME in other games (Silent Hunter series), that's not what I do with KSP. To me, just copying mods within KSP/GameData always works. Those mods you mentioned work just fine for me.

I have a suspect: if I'm correct, JSGME preserves the structure with each single mod loaded in its directory, and tries to apply that same structure when those mods are activated. But some of the mods in KSP are built with the knowledge they will be put in GameData anyways, and won't work correctly otherwise. There are a few "common" plugins, such as ModuleManager, that only need to exist in one place within Gamedata, and if multiple ones are found they need to check to exclude copies of themselves from running. But JSGME will not make for a single such plugin, if the same is embedded in the directory of more than one mod. I don't know if Toolbar_plugin has an exclusion method, if not and other copies are found and run, it may bring to unexpected results.

Therefore, I would strip any other mod of those "common plugins" when loading them to JSGME.

Link to comment
Share on other sites

I don't know if Toolbar_plugin has an exclusion method, if not and other copies are found and run, it may bring to unexpected results.

It does not, because it is expected that there is exactly one copy that lives in GameData\000_Toolbar\

Therefore, I would strip any other mod of those "common plugins" when loading them to JSGME.

Right, and add the Toolbar Plugin itself so that the dependency is met.

Link to comment
Share on other sites

This is probably an obvious question, but after the button tool bar has been set to auto-hide how do you make it visible again? I ask because there isn't anything obvious stated, either in this thread or in the documentation provided (it appears that all that is mentioned is that auto-hide is available). Is it a permanent thing at this moment?

Link to comment
Share on other sites

This is probably an obvious question, but after the button tool bar has been set to auto-hide how do you make it visible again? I ask because there isn't anything obvious stated, either in this thread or in the documentation provided (it appears that all that is mentioned is that auto-hide is available). Is it a permanent thing at this moment?

To temporarily make it visible, just hover over the toolbar at the screen edge. To make it permanently visible again, click the little triangle arrow again, then select "Deactivate Auto-Hide." (an example of doing that can be seen in the video in the OP)

Link to comment
Share on other sites

To temporarily make it visible, just hover over the toolbar at the screen edge. To make it permanently visible again, click the little triangle arrow again, then select "Deactivate Auto-Hide." (an example of doing that can be seen in the video in the OP)

Ah, you have to move your mouse right to the very edge of the screen, not just to where the button had been previously like I was trying. Thanks, that's all I needed.

Link to comment
Share on other sites

I really like what you've done here, and for the Alternate Resource Panel, apparently he coded his to basically detect whether or not the toolbar exists which might be a good tutorial. I really hope this picks up steam, I don't mind various config panels, but I do hate my screen being littered with buttons.

Link to comment
Share on other sites

Now that I've gotten to play around with things a bit I have another question. What determines the order of the buttons? I presume it is the order in which the mods were installed?

One potentially good feature for the future could be the ability to re-arrange the button order. It isn't too huge of a deal currently, but this was a mod that was desperately needed and I expect a lot of mods that add buttons to the UI will make use of this sooner or later. I could see the the ability to re-arrange the buttons becoming quite useful once the toolbar has more than 3 or 4 on it.

Link to comment
Share on other sites

What determines the order of the buttons? I presume it is the order in which the mods were installed?

No. Each third-party plugin that is adding a button needs to specify some sort of internal "ID" for that button. Buttons are then sorted by those IDs.

One potentially good feature for the future could be the ability to re-arrange the button order.

Right, this is still on my list of things to do: https://github.com/blizzy78/ksp_toolbar/issues/2

Link to comment
Share on other sites

Well, me and my big mouth. I say something nice and along comes a bug. The toolbar disappeared during the mission scene, and I don't mean auto-hide disappeared unless auto-hide is permanent. I tried changing scenes (during which it DOES show up in, for instance, the VAB) and then switching back, no luck. I tried going back to the main menu and again, no luck. Tried deleting the .dat file. Guess how that turned out. Tried restarting Kerbal Space Program. Nope.

I think I figured out what caused it, the x value was set to 1280 which is off-screen for the toolbar (I guess, my screen size is 1280 but setting it there again gives 1102 as a value). Which highlights a sort of issue, the toolbar doesn't seem to be reading from the file but it's definitely writing to it. You can't make changes to the file and have them reflected in game (I would assume to be the case when switching scenes, but nope). Also it saves the entire file each time, which I thought might be overwriting my changes but I'm pretty sure it just doesn't load from the file except on startup.

If I may make a suggestion, you may want to save and load the relevant parts during scene transition in case a bug like this comes up it might be easy enough to just fix in game. Right now you can't even delete the .dat file, it just recreates it as it was. You have to quit KSP, delete the file, then start it again, which is a bit of a pain to fix something that is meant to be a convenience feature.

EDIT; Hah! Did it again, it just arbitrarily decided my position was 1280 when changing scenes. I kept the file open in Notepad++ and upon clicking the launch pad from the space center it wigged out again. Yeah, hope you can get this one patched up quickly. I'm going to do one more test and the other edges and see if it messes up there. I suspect maybe when it auto-hides it thinks the position is different?

EDIT2: Doesn't seem affected on the other sides. Only seems to be a problem on the right side of the window. I guess the fix is to not place the elements on the right side for now.

Edited by Hyomoto
Link to comment
Share on other sites

Yeah I am having that problem again with the toolbar disappearing if put on right side of screen, I had it auto hid. It works now once, I deleted toolbar-settings.dat in GameData folder.

When It was disappeard, toolbar would still show up in Space Center view, VAB and SPH. It's just not there in flight scene.

Link to comment
Share on other sites

I don't know if this helps, but I think it happened right after I updated AGM 1.3 for AGM 1.2. I deleted the AGM folder and put in the new one.

I am using these toolbar intergraded mods, they are all the latest:

MJ

Kerbal Alarm Clock

Crew Manifest

Alternative Resource Panel

AGM

Engineer Redux

Toolbar stays there awhile, something happens later on that causes it do disappear.

That's odd, it works for me when set up like this:

- Top edge of the screen (no auto-hide) in tracking station

- Bottom edge of the screen (auto-hide) in VAB

- Right edge of the screen (auto-hide) in flight

But I'll see what I can find.

Edited by therealcrow999
Link to comment
Share on other sites

I don't think it happened while game was running for me. Last time I remembered, I had toolbar on bottom right and then I moved it to the right side screen. Of course I always auto hide it. I think I was testing out some other mods, so I test them on launch pad. I revert flight when I got back to VAB. I'm sure I turned off KSP a few times and restarted and it was there.

I updated AGM to 1.3 deleted old folder and put new one. When I came in game, I went to VAB to load my craft, then I went to launch pad. AGM main GUI came up and I closed it out. I checked toolbar and it wasn't there.

I feel like this happened last time I upgrade AGM, same exact steps happened. AGM menu was open in flight scene when start and I clicked it off again. I really can't pin point it.

Hope this helps.

Do you remember the exact sequence of steps you took that made the toolbar go invisible completely, by any chance? That would help a tremendous amount.
Link to comment
Share on other sites

Just did it live in game.

Right when I got to launch pad I put mouse over bottom left to bring up toolbar. I then used option to move.

Before I moved it to right screen, I use the drag to reshape the GUI, so the column of icons would fit on the right had screen. I recovered vessel, then in VAB relaunched rocket. Now its not there.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...