OpenRA / OpenRA/OpenRA

Random Faction isn't random

Open
#18,669 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
Dominant language
C#
Stars
17.4k
Forks
3k
Avg merge
1d 12h
Merged PRs (30d)
14

Description

It's hard to really know for sure, but it's felt like this for a long time.

It tends to "stick", and only select one faction over multiple games.

We had 4 players play random and all get nod. Next game we all got Nod again.

Just to be clear, it's specific per player (two random players can get two different factions).

I have no idea what triggers it, but it happens often enough I think it's worth an issue report. It's particularly obvious in RA when you keep getting the same sub-faction (out of 5).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by reproducing random faction selection across several games, including multiple players and Red Alert sub-factions, then trace the faction-selection code to identify where per-player state persists. Done means random selection no longer consistently repeats the same faction without an intended reason, with a regression test covering the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.