How do I go about deleting jobs from TGStation?

How, what and why to code in BYOND.
Post Reply
Angel Ensefalon
Joined: Sat Mar 10, 2018 1:27 am
Byond Username: Ensefalon

How do I go about deleting jobs from TGStation?

Post by Angel Ensefalon » #389020

I want to remove the following jobs
All civillian, Security, Captain, and bartender.

Not as in delete their files entirely, Just I would prefer that I have clients to not have the option to set a preference for said jobs when they join.
User avatar
Dax Dupont
In-Game Admin
Joined: Sun Apr 20, 2014 9:07 pm
Byond Username: DaxYeen
Github Username: DaxDupont
Location: Belgium

Re: How do I go about deleting jobs from TGStation?

Post by Dax Dupont » #389026

Everything but the captain and sec is civilian
User avatar
Armhulen
Global Moderator
Joined: Thu Apr 28, 2016 4:30 pm
Byond Username: Armhulenn
Github Username: bazelart
Location: The Grand Tournament

Re: How do I go about deleting jobs from TGStation?

Post by Armhulen » #389027

I think he means service
Angel Ensefalon
Joined: Sat Mar 10, 2018 1:27 am
Byond Username: Ensefalon

Re: How do I go about deleting jobs from TGStation?

Post by Angel Ensefalon » #389029

Dax Dupont wrote:Everything but the captain and sec is civilian

I need to know how to delete these jobs from the occupation preference menu
SpaceManiac
Joined: Fri Sep 22, 2017 4:06 am
Byond Username: SpaceManiac
Github Username: SpaceManiac

Re: How do I go about deleting jobs from TGStation?

Post by SpaceManiac » #389038

There is a per-map job adjustment system which you can use if you run a custom map. Create "_maps/map_files/YourMapFolder/job_changes.dm", and write "MAP_REMOVE_JOB(id)" for each job ID you want to remove:

Code: Select all

#define JOB_MODIFICATION_MAP_NAME "Your Map Name"
MAP_REMOVE_JOB(captain)
MAP_REMOVE_JOB(bartender)
MAP_REMOVE_JOB(head_of_security)
etc...
Then, in "code/modules/jobs/map_changes/map_changes.dm", add a pair of lines to include that file:

Code: Select all

#include "..\..\..\..\_maps\map_files\YourMapFolder\job_changes.dm"
#undef JOB_MODIFICATION_MAP_NAME
Alternatively, to disable the jobs for all maps, go through each file in the "code/modules/jobs/job_types/" folder. For each job you wish to remove, edit the "total_positions = <number>" and "spawn_positions = <number>" to be zero.
Angel Ensefalon
Joined: Sat Mar 10, 2018 1:27 am
Byond Username: Ensefalon

Re: How do I go about deleting jobs from TGStation?

Post by Angel Ensefalon » #389116

I've finally disabled the jobs I wanted, But I haven't tried the job mod for each specific map, I'll take a look and see if it works cleaner.
Post Reply

Who is online

Users browsing this forum: No registered users