Thomas changed the topic of #kspmodding to: Welcome to #kspmodding - the channel for discussing, and learning about, modding Kerbal Space Program. Code of Conduct: https://git.io/vSQh6 | Always provide logs (do !support for help). | *** PSA: https://kerbalspaceprogram.com/api/index.html | <Red5> Guy was asked for a log file, he gave this link: http://pastebin.com/wfVarZPf
xEvilReeperx has joined #kspmodding
<xShadowx> https://pastebin.com/9dvRs5sw does doing constructors like this annoy anyone? coworker just bitched when he saw this (2nd extending the first rather than copying 1st code)
xEvilReeperx has quit [Quit: Web client closed]
stratochief has joined #kspmodding
<taniwha> tell your cow-orker what-for
<taniwha> it's a very /good/ feature
<taniwha> for one, it makes it very clear that the second is extending the first. for another, it makes the second /correctly/ extend the first
<taniwha> win-win
lamont has joined #kspmodding
Ezriilc has quit [Quit: Going offline, see ya! (www.Kerbaltek.com)]
<xShadowx> taniwha: oh i know, im just wondering if it annoys anyone else or just him :D
<taniwha> just him :P
stratochief is now known as stratosleep
Pap is now known as Pap|Sleep
BasharMilesTeg_ has joined #kspmodding
BasharMilesTeg has quit [Ping timeout: 204 seconds]
BasharMilesTeg has joined #kspmodding
BasharMilesTeg_ has quit [Ping timeout: 204 seconds]
xEvilReeperx has joined #kspmodding
Olympic1|Away is now known as Olympic1
Daz has joined #kspmodding
Pap1723 has joined #kspmodding
Pap|Sleep has quit [Ping timeout: 204 seconds]
Daz has quit [Read error: Connection reset by peer]
<Sigma88> I need some help
<Sigma88> I am trying to recolor some stock textures
<Sigma88> I am able to get the textures with my plugin
<Sigma88> the problem is that they look only black
<Sigma88> >_>
<xEvilReeperx> you'll have to add some more detail
egg|nomz|egg is now known as egg
Pap1723 is now known as Pap
<Sigma88> xEvilReeperx: sorry had to go afk
<Sigma88> I think I may have solved my issue, if not I'll be a bit more specific
<Sigma88> :)
Pap1723 has joined #kspmodding
Pap has quit [Ping timeout: 204 seconds]
Pap1723 has quit [Quit: Leaving]
Pap has joined #kspmodding
xEvilReeperx has quit [Ping timeout: 180 seconds]
stratosleep is now known as stratochief
hashashin has quit [Quit: Leaving]
<Sigma88> ok I definitely need some help
<Sigma88> I am trying to recolor the loading screen pictures
<Sigma88> I am able to replace them
<Sigma88> the problem is that to recolor them, I need to load them first
<Sigma88> and I don't know how to read the textures early enough
<Sigma88> for some reason when I look at the textures they are black untill later in the loading screen time, when it's too late to change them
<Sigma88> would it be possible to load the texture manually from the assets?
<Sigma88> instead of just relying on ksp to load it in time?
<xShadowx> that seems like a Sarbian question, or see how MM loads nyan
<Sarbian> it s not MM related, nope
<xShadowx> :|
<xShadowx> i thought MM loaded the cat early
<Sarbian> the cat is not a KSP asset
<Sarbian> I guess you could load them before hand but I am not sure how to to it easily
<Sigma88> the weird thing
<Sigma88> is that I can see the texture
<Sigma88> it has width and height
<Sigma88> but if I try to read it (using kopernicus "create readable")
<Sigma88> it shows just a black texture
<Sigma88> untill a certain point in time, the third time the Update() runs
<Sigma88> at which point I can see the colors as well
<Sigma88> but the issue with that is it's too late to replace the loading screens then
<Sigma88> this is the method I use to read the texture
<Sigma88> Sarbian: do you know how to load a texture from one of the .assets files ?
<Sigma88> xShadowx^
<Sigma88> you too
<Sigma88> :)
<Sarbian> Texture2D t = (Texture2D)AssetDatabase.LoadAssetAtPath("Assets/Textures/texture.jpg", typeof(Texture2D));
<Sarbian> you need to find the path however
<Sarbian> it may be in the texture name when loaded (?)
<Sigma88> the name is just the name of the picture
<Sarbian> do you have an example ?
<Sigma88> kerbalspaceodyssey-v2
<Sigma88> WernherVonKerman
<Sigma88> KerbalGroundCrew
<Sigma88> hmmm, does that require "using UnityEditor" ?
VanDisaster has quit [Ping timeout: 186 seconds]
Ezriilc has joined #kspmodding
<Sarbian> crap, won't work then
<Sarbian> No idea then :(
<Sigma88> what about Resources.LoadAll or some of those?
<Sigma88> Resources.GetBuiltinResource
<Sarbian> They work for asset that are in specifics folders (Ressource)
<Sigma88> ugh
<Sarbian> you have the array of texture right ? Try to Texture2D = Instantiate( array[0] );
<Sigma88> the array of the loading screens?
<Sarbian> yep
<Sigma88> let me check
<Sigma88> do I need a name for that texture2d?
<Sigma88> Texture2D t = Instantiate(myArray[0]);
<Sigma88> like that
<Sarbian> I m spewing code out of thin air there, so it might not work at all
<Sigma88> :)
<Sigma88> running now
<Sigma88> game crashed
<Sigma88> >_>
<Sarbian> My code is too amazing for this era
<Sigma88> so basically I can change the screens but I cannot edit them
<Sigma88> >_>
<Sigma88> that sucks
<Sarbian> If you have the texture in your mod folder, load them and replace the content of the textures arrays ?
<Sarbian> or List, I forgot
<Sigma88> I assume I can't redistribute the textures
<Sigma88> that's why I want to edit them using the plugin
<Sigma88> the weird thing, is that using this I can get the texture with its parameters (width and length)
<Sigma88> Texture2D array = Resources.FindObjectsOfTypeAll<Texture2D>().FirstOrDefault(t => t.name == " WernherVonKerman");
<Sigma88> argh
Ezriilc_ has joined #kspmodding
Ezriilc has quit [Ping timeout: 201 seconds]
Ezriilc_ is now known as Ezriilc
Ezriilc has quit [Quit: Going offline, see ya! (www.Kerbaltek.com)]
egg has quit [Ping timeout: 204 seconds]
egg has joined #kspmodding
BasharMilesTeg_ has joined #kspmodding
BasharMilesTeg has quit [Ping timeout: 201 seconds]
<xShadowx> hmm #if DEBUG vs [System.Diagnostics.Conditional("DEBUG")]
<Thomas> First wont include the function if not building in debug mode, second will prevent the CLR from running the code in it IIRC
<Thomas> So first can break stuff that depends on the thing you wrote, second doesnt
<xShadowx> 2nd, is equiv of comment out all code within whatever method is tagged with that isnt it?
<Thomas> Yeah
<xShadowx> kinda wish i could put something per line, the former case requires #if, code, #end if, to wrap it, which seems like effort / uglier when just having 1 line called
stratochief is now known as stratochief|away
<xShadowx> latter case is nice for that, but still keeps the call in the code
<xShadowx> lol :P
<xShadowx> but not you waste cpu on an if
<xShadowx> s/not/now
<Qboid> xShadowx meant to say: but now you waste cpu on an if
<Qboid> xShadowx meant to say: Dunkirk: now sure wehere hatches is in this, friend just linked me when i asked "stfu nub and watch tuts like i did <link>" haha
<xShadowx> uh o.O
<Thomas> xShadowx: You dont, the compiler will see that you are checking a constant field, and just throw the rest away
<Thomas> yes, I am fixing that
<xShadowx> that........
<xShadowx> is how many years old?
<Thomas> Thats is a part of every good compiler
<Thomas> C/C++ compilers have done that for almost forever
<xShadowx> no i mean that message qboid fished up is like years ago
<Thomas> Ah
<Thomas> Yeah, I have two messups
<Thomas> a) I sort messages the wrong way b) I have two identical .dlls in the plugin folder of qboid
<xShadowx> ahah
<xShadowx> i did b with ksp so many times ;x
<Thomas> moo
<Thomas> s/moo/foo
<Qboid> Thomas meant to say: foo
egg has quit [Read error: Connection reset by peer]
egg has joined #kspmodding
Ezriilc has joined #kspmodding
BasharMilesTeg_ has quit [Read error: Connection reset by peer]
BasharMilesTeg has joined #kspmodding
Pap has quit [Read error: Connection reset by peer]
* xShadowx writes code
<xShadowx> public double usage = 0.01666666f;
* xShadowx checks value
<xShadowx> [LOG 12:54:58.131] [RLS] Resource loaded: ElectricCharge usage: 0.0166666600853205 interval: 0
* Thomas listens to music
<xShadowx> ahahah
* xShadowx wonders where extra numbers came from
* Thomas prepares for eggrant about floating point
* xShadowx puts on helmet and hides under desk
<xShadowx> and yes i know about floating points, just annoying to see it printed out and not playing nice
Pap has joined #kspmodding
<egg> Thomas: you rang?
<egg> xShadowx: evidently you do not actually know
<egg> fortunately for you I have better things to do than ranting at you
<xShadowx> ouch o.O
egg has left #kspmodding [It's a silly place.]
egg has joined #kspmodding
* egg stabs keyboard
<kmath> <stephentyrone> https://t.co/FTuvYktX9d
xEvilReeperx has joined #kspmodding
<Sigma88> finally :D