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
Sigma88 is now known as SigmaAway
NathanKell|AWAY is now known as NathanKell
SirKeplan is now known as SirKeplanzzz
Ezriilc has quit [Quit: Going offline, see ya! (www.Kerbaltek.com)]
NathanKell is now known as NathanKell|Twitch
blowfish has joined #kspmodding
xEvilReeperx has joined #kspmodding
rsparkyc|AWAY is now known as rsparkyc
NathanKell|Twitch is now known as NathanKell
NathanKell is now known as NathanKell|AFK
rsparkyc1 has joined #kspmodding
rsparkyc has quit [Ping timeout: 204 seconds]
NathanKell|AFK is now known as NathanKell
rsparkyc1 is now known as rsparkyc
rsparkyc has quit [Quit: Leaving.]
rsparkyc has joined #kspmodding
rsparkyc has quit [Client Quit]
NathanKell is now known as NathanKell|AWAY
blowfish has quit [Quit: Leaving]
APlayer has joined #kspmodding
<APlayer> ;seen ZooNamedGames
<kmath_> APlayer: zoonamedgames (~mutter@65-33-85-176.res.bhn.net) was last seen posting in #kspofficial 1 days, 6 hours and 50 minutes ago
<APlayer> Humm, not quite a modding question, but I guess related enough - I've been looking for a place, like a PDF file or something, which lists and explains formulas on orbital mechanics and/or rocketry. And I mean somewaht deeper than vis viva, orbital period and such. I need equations to calculate off periapsis/apoapsis thrust, equations for conversion between the three types of anomaly and possibly lots more things in that direction.
<APlayer> Does anyone know such a file?
<APlayer> I forgot to mention thrust in any direction, not only prograde and retrograde.
<APlayer> What I need this for is a tool I attempted to make a while ago, which would help plan spiralling extremely low thrust burns. It failed, but I feel like trying it again now.
<Sarbian> APlayer: better ask such things in #kspacademia but be ready for a barrage of math
ferram4 has quit [Ping timeout: 204 seconds]
<APlayer> Sarbian: Thanks, will do!
Olympic1 is now known as Olympic1|Away
BPlayer has joined #kspmodding
SigmaAway is now known as Sigma88
APlayer has quit [Ping timeout: 204 seconds]
BPlayer is now known as APlayer
BPlayer has joined #kspmodding
APlayer has quit [Ping timeout: 180 seconds]
BPlayer has quit [Read error: Connection reset by peer]
APlayer has joined #kspmodding
<egg|df|egg> Sarbian: hahaha
Sigma88 is now known as SigmaNomz
BPlayer has joined #kspmodding
APlayer has quit [Read error: Connection reset by peer]
BPlayer has quit [Ping timeout: 200 seconds]
KevinStarwaster has quit [Ping timeout: 200 seconds]
Technicalfool has joined #kspmodding
SigmaNomz is now known as Sigma88
xEvilReeperx has quit [Quit: Web client closed]
APlayer has joined #kspmodding
rsparkyc has joined #kspmodding
egg|df|egg is now known as egg
BPlayer has joined #kspmodding
APlayer has quit [Ping timeout: 204 seconds]
BPlayer is now known as APlayer
BPlayer has joined #kspmodding
APlayer has quit [Ping timeout: 200 seconds]
BPlayer has quit [Ping timeout: 204 seconds]
APlayer has joined #kspmodding
APlayer has quit [Ping timeout: 204 seconds]
rsparkyc has quit [Ping timeout: 204 seconds]
<Sigma88> anyone knows about science here?
<Sigma88> ksp science
rsparkyc has joined #kspmodding
rsparkyc has quit [Quit: Leaving.]
Olympic1|Away is now known as Olympic1
<Sigma88> !tell JPLRepo so, I managed to intercept the EventData<ScienceData> thing using OnExperimentDeployed, and I can change dataAmount. but as far as I understand dataAmount is the maximum amount available for that situation, the gained science remains the same, it just displays a differente % on the total when I change the total
<Qboid> Sigma88: I'll redirect this as soon as they are around.
BPlayer has joined #kspmodding
BPlayer has quit [Ping timeout: 204 seconds]
<Sigma88> !tell JPLRepo (I'd like to change the 1.5 science output instead of the dataAmount)... this is what I get changing the dataAmount: https://www.dropbox.com/s/tqwqpq4dxqo4uv3/Screenshot%202017-06-03%2016.41.19.png?dl=0
<Qboid> Sigma88: I'll redirect this as soon as they are around.
Starwaster has joined #kspmodding
<Sigma88> Sarbian: do you know anything about science generation/calculation in ksp?
<Sarbian> Sigma88: nope
<Sigma88> do you know anyone who might?
Ezriilc has joined #kspmodding
xShadowx has quit [Ping timeout: 200 seconds]
<Sigma88> ok, I think I've got what I want
<Sigma88> how do I print a message?
<Sigma88> like the orange ones that pop up on the top of the screen
xShadowx has joined #kspmodding
<Sigma88> xShadowx: do you know anything about printing messages on the ksp screen?
<Sigma88> (also, 0/ )
<xShadowx> nooope, i purposely avoided that, looked ugly to me ;p
<xShadowx> Sigma88: ScreenMessages.PostScreenMessage() ?
<xShadowx> has a couple overrides i think thats the one
<Sigma88> yes I'm using that one, but I would like to change the location
<Sigma88> where it appears
<Sigma88> do you know if it's possible?
<xShadowx> public static ScreenMessage PostScreenMessage(string message, float duration, ScreenMessageStyle style)
<xShadowx> style i think chooses loc
<Papa_Joe> I use that in SM and CLS. let me check the signature.
<xShadowx> and i notice it has RectTransform for each of those loc, so i think i just sdtumbled on NK mod req other day to make screen text bigger
<Sigma88> thanks
<Sigma88> let me try
<Sigma88> style is an enum
<Sigma88> so I would need to change the enum?
<xShadowx> pick the value in it you want
<Papa_Joe> ScreenMessages.PostScreenMessage(
<Papa_Joe> $"<color=orange>{_clsLocWarnXfer}: {crewTransferData.crewMember.name}. {crewTransferData.sourcePart.partInfo.title} {_clsLocAnd} {crewTransferData.destPart.partInfo.title} {_clsLocNotSameLs}.</color>", 10f);
<xShadowx> public enum ScreenMessageStyle
<xShadowx> UPPER_RIGHT,
<xShadowx> {
<xShadowx> UPPER_CENTER,
<xShadowx> UPPER_LEFT,
<xShadowx> LOWER_CENTER
<xShadowx> Papa_Joe: colors?;o
<Sigma88> yes I've seen that
<Sigma88> I'm ok with upper_center
<Sigma88> but I would like to move it a bit higher
<Sigma88> at it's current position the text gets hidden by a KSP window
<Sigma88> I need it something like 50 pixels higher
<Sigma88> maybe even less
<Sigma88> I don't suppose that's easy
<xShadowx> for that youd have to move the upperCenter RectTransform i think? then put back after
<Sigma88> yes I'm trying
<Sigma88> but I don't think I'm doing it right
<xShadowx> oh thats dumb
<xShadowx> theres PostScreenMessage(ScreenMessage) so you can pass in one already made
<xShadowx> bu that calls PostMessage basicly stripping the extra stuff, and just passing message/style/dur
<xShadowx> which then makes a new ScreenMessage with those values
<xShadowx> basicly scrapping the ability to customize
* xShadowx claps slowly at squad
<Sigma88> wait I think I've found a solution
<Sigma88> it's ugly
<Sigma88> but it might work
<Sigma88> (I just add a big line on the bottom)
<Sigma88> :D
<Sigma88> "Message\n<size=100>\n</size>"
<xShadowx> post message then immediately - ScreenMessages.Instance.ActiveMessages find your message, edit transform
<xShadowx> would prolly be the 'correct' bandaid
<Papa_Joe> Yes. I use the to override stock transfers and replace their messages with my own.
<Sigma88> ok
<Sigma88> trying that now
<Sigma88> since my bodge didn't work
<xShadowx> heh
<Sigma88> where do I find the transform?
<xShadowx> msg.textInstance.transform i think?
<Sigma88> I've got the active messages list
<Sigma88> I've selected my message
<Sigma88> I still can't understand how to edit the position :\
<Papa_Joe> I don't know that you can. you can delete a message from the list though.
<Papa_Joe> Since it is not actually an array, and a collection, I don't think you can insert by index
<Sigma88> there's only 1 messages at a time
<Sigma88> when I need mine to show up
<xShadowx> ScreenMessages.Instance.ActiveMessages[0].textInstance.transform.position change position?
<Sigma88> textinstance
<Sigma88> thanks
<Sigma88> I was trying to change the style
<Sigma88> :|
* xShadowx said textInstance above
<Papa_Joe> got it
SirKeplanzzz is now known as SirKeplan
<Sigma88> xShadowx: be patient :) I'm just a monkey throwing code at the pc
<Sigma88> :D
<Papa_Joe> Aren't we all... :D
<xShadowx> .......well that puts you above 99% of the human race, grats!
<Papa_Joe> WHAT? you mean there are people that don't write code??
<xShadowx> people no, i said humans
<Sigma88> it didn't change anything
<Sigma88> maybe I need some kind of Update()
<Sigma88> ?
<xShadowx> no clue :|
blowfish has joined #kspmodding
<Sigma88> -.-
<Sigma88> -.-
<Sigma88> ScreenMessages.Instance.upperCenter
<Sigma88> lol
<xShadowx> i think thats the right area, but i havent touched any of it i told you :P
<Sigma88> I can just change that one I think
<xShadowx> need to before the PostScreenMessage, and that i think moves all of em
<xShadowx> i didnt see where ksp sets it though
<Papa_Joe> help -l
<Papa_Joe> oops... lol
<xShadowx> -.-
Ezriilc has quit [Ping timeout: 200 seconds]
rsparkyc has joined #kspmodding
Ezriilc has joined #kspmodding
<Sigma88> I managed to move it the wrong way
<Sigma88> it's something :D
<xShadowx> \o/
<xShadowx> if you fiddle enough with position, NK wanted a mod for scaling screenmessages
<Sigma88> localposition
<Sigma88> and I guess local scale
<Sigma88> and maybe <size></size> tags
<Sigma88> for the text
<xShadowx> didnt think of size tag o.O
* Sigma88 mentioned size tags above
<Sigma88> :P
<xShadowx> what format of tags? so i can see what other tags :D
<Sigma88> no idea
<Sigma88> there's <size=int>
<Sigma88> <color=#AABBCC>
<Sigma88> <b>
<Sigma88> <i>
<Sigma88> those are the ones I know
<Papa_Joe> yup
<Sigma88> you can easily test them in the alt-f12 menu
<Sigma88> \0/
<Sigma88> I did it
<Sigma88> screenshot incoming
<xShadowx> \p/
<xShadowx> \o/
<Papa_Joe> o/
<Sigma88> ok, so now I've got the stop function to work, I need to fix the trigger
<Sigma88> apparently PostMessage already cleans the old messagges
<Sigma88> so you only have one anyways
<Papa_Joe> there is a float that I pass for duration of the message
<Sigma88> yes
<Sigma88> but if the next one is posted earlier the old one gets deleted
<Sigma88> or maybe it is printed on top
<Sigma88> idk
<Sigma88> I didn't see the text change
<Papa_Joe> In my testing with CLS, I could have more than one message showing at a time...
<Papa_Joe> So I actually had to remove the message from the list...
<Sigma88> hmmm
<Sigma88> maybe I am not seeing the new message
rsparkyc has quit [Quit: Leaving.]
<Sigma88> no you are right
<Sigma88> it displays 9 lines at a time
<Sigma88> so I just do activeMessages = new list<messages>()
<Sigma88> let's see
<xShadowx> why make new list?
<xShadowx> if trying to clear it, activemessages.clear() :P
<xShadowx> should never need to make new lists for stock stuff
<Sigma88> it's a get; set; thingy
<Sigma88> not sure I can do that
<Sigma88> apparently I can
<Sigma88> :D
ferram4 has joined #kspmodding
<Sigma88> well
<Sigma88> clearing the list made it even worse
<Sigma88> I think the list is just used to keep track of how many lines are displayed
Thomas|AWAY is now known as Thomas
SirKeplan is now known as SirKeplan|AFK
<Starwaster> Has anyone started using ParticleSystem instead of ParticleEmitter? (recently declared obsolete...)
<Starwaster> Has anyone started using ParticleSystem instead of ParticleEmitter? (recently declared obsolete...)
<Starwaster> oops sorry
<Papa_Joe> We will be loooking into that soon for BDA, but not yet
blowfish has quit [Quit: Leaving]
APlayer has joined #kspmodding
NathanKell|AWAY is now known as NathanKell
rsparkyc has joined #kspmodding
SirKeplan|AFK is now known as SirKeplan
Ezriilc_ has joined #kspmodding
rsparkyc has quit [Quit: Leaving.]
Ezriilc has quit [Ping timeout: 204 seconds]
Ezriilc_ is now known as Ezriilc
NathanKell is now known as NathanKell|Twitch
APlayer has quit [Ping timeout: 204 seconds]
APlayer has joined #kspmodding
APlayer has quit [Ping timeout: 204 seconds]
BasharMilesTeg has joined #kspmodding
BasharMilesTeg_ has quit [Ping timeout: 201 seconds]
Ezriilc has quit [Quit: Going offline, see ya! (www.Kerbaltek.com)]
NathanKell|Twitch is now known as NathanKell|AFK