Custom Staff not researching

Discussion about Mods for Prison Architect

Moderator: NBJeff

DibbyDoo
level0
Posts: 8
Joined: Fri Jun 06, 2014 1:18 am

Custom Staff not researching

Postby DibbyDoo » Thu Feb 19, 2015 8:14 am

In my mod I am making a new member of staff called Head Of Arts. He is meant to research Dancing but he does not an I cant figure out why. He and the research is declared in the base-language.txt. The Warden researches Flim And Arts to unlock the Head Of Arts.

This is him in materials.txt

Code: Select all

BEGIN Object
   Name      HeadOfArts
    MoveSpeedFactor      0.500000 
    Toughness            10.0000 
    RenderDepth          2
   ViewRange          8
    Price       -500
    Research             FilmAndArts
    BlockedBy            Wall 
    BlockedBy            StaticObject 
    BlockedBy            UtilityStation   
    Properties           Entity
    Properties           Staff
    Properties           Administrator   
   Properties           RoomSpecific
   Equipment            Clipboard
   BEGIN Sprite
   x 0
   y 0
   w 2
   h 2
   RotateType 1
   END
   BEGIN ToolbarSprite
   x 0
   y 2
   w 2
   h 2
   END
END


And this is what he is meant to research. (research.txt)

Code: Select all

BEGIN Research   
    Name                 Dancing 
    Type                 Ability 
    Requires             FilmAndArts
    Admin                HeadOfArts
    Cost                 -1000 
    Time                 120 
    X                    500 
    Y                    460
END
GamingBud
level2
level2
Posts: 194
Joined: Mon Dec 29, 2014 8:33 pm

Re: Custom Staff not researching

Postby GamingBud » Thu Feb 19, 2015 9:55 pm

Code: Select all

BEGIN Object
    Name      HeadOfArts
    MoveSpeedFactor      0.500000 
    Toughness            10.0000 
    RenderDepth          2
    ViewRange          8
    Price       -500
    Research             FilmAndArts
    BlockedBy            Wall 
    BlockedBy            StaticObject 
    BlockedBy            UtilityStation   
    Properties           Entity
    Properties           Staff
    Properties           Administrator   
    Properties           RoomSpecific
    Equipment            Clipboard
    BEGIN Sprite
    x 0
    y 0
    w 2
    h 2
    RotateType 1
        BEGIN ToolbarSprite
        x 0
        y 2
        w 2
        h 2
        END
    END
END


An END was in the wrong place, and i believe that ToolbarSprite does not work. In any case, before you research him he should appear in the staff menu, but be locked saying "RESEARCH REQUIRED: Film and Arts". If he is not, then make sure you have all the right base-language stuff correct. What i like to do is reference "Workman" in the base-language file and just copy and change what he has in the base-language file.

Good luck!

Return to “Modding”

Who is online

Users browsing this forum: No registered users and 11 guests