Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Dingo

#376
So, just to clarify for any aspiring modders who might run into this thread in the year 3016:

The reason the rottable comp doesn't work outside of the tickerType=Rare scenario is probably due to this code (and correct me if I'm wrong here, guys) in CompRottable within the C# assembly -

public override void CompTickRare()
{
float rotProgress = this.RotProgress;
float num = 1f;
float temperatureForCell = GenTemperature.GetTemperatureForCell(this.parent.PositionHeld);
num *= GenTemperature.RotRateAtTemperature(temperatureForCell);
this.RotProgress += Mathf.Round(num * 250f);
if (this.Stage == RotStage.Rotting && this.PropsRot.rotDestroys)
{
if (Find.SlotGroupManager.SlotGroupAt(this.parent.Position) != null)
{
Messages.Message("MessageRottedAwayInStorage".Translate(new object[]
{
this.parent.Label
}).CapitalizeFirst(), MessageSound.Silent);
LessonAutoActivator.TeachOpportunity(ConceptDefOf.SpoilageAndFreezers, OpportunityType.GoodToKnow);
}
this.parent.Destroy(DestroyMode.Vanish);
return;
}
bool flag = Mathf.FloorToInt(rotProgress / 60000f) != Mathf.FloorToInt(this.RotProgress / 60000f);
if (flag)
{
if (this.Stage == RotStage.Rotting && this.PropsRot.rotDamagePerDay > 0f)
{
this.parent.TakeDamage(new DamageInfo(DamageDefOf.Rotting, GenMath.RoundRandom(this.PropsRot.rotDamagePerDay), null, null, null));
}
else if (this.Stage == RotStage.Dessicated && this.PropsRot.dessicatedDamagePerDay > 0f && this.ShouldTakeDessicateDamage())
{
this.parent.TakeDamage(new DamageInfo(DamageDefOf.Rotting, GenMath.RoundRandom(this.PropsRot.dessicatedDamagePerDay), null, null, null));
}
}
}


I have to assume this is done to save system resources, since the Rare ticker doesn't apply to every tick.
#377
General Discussion / Re: When can we expect A16?
October 04, 2016, 12:33:41 PM
Oh comet, Devil's kith and kin...
#378
Quote from: Dingo on October 03, 2016, 07:38:47 AMCurrent behaviour: Coffee will never rot. It is constantly in a state of "spoils in X hours/days".

Quote from: skullywag on October 04, 2016, 11:11:35 AM
Yes im right:

RawCoffeeBeans has a parent of PlantFoodRawBase which has a parent of OrganicProductBase which has <tickerType>Rare</tickerType> in it.

Who said anything about coffee BEANS? ;)
#379
You're old, skully. Too old for this town. Also please do expand :(
#380
Quote from: Haplo on October 04, 2016, 06:05:26 AM
Did you add the <Ticker>Rare</Ticker> to your XML? I'm rather sure that Comp_Rottable needs this ticker to work..
Compare it with another item from Core, as I can't look into it right now to give the exact name of it.. ( Not home yet :) )

I did not have tickerType rare, thanks! Can you expand on what this does? I see it can be Never, Normal, Rare or Long.
#381
It's definitely the same thing Plasmatic said. I just tested.
#382
Help / Re: [WIP] XML Documentation Database
October 03, 2016, 08:49:22 PM
I think I got all of the easy defs so the project will probably slow down. Would appreciate help from some experienced modders in correcting what I already have in the fork.
#383
That does the exact same thing Plasmatic said. Right?
#384
General Discussion / Re: When can we expect A16?
October 03, 2016, 08:28:24 PM
You can still focus on stepping back and fleshing things out even in alpha, it doesn't prevent you from staying in alpha state and adding more content in the next alpha. I think the game is in a point where that would be advised, or at least having a 50-50 split of fixes/adjustments and new content.
#385
Do these maths even check out? The part about 5/8ths and 1/8th doesn't seem correct but I might just be tired.

What this formula does in words is:
* Average 4 factors (wealth, beauty, space, cleanliness divided by different values) = X
* The lowest factor of those 4 = Y
* Average X and Y
*Multiply that average by 100 = impressiveness score

If you take out cleanliness from Y it only impacts impressiveness if the cleanliness factor was the lowest.
#386
Outdated / Re: [A15] Less Rebuff - Updated 10-2016
October 03, 2016, 06:49:58 PM
Quote from: OverlordZeni on July 22, 2016, 10:36:21 PM
This is such a good idea, thank you!  A workshop release would be great, if you have the game on steam.

Quote from: kaptain_kavern on August 31, 2016, 05:48:49 PM...if a serious and reliable person is willing to upload them on the Steam Workshop I have no ?ego? problems with that as long as:

  • it is plainly written and clearly understandable that "the mod author will never look at steam comments or threads - so please use Github or Ludeon's forum thread for suggestions/issues" (or something similar)
  • it is also clear in your head that I can't help you directly with Steam WS features as I haven't Rimworld on Steam

OK, here you go.
#387
General Discussion / Re: When can we expect A16?
October 03, 2016, 04:23:28 PM
Personally I would love an overall fixes patch rather than more content. There are many things that aren't fleshed out, UI improvements that can be done (some are done by mods already), a lot of moddability issues that can be fixed by adding XML tags.. And of course some major bug fixes like the one delaying CCL.
#388
Help / Re: Object redeclaration
October 03, 2016, 02:40:44 PM
You're describing what CCL already does. And this is probably the worst example because it has about 20 variables, relates to a complex thingdef/recipedef and includes mods that aren't structured perfectly like EPOE/RMS.
#389
Outdated / Re: [A15] Better Pathfinding
October 03, 2016, 10:01:39 AM
You drop the folder into RimWorld/Mods just like any other mod.
#390
Help / Re: Object redeclaration
October 03, 2016, 09:47:02 AM
I don't think this is as big of an issue as you present. EPOE just does things really badly when it comes to inheritance and it used a bad workaround up to 1.82. Check my unofficial 1.83 in the EPOE thread to see what I'm talking about. You should also read up on abstract bases and inheritance in XML.