Here's the code:
BEGIN ProductionRule
Rule Storage
Material Bleach
Room CleaningCupboard
Distribution Nearest
Container Table
Condition NotLoaded
END
The workers properly store the bleach on tables, but then go back and pick it up and put it on the floor, after which it is put back on the table in an endless loop.
I am assuming this is because the original production rule in productions.txt is still being loaded, telling workers to randomly put the bleach anywhere in the cleaning cupboard. any ideas?
Storing bleach on tables
Moderator: NBJeff
-
muahaa_the_french
- level1

- Posts: 49
- Joined: Thu Aug 15, 2013 6:16 pm
Re: Storing bleach on tables
Maybe make another the same production rule as the one doing that in the PA files, but instead add Condition NotLoaded at the end. Therefore if the bleach is in the deliveries then it will go to the table or floor, and then go to the table and not be touched again.
-
muahaa_the_french
- level1

- Posts: 49
- Joined: Thu Aug 15, 2013 6:16 pm
Re: Storing bleach on tables
Still happens. MADDENING.
BEGIN ProductionRule
Rule Storage
Material Bleach
Room CleaningCupboard
Distribution Nearest
Container Table
Condition NotLoaded
END
BEGIN ProductionRule
Rule Storage
Material Bleach
Room CleaningCupboard
Distribution Random
Condition NotLoaded
END
BEGIN ProductionRule
Rule Storage
Material Bleach
Room CleaningCupboard
Distribution Nearest
Container Table
Condition NotLoaded
END
BEGIN ProductionRule
Rule Storage
Material Bleach
Room CleaningCupboard
Distribution Random
Condition NotLoaded
END
Re: Storing bleach on tables
muahaa_the_french wrote:Still happens. MADDENING.
END
Well, the original production item will always exist, and it has no rule to check whether it is loaded. You should be able to turn of the behaviour by adding the loaded rule to the original game production.txt file. But then it won't be possible to distribute as a mod.
It is kind of a bug (oversimplification) in the original file.
-
muahaa_the_french
- level1

- Posts: 49
- Joined: Thu Aug 15, 2013 6:16 pm
Re: Storing bleach on tables
Is there a way to do this with a lua script or will the job always be created?
Perhaps auto-canceling "move bleach to cleaningcupboard" jobs before they can be assigned would be the way to go.
Perhaps auto-canceling "move bleach to cleaningcupboard" jobs before they can be assigned would be the way to go.
-
muahaa_the_french
- level1

- Posts: 49
- Joined: Thu Aug 15, 2013 6:16 pm
Re: Storing bleach on tables
While leaving the newly introduced move bleach to table rule unmodified.
The downside is that Cleaning Cupboards would never accept more bleach than is able to be stored, but that works just fine too.
The downside is that Cleaning Cupboards would never accept more bleach than is able to be stored, but that works just fine too.
Who is online
Users browsing this forum: No registered users and 5 guests

