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
egg is now known as egg|zzz|egg
Ezriilc has quit [Quit: Going offline, see ya! (www.Kerbaltek.com)]
<taniwha> Sarbian: does Module Manager have a means of floor/ceil/round-ing a number?
<taniwha> hmm, I guess I should not expect an answer for several hours
<taniwha> (034 UTC)
<Virindi> to the source!
<taniwha> there are 3 .cs files
<taniwha> one of them named CatMover.cs
<taniwha> another, CustomConfigsManager.cs. both of which are < 2.5kB
<taniwha> file number three is /scary/
<taniwha> -rw-r--r-- 1 bill bill 127413 May 2 09:35 moduleManager.cs
<Virindi> a trick to keep away noobs
<taniwha> but I'm not a noob!
* taniwha cowers in the corner
<taniwha> oh. that's not so bad. only 3270 lines
<Virindi> is one of the lines 50,000 characters
<taniwha> no, and only three wrap in a 190 char window
<taniwha> Virindi: run ksp with -nyan-nyan :)
<Virindi> no
<xShadowx> dooo et
<Virindi> is it just the april 1 cat loading screen
<taniwha> or prior to nov 1 2016
<xShadowx> if MM can round i never seen it :|
<taniwha> xShadowx: most MM patch hackers are... lacking
<xShadowx> true
* taniwha remembers being in here to find out how to hook into KSP's loading sequence
<taniwha> for EL's recipes
<xShadowx> =\ for integer maybe, but no clue if works
<taniwha> if you can "cast" to int, then rounding is trival: (int)(x + 0.5)
<taniwha> floor is also trivial: (int)x
<taniwha> ceil is a bit more tricky
<taniwha> though I guess x+0.9999999999999 might work
<taniwha> // Name is group 1, index is group 2, vector related filed is group 3, vector separator is group 4, operator is group 5
<taniwha> private static Regex parseValue = new Regex(@"([\w\&\-\.\?\*]+(?:,[^*\d][\w\&\-\.\?\*]*)*)(?:,(-?[0-9\*]+))?(?:\[((?:[0-9\*]+)+)(?:,(.))?\])?(?:\s([+\-*/^!]))?");
<taniwha> I think that's supposed to be field in 2, but that regex is scary
VanD has joined #kspmodding
VanDisaster has quit [Ping timeout: 204 seconds]
<taniwha> er, in 3
VanD has quit [Quit: Miranda NG! Smaller, Faster, Easier. http://miranda-ng.org/]
VanDisaster has joined #kspmodding
<taniwha> MM can accept regex searc/replace
<xShadowx> but regex on its own cant round
<xShadowx> accually
<taniwha> wasn't suggesting that
<taniwha> it can, however, figure out if rounding is needed
<taniwha> the problem is creating a regex to round 9.9
<xShadowx> accually, ya you could round
<taniwha> or really, X9.9
<xShadowx> problem there is how many 9s :P
<taniwha> after the . is not so bad
<xShadowx> if X=999999999 heh
<taniwha> it would be hairy, but I think it can be done
<xShadowx> multiline pass def could
<taniwha> no, just one
<xShadowx> a ^= :\.[0-9]*:: would truncate
<taniwha> yeah
<taniwha> truncation is easy
<xShadowx> a ^= :\.[0-4][0-9]*:: would round down
<xShadowx> atleast if positive ;3
<xShadowx> not sure how to count 9s and replace by equal count of 0s
<taniwha> the Regex class is used
<xShadowx> ya MM is c# regex :)
<xShadowx> careful a few symbols dif vs most other regex systems
<taniwha> question is, how good is C# regex?
<taniwha> symbol diffs are meh
<taniwha> problem is available operations
<taniwha> (grouping etc)
<xShadowx> all regex are about the same
<taniwha> no
<xShadowx> you can do capture groups ya
<taniwha> not all regex are about the same
<xShadowx> ok all i seen are about the same :|
<taniwha> c# regex doesn't have \< or \>
<taniwha> (beginning/end of word)
<taniwha> though \b is sorta kinda maybe close
<taniwha> (\< and \> include _)
<xShadowx> word boundary is \b i think
<taniwha> yes, but just alphanum
<xShadowx> coulda sworn counted _
<taniwha> going by presented docs :P
<xShadowx> sure, still coulda sworn it did :P
<taniwha> xShadowx: @value += 0.5; @value ^= :\.[0-4][0-9]*::
<taniwha> for rounding
<taniwha> 0.99999999999999998 for ceil
<xShadowx> rounding +/- correctly?
<taniwha> define correctly :P
<taniwha> there's more than one rounding scheme
<taniwha> (but yes, -ve would need to be handled separately)
<xShadowx> -2.1 rounds to -1
<xShadowx> heh
<xShadowx> also, might wanna :.0: so you dont just wipe decimal away but meh
<taniwha> no, the problem is part cost is float, tech entry cost is int
<taniwha> must eliminate .
<xShadowx> i thought MM did that already o.O
<Virindi> why write crippled markup when you can write code :P
<taniwha> 5.1 * 5 :P
<taniwha> Virindi: because could not write code
<xShadowx> cuz MM patch
<Virindi> you can always write code
<xShadowx> if entry cost is your only usecase, id just truncate XD skip rounding
<xShadowx> 1$ is nothin :|
<xShadowx> though ksp shouldve had em be atleast float, maybe double
<xShadowx> not int >.>
<Virindi> money costs?
<xShadowx> costs as int is sucky
<Virindi> no they should be decimal
<Virindi> money should almost always be stored as decimal :P
<xShadowx> overkill for a game
<xShadowx> double works ;p
<Virindi> overkill what is that!
<xShadowx> though resources, id argue should be decimal :P
<Virindi> dunno depends on what the range can be in practice
<xShadowx> 50 times/sec you change it, multiplying need * deltatime, and can easily run decimals to the point of wasting fuel for nothin
<xShadowx> esp when tank is say xxx,xxx.xxxxxxxxx if you use it slowly enough the rounding errors build up :P
<Virindi> WHOOP WHOOP WHOOP IMMINENT FAILURE OF MK1-2 COMMAND POD
<Virindi> xShadowx Kerman was killed.
DuoDex is now known as dormantdex
<xShadowx> Virindi: as (s)he should be :)
<Virindi> ?
<Virindi> murder those kermans
<xShadowx> [ERR 16:45:35.401] ItemPrefab for control type 'UI_Accordion' not found.
<xShadowx> hmm :|
<Virindi> rasterpropmonitor is a little harmful to the framerate
<Virindi> :\
<xShadowx> didnt used to be o.O
<Virindi> well if you have like 20 monitors open
<xShadowx> then maybe :P
<Virindi> think I will just do jool 5 tonight
<Virindi> I am bored
<oren> No no no money should be stored as fixed
<Virindi> that works too.
<Sarbian> taniwha: nope
<Sarbian> I am considering adding some kind of eval operation to do simple C# code from MM
<xShadowx> Sarbian: excel style perhaps? regex scan for RND(stuff) and replace with result
<Sarbian> More like a unix shell $( 2 + 3 ), but it works the same
<xShadowx> whats $() do?;3
<Sarbian> it evaluate the content, so yeah 3
<xShadowx> need other cases though, RND, ABS, CEIL, etc
<Sarbian> err 5
<Sarbian> ;)
<Sarbian> $( Math.Cos(2) + 3 ) would work
<xShadowx> ah so $() amnd anything inside is parsed/ran as if c# code?
SirKeplan has quit [Ping timeout: 200 seconds]
<xShadowx> hopefully it would be after variables get checked for, so i can do $(Math.Abs($myvar$)) :P
* xShadowx forgot variable paste syntax
<Sarbian> yeah, after vars
blowfish has joined #kspmodding
<xShadowx> ^.^
<xShadowx> part of me wonders if anyone will ever remake MM
<Virindi> why should they
<xShadowx> cuz :P
stratochief is now known as stratosleep
SirKeplan has joined #kspmodding
pap1723 is now known as Pap|Sleep
<Virindi> you know what's more fun than playing the game? trying to exploit FAR
JPLRepo has joined #kspmodding
<Virindi> I was trying to make a large cargo bay that a rover could drive out of, but what's the use of doing that if you don't do some intake ducting cheating and make it have no cross section
<Virindi> so put some stuff on robotic hinges that cause intakes to move in front of stuff in flight thus giving you near zero cross section
<Virindi> I wish there was some way to make intake ducting not so easy to exploit
xEvilReeperx has joined #kspmodding
APlayer has joined #kspmodding
<APlayer> Hi!
TwistedMinds has quit [Ping timeout: 180 seconds]
riocrokite has joined #kspmodding
riocrokite has quit [Quit: http://www.mibbit.com ajax IRC Client]
TwistedMinds has joined #kspmodding
APlayer has quit [Ping timeout: 204 seconds]
APlayer has joined #kspmodding
blowfish has quit [Quit: Leaving]
riocrokite has joined #kspmodding
aeTIos has joined #kspmodding
X has joined #kspmodding
APlayer has quit [Remote host closed the connection]
APlayer has joined #kspmodding
Technicalfool_ has joined #kspmodding
tfafk has quit [Ping timeout: 186 seconds]
Guest79168 is now known as Tivec
APlayer has quit [Ping timeout: 204 seconds]
APlayer has joined #kspmodding
APlayer has quit [Ping timeout: 204 seconds]
xEvilReeperx has quit [Quit: Web client closed]
X has quit [Remote host closed the connection]
X has joined #kspmodding
APlayer has joined #kspmodding
APlayer has quit [Remote host closed the connection]
aeTIos has quit [Remote host closed the connection]
<riocrokite> hmmm is it possible to add sorting by distance to ksp particle emitter?
ferram4 has quit [Ping timeout: 200 seconds]
ferram4 has joined #kspmodding
Pap|Sleep is now known as Pap1723
<taniwha> http://forum.kerbalspaceprogram.com/index.php?/topic/54284-122-extraplanetary-launchpads-v572/&do=findComment&comment=3042263
Thorbane has quit [Ping timeout: 204 seconds]
riocrokite is now known as riocrokite_away
riocrokite_away has quit [Quit: http://www.mibbit.com ajax IRC Client]
<Sigma88> does anyone have the stock file with science defs?
Technicalfool_ is now known as Technicalfool
<xShadowx> Sigma88: everyone who has ksp installed?;3
<Sigma88> exactly
<Sigma88> I don't
<Sigma88> :D
<xShadowx> what
<Sigma88> and since I have some free time I wanted to take a look at it
<xShadowx> freak
<Sigma88> had to format my laptop
<xShadowx> how dare you not have ksp installed
<Sigma88> it's still reinstalling the os
<xShadowx> windows or linux?
<Sigma88> win
<xShadowx> good boy
<Sigma88> I'm not that happy with the direction win is taking
<Sigma88> but it's still better fit than linux for my needs
<xShadowx> stick to win7
VanDisaster has quit [Quit: Miranda NG! Smaller, Faster, Easier. http://miranda-ng.org/]
VanDisaster has joined #kspmodding
<VanDisaster> win7 is fine as long as there's drivers :p
<VanDisaster> erg, loaded an old install up & my own mod appears to be broken. how does that even happen when it's just been sitting there doing nothing for months
<TwistedMinds> environment changes (drivers & os update). Or it was already broken and you didn't realize :)
<xShadowx> i vote option 2
<VanDisaster> probably "I was porting it to 1.2 & forgot"
<TwistedMinds> There you go :)
riocrokite has joined #kspmodding
<riocrokite> taniwha: had a bit different idea what about creating first a big pile of regolith and then building inside different rooms depending on what you need
<riocrokite> sort of XCom base ;)
<riocrokite> would need custom plugin ofc
<riocrokite> externally it would have just some elements indicating different rooms inside
Thomas|AWAY is now known as Thomas
<xShadowx> riocrokite: like civ5 cities model adjusting to show whats in the city?;3
BasharMilesTeg_ has joined #kspmodding
Daz has quit [Remote host closed the connection]
BasharMilesTeg has quit [Ping timeout: 180 seconds]
* Thomas read $() and thought "why the hell would Sarbian embed jQuery into MM" xD
X has quit [*.net *.split]
stratosleep has quit [*.net *.split]
Iskierka has quit [*.net *.split]
ehs has quit [*.net *.split]
Sarbian has quit [*.net *.split]
Virindi has quit [*.net *.split]
HiddenKnowledge has quit [*.net *.split]
* xShadowx waves bye to people
* Thomas waves bye to esper servers
* Thomas reads more backlog
<Thomas> win7 is becoming the new xp
<Thomas> which is scaring me a bit :P
<xShadowx> win10 is the new vista
<Thomas> nah
<Thomas> vista was junk, win10 just made some unpopular decisions
<xShadowx> win8 was vista?
<xShadowx> 8 was shit
<Thomas> I agree
<xShadowx> 8 didnt even last long heh
<Thomas> 2 or 3 years I think
Iskierka has joined #kspmodding
Sarbian has joined #kspmodding
Daz has joined #kspmodding
X has joined #kspmodding
HiddenKnowledge has joined #kspmodding
Virindi has joined #kspmodding
stratosleep has joined #kspmodding
ehs has joined #kspmodding
Virindi has quit [Ping timeout: 383 seconds]
Virindi has joined #kspmodding
<xShadowx> depends if you count 8.1
<xShadowx> 8 was late 2012, 8.1 early 2014
<xShadowx> 10 july 2015
<Thomas> I count 8.1 as 8
stratosleep is now known as stratochief
stratochief is now known as stratochief|away
riocrokite has quit [Quit: http://www.mibbit.com ajax IRC Client]
Sigma88 is now known as SigmaNote
SigmaNote is now known as Sigma88
riocrokite has joined #kspmodding
riocrokite has quit [Quit: http://www.mibbit.com ajax IRC Client]
regex has joined #kspmodding
Sigma88 is now known as SigmaTrain
Olympic1 is now known as Olympic1|Nomz
stratochief|away is now known as stratochief|remote
riocrokite has joined #kspmodding
Olympic1|Nomz is now known as Olympic1
* xShadowx grumbles
<xShadowx> those times when a class has nice virtual methods for you to override....then a key value it uses is in a private field......
<xShadowx> you know when VS gives warnings/errors, is it possible to make your own warnings? like "virtual or overridden method uses a variable that is marked private" :P
<Virindi> ever use something like fxcop
<xShadowx> nupe
<Virindi> your mind might be blown
<Virindi> probably not in a good way
<Virindi> it is a code analyzer that basically implements every little nitpicky style warning you could possibly imagine, times 1000
<Thomas> xShadowx: And if that is not enough for you, write your own roslyn code analyzer
<xShadowx> so an ex-wife plugin
<xShadowx> Thomas: i'm not insane enough to go that far :|
<Thomas> Or pre build task and regex :P
* Thomas hides
<xShadowx> what.....this guy is passing -null
* xShadowx didnt think that works
<Thomas> Waaaa
<Thomas> Code plz
<xShadowx> local repo at work
<Virindi> in cpp it would work :P
<Thomas> Yeah
<Thomas> xShadowx: pastebin plz :P
<Thomas> (jk)
<xShadowx> meh small enough https://pastebin.com/S2yjGUJ7
<xShadowx> ima call bs on this and try it
<Thomas> !csharp -null
<Qboid> (1,2): error CS0023: The `-' operator cannot be applied to operand of type `null'
<Thomas> ^
<xShadowx> eh no fair usin bot
<xShadowx> now i gotta figure out wtf he was doin
* xShadowx gets lazy and removes the - and submits
<xShadowx> de do de
<xShadowx> so no way this wouldve compiled so no way he tested it
* xShadowx needs a new job
<Virindi> someone commits code with a compile error, isn't that an automatic nerdcommunity demerit
<Virindi> bet the rest of the code doesn't work at all
* Thomas always commits code with errors to bully his jenkins
<Virindi> how long/complex is the project build, is it like, spend an hour getting a build by running 20 custom scripts?
<Virindi> or is it "hit the build button"
<Virindi> @xshadowx :)
SigmaTrain is now known as Sigma88
riocrokite has quit [Quit: http://www.mibbit.com ajax IRC Client]
<Technicalfool> http://forum.kerbalspaceprogram.com/index.php?/topic/160083-surrey-satellite-technolgy-limited-sstl-seeking-kerbal-engineers-modders/ hm#
<Technicalfool> I'm wondering about moving that thread to Add On Discussion. Seems like an Actual Satellite Company want to make a mod that puts their satellites in KSP.
Thomas is now known as Thomas|AWAY
<xShadowx> seems like addon disc to me
<xShadowx> or addon dev but eh
<TwistedMinds> is there a technical limitation why so many mods use png instead of dds files?
<Virindi> dds is certainly more annoying to deal with
<TwistedMinds> Ah yeah, that might be it :) I'm just so used to deal with dds files I might try to convert what I can and see if it makes a difference in this game
<xShadowx> dds is lossy isnt it?
<Sigma88> is there anyone on the forums that makes artsy stuff by request?
<xShadowx> png as source is great though
<TwistedMinds> Sigma88, nope, sorry :/ I don't know a lot of people from this community :I
Thorbane has joined #kspmodding
<Virindi> technicalfool: you a forum mod? could you lock this http://forum.kerbalspaceprogram.com/index.php?/topic/150599-122-through-the-eyes-of-a-kerbal-1st-person-eva-continued-111-apr-1-2017/
<Virindi> he said he was fine with me taking over the mod so I started a new thread
<TwistedMinds> Virindi, might be worth linking the new thread as the last post, eh? ;)
<Virindi> sure
<Virindi> ughhh
<Virindi> he broke it
<Virindi> I imported his changes and they are broken
<Virindi> how do I even roll back a commit in github jeez
<TwistedMinds> click the revert button, or "git revert <commit_#>", IIRC
<Virindi> jeez now I have to fix this real quick
<Virindi> I got some weird exception right after I posted the thread
<Virindi> That's better
<Virindi> murphy says that you will find the bug in your code right after posting the new version while you are taking screenshots for the forum thread
regex has quit [Remote host closed the connection]
stratochief|remote is now known as stratochief
<Technicalfool> Virindi, just spotted youur message. Old thread closed, I've linked your new thread in the OP too.
<Virindi> thanks