Page 1 of 7 123 ... LastLast
Results 1 to 10 of 62

Thread: [0.25] SceneJumper (0.2.1) - added "Save and Quit" and "Revert" buttons!

  1. #1

    [0.25] SceneJumper (0.2.1) - added "Save and Quit" and "Revert" buttons!


    Version 0.2 - 17.02.2014
    Ever wanted to simply go straight to the VAB/SPH/Tracking Station from flying your ships?

    UPDATE TOOLBAR MOD





    This mod uses blizzy78's wonderful Toolbar mod to add buttons in the flight, VAB, SPH and Tracking Station scenes that allow you to jump between the scenes. And yes, this mod very much requires Toolbar (due to my inexperience with GUIs and most of C#).

    This may seem pretty useless to some people, but when I found myself constantly going back to the Space Center just to go to the VAB or the Tracking Station, it was getting tedious having to wait for the Space Center to load, especially since my computer takes about four seconds to do it. That PLUS the loading time of the other scenes was getting a little annoying for me ESPECIALLY since I did it SO many times. So I thought why not just skip through it? This was the easiest solution I could think of. It may help with people who have slower-end computers, more as a convenience mod than anything else.

    Currently supports:
    - Going from Flight to VAB/SPH/Tracking Station
    - Going from VAB to SPH and vice-versa
    - Going from Tracking Station to VAB/SPH



    Note that because at times you'll have three buttons from this mod (which may be too many on the toolbar!) - never worry though, blizzy's Toolbar actually carries a feature where you can create a folder and organize the buttons!

    An example by Roxette




    During development I had enabled a button that allowed VAB switch to Tracking Station, but for some reason this caused the player to lose mouse (and keyboard) control of the flight camera. Until I figure out how to fix this, you'll have to endure the old way of going back to the Space Center to get to the Tracking Station (OR just launch something small, and hit the Tracking Station button, if you really wanted to).

    Please be gentle, this is my first plugin and my very first dive into C# programming (my only background being C). This plugin has also only been through very light testing (one night's worth), so be wary of any bugs. Please report any bugs!


    Download Alternate Icons by 5thHorseman
    (Simply download and unpack into the sceneJumper folder and overwrite the current files)





    Download Here (Curse)
    (source and Toolbar included)
    Dropbox


    Changelog
    Code:
    0.2
    - Added two new buttons: the revert button and the "save and quit" button
    - Removed "Important" for Toolbar buttons as they were irrelevant
    - Updated blizzy's Toolbar mod and packaged
    
    0.1
    - Released sceneJumper
    Released under the Creative Commons Attribution-ShareAlike 2.5 Generic license.
    Powered by blizzy78's Toolbar plugin (comes with the zip file - ensure you don't replace your current Toolbar folder if you have a more recent version!)
    Last edited by theSpeare; 10th October 2014 at 07:49.

  2. #2
    Bottle Rocketeer
    Join Date
    Jul 2013
    Location
    Milky Way, Solar System, Saturn, Titan
    Posts
    14
    Oh yes! I was waiting this kind of mod along time ago! No I don't have to wait!

  3. #3
    I suppose it displays the same dialogs of flying in atmospheres as pressing the button and doesn't just delete the spacecraft without warning.

  4. #4
    Nice, I hate the slow-loading space center.

    A natural extension might be to skip the main menu on startup too. I have this bit of debug code in my mod to skip directly to the VAB after loading the quicksave in the folder "dev".

    Code:
    [KSPAddon(KSPAddon.Startup.MainMenu, false)]
    public class Debug_AutoLoadQuicksaveOnStartup: UnityEngine.MonoBehaviour
    {
    	public static bool first = true;
    	public void Start()
    	{
    		if (first)
    		{
    			first = false;
    			HighLogic.SaveFolder = "dev";
    			var game = GamePersistence.LoadGame("quicksave", HighLogic.SaveFolder, true, false);
    			if (game != null && game.flightState != null && game.compatible)
    			{
    				HighLogic.LoadScene(GameScenes.EDITOR);
    			}
    		}
    	}
    }
    You could set a flag and the SaveFolder name in your plugindata, then check that on startup; if the flag is set, skip the main menu entirely. If it's not set, do nothing

  5. #5
    Quote Originally Posted by hab136 View Post
    Nice, I hate the slow-loading space center.

    A natural extension might be to skip the main menu on startup too. I have this bit of debug code in my mod to skip directly to the VAB after loading the quicksave in the folder "dev".

    Code:
    [KSPAddon(KSPAddon.Startup.MainMenu, false)]
    public class Debug_AutoLoadQuicksaveOnStartup: UnityEngine.MonoBehaviour
    {
    	public static bool first = true;
    	public void Start()
    	{
    		if (first)
    		{
    			first = false;
    			HighLogic.SaveFolder = "dev";
    			var game = GamePersistence.LoadGame("quicksave", HighLogic.SaveFolder, true, false);
    			if (game != null && game.flightState != null && game.compatible)
    			{
    				HighLogic.LoadScene(GameScenes.EDITOR);
    			}
    		}
    	}
    }
    You could set a flag and the SaveFolder name in your plugindata, then check that on startup; if the flag is set, skip the main menu entirely. If it's not set, do nothing
    Since I do mods and load/reload the game a LOT I wrote this plugin:
    http://forum.kerbalspaceprogram.com/...-3-Dec-26-2013

    My next update I hope to allow loading of specific ships in flight and hopefully loading crafts onto the launchpad.
    Want robotic parts?
    Download the Magic Smoke Industries Infernal Robotics plugin and parts!
    Magic Smoke Industries Infernal Robotics

  6. #6
    @Uqabos: yeah, I've been asking around for help or for someone else to do it - no one really responded so I decided to just do it myself. I was getting pretty tired of the Space Center

    @AndreyATGB: It's already programmed to save when you jump from the Flight scene to the VAB/SPH/Space Center. I went through much trouble to prevent it from switching scenes if it won't even let you go to the Space Center through the pause menu. Everything should be okay but if you run into issues, do let me know.

    @hab136 and sirkut: I was very interested about this for a moment but turns out sirkut already wrote something His will definitely even be neater than mine, so go crazy with his.


    Meanwhile I'm still trying to figure out the problem with the camera loss after jumping from the VAB to the Tracking Station directly. I figure it's because camera control is lost right at the start due to the lack of a root part. But I still can't find anything I can exploit to circumvent this; like something to restart camera control every time you come out of the VAB?

  7. #7
    I've been waiting for something like this. A little nervous about it as the whole scene loading appears to be associated with status saving and persistence. Anyone using this yet?

  8. #8
    I haven't come across any problems yet. Perhaps back your save up? From my experience so far I haven't come across any problems and vehicles are saving fine.

    Unless I'm doing anything wrong, this is pretty much the only this.

    Code:
    GamePersistence.SaveGame("persistent", HighLogic.SaveFolder, SaveMode.OVERWRITE);

  9. #9
    Me, including a few of my friends, have been using this extensively now and nothing has broken just yet. Still working on the camera problem! If I can fix it then switching from the VAB to the Tracking Station should be available.

  10. #10
    I've had the camera spawn far off, like 3 kilometers from the launch pad when going from VAB to Launch. Focus is good you just have to zoom all the way back in. Minor thing.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •