Page 1 of 1

How to remove jobs?

PostPosted: Wed Apr 10, 2019 9:17 pm
by MasonKin
First off just going to say, please be patient I have autism.

I'm currently trying to make a small unique station for my friends and I to play on. There are a couple of jobs that I to remove, specifically the head roles.

This is located in my map folder, titled "job_changes.dm"
Spoiler:
Code: Select all
#define JOB_MODIFICATION_MAP_NAME "testingstation"
#define MAP_REMOVE_JOB(captain)
#define MAP_REMOVE_JOB(head_of_personnel)
#define MAP_REMOVE_JOB(chief_engineer)
#define MAP_REMOVE_JOB(research_director)
#define MAP_REMOVE_JOB(chief_medical_officer)

This is in map_changes.dm
Spoiler:
Code: Select all
#include "..\..\..\..\_maps\map_files\PubbyStation\job_changes.dm"
#undef JOB_MODIFICATION_MAP_NAME

#include "..\..\..\..\_maps\map_files\testing station\job_changes.dm"
#undef JOB_MODIFICATION_MAP_NAME

So I have two questions

1. This wasn't enough to remove the jobs from the code. What am I missing here?

2. Once the jobs are removed, will I still have to remove them from a list? For instance in code/modules/jobs/jobs.dm, will the head jobs need to be commented out?

Any help would be greatly appreciated, I'm very new to coding as you are already probably aware.

Re: How to remove jobs?

PostPosted: Wed Apr 10, 2019 10:58 pm
by SpaceManiac
You need to lose the "#define" before each of the "MAP_REMOVE_JOB" lines. After that it should be handled by the rest of the code.

Re: How to remove jobs?

PostPosted: Fri Jun 07, 2019 6:21 pm
by MasonKin
SpaceManiac wrote:You need to lose the "#define" before each of the "MAP_REMOVE_JOB" lines. After that it should be handled by the rest of the code.


I totally forgot about this, but it worked perfectly. Thank you so much this really helped.