[A17][WIP] CTS - looking help with error [kinda solved]

Started by sulusdacor, June 09, 2017, 03:37:38 AM

Previous topic - Next topic

sulusdacor

ran into a bit of a problem with updating this to a17.

so far i was able to update the code from a16 to a17 and mostly all works fine except the takeblood recipe. the job does not even get started other then making the patient unconciess. after that i get an error (see attachment, rest of mod files at the end as dropbox download)

from the error i assume this requires a custom jobdriver with a17 for the takeblood recipe. not sure on that since i haven't really done anything with custom jobdrivers yet.
i would be happy if someone could explain me the error and why this is not working. since i'm a bit clueless on that. my assumption is that the game wants a jobdriver, since there are no surgery recipes with no ingredients and a product and it runs into a bit of a problem there, since i use the surgery recipe preset.

so can anyone either help me with the error?

either by explaining it to me so i can fix it myself or if that requires some major programming fixing it for me. not sure how complicated it is, depends really on the scope of the problem and i really only have very limited coding experience. i would prefer the first option tho ;)

thx for reading.

current progress:
mod:https: www.dropbox.com/s/8fgl1r9z2x676gc/CTS_a17_wip.7z?dl=0
source code:https: www.dropbox.com/s/eyamuceyn4b5t9x/CTS_a17_wip_source.7z?dl=0

PS: i was a bit unsure if this goes into wip or help subforum. so if i posted this in the wrong place,please be so kind to move it someone ;)

[attachment deleted by admin due to age]

sulusdacor

for anyone wondering aded 1 medicine as ingredient requirement and it fixed the issue completly. not 100% the thing i wanted, but made it maybe a bit balanced.

out of couriosity if any reading the above and has a solution would be still interested in how one would do that.