Is there a way to write custom code for a mod?

Post Reply
User avatar
Space_Lettuce_OG
Posts: 4
Joined: Mon Apr 02, 2018 1:13 am

Mon Apr 02, 2018 1:33 am

Hi, first time poster on the forum!

I was wondering if there is a way to write custom code for a mod?
There are a lot of things I would want to do outside of the limitations of the FCS, but I'll keep it simple at first and just ask if there is a way to write custom code for a building functionality's (under the "function" tab/section there is a variable also called "function") "function"?

I was going to write one for a corpse incinerator for unconscious characters. I want to write code for the job for it that avoids incinerating player owned characters, allies, or neutral characters that are unconscious. However, if you manually do it, it will allow it, but with a pop-up(using the pop-up class that I'm sure exists in the dll already) asking if you are sure.

However, there is a lot of cool stuff I'd love to do, but I'd need to be able to write code for it.


An idea, that may be easier to develop for a small indie team is, instead of trying to develop a separate mod toolkit for custom code, we can keep the FCS, but for certain things, you have a "code elevator"(it doesn't need to be perfect) that verifies the code at least does not have glaring errors/bugs, and an ability to add a custom made function(or whatever) to the list of functions(or list of whatever).

Also, adding the ability to have global bool true false variables, would add a lot of capability for certain things, like quests or dialogue unlocks etc. and allow the functionality of locking/unlocking variable in a lot of areas, since you can never predict how creative people get with mods. I think it adds a lot of value for the amount of functionality compared to the amount of work involved in making a simple global bool variable. Just a side note I thought I'd add.


I've loved Kenshi since I first saw it on IndieGoGo(and I swear I remember supporting it, but I can't seem to log in to my IndieGoGO account.. weird), and I'd love to make mods for it that expand it a lot! I think modders can add a lot of value to this game, and help it be successful, more fun, and show our support for an indie studio making a unique and awesome game!

If any devs are reading this... I love the game, and keep up the good work. :D

P.S. You've been getting some good publicity on twitch lately. GJ! Makes me happy!

User avatar
Hatsune_Neko
Moderator
Posts: 4086
Joined: Sun Apr 21, 2013 9:59 am
Location: Columbus, OH

Mon Apr 02, 2018 3:24 pm

Not currently.
Do you believe the sexes should be equal?
Oh heavens no.
Then Men would become unmanageable

Current computer specs.
AMD FX-8150 - Eight Core, 3.60GHz
NVidia GTX 1050TI
24GB Corsair Vengeance DDR3 1600 MHz Ram
WD 1tb HD, 870 EVO 1TB SSD

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Bing [Bot] and 3 guests