Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: a new hospital ---- possible?  (Read 613 times)

somebears

  • Bay Watcher
    • View Profile
a new hospital ---- possible?
« on: November 20, 2013, 06:50:37 pm »

[EDIT:] should have posted that in the modding questions thread, sorry
Hey :)
since Meph released his new disease system I've been toying around with the Idea of creating one on my own, one that is way more crazy(mutating diseases, immunisation, experimentation, hygiene), yet automatic. One problem I ran into over and over again is, that the current hospital system is not very flexible. It is pretty much only used for combat wounds, necrosis and infections. I want a flexible hospital. After reading all posts I could find on the topic it seems like it is not very likely that this would work the way I want to. I was ready to give up. But then I had an epiphany! And I need to know if this can work!

I want to disable the vanilla df health care system completely and replace it with my own.


Things that I need to know:
can i completely disable the current health system?
more specifically:
  • Can I reuse the basics of the current system: beds+containers+hospital zone without having dwarves do stuff on their own?
  • Can I use the current doctor professions without them doing health stuff on their own?
  • If no to 1/2: With no hospital; will dwarves still attempt to clean/feed injured dwarves (I really don't want unusable labors)
And some general questions:
  • do you know anyone who has done something like this, or tinkered with modding health care at all
  • has anyone ever attempted custom (let me chose what to do with which body part) surgery

I do not attempt to copy/replace meph's work; this will be something completely different. I want to make health management(not only handeling diseases) something that has to be planned and carefully executed in order for the fort to have a chance to survive.
« Last Edit: November 20, 2013, 06:52:12 pm by somebears »
Logged

RickRollYou2

  • Bay Watcher
  • [START_BIOME:EARTH]
    • View Profile
Re: a new hospital ---- possible?
« Reply #1 on: November 20, 2013, 09:31:13 pm »

The "diseases" that Meph has are just syndromes. Perfectly moddable within the scope of raw files, as they are meant to be.

What you want on the other hand is an overhaul of the healthcare system in vanilla. That means more than modifying raws. That means potentially recompiling the game.

 You wouldn't be seen as trying to replace Meph's work... this is the Adam brothers' work.

Don't let me stop you from trying though :) if you do find a way... Congrats!
Logged

smjjames

  • Bay Watcher
    • View Profile
Re: a new hospital ---- possible?
« Reply #2 on: November 20, 2013, 09:56:37 pm »

Yeah it's all hardcoded, though sometime in the future when toady works more on the health system, he will add modding capability for it.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: a new hospital ---- possible?
« Reply #3 on: November 21, 2013, 12:32:23 am »

Don't let me stop you from trying though :) if you do find a way... Congrats!

I'll stop him from trying.

Doing this is 1. illegal and 2. nearly impossible. It would require reverse-engineering Toady's close-sourced protected code and rebuilding the entire game from scratch with your one difference added. That's not right.

somebears

  • Bay Watcher
    • View Profile
Re: a new hospital ---- possible?
« Reply #4 on: November 21, 2013, 03:15:59 am »

That did not come out right^^ I have no intention of rebuilding the game in any way.
I thought of a dfhack plugin that mimicks a health care system, no source manipulation!
The problem would be that this obviously conflicts with the game itself trying to treat injured dwarves.
So I thought "If I disable all doctor labors and build no hospital, that Issue would not exist". But as I said, I don't like unused stuff, so I thought there might be an easy way (for example making beds unable to use in hospital zones or setting some "get ignored by hospital stuff" flag on creatures) to make the game ignore the Health part (not remove it, just assume there is no hospital and therefore not doing anything)

What I mean with reuse:
I see no point is doing, what is already there, if it's not neccecary, so even with a all new system I could take advantage of the old one. for example, there is no point in creating a new "recover wounded job", because the old one works just fine. So keeping all the previous stuff (for example the zone) might be a good Idea.

It would be more like the siege-weapon plugin in dfhack; I add functionality to a part of the game while leaving everything else the way it is.
Again: NO intention of reverse-engineering/altering the binaries
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: a new hospital ---- possible?
« Reply #5 on: November 21, 2013, 03:17:33 am »

In that case...

still probably hard as hell and may be a bit slow, but probably doable.