Mods / XDiseases
Author: Xandu
Side: Both
Created: Apr 15th at 3:01 PM
Last modified: Apr 15th at 7:04 PM
Downloads: 450
Follow Unfollow 26
Latest file for v1.19.0:
xdiseases_v0.0.2.zip
1-click install
This mod adds a few diseases to the game. The mod shouldn't be taken too serious at the moment since it is rather a tech demo/draft/tutorial than an actual mod. Technically you can already use it but it adds only a few diseases and it will make the game harder. It requires XLib to run.
The diseases usually effect the player in a negative way by changing player stats or damaging the player directly. You can get effects from different sources such as: taking damage, enemies, food or just cold weather. Some diseases can be cured more quickly by consuming certain items.
At the moment the mod adds the following effects:
Cold
Diarrhea
Food poisoning
Fractures
Infection
Rabies
Reborn
Scurvy
Primarily the mod is a showcase for the effect system which I build for my other mod. I expanded it a lot over time and added a lot of features I haven't really used until now. The system makes it possible to define effects and effect triggers, which can be used to trigger effects in different ways, using pure JSON files. If people are interested in more details I may write a more detailed tutorial about how it works. Until then you can take a look at the JSON files of this mod to figure out how it works. You can also look at the "assets/xeffects/effects" folder in xlib since it defines some of the base effects used by this mod. You can also take this mod and built your own mod from it.
Version | For Game version | Downloads | Release date | Changelog | Download | 1-click mod install* |
---|---|---|---|---|---|---|
v0.0.2 | 362 | Apr 15th at 7:04 PM | Show | xdiseases_v0.0.2.zip | Install now | |
v0.0.1 | 88 | Apr 15th at 4:07 PM | Show | xdiseases_v0.0.1.zip | Install now |
@Xandu ah then it is my longer days mod. I have my days extended so it must think im up for more than 24 hours.
Kolljak You can also get a cold if you don't sleep because being awake for more than 24 hours is bed for your health. This is subject to change with the next update.
had to remove because i was gaining cold for no reason. fully clothed in summer. only other mod is "American Units" mod as i need F to read temp not sure if the conversion is confusing the mod into thinkin i am 0 C
Rivernoodl The easiest thing you can do with diseases is adding some stat modifiers for things like max health. You can also add hots or dots or shaders. Most more complicated stuff is more difficult to implement. Because it would need the implementation of a new effect type. You have some interesting ideas but at the moment I am focussing on creating on cures and balancing.
Rivernoodl
Dropping your hand slot items would be easy to implement but really annoying. I don't know what Move like Kaji does but adding animations is quite easy but it is hard to don't make it look weird. I don't want to mess around with eat timing. It is a hard coded value and changing it would require some interference with the coding which could cause a lot of issues. Especially with other mods.
Stages are already a thing for diseases. Every diseases has an intensity between 0.0 and 1.0. And every disease has one ore more symptoms that are triggered when the diseases reached a threshold intensity. Like rabies, which is fatal if left untreated.
Xandu Considering Tetanus causes serious muscle spasms I think one unique effect would be forcing the player to be unable to use their tool / drop their currently selected item randomly while infected. If Move like Kaji is installed I could imagine making the player go prone like they had a sizure. Or, make it so the player is unable to eat quickly (because it commonly causes lockjaw.)
I think a cool effect for a respritory disease (and this could be for diseases in general) that it advances in stages if left untreated, and can eventually cause a lethal condition if untreated for a very long time (like causing the player to start passively loose oxygen, which would be an interesting effect of pnemonia.)
Rivernoodl I've also thought about tetanus and some others, but I can't think of any good ideas for effects. If all diseases have the same effects, it's pretty boring. I was working on a blindness effect that modifies your view for a blindness diseases. I wrote it quit flexible. So it is easy to add other shaders to effects. I was also playing around with the wildcraft herbs and the ACA mixing bowl to create a fun and immersive way to create different kinds of medicine.
Thanks for the speedy reply Xandu! I love the idea of having diseases in the game and it might be fun to expand on it. Already brainstormed an idea for Tetanus - since there's already plenty of opportunity to come in contact with rust... Hopefully if I can reverse-engineer it enough I can start adding some diseases myself. I do have a busy schedule though so no promises!
Hi Rivernoodl. This is already on my todo list. But is has no high priority.
I think it would be cool to have a patch for XSkills that adds a disease resistance skill to the game.
Hi Austin. You can set a minimum threshold with the keyword 'threshold'. I will add a maxThreshold with the next xlib update.
Hey Xandu! Thanks for the update to xlib! Seems to have fixed the cures and I'm playing around with it now. Quick question, is there a way to set a maximum and minimum threshold for the damage trigger?
Example being:
What if I want different levels of a fracture, like a sprained leg to start, but a longer fall would produce an actual fracture. Just wondering if it's possible to tweak that.
Quick little demo of some of the stuff I'm playing with: https://www.youtube.com/watch?v=YZPPnehqa00
Hey Austin. It worked at some point when I tested it. Bandages are little bit more complicated because they usually ignore some behaviors and need some extra code to work.I noticed that something I changed after I tested it seemed to broke it again. I already fixed this but I haven't uploaded the fixed version yet.
Hey hey Xandu! Hope you're doing well.
When you first released this so we could all play with it, were bandages working for you in game? I've been playing around with making my own wound system using Xlib, but Bandages/Poultices seem to not work for curing nor health. I thought it was my JSON Patches for a second so I just tested xdiseases_v0.0.2 and xlib_v0.8.3-pre.1 and it still seems to not be working. This is on game version 1.19.8 though the same was happening for .7. I'm not seeing any errors in server main that would indicate the patches having issues. Wondering if anyone else is having these issues or if it's just me. Once I figure out how cures work I'm going to start making custom models like splints, gauze packing, cold compress, etc.
Hydromancerx I think someone else is working on something like this.
Starrytarot I intentionally left in the game that you can get diseases in creative mode for testing purposes. As I mentioned above this is only demo. For the same reason the cold is annoing so that I could test the triggers.
Cuiwi This is actually an interesting idea.
The colds are as annoying as actual colds. Is there a way to cure them, or disable getting diseases in creative altogether?
"Diarrhea"
Will there be a poop/bladder and/or hygene mod?
Xandu LOL yeah I can imagine! Maybe to prevent certain death (but without functioning as a cure, to make sure it stays even half as terrifying as it is IRL), there could be a medicine made from temporal gears that works by essentially pausing/slightly reversing the progression of the disease? For those who just really, really don't want to give up their hardcore playthrough maybe lol. I can just imagine the story potential the diseases would add too, I'm so excited for this mod honestly!!!
Quiche There will be no thirst in this mod. I think such thing should be implemented like hunger and this mod is not the place for this. You can still go to bed in multiplayer when I remember correctly it just does not skip time. Or you remove this trigger for the diseases.
Cuiwi You shouldn't use this mod in hardcore mode.
Oh heck yes!!! I'm SUPER eager to see how this develops! Kind of concerned about the rabies bit, but it sounds exciting!
Excited to see how this develops! Would thirst be an effect that may be added as an option in future? How would being well-rested work for multiplayer servers?
Hydromancerx I actually meant to make a tutorial for coders to create their own effects and change the existing ones. If you can cure an effect with a specific item you can usually see this in the tooltip of the item. You should also be able to search for it in the handbook. In general I don't want to spoiler too much informations because I think that it is part of the experience to figure some things out by your own. But there is no item that can cure a cold at the moment. Another way to cure a disease is to mitigate the things that triggers the disease in the first place. In the case of a cold that means: being well fed, keeping yourself warm and being well rested (go to bed regularly).
Yes please make a tutorial for the handbook!
Like how do you cure a cold?
Hydromancerx I don't do icons. None of my mods have one. I am just bad at graphic stuff.
Meliora You can prevent the diseases by some measures. e.G. scurvy can be mitigated by keeping your fruit level (since there is no extra tracking for vitamin c it takes the closest approximation) above a certain level. And you can cure it by getting your fruit level above a certain level. Bleeding can be treated with bandages and fractures heal faster if you eat cheese.
This is an awesome idea! I'd love to try it - are there ways to inccrease preventing getting the diseases, and are there ways in place already to potentially cure some of the ones that are curable? (like eating 30 million oranges or something, if you have scurvy) ?
This is a great idea
Very awesome
Please add a custom icon to this mod page! This mod is too awesome to be overlooked!