Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shifting job preferences is finicky.
#9
MyBlueCorners Wrote:<- Assistant ->
<- Clown->
<- Barman->

just arrange favorite on the far left, and unwanted on the far right.
This seems decent. I could include this along with the current way of doing things.

Here's an explanation of how the system now works for anyone who's interested, on a step by step process of how the game does it when a new round begins:

Code:
Load all jobs into the job controller. Cut out any non-functioning ones.

Look through every job loaded into the system, and sort them into High Priority, Regular, and Low Priority category listings.

Get a list of everyone in the lobby who has declared ready, and scramble it into a random order.

Iterate through every job that has been sorted into High Priority. Find players who have it as a favorite and try to find enough to fill the job's limit. If this can't be done, go through the medium and then low priority players looking for candidates until you fill the slots.

Once the high priority jobs are filled, go through the list of every ready player and look at their favorite job. Try to get them into that job if it still has open slots.

If there's anyone left who hasn't been given a job, go through the jobs list and try to find players who didn't get their favorite who have the job in their medium priority preferences.

Do the same again for low priority player preferences.

If Special Jobs have been made available by admins pre-round, try to fit any remaining players into one of those.

If there's any players who STILL don't have a job, throw them a low-priority role.

Note: High-priority jobs at this time are Captain and AI. The only low-priority job is Staff Assistant.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)