modding a new work process
Posted: Mon Nov 24, 2014 12:00 pm
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:
materials.txt:
BEGIN Object
Name Stonestone
MaxStackSize 10
RenderDepth 1
Price -10
Sprite SheetMetal
StackSprite StackSheetMetal
Properties Material
Properties SlowDelivery
END
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
END
END
BEGIN Room
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
END
production.txt:
BEGIN ProductionRule
Rule Storage
Material Stonestone
Container Stonetable
Distribution Random
END
BEGIN ProductionRule
Rule Storage
Material Sonestone
Container Table
Room Mining-Area
Distribution Random
MaxSlotId 3
Condition NotLoaded
END
BEGIN Processor
Processor Stonetable
Input Stonestone
Object Stonetable
InputCount 5
Output LicensePlate
OperatingTime 60.0
Properties ShowDuringOperation
Worker Prisoner
END
job.txt:
BEGIN Job
Name breakstone
JobTime 30
Tool Hammer
Worker Prisoner
END
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?
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:
materials.txt:
BEGIN Object
Name Stonestone
MaxStackSize 10
RenderDepth 1
Price -10
Sprite SheetMetal
StackSprite StackSheetMetal
Properties Material
Properties SlowDelivery
END
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
END
END
BEGIN Room
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
END
production.txt:
BEGIN ProductionRule
Rule Storage
Material Stonestone
Container Stonetable
Distribution Random
END
BEGIN ProductionRule
Rule Storage
Material Sonestone
Container Table
Room Mining-Area
Distribution Random
MaxSlotId 3
Condition NotLoaded
END
BEGIN Processor
Processor Stonetable
Input Stonestone
Object Stonetable
InputCount 5
Output LicensePlate
OperatingTime 60.0
Properties ShowDuringOperation
Worker Prisoner
END
job.txt:
BEGIN Job
Name breakstone
JobTime 30
Tool Hammer
Worker Prisoner
END
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?