RimWorld source code

Started by Tynan, April 30, 2014, 05:06:33 PM

Previous topic - Next topic

mrnic3

Is this code from an unreleased version?

                                   IntVec3 root,
                                            Thing searcher,
                                            RegionTraverseParameters traverseParams,
                                            Predicate<Thing> validator,
                                            float maxDistance,
                                            float minDistance,
                                            bool needsLOStoDynamic,
                                            bool needsLOStoStatic,
                                            bool shootBurning = true


In Alpha4f BestShootTarget is missing minDistance.

Regards,
Mr Nice

Tynan

mrnic3 - Yes, I'm sorry, it is. You may want to disregard the code I posted. It is for Alpha5 dev version.
Tynan Sylvester - @TynanSylvester - Tynan's Blog

Jerethi50

would it be possible to get the drop pod related source files ? I'm trying to make meteors for my mod that drop similar to the droppods and I'm having problems left and right, looking at the existing code would likely help me immensely.

Tynan

Quote from: Jerethi50 on July 23, 2014, 02:16:14 PM
would it be possible to get the drop pod related source files ? I'm trying to make meteors for my mod that drop similar to the droppods and I'm having problems left and right, looking at the existing code would likely help me immensely.

Sure http://puu.sh/anYyo/58547fbee1.zip
Tynan Sylvester - @TynanSylvester - Tynan's Blog

Jerethi50

having a problem with a line,
      ticksToImpact = Rand.RangeInclusive(MinTicksToImpact,MaxTicksToImpact);
from the droppodincoming file you sent me. says

Error   3   The name 'Rand' does not exist in the current context

Tynan

The code I sent is for A6, it won't work with A5. Replace the call with with UnityEngine.Random.Range
Tynan Sylvester - @TynanSylvester - Tynan's Blog

Jerethi50

Is there any way to Draw glowing light alongside the moving mesh in DropPodIncoming ?

mipen

Hi Tynan, I was wondering if we could get some of the source code for the workgivers and jobdrivers? I can't make head or tail of how it is done D:
Thanks,
mipen

Tynan

There is some included in the game.
Tynan Sylvester - @TynanSylvester - Tynan's Blog

Rahjital

Yeah, the yield keywords completely throw the decompilers off and make them write some nonsense instead of actual code. I tried to take a look at how the kidnapping job worked and got nothing, and it's quite hard to find out how to do such things purely from looking at the hauling jobs. :)

Tynan

No, I mean the source code is included. There are some jobdrivers and workgivers, I believe.
Tynan Sylvester - @TynanSylvester - Tynan's Blog

mipen

Quote from: Tynan on July 31, 2014, 06:06:02 PM
No, I mean the source code is included. There are some jobdrivers and workgivers, I believe.
Oh, I completely missed those! Haha, thanks =]

mipen

Hi Tynan, I hate to bother you again, but would it be possible to get the source code for the hopper? Thanks

Tynan

I don't think it has any source code, it's just a dumb building.
Tynan Sylvester - @TynanSylvester - Tynan's Blog

StorymasterQ

"Work, you dumb building!"

No, Tynan, the politically-correct way to say it is 'code-less'.
I like how this game can result in quotes that would be quite unnerving when said in public, out of context. - Myself

The dubious quotes list is now public. See it here