-
Posts
2,419 -
Joined
-
Last visited
Content Type
Profiles
Forums
Developer Articles
KSP2 Release Notes
Everything posted by lo-fi
-
SoonTM(ish). Still a lot to do finishing parts and balancing config, but the list is shrinking! That's very odd with the dust colours. Be interesting to see what happens when it's released into the wild! Looks like you're using an out of date commit, Gaalidas. Those appbutton.settexture lines are the culprits. They snuck in while I wasn't looking and since got fixed. Naughty things... I guess it depends how much of a challenge you want, Aqua! I'm afraid many areas of the code aren't very well commented, so it may be a little tricky right off the bat. Most of the core stuff is ready for testing, with the most critical bits being KFModuleWheel, KFWheel, KFRepulsor, DustFX. A little code review probably wouldn't hurt! If you would like a real challenge, have a peek at the hitch code and see if you have any bright ideas for reload/time acceleration problem! I had an idea that we could force docking when time acceleration is started, but I'm not sure this would be possible when scene changing or save/reloading. It all seemed a little flimsy! It will be a total mess from where I was messing with trying to force things back together. I can't think of any other features we've talked about but not got round to implementing... Unless! Was musing about some code to figure out vessel weight and wheel loading to be able to auto set the spring rate and braking force. Not critical, but nice to have. Oh, also, accessing the wheel collider slip properties to allow a sound to be played when they're slipping. Could also tie in some extra dust. A few bits to play with, but open to ideas
-
Grab the latest, I broke, then fixed then broke as usual. Biome colors are 100% broken on Kerbin. Fresh install of 1.04, dust is white wherever I go. My KF is what's in Git, as it pulls it straight from GameData. Used to turn brown the moment I drove off the side of the runway. Now it's just white everywhere: To prove my point, I set: DustColorDefinitions { DefaultColor = 0.75,0.75,0.75,0.007 BodyDustColors { Item { Name = Kerbin [B]DefaultColor = 0.75,0.75,0.75,1.0[/B] Which gives: In other words, it's not marrying the biome name up with what's named in the config and it's defaulting. Which is what we were batting back and fore before I went all leftfield and started messing with the camera. Duna is fine, just for reference: I hard coded the plugin to temporarily ignore the camera, just to make 100% sure it's not getting data from that. Kerbin, we have a problem.
-
Get Unity For KSP?
lo-fi replied to ZentroCatson's topic in KSP1 C# Plugin Development Help and Support
They do indeed. No need to get the .20 to "install" first. Just drag the contents of the zip into the assets folder within the Unity project you create. Good luck! -
You really did get in a pickle between the blizzy and stock stuff, didn't you! I've almost got it working. Buttons are fixed - as Aqua pointed out, variables that want to be accessed by the gui stuff need to be declared static or something else I can't remember. - - - Updated - - - I'm just going to put this here Save/load of the config nodes seems to work, so you got that bit spot on. Only thing is it doesn't reset the colour of the icon when the save button is used, but I'll hand it over to you for tinkering now it's actually working. Also. someone please rep *Aqua* for UI assistance. It won't let me again!
-
Thanks, I was just poking through your original posts. I'm trying to get the app launcher button working correctly first, then I'll look at the GUI stuff. It's not far off. I can get the app launcher button up, but it's turned all the other buttons to the KF logo and doesn't have one itself, just a blank square... Though progress is being made!
-
I'm always in favour of scrapping MM patches "Hey, you could write an MM patch for that!". Wait. What?? Or you could, you know, put it in the config... It is useful for stuff where there are dependebcies, options or you want to add something to all parts, but it's a widely abused tool IMO. It will no doubt still be needed to remove the collisionfx for the KF parts, though. Although I could maybe just remove that in code anyway and ditch the whole thing, which is quite appealing. I'll run you through my diagnostic steps on the GUI stuff: The first problem I can see is in Start() ArgumentException: You can only call GUI functions from inside OnGUI. at UnityEngine.GUIUtility.CheckOnGUI () [0x00000] in <filename unknown>:0 at UnityEngine.GUI.get_skin () [0x00000] in <filename unknown>:0 at UnityEngine.GUI.Window (Int32 id, Rect clientRect, UnityEngine.WindowFunction func, System.String text) [0x00000] in <filename unknown>:0 at KerbalFoundries.KFConfigManager.InitGUIElements () [0x00000] in <filename unknown>:0 at KerbalFoundries.KFConfigManager.Start () [0x00000] in <filename unknown>:0 And it's actually telling you that there's an issue with InitGUIElements() within Start(). So let's look there and add some debugging stuff. settingsRect = GUI.Window(GUI_ID, settingsRect, KFGUI, string.Empty); sticks out at me as having potential for causing the problem, so let's add some debugging lines: void InitGUIElements() { centerLabel = new GUIStyle(); centerLabel.alignment = TextAnchor.UpperCenter; centerLabel.normal.textColor = Color.white; //leftLabel = new GUIStyle(); //leftLabel.alignment = TextAnchor.UpperLeft; //leftLabel.normal.textColor = Color.white; appTextureGrey = GameDatabase.Instance.GetTexture(string.Format("{0}/{1}", strIconBasePath, strIconGrey), false); print("googleflungle"); appTextureColor = GameDatabase.Instance.GetTexture(string.Format("{0}/{1}", strIconBasePath, strIconColor), false); print("kadooglafla"); GameEvents.onGUIApplicationLauncherReady.Add(SetupAppButton); print("abrakadabra"); settingsRect = GUI.Window(GUI_ID, settingsRect, KFGUI, string.Empty); print("nomnomklakture"); } In the log, we get: PartIconFixer, PartIconFixer v1.2.0.0 starting (Filename: C:/buildslave/unity/build/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 56) googleflungle (Filename: C:/buildslave/unity/build/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 56) kadooglafla (Filename: C:/buildslave/unity/build/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 56) abrakadabra (Filename: C:/buildslave/unity/build/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 56) ArgumentException: You can only call GUI functions from inside OnGUI. at UnityEngine.GUIUtility.CheckOnGUI () [0x00000] in <filename unknown>:0 at UnityEngine.GUI.get_skin () [0x00000] in <filename unknown>:0 at UnityEngine.GUI.Window (Int32 id, Rect clientRect, UnityEngine.WindowFunction func, System.String text) [0x00000] in <filename unknown>:0 at KerbalFoundries.KFConfigManager.InitGUIElements () [0x00000] in <filename unknown>:0 at KerbalFoundries.KFConfigManager.Start () [0x00000] in <filename unknown>:0 OK, so it is that line that's causing the problem. Googling up the argument exception, it seems pretty straightforward that you're not allowed to draw GUI elements outside of OnGUI(), so why are we trying to do that? Where did the code come from and what does the original look like?
-
Are you tempted to enter Lita's challenge posted a few days back, Darren? - - - Updated - - - Woah, sorry you're struggling! Push what you have to Git and I'll take a quick look to see if I can spot what's going wrong. I know what it's like when you're stuck staring at something that doesn't work; it's painful!
-
KSP treats the tractor and trailer as two separate vessels as it should. In normal physics time, this is fine be able they're joined by a physics joint; albeit one that KSP knows nothing about. In time acceleration, the flight integrator merrily does it's thing and interpolates their orbits/trajectories - which will always be different - with physics paused so the joint is ineffective, and herein lies the problem. Similarly, save / load messes up the precise relative locations, so re-hitching is hit and miss at best. It is, sadly, something KSP was not designed to handle, and I'm trying to fight something that lies at its very core. That's not to mention all the many other little niggles that need sorting to take it from POC to something releasable. Unless you've got a fairly deep knowledge of how these things work, progress is unlikely. It may look simple; it really isn't. I've got a lot to get ready for the next release - which I'm quite aware has been a long time coming - so no time to put into it I'm afraid.
-
All sounding very promising! It's a steep learning curve, isn't it. Been there with different stuff to face down. I don't know how much it helps with your college stuff, but it'll look fantastic on a CV, so don't forget to make sure you're appropriately credited. In a position as a potential employer, I'd hire someone with a degree and some experience in an open source project over someone with just the degree every time. Actually, making our own local scale module may not be too difficult. As the parts don't allow attachment, they will always be last in the chain, so all the complicated, clever stuff TS does to position down-tree parts isn't needed. I'll do some playing about, but adjustable width is definitely on the cards.
-
Ah, I see. What an omnishambles (the forum won't censor that one)! Procedural tracks... Yeah, we've kind of talked about that before, and it would be awesome. I don't think it would be impossible, just insanely difficult. If I had unlimited time and some funding, maybe. But realistically, I'm afraid no. Adjustable width is something I'm looking into, though
-
Throttle control won't be hard. I'll do my best to add that it - it will only be a few lines of code. In other news: I got to grips with sending particles out where I wanted them. Both they and the lights need tweaking now. Particles need to me more subtle, lights need to be diffused more if I can manage that.
-
Post something promising up and let's see if we can make sense of it. I'd go with stock toolbar. Oh, and regarding DustFX on other wheels... Comes as standard if they're driven with the KF plugin now. There's an MM patch for stock, plus a few others. Will need updating, but they all work rather well. Happy to resurrect old, forgotten wheels too, so suggestions welcome