Page 1 of 1

modding a new work process

Posted: Mon Nov 24, 2014 12:00 pm
by Lighten
Hi guys,
I try to make a new mod in which the prisoners have to breaking rocks (like Workshop sheetmetal -> LicensePlate but now Stone -> Bricks). I tryed a few things but it is still not working. The stones should be delivered by the Trucks but nothing is hapening. Here are the txt I made:


BEGIN Object
Name Stonestone
MaxStackSize 10
RenderDepth 1
Price -10
Sprite SheetMetal
StackSprite StackSheetMetal
Properties Material
Properties SlowDelivery

BEGIN Object
Name Stonetable
Price -1500
ConstructionTime 20
MoveSpeedFactor 0.500000
Toughness 15.0000
Width 3
NumSlots 3
Sprite WorkshopSaw
SpriteScale 1.1
ToolbarSprite WorkshopSawToolbar
Properties StaticObject
Properties RoomSpecific
Properties Processor
MadeOf Composite
BlockedBy Wall
BlockedBy StaticObject
BlockedBy UtilityStation
WorkGroup Mining-Area
BEGIN Workers
Worker Prisoner

Name Mining-Area
Properties PrisonersCanWork
WorkGroup Mining-Area
BEGIN Requirement Type Enclosed END
BEGIN Requirement Type Secure END
BEGIN Requirement Type MinimumSize x 5 y 5 END
BEGIN Requirement Type Outdoor END
BEGIN Requirement Type Object Id Stonetable END
BEGIN Requirement Type Object Id Table END
BEGIN Contraband Id Hammer END


BEGIN ProductionRule
Rule Storage
Material Stonestone
Container Stonetable
Distribution Random

BEGIN ProductionRule
Rule Storage
Material Sonestone
Container Table
Room Mining-Area
Distribution Random
MaxSlotId 3
Condition NotLoaded

BEGIN Processor
Processor Stonetable
Input Stonestone
Object Stonetable
InputCount 5
Output LicensePlate
OperatingTime 60.0
Properties ShowDuringOperation
Worker Prisoner


Name breakstone
JobTime 30
Tool Hammer
Worker Prisoner

I have used already existing sprites (for now) and made a new room for the Production cycle. The stones were not deliverd.
What have I done wrong? Any Ideas?

Re: modding a new work process

Posted: Mon Nov 24, 2014 4:51 pm
by knoest26
It's an issue that I ran into a while back aswell. According to the devs you can now have materials being ordered but I'd have no idea how to do that. Perhaps there is a property somewhere on the modding list on the wiki

Re: modding a new work process

Posted: Mon Nov 24, 2014 9:29 pm
by Puman
Jobs have to be created by scripts.

Jobs that have a material requirement will auto-import that material as long as it is required, often even if the material exists in the prison.

I don't remember whether a processor will auto-import, it's possible.

General tip: Take an existing working mod and modify it in singular steps towards what you want to achieve, testing its function at each step. That will make it A LOT easier to know what has gone wrong than if you try to create something big and complex from scratch.

Re: modding a new work process

Posted: Thu Nov 27, 2014 12:11 pm
by keep_on
You can take a look at Sir Noolas "Mining facility mod" on the workshop here :

His mod seems to do what you are looking for.
(at least, he his breaking rocks...;))

Re: modding a new work process

Posted: Sat Jun 02, 2018 7:16 am
by lewandsarafolo
Informative thread.