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
regex has quit [Remote host closed the connection]
NathanKell is now known as NathanKell|HERE
NathanKell|HERE is now known as NathanKell
egg|df|egg is now known as egg|zzz|eg
Pap|SemiAFK is now known as Pap
egg|zzz|eg is now known as egg|zzz|egg
Ezriilc has quit [Quit: Going offline, see ya! (www.Kerbaltek.com)]
NathanKell is now known as NathanKell|Twitch
ferram4 has quit [Read error: Connection reset by peer]
ferram4 has joined #kspmodding
stratochief is now known as stratosleep
NathanKell|Twitch is now known as NathanKell|AFK
blowfish has joined #kspmodding
Pap is now known as Pap|Sleep
Technicalfool_ has joined #kspmodding
Technicalfool has quit [Ping timeout: 201 seconds]
Pap|Sleep has quit [Remote host closed the connection]
NathanKell|AFK is now known as NathanKell
NathanKell is now known as NathanKell|Twitch
NathanKell|Twitch is now known as NathanKell
NathanKell is now known as NathanKell|AWAY
blowfish has quit [Quit: Leaving]
TriggerAu has quit [Ping timeout: 204 seconds]
egg|zzz|egg is now known as egg|afk|egg
TriggerAu has joined #kspmodding
xEvilReeperx has quit [Quit: Web client closed]
Daz has quit [Read error: Connection reset by peer]
Starwaster has quit [Ping timeout: 204 seconds]
ferram4 has quit [Read error: Connection reset by peer]
ferram4 has joined #kspmodding
riocrokite has joined #kspmodding
Daz has joined #kspmodding
Pap has joined #kspmodding
Starwaster has joined #kspmodding
riocrokite has quit [Quit: http://www.mibbit.com ajax IRC Client]
riocrokite has joined #kspmodding
__gk__1wm_su_ has joined #kspmodding
__gk__1wm_su_ has left #kspmodding [#kspmodding]
Technicalfool_ has quit [Read error: -0x1: UNKNOWN ERROR CODE (0001)]
riocrokite has quit [Quit: http://www.mibbit.com ajax IRC Client]
Ezriilc has joined #kspmodding
smoke_fumus has joined #kspmodding
Thomas|AWAY is now known as Thomas
egg|afk|egg is now known as egg
blowfish has joined #kspmodding
Thomas is now known as Thomas|AWAY
Pap is now known as Pap|AFK
NathanKell|AWAY is now known as NathanKell
ferram4 has quit [Read error: Connection reset by peer]
ferram4 has joined #kspmodding
blowfish has quit [Quit: Leaving]
<Sigma88> I have a question
<Sigma88> let's say I need a bunch of similar classes
<Sigma88> I can put all the code in one, and use it as a base for the others
<Sigma88> wait, let me ask another thing first
<Sigma88> so, let's say I have a non-static class with a static list inside
<Sigma88> if I create different instances of the class I still get only 1 static list right?
<Sigma88> it doesn't get duplicated
Ezriilc has quit [Quit: Going offline, see ya! (www.Kerbaltek.com)]
NathanKell is now known as NathanKell|Twitch
<pizzaoverhead> Sigma88: There's only one instance of the list. You can't access it as myClassInstance3.MyList, it'll be MyClass.MyList
<Sigma88> that's fine
<Sigma88> which brings me to my next question
<Sigma88> I have a Base class and two more classes derived from the first
<Sigma88> FirstClass
<Sigma88> SecondClass : FirstClass
<Sigma88> like that
<Sigma88> can I get a static list for each of those classes?
<Sigma88> possibly a List<> of the class itself?
<Sigma88> I just define 3 different lists I suppose
<pizzaoverhead> This sounds like one of those situations where it's better to ask what you're trying to achieve, rather than how to do one of the possible ways of doing it
<pizzaoverhead> Derived classes are the base class plus extras, so MyClass.MyList and MyDerivedClass.MyList are the same list.
<Sigma88> yeah, basically I'm working on making TR a bit more modular
<Sigma88> I made a class for Suits
<Sigma88> this class includes most notably some properties and an array of Texture2D
<Sigma88> I need the same basic structure for other objects that are part of the suit
<Sigma88> like helmet and jetpack
<Sigma88> so, my idea is to have a database of all Suits, one of all Helmets, and one of all Jetpacks
<Sigma88> Helmet and Jetpack are derived from Suit
<pizzaoverhead> You could have an EvaEquipment class, with Suit, Helmet and Jetpack derived from that instead.
<pizzaoverhead> A derived class should be a kind of the base class. For example, it wouldn't make sense to have a "public int NumberOfArms" field for your Helmet
<Sigma88> yes, but if I can manage to put everything in the class itself, I can then have a Populate() method
<Sigma88> that loads the DB from cfg
<Sigma88> automatically
<Sigma88> yeah all stuff included in the base class is needed for helmets and jetpacks as well
<Sigma88> there's no specific stuff
<Sigma88> I could just have one single class and 3 lists
<Sigma88> but I liked the idea of having different classes because it's easier to understand, I think
<pizzaoverhead> Being able to understand it in 6 months time is very valuable :)
<Sigma88> ?
<Sigma88> why?
<Sigma88> what is happening 6 months from now?
<pizzaoverhead> Just a random amount of time.
<Sigma88> lol
<Sigma88> this might be my ignorance talking, but I really don't like how TR is written
<Sigma88> btw, this is what I am doing now:
<Sigma88> I was just wondering if there was a way to avoid having to define the lists that way
<pizzaoverhead> You've got to balance readability, maintainability etc. (tech debt) with actually getting the project finished before the heat death of the universe. It is a constant struggle :)
<Sigma88> it's not even my project :D
<Sigma88> I just enjoy writing code
<Sigma88> even if it doesn't get released I'm fine with it
<pizzaoverhead> That's a fun way to be :)
<pizzaoverhead> I gotta run, enjoy!
<Sigma88> plus I learn a lot of cool stuff
<Sigma88> 0/
pizzaoverhead is now known as pi|Zzz|aoverhead
<pi|Zzz|aoverhead> \o
<Sigma88> I still don't know if it's possible to do what I want :D
<Sigma88> if anybody else has an idea ping me
<Sigma88> otherwise I'll just keep the lists defined separately
stratosleep is now known as stratochief
<taniwha> *sigh* http://forum.kerbalspaceprogram.com/index.php?/topic/162477-13122-early-bird-011/&do=findComment&comment=3111384
<Qboid> taniwha: blowfish left a message for you in #RO [04.07.2017 20:58:41]: "do you know where this NRE was coming from? https://github.com/NathanKell/ModularFuelSystem/commit/7cc543fb838b17f23136b596d8c9b332c1edaeee"
<Sigma88> 0/
egg is now known as egg|zzz|egg
smoke_fumus has quit [Read error: Connection reset by peer]
stratochief has quit [Ping timeout: 200 seconds]
NathanKell|Twitch is now known as NathanKell