Ludeon Forums

RimWorld => Releases => Mods => Outdated => Topic started by: ZorbaTHut on August 21, 2016, 09:42:44 PM

Title: [A15] Crafting Hysteresis (v1.0.4)
Post by: ZorbaTHut on August 21, 2016, 09:42:44 PM
We have relocated! Please visit our new location (https://ludeon.com/forums/index.php?topic=26623.msg269329#msg269329)!
Title: Re: [A14] Crafting Hysteresis (v1.0.0)
Post by: Adalah217 on August 21, 2016, 09:49:38 PM
Wow this is gonna change everything. Super excited about using this mod!
Title: Re: [A14] Crafting Hysteresis (v1.0.0)
Post by: kaptain_kavern on August 22, 2016, 12:26:28 AM
That's look quite interesting thanks a lot!
Title: Re: [A14] Crafting Hysteresis (v1.0.0)
Post by: okiri on August 22, 2016, 01:23:49 AM
I registered just to say thank you. This is something i've been looking for since forever.
Title: Re: [A14] Crafting Hysteresis (v1.0.0)
Post by: notfood on August 22, 2016, 02:04:49 AM
Good stuff!
Title: Re: [A14] Crafting Hysteresis (v1.0.0)
Post by: Elysium on August 22, 2016, 02:10:30 AM
I was hoping someone would do this, no idea why it is not a part of vanilla already.
Title: Re: [A14] Crafting Hysteresis (v1.0.0)
Post by: Chibisuke on August 22, 2016, 03:03:23 AM
can someone test, if they click into a bill and go into details, with this mod the settings in here are no longer changeable. Like drop on floor etc.
Title: Re: [A14] Crafting Hysteresis (v1.0.0)
Post by: 123nick on August 22, 2016, 03:19:42 AM
welcome to the forums, and an amazing first post too! i recal that, i think colony manager did something similar but i may be wrong.
Title: Re: [A14] Crafting Hysteresis (v1.0.0)
Post by: Master Bucketsmith on August 22, 2016, 03:25:27 AM
Fantastic work. :)
Title: Re: [A14] Crafting Hysteresis (v1.0.0)
Post by: ZorbaTHut on August 22, 2016, 03:25:44 AM
Quote from: Chibisuke on August 22, 2016, 03:03:23 AM
can someone test, if they click into a bill and go into details, with this mod the settings in here are no longer changeable. Like drop on floor etc.

You are correct! Thanks for the bug report, and fixed - grab the latest version from https://github.com/zorbathut/craftinghysteresis/releases .
Title: Re: [A14] Crafting Hysteresis (v1.0.1)
Post by: Chibisuke on August 22, 2016, 03:27:26 AM
Love the mod. This should be part of vanilla
Title: Re: [A14] Crafting Hysteresis (v1.0.1)
Post by: SpaceDorf on August 22, 2016, 07:53:37 AM
This looks awesome. Another convinience fix for the Rim. Thank you :)
Title: Re: [A14] Crafting Hysteresis (v1.0.1)
Post by: Dave-In-Texas on August 22, 2016, 08:05:26 AM
Ive been waiting for this since my very first game :)

my initial thought on seeing the title was.. what are we crafting NOW? lol
Title: Re: [A14] Crafting Hysteresis (v1.0.1)
Post by: Etherdreamer on August 22, 2016, 10:49:42 AM
This can conflict with Fluffys work manager? actually I am searching something like this, unless this it´s already in the fluffys and I am not aware how to use it correctly.
Title: Re: [A14] Crafting Hysteresis (v1.0.1)
Post by: ZorbaTHut on August 22, 2016, 03:37:53 PM
Quote from: Etherdreamer on August 22, 2016, 10:49:42 AM
This can conflict with Fluffys work manager? actually I am searching something like this, unless this it´s already in the fluffys and I am not aware how to use it correctly.

I have not used Fluffy's work manager, and if there's anything it's going to conflict with, it's probably that. Back up your game, give it a try, and see what happens? :)
Title: Re: [A14] Crafting Hysteresis (v1.0.1)
Post by: Fluffy (l2032) on August 23, 2016, 03:33:00 AM
for the record, it's colony manager. Work tab is entirely different and won't conflict.

As for the Colony Manager, that depends on how Zorba has implemented this, if the game can still handle 'vanilla' bills assigned to workstations it'll probably be fine. If not... stuff will break. Probably quite dramatically.

In any case, I'll have a look over both mods sometime soonish to see what I can do about any incompatibility, hysteresis is something that's been on my wishlist for a long time, and there's various other things that need doing on the manager.
Title: Re: [A14] Crafting Hysteresis (v1.0.1)
Post by: ZorbaTHut on August 23, 2016, 08:02:55 AM
Quote from: Fluffy (l2032) on August 23, 2016, 03:33:00 AM
As for the Colony Manager, that depends on how Zorba has implemented this, if the game can still handle 'vanilla' bills assigned to workstations it'll probably be fine. If not... stuff will break. Probably quite dramatically.

The core code tweak is that I detoured the MakeNewBill function to return new kinds of bill. If you ever do "new Bill_Production" on your own, it'll break; if you never do that, it'll probably work fine.

That said, all it really needs for compatibility is to create a new CraftingHysteresis.Bill_Production_Hysteresis instead, and CraftingHysteresis.Bill_ProductionWithUft_Hysteresis in place of Bill_Production_Hysteresis. That might be doable, along with detecting if this mod is installed, with reflection.
Title: Re: [A14] Crafting Hysteresis (v1.0.1)
Post by: CannibarRechter on August 23, 2016, 08:18:04 AM
ColonyManager is a pretty essential mod for larger colonies. The auto slaughter capability alone is worth its weight in gold. Automatic slaughter, auto hunt, auto wood chop, and auto berry gather are all features I thinks should be base features of the game.
Title: Re: [A14] Crafting Hysteresis (v1.0.1)
Post by: Muramas on August 23, 2016, 10:29:35 AM
OMG I have been wanting this for a while.
Title: Re: [A14] Crafting Hysteresis (v1.0.1)
Post by: Deimos Rast on August 23, 2016, 07:20:23 PM
This looks amazing. Thank you.
Title: Re: [A14] Crafting Hysteresis (v1.0.1)
Post by: Ford_Prefect on August 24, 2016, 04:06:44 PM
I hope Ludeon adds this to the standard game. 
Title: Re: [A15] Crafting Hysteresis (v1.0.2)
Post by: ZorbaTHut on August 28, 2016, 03:35:22 PM
Updated for A15. This version also removes the dependency on CCL (which, as of this writing, does not yet support A15.)
Title: Re: [A15] Crafting Hysteresis (v1.0.2)
Post by: BlackSmokeDMax on August 28, 2016, 05:18:04 PM
Quote from: ZorbaTHut on August 28, 2016, 03:35:22 PM
Updated for A15. This version also removes the dependency on CCL (which, as of this writing, does not yet support A15.)

You sir (or Madam), are a god damn genius! Thank you so much for this mod, can't believe I haven't looked at this thread since I first saw it start appearing, finally saw it today on Steam!
Title: Re: [A15] Crafting Hysteresis (v1.0.2)
Post by: Deimos Rast on August 28, 2016, 06:36:25 PM
actually there is a way to manually unpause a paused bill.
Say a bill has completed and it sits at 1/100 and has a "Pause at Completion" enabled.
Toggle or Enable "Resume on Low Inventory" then add a +1 to the bill (the bill, not the threshold) and it should unpause...basically you're tricking the mod into tripping the "Resume" feature.
Or something like that.

I'm sure that's clear as mud, but I'm not at the right computer or I'd get it exactly.
Title: Re: [A15] Crafting Hysteresis (v1.0.2)
Post by: AseaHeru on August 29, 2016, 12:03:11 AM
 PTW
Title: Re: [A15] Crafting Hysteresis (v1.0.2)
Post by: Hazel on August 31, 2016, 05:42:19 AM
Might be an issue with the butchers table in a15 ( 0.15.1280 ). I had a brand new world and new table. Adding a new bill to butcher creature, details and toggling 'Resume on low stock' resulted in the details window closing, the bill not showing on the table and when clicking to add a new bill the select sound is made but no new bill is add/shown.
I created a second butchers table which had exactly the same issue
Title: Re: [A15] Crafting Hysteresis (v1.0.2)
Post by: ZorbaTHut on August 31, 2016, 06:47:43 AM
Quote from: Hazel on August 31, 2016, 05:42:19 AM
Might be an issue with the butchers table in a15 ( 0.15.1280 ). I had a brand new world and new table. Adding a new bill to butcher creature, details and toggling 'Resume on low stock' resulted in the details window closing, the bill not showing on the table and when clicking to add a new bill the select sound is made but no new bill is add/shown.
I created a second butchers table which had exactly the same issue

I'll see what I can figure out - my life is kind of busy right now and it may take a few days, though. (Haven't had a chance to touch A15 yet ;.;)
Title: Re: [A15] Crafting Hysteresis (v1.0.2)
Post by: Dingo on September 01, 2016, 10:44:48 PM
There is a visual / UI bug with CH and the Stonecutter's Table (been there in A14 as well).

(http://i.imgur.com/dwE7z5f.png)

Notice the "Counting: stone blocks" line. I believe it's pushing your toggles up by 1 line because otherwise the rest of the UI wouldn't fit, and so they inevitably clash with the allowed skill slider. You can still click on the pause toggle, it's just really hard and inconvenient (sometimes it clicks on the skill slider, instead).
Title: Re: [A15] Crafting Hysteresis (v1.0.2)
Post by: DarkSlayerEX on September 02, 2016, 01:23:27 AM
I would like to request a toggleable option to only allow a bill to be done if the input items are in stock above a threshold.

Example:
"Make Component" until you have 50, while Steel is Above 100

This would also allow mods like "Storage Crates" to require less micromanagement.
Example:
"Store Steel In Crate" Forever, while Steel is above 300.
Title: Re: [A15] Crafting Hysteresis (v1.0.2)
Post by: ZorbaTHut on September 02, 2016, 10:53:03 AM
Quote from: Dingo on September 01, 2016, 10:44:48 PM
Notice the "Counting: stone blocks" line. I believe it's pushing your toggles up by 1 line because otherwise the rest of the UI wouldn't fit, and so they inevitably clash with the allowed skill slider. You can still click on the pause toggle, it's just really hard and inconvenient (sometimes it clicks on the skill slider, instead).

Oof, yeah. The problem is that there's no way to say "put these new interface elements below the existing ones" - I can either reimplement *the entire dialog* or I can put them at a fixed location that hopefully nothing conflicts with. Thought I'd put them down far enough, guess not. I'll come up with a solution.

Quote from: DarkSlayerEX on September 02, 2016, 01:23:27 AM
I would like to request a toggleable option to only allow a bill to be done if the input items are in stock above a threshold.

While I like the idea, this is currently outside the scope of what I want to tackle with this mod. You may want to suggest it to someone doing a larger-scale management mod; perhaps Colony Manager.

(Alternatively, if someone who knows code wants to implement it, I'd be happy to accept a pull request ;) )
Title: Re: [A15] Crafting Hysteresis (v1.0.2)
Post by: disasteroid on September 02, 2016, 06:58:59 PM
this is already within the scope of colony manager. create a bill, set the threshold to "greater than (>)" and select the material(s) in question.

p.s. love your mod zorba!
Title: Re: [A15] Crafting Hysteresis (v1.0.3)
Post by: ZorbaTHut on September 03, 2016, 10:53:24 AM
Updated to v1.0.3.

* Butcher tables can no longer be wedged into an unusable state by choosing an unsupported option
* Bill UI adjusted slightly to avoid element overlap with stonecutting tables

Did some compatibility testing.

* Feed The Colonists seems to work fine; remember that, if adding Crafting Hysteresis to an existing game, you must delete and recreate any existing bills to add the new options
* Colony Manager does not support the new options; this fix has to happen on the Colony Manager side (and realistically, they'd just reimplement CH within their own framework)
Title: Re: [A15] Crafting Hysteresis (v1.0.3)
Post by: rogerthat on September 12, 2016, 08:40:31 PM
Quote from: ZorbaTHut on September 03, 2016, 10:53:24 AM
Updated to v1.0.3.

* Butcher tables can no longer be wedged into an unusable state by choosing an unsupported option
* Bill UI adjusted slightly to avoid element overlap with stonecutting tables

Did some compatibility testing.

* Feed The Colonists seems to work fine; remember that, if adding Crafting Hysteresis to an existing game, you must delete and recreate any existing bills to add the new options
* Colony Manager does not support the new options; this fix has to happen on the Colony Manager side (and realistically, they'd just reimplement CH within their own framework)

Thank you for the mod. However I'm struggling to work out whether my current mods are compatible though. Currently have EdB, EPOE, Medieval Times, RemoteExplosives and TBedsVanilla and TFloor. Is there a way to determine whether they modify crafting code?

Thanks!
Title: Re: [A15] Crafting Hysteresis (v1.0.3)
Post by: Trblz42 on September 15, 2016, 02:10:59 PM
Quote from: ZorbaTHut on September 03, 2016, 10:53:24 AM
Updated to v1.0.3.

* Butcher tables can no longer be wedged into an unusable state by choosing an unsupported option
* Bill UI adjusted slightly to avoid element overlap with stonecutting tables

Did some compatibility testing.

* Feed The Colonists seems to work fine; remember that, if adding Crafting Hysteresis to an existing game, you must delete and recreate any existing bills to add the new options
* Colony Manager does not support the new options; this fix has to happen on the Colony Manager side (and realistically, they'd just reimplement CH within their own framework)

Awesome!

I am using this in combination with "Feed the colonist (http://steamcommunity.com/sharedfiles/filedetails/?id=729690064)" mod. This creates an efficient scenario where they build food between min and max in groups of 4.
Title: Re: [A15] Crafting Hysteresis (v1.0.3)
Post by: ZorbaTHut on September 22, 2016, 06:48:15 AM
Updated to v1.0.4.

* Improved preview icon.

This is not exactly a critical change, I'm just planning on making a few more small mods and I wanted a consistent visual look in the workshop.

Quote from: rogerthat on September 12, 2016, 08:40:31 PM
Thank you for the mod. However I'm struggling to work out whether my current mods are compatible though. Currently have EdB, EPOE, Medieval Times, RemoteExplosives and TBedsVanilla and TFloor. Is there a way to determine whether they modify crafting code?

To the best of my knowledge, those should work just fine. It's vaguely possible EPOE is doing something weird with new crafting recipes; if so, it may not be supported for those recipes. But that sounds like the most likely issue, and even that isn't particularly likely.
Title: Re: [A15] Crafting Hysteresis (v1.0.4)
Post by: Adventurer on September 22, 2016, 07:40:23 AM
I love this mod. Though I initially thought when I read the title the goal was to bring crafting hysteria from Dwarf Fortress.