[MOD] (Alpha 3F) Muffalo Breeding v.1.0.2

Started by bleedo, April 27, 2014, 07:16:34 PM

Previous topic - Next topic

bleedo

Description

Muffalos breed when animal numbers are getting low.
I felt it would be more natural than random new herds.

Female muffalos will mate with the male ones and get pregnant as soon as animal numbers get lower than limit.

Release notes

1.0.2.42560

  • Newborns are babies for a day
  • Now accounts for max herd size
  • Timing and movement adjusted

1.0.1.32708

  • Now accounts for EcosystemFull value
  • Females finds closest male and both move together
  • Females might not have enough lust

1.0.0.0

  • Prototype

State

Stableish.
On hold until A4.

Future

  • Animal Husbandry like some of @Vas' ideas.
  • Might just make every animal type able to breed, but it's a start.

    • Needs better support for thing/pawnkind inheritance in the core to be feasible
  • Might even make colonists breed. :)


PS. Sorry, can't post much more on the forum. My current status is "Muffalo", and that's too appropriate to mess it up.
- Oh snap! I'm a drifter... :(

[attachment deleted by admin: too old]

a89a89


Vas

Yea, I'll assign myself as the male, and assign 5 female colonists to my breeding rooms.  Perfect way to re-populate the planet!
Click to see my steam. I'm a lazy modder who takes long breaks and everyone seems to hate.

harpo99999

PLEASE turn DOWN the breeding frequency or even put it into the xml.
I just started a test game with ONLY muffalo breeding and core, and at the start of the game there was two small herds of about 6, and at the end of day 2  of the 300 size map  MUFFALO had started to swarm!!!![/img][/img]

[attachment deleted by admin: too old]

Tamedsquall

Maybe it's because I used it with the Alpha Muffalo mod but man but day 2 of a fresh colony I had like 100+ muffalo's on my map. I love the idea of this mod and continue the work! But it needs some tweaking! :P

Tynan

Amazing work - I think this might be the first mod that does actual new AI coding! Great job figuring it out despite the total lack of documentation.

Quick notes -

-You probably want to use the yield keyword for MakeNewToils.
-If the job report is constant, you can set it in the JobDef ("Giving birth")
-The proper way to use TryGiveTerminalJob(Pawn pawn) is to return the job that the pawn can begin. No need to make them start it (unless there is a bug on my end).
Tynan Sylvester - @TynanSylvester - Tynan's Blog

lLeo

with this it is possible to make a muffalo farm :>

StormProxy


Delta_Com

I can only imagine what happens on one of these worlds during a psychic wave...

harpo99999

just imagine a world with over 5000 muffalo in a psychic wave that directs ALL of the muffalo at you.
my guess would be  a slideshow of a frame an hour for about a game day and the only defence that would have ANY chance of success would be to wall up, BUT you would STILL have the slideshow effect.

Celthric Aysen

Quote from: harpo99999 on April 27, 2014, 11:26:35 PM
just imagine a world with over 5000 muffalo in a psychic wave that directs ALL of the muffalo at you.
my guess would be  a slideshow of a frame an hour for about a game day and the only defence that would have ANY chance of success would be to wall up, BUT you would STILL have the slideshow effect.
HELL NAW!
My DeviantART|E-Vehicles|Flebe's  Channel
"♫"Every people that i see i will never understand"♪"

Tyrkir

Awesome idea, so sad when all the Muffalo are gone :(

Oh give me a home where the Muffalo roam,
where the squirrel and the Boomrats play.

Tyrkir

#12
Gah Muffalo Plague...
They have eaten all the grass, our crops and have started eating each other!
We cant cull them fast enough!
Oh no one just ate Jerry!
What's that sound?
Oh Gods... Stampeed!
... kssssssssst
- Last transmission from 'Jamestown'

Celthric Aysen

Quote from: Tyrkir on April 28, 2014, 12:32:50 AM
Gah Muffalo Plague...
They have eaten all the grass, our crops and have started eating each other!
We cant cull them fast enough!
Oh no one just ate Jerry!
What's that sound?
Oh Gods... Stampeed!
... kssssssssst
- Last transmission from 'Jamestown'
Wheres the like button? I NEED A LIKE BUTTON!
My DeviantART|E-Vehicles|Flebe's  Channel
"♫"Every people that i see i will never understand"♪"

bleedo

Thanks for all the feedback guys, and thanks for the pointers Ty. :)
I might have uploaded the debug build that ignores the EcosystemFull value, will make another build tonight.

@Ty: I can probably start birth using TryGiveTerminalJob, but I presumed I had to StopAll and Start on TargetA when forcing it to start the breeding job too?
It wasn't too difficult to figure out (2-3 hours) using Resharper's disassembly, but it would be a lot easier with a debug build. (hint, hint :) )
I can't debug using VS either, there's apparently no managed code running in the process?
And all the JobDrivers have HideDebugger or what's it's name, so they couldn't be disassembled propery.