Jump to content

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


blizzy78

Recommended Posts

Toolbar doesn't seem to be working for me. Sometimes when I enter the game it shows up and then quickly disappears. I initially installed it with CKAN but since done it manually. I've tried removing the .dat file too. I'm considering removing and installing mods to see if anything gets better. My mod list (all installed with CKAN):

AWSndtN.png

Link to comment
Share on other sites

Are you running with half res? Using active texture management? Converted textures to .dds at half sizes? I noticed that even the mods that use the stock bars also have the texture in half res, so I doubt it is toolbar's fault.

yes my bad I was running half res

Link to comment
Share on other sites

From the OP:

"Your download link is dead!?

It is not. It works just fine. Clear your browser's cache and try again."

The reason for the latest release was to update the version-compatibility. If you get the warning, you don't have the right version!

Link to comment
Share on other sites

I did not put the Toolbar Plugin up on CKAN.

CKAN has a bot that attempts to keep the configs updated. it may not have had a chance to complete when the user tried to download. I noted when I updated my mod that it does pick it up.

So, for the benefit of those using CKAN, be patient, and I'm willing to bet it does pick it up fairly quickly (hours?)

Link to comment
Share on other sites

I *may* have found a bug. New game, career mode, .90 install, Toolbar 1.7.8. I have a bunch of mods installed, but some of them deactivate themselves until you upgrade a required building. In the Space Center and Tracking station, I had the generic icon for the toolbar. I clicked on it to configure visible buttons. The only one that was available at that time (apparently) was Trajectories. But Trajectories auto-hides itself on the Space Center screen always, and auto-hides on the Tracking station until you upgrade it. As soon as I selected it to be on the toolbar, the toolbar disappeared and I can't get it back on either the Space Center or Tracking Station scenes. Screenshots forthcoming (I need to sleep for a bit). Suggestions on how to recover from this? And perhaps (for idiots like me) there is the possibility of a "restore defaults" setting that when clicked in *any* scene, resets the toolbar in *every* scene.

Funny, at first I didn't see a reason for this with the stock toolbar at the top of the screen. Now I am wishing I could move almost every icon, with the exception of the few that provide notifications (like Science Alert) to Blizzy's Toolbar. Thank you for making this mod!

-Updated-

Went into the config file for Trajectories, removed the setting to use the toolbar there, restarted. Added KAC to both the Space Center and Tracking Station menu, then exited and changed the config file back to the way it was for Trajectories. Toolbar is back in all scenes now.

So, I believe this is a bug. If a mod is set to always hide its button in a certain scene, and the user selects that as the only visible button in the toolbar, the toolbar disappears with no in-game way to recover it. My suggestion (as a player, not a coder) would be to change the interface to keep the generic button visible if no other visible buttons are selected. If that makes sense. :)

Edited by eightiesboi
Updating
Link to comment
Share on other sites

Doing a 0.90 reinstall, I was having the same problem with the toolbar not appearing at the space center. I noticed that it did appear in the VAB, though. Eventually resolved it by adding more mods! Once I'd installed a couple of mods that have toolbar buttons at the space center, the toolbar appeared just like normal.

Link to comment
Share on other sites

It seems Toolbar doesn't work as intended with MechJeb. When trying to attach MechJeb to the ship, the following error pops up in the log/debug console:

[Log]: [MechJeb2] Adding button for Vessel_Info
[Exception]: ArgumentException: Getting control 0's position in a group with only 0 controls when doing Repaint
Aborting

Windows users might not notice anything, but it actually leads to some performance drop, which gets MASSIVE and makes the game unplayable on 64-bit Linux version, especially if you keep some MechJeb windows open (Delta-V Stats for example) and try to rotate the camera around. It only happens with MechJeb and Toolbar installed together. I'm not sure which addon is at fault here though.

I'm getting the same problem, but it only seems to affect wings. Here's how to replicate:

- freshly installed from steam

- add these mods: toolbar, mechjeb, Kerbal Construction Time, FAR

- add a any wing, right click it, works ok

- now add a Mechjeb AR202 part and right click the wing again, now it stutters like crazy, you can not get rid of the menu unless you click a part in the parts list window. The ALT-F2 log shows the exact same error as in the quote.

- delete the Mechjeb part, right click goes back to normal.

While all above mods are needed to replicate the issue, Kerbal Construction Time doesn't seem to be the only one that triggers it. I've had it with Ship Manifest too. It's also an old problem (pre 0.25), only now I decided to search what was causing it. It sucks because I can't use Stock Plugins anymore, which adds Mechjeb functionality to all command pods. I'm not sure which mod actually causes the problem, as you need Toolbar+Far+Mechjeb+"Some particular other Toolbar mod" to make it happen.

Here's the output_log. This time I've started a new career in sandbox, just to reset everything.

http://pastebin.com/fBpM8JXz

Edited by karamazovnew
Link to comment
Share on other sites

The new toolbar seems to be working great, except that it doesn't show up during Flight mode. Mods on the Stock toolbar are visible (Far, Kerbal Engineer etc), but no toolbar for fuel balancing or life support. I checked toolbar-settings.dat, but nothing seemed off as far as I can tell. I'm using 32-bit KSP on a 64-bit machine.

Solutions or suggestions would be much appreciated!

Link to comment
Share on other sites

Can I make a suggestion? What if we could show/hide your toolbar... with the stock toolbar. That way those of us with a lot of mods installed could use your toolbar to hold our "extra" mods that we don't need to access very often.

Link to comment
Share on other sites

Got an error showing up in my KSP.log:


[EXC 18:51:46.317] UnauthorizedAccessException: Access to the path "J:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\toolbar-settings.dat" is denied.
System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options)
System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share)
System.IO.File.Open (System.String path, FileMode mode)
ConfigNode.Save (System.String fileFullName, System.String header)
ConfigNode.Save (System.String fileFullName)
Toolbar.ToolbarManager.saveSettings (ToolbarGameScene scene)
Toolbar.ToolbarManager.saveSettings ()
Toolbar.ToolbarManager.toolbarChanged ()
Toolbar.Toolbar.fireChange ()
Toolbar.Toolbar.forceAutoSizeIfButtonVisibilitiesChanged ()
Toolbar.Toolbar.draw ()
Toolbar.ToolbarManager.OnGUI ()

This shows up periodically while I play, and generally immediately after I switch scenes (e.g. from a flight to the Space Centre). It's immediately followed by this:


[EXC 18:51:46.396] ArgumentException: Getting control 0's position in a group with only 0 controls when doing Repaint
Aborting
UnityEngine.GUILayoutGroup.GetNext ()
UnityEngine.GUILayoutUtility.BeginLayoutArea (UnityEngine.GUIStyle style, System.Type LayoutType)
UnityEngine.GUILayout.BeginArea (Rect screenRect, UnityEngine.GUIContent content, UnityEngine.GUIStyle style)
UnityEngine.GUILayout.BeginArea (Rect screenRect, UnityEngine.GUIStyle style)
Toolbar.Toolbar.drawToolbarBorder ()
Toolbar.Toolbar.draw ()
Toolbar.ToolbarManager.OnGUI ()

I suspect fixing the first would fix the second, just because they always happen together in that order. Related, I think, is that the Toolbar does not retain any button changes I make to it.

Please advise. I've tried messing with the security settings on "toolbar-settings.dat", but it doesn't seem to have any effect. Could it be because the .DAT file is not in the same directory as Toolbar's .DLL? I mean, other mod plugins don't seem to have any problem saving files, but the files they save aren't cluttering up GameData.

Link to comment
Share on other sites

Access to the path "J:\[B]Program Files (x86)[/B]\Steam\steamapps\common\Kerbal Space Program\GameData\toolbar-settings.dat" is denied.

This looks suspiciously like windows security is blocking access because Program Files is a "System Folder" and so protected.

Can you copy the KSP directory to someplace like J:\Games and try again? You can run the KSP.exe directly without needing steam when you do this.

Hope that helps,

D.

Link to comment
Share on other sites

Access to the path "J:\[B]Program Files (x86)[/B]\Steam\steamapps\common\Kerbal Space Program\GameData\toolbar-settings.dat" is denied.

This looks suspiciously like windows security is blocking access because Program Files is a "System Folder" and so protected.

Can you copy the KSP directory to someplace like J:\Games and try again? You can run the KSP.exe directly without needing steam when you do this.

Not disagreeing with you on the cause, but I do disagree with you on the fix.

Other mods, e.g. Kerbal Engineer and its LOG file, or ModuleManager and its CONFIGCACHE file, can be passed by Windows Security without complaint. Is it the fact that it's a .DAT file? Is it the fact that it's not in the same folder as the .DLL? THIS should not be a problem I need to work around.

Link to comment
Share on other sites

Okay, I have a strange situation, when I have toolbar installed, whenever I go to the VAB/SPH and select any part or load any craft, it become unclickable. I can't click it, move it, add parts to it, or do anything else to the part or craft. When I pull only the toolbar folder from gamedata, everything works normally. I don't have it installed in steam or even under a windows program folder, the KSP folder is a root folder on an external drive (E:/Kerbal Space Program).

I'm running KSP in 32 bit mode.

Any idea what is going on?

Link to comment
Share on other sites

  • 2 weeks later...

hey love the addon its really awesome i just have a quick question/problem,

http://www.curse.com/ksp-mods/kerbal/220941-science-library#c9

that link is to an old mod that used an older version of your toolbar mod to show all the ways to get science points, the button shows up on the toolbar but nothing happens when i click on it, is their anyway you could either tell me how to fix it or just fix it?

Link to comment
Share on other sites

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