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. | *** PSA: https://kerbalspaceprogram.com/api/index.html | <Red5> Guy was asked for a log file, he gave this link: http://pastebin.com/wfVarZPf | If you haven't read it yet: Logs :P
blowfish has quit [Quit: Leaving]
NathanKell|AWAY is now known as NathanKell
blowfish has joined #kspmodding
NathanKell is now known as NathanKell|Twitch
xEvilReeperx has joined #kspmodding
SirKeplan has quit [Ping timeout: 204 seconds]
xEvilReeperx has quit [Ping timeout: 180 seconds]
SirKeplan has joined #kspmodding
regex has joined #kspmodding
ninja81 has joined #kspmodding
ninja81 has left #kspmodding [#kspmodding]
xEvilReeperx has joined #kspmodding
NathanKell|Twitch is now known as NathanKell|AFK
Ezriilc has quit [Quit: Going offline, see ya! (www.Kerbaltek.com)]
regex has quit [Remote host closed the connection]
NathanKell|AFK is now known as NathanKell
NathanKell is now known as NathanKell|AWAY
blowfish has quit [Quit: Leaving]
ferram4 has quit [Ping timeout: 204 seconds]
VanDisaster has joined #kspmodding
<Sigma88> so, here's a question for some of you smart ppl
<Sigma88> one of my mods requires TR
<Sigma88> I have a cfg that adds a new folder to the list of folders TR checks
<Sigma88> and it works
<Sigma88> I would like to disable this functionality when another of my mods is installed
<Sigma88> so what I did is make a plugin that deletes the content of the confignode when my mod is installed
<Sigma88> but it doesn't work
<Sigma88> for some reason
<Sigma88> this is the code I use
<Sigma88> I checked and the confignode gets cleared
<Sigma88> but TR still manages to get the folder
<Sigma88> >_>
Qboid was kicked from #kspmodding by *status [You have been disconnected from the IRC server]
Qboid has joined #kspmodding
<Sigma88> ok I found the issue
<Sigma88> I was using Awake() to make sure my plugin was executing before TR (which uses Start() ) but for some reason the gamedatabase is reset at Start()
<Sigma88> >_>
Starwaster has quit [Ping timeout: 383 seconds]
TheKosmonaut is now known as TheKosmonot
TheKosmonot is now known as TheKosmonaut
ferram4 has joined #kspmodding
Starwaster has joined #kspmodding
BasharMilesTeg_ has quit [Read error: Connection reset by peer]
ferram4_ has joined #kspmodding
ferram4 has quit [Read error: Connection reset by peer]
Ezriilc has joined #kspmodding
regex has joined #kspmodding
BasharMilesTeg has joined #kspmodding
blowfish has joined #kspmodding
fishbowl has joined #kspmodding
blowfish has quit [Read error: Connection reset by peer]
fishbowl has quit [Quit: Leaving]
Ezriilc has quit [Ping timeout: 186 seconds]
Ezriilc has joined #kspmodding
<xShadowx> nuuuuuuuuuuuuuu it borked :(
<xShadowx> went 1/2 way maybe 2/3 through a roll of 42 awg magnet wire, wrapping it gently, and it borked ;_;
ferram4_ has quit [Read error: Connection reset by peer]
ferram4_ has joined #kspmodding
ferram4_ is now known as ferram4
<xShadowx> that stuff is freakin tiny -.- oh well, now i have a multi tap transformer
Ezriilc has quit [Ping timeout: 204 seconds]
Ezriilc has joined #kspmodding
Ezriilc has quit [Ping timeout: 204 seconds]
blowfish has joined #kspmodding
Ezriilc has joined #kspmodding
<Sigma88> Sarbian: I have a question for you
<Sigma88> are you online?
<Sigma88> :)
<Sarbian> Sigma88: I am
<Sigma88> cool
<Sigma88> so
<Sarbian> busy colliding stuff ;)
<Sigma88> I would like to delete all root nodes of a certain type
<Sigma88> but leaving only one
<Sigma88> which has to have a specific url
<Sigma88> MM can't do that as far as I can tell, but I could do it with a plugin I suppose?
<Sarbian> I think you could do it with MM. Let me think about it for a min
<Sigma88> I tried doing this:
<Sigma88> foreach (UrlDir.UrlConfig file in GameDatabase.Instance.GetConfigs("GalacticNeighborhood").Where(f => f.url != "GalacticNeighborhood/Settings/GalacticNeighborhood"))
<Sigma88> and then doing
<Sigma88> file.config.name = "NOTGN";
<Sigma88> but MM still processes it
<Sigma88> I guess I need to change the file.name and file.type
<Sigma88> but those are read only
<Sarbian> I guess that the problem is that if MM loads its cache then all your changes are gone
<Sigma88> that change would happen before MM generates the cache
<Sigma88> no?
<Sigma88> in the cachefile I do see the node being called NOTGN
<Sarbian> ok
<Sigma88> this is what I get
<Sigma88> the original node only had the value "test = 1"
<Sarbian> MM is so complex nowadays that I forgot half of it
<Sigma88> I basically just want to edit the database before MM starts
<Sarbian> What you could do is add a tag to the node you want to keep and ask to delete everything that does has the tag
<Sigma88> do you mean using MM?
<Sarbian> yep
<Sigma88> can't do that
<Sigma88> because ppl are copying the cfg file I distribute
<Sigma88> so they would just copy the tag
<Sigma88> >_>
<Sarbian> Then plugin it is, but I m sure there is a catch somewhere...
<Sigma88> how do you change the type and name of UrlDir.UrlConfig in mm?
<Sigma88> I tried to look at the source
<Sigma88> but..... headache
<Sigma88> :D
<Sarbian> +1
Thomas|AWAY is now known as Thomas
<Sarbian> MM does not seems to change them...
<Sigma88> huh
<Sigma88> could you point me to the delete a node code?
<Sigma88> !PART {}
<Sarbian> line 1783
<Thomas> Sigma88: Well, instead of deleting all nodes, you could only load the one that has the correct path
<Qboid> Thomas: Sigma88 left a message for you in #Kopernicus [30.06.2017 20:43:56]: "I had an idea to avoid having problems if a mod different from kopernicus was to add an additional "Kopernicus" node"
<Sarbian> and look at how the foreach is done line 1747. You need to loop on a copy of the list since you can not remove node from something you loop on
<Sigma88> Thomas: the settings node is for MM to use
<Sigma88> for sigmadimensions
<Sigma88> or for kopernicus
<Sigma88> so I need MM to be able to see that one, but not all the others
<Sarbian> crap, of course I added line...
<Sigma88> thanks!
<Sigma88> Sarbian: worked like a charm
<Sigma88> thanks!
<Sarbian> good :)
regex has quit [Remote host closed the connection]
blowfish has quit [Quit: Leaving]
<Sarbian> ok, collision works properly but it looks silly. I need to add condition for division and accretion