Ludeon Forums

RimWorld => General Discussion => Topic started by: FrodoOf9Fingers on April 02, 2018, 07:10:28 PM

Title: Tynan, if you love your modders....
Post by: FrodoOf9Fingers on April 02, 2018, 07:10:28 PM
Keep putting stuff like this in your code:

if (array.Length <= num15 + 1 || num15 < 0)
{
      Log.Message("you wut");
}

EDIT: I guess I should clarify, personality in code = good. :)
Title: Re: Tynan, if you love your modders....
Post by: XeoNovaDan on April 03, 2018, 12:09:47 PM
Which class is that in? :P
Title: Re: Tynan, if you love your modders....
Post by: FrodoOf9Fingers on April 03, 2018, 06:26:28 PM
I forgot... but man, if you look you will find so much :)
Title: Re: Tynan, if you love your modders....
Post by: Jaxxa on April 03, 2018, 06:49:22 PM
Its in GenStep_Terrain.GenerateRiverLookupTexture()
Title: Re: Tynan, if you love your modders....
Post by: Tynan on April 04, 2018, 03:07:48 AM
Lol, you can thank ZorbaTHut for that.

I basically never write such "personality" into my code. In fact if I saw that I might have asked Zorba to change it to a meaningful error message...
Title: Re: Tynan, if you love your modders....
Post by: ZorbaTHut on April 04, 2018, 05:12:53 AM
Whoops, that was debug code that accidentally got included - I was trying to track down a bug, and once I fixed the bug, I guess I forgot to remove the code. My mistake! :D