Recipe using electricity

Started by Rina, April 11, 2015, 06:37:14 PM

Previous topic - Next topic

Rina

I was wondering if its possible to use electricity as a ingredient in a recipe in other words free production??

mrofa

Kinda yes it is possible, but you would need to code it.
All i do is clutter all around.

Rina


mrofa

All i do is clutter all around.

Rina

Don't suppose you'd know how to start and where?

mrofa

Some c# guides would be usefull
And this will help with rimworld specifics
All i do is clutter all around.

soltysek

Rina yes its only posible in dll and achive this will be kinde tricky , first you need to code new jobdriver  and jobgiver then you need to hook to bill event and make conditional pawer consumtion on recip active each recip need to be hard coded , good sample of it is Minnig & Co deep drill its but thej do not need pawn on work so you need to recode it preety alot only way to learn how it is can be dane , is to decompile whole game and start studing  class by class when you catch whot i what you are ready to go . (small problem pawns and job/bill are protected class decompile like mess but with some practic still readable ) .

One word : Good luck alot of patience and time im overiding reserch system for last 12h of coding and i'm still in big s**t.

Rina

Well i have no knowledge of C# or how to even start so it looks like i will make a simplified version of my mod :'(, but thanks for the help  :P

mrofa

Cant tell you much about C# but the rimworld code isnt that hard to learn. Few months ago i was in the same situation as you, no coding experiance and no knowlege of C#. Now i have coding expariance and no knowledge of C#, but im able to code in the game classes :D
All i do is clutter all around.

soltysek

yes thats true reading other code will learn you coding and lang much faster then any tutorial and you will precise practic while traying put mod code together