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?
modding a new work process
Moderator: NBJeff
Re: modding a new work process
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
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.
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
You can take a look at Sir Noolas "Mining facility mod" on the workshop here : http://steamcommunity.com/sharedfiles/filedetails/?id=308960873
His mod seems to do what you are looking for.
(at least, he his breaking rocks...)
His mod seems to do what you are looking for.
(at least, he his breaking rocks...)
-
- level0
- Posts: 1
- Joined: Sat Jun 02, 2018 7:14 am
- Location: London
- Contact:
Re: modding a new work process
Informative thread.
Who is online
Users browsing this forum: No registered users and 1 guest