Page 1 of 1

Modding Scenario Objectives - Type of Cure

Posted: Sun Sep 04, 2016 6:27 am
by tometherton
I was just wondering whether it is possible to specify the type of cure created? So, for example, could you have a scenario where you have to do 300 Eases Migraine but which were specifically a pill? Or 150 Cures Tuberculosis that were specifically a syringe? I was having a look through the information on modding and couldn't see anything other than about changing quantities/cure ratings etc.

Second question is whether it is possible to extend the current cure trees? I tried adding a level 3 cure to the Liver tree but couldn't get it to recognise it and kept throwing an error on "effects.data". If it is possible I'll keep working on it, just curious.

Finally, thanks for a great game! We've almost finished all of the scenarios in the main part of the game and really enjoyed it, looking forward to more DLC or your next game, whichever comes first :)

Re: Modding Scenario Objectives - Type of Cure

Posted: Tue Sep 06, 2016 2:20 pm
by TwiceCircled
Hi Tom, thank you very much for the post, I'm so glad you enjoy the game!

Regarding your questions about modding:

1. Is it possible to specify the type of cure created? - Unfortunately not, that actually never crossed my mind, but would have been a good inclusion if I thought of it.

2. Is it possible to extend the current cure trees? - Yes, it absolutely should be possible. The effect modding can be a bit finicky but if you post your effects.data here I should be able to point out the issue. :)

Regarding what comes next, it will probably be a brand new game which I'm currently working hard on. It's in a similar genre, so hopefully you'll like it :) .

I'm hoping to announce it early next year. Feel free to subscribe to my development newsletter here http://www.twicecircled.com/2c/twice-ci ... er-signup/, if you're interested (but no pressure!).

Re: Modding Scenario Objectives - Type of Cure

Posted: Wed Sep 07, 2016 1:05 pm
by tometherton
Hey, thanks for your reply that's awesome. I will post my effects.data file for adding a level of cure a little later on as I don't have it available right now. I look forward to hearing about the new game you're working on - if it's like Big Pharma then I'm sure I'll be a fan.

Re: Modding Scenario Objectives - Type of Cure

Posted: Thu Sep 08, 2016 3:34 pm
by tometherton
Hi again,

I couldn't attach a .data file to the post so I've just included the Liver tree below - I haven't changed anything else in the effects.data file anyway. Probably something very obvious which I'm missing but an extra pair of eyes is always useful, particularly when it's the guy who made the game!

// LIVER
{
"id":"gout",
"family":"liver",
"level":0,
"sensitivity":1350,"baseValue":107,"boundary":[5,9],
"helpRate":80,
"reaction":{"upgrade":{"combine":"catalyst1","machine":"dissolver","product":"liverdisease","conc":[6,8]}}
},
{
"id":"liverdisease",
"family":"liver",
"level":1,
"sensitivity":900,"baseValue":377,"boundary":[16,19],
"cureRate":30,
"contractionRate":{"formula":[0.8]}
"reaction":{"upgrade":{"combine":"catalyst2","machine":"evaporator","product":"healsliver","conc":[3,7]}}
},
{
"id":"healsliver",
"family":"liver",
"level":2,
"sensitivity":1500,"baseValue":843,"boundary":[8,15],
"cureRate":15,
"contractionRate":{"formula":[0.8]}
},


Thanks for your help.

Re: Modding Scenario Objectives - Type of Cure

Posted: Sat Sep 10, 2016 2:13 pm
by TwiceCircled
I can spot one error, there is a missing comma after the "contractionRate" line for the liverdisease cure.

So:

// LIVER
{
"id":"gout",
"family":"liver",
"level":0,
"sensitivity":1350,"baseValue":107,"boundary":[5,9],
"helpRate":80,
"reaction":{"upgrade":{"combine":"catalyst1","machine":"dissolver","product":"liverdisease","conc":[6,8]}}
},
{
"id":"liverdisease",
"family":"liver",
"level":1,
"sensitivity":900,"baseValue":377,"boundary":[16,19],
"cureRate":30,
"contractionRate":{"formula":[0.8]},
"reaction":{"upgrade":{"combine":"catalyst2","machine":"evaporator","product":"healsliver","conc":[3,7]}}
},
{
"id":"healsliver",
"family":"liver",
"level":2,
"sensitivity":1500,"baseValue":843,"boundary":[8,15],
"cureRate":15,
"contractionRate":{"formula":[0.8]}
},


Other than that it looks good. A good tool to use is http://jsonlint.com/ which will help spot little typos like this. Only issue is that you have to strip all the comments out first, which is a bit of a pain!

(Comments are any lines starting with //)

Hopefully that will work for you now. :)

Re: Modding Scenario Objectives - Type of Cure

Posted: Sat Sep 10, 2016 4:57 pm
by tometherton
Thank you! That's great, this was the problem running it through a validator but your eagle eyes have helped.

Re: Modding Scenario Objectives - Type of Cure

Posted: Tue Sep 05, 2017 4:01 am
by lukecage
Try this tool: json formatter