Skip to content

Customize the initial facing of buildings - #2290

Merged
DeathFishAtEase merged 7 commits into
Phobos-developers:developfrom
DeathFishAtEase:StartFacing
Jul 19, 2026
Merged

Customize the initial facing of buildings#2290
DeathFishAtEase merged 7 commits into
Phobos-developers:developfrom
DeathFishAtEase:StartFacing

Conversation

@DeathFishAtEase

@DeathFishAtEase DeathFishAtEase commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator
  • In vanilla, buildings always face due north (0). Now you can customize it.

In rulesmd.ini:

[General]
BuildingStartFacing=0             ; integer
BuildingStartFacing.Random=false  ; boolean

[SOMEBUILDING]                    ; BuildingType
StartFacing=                      ; integer, defaults to [General] -> BuildingStartFacing
StartFacing.Random=               ; boolean, defaults to [General] -> BuildingStartFacing.Random

Note

Unlike the identically named INI flag in Tiberian Sun, this flag uses a 256-point circle rather than an 8-point circle.

@DeathFishAtEase DeathFishAtEase self-assigned this Jul 17, 2026
@DeathFishAtEase DeathFishAtEase added ❓Restored feature Logic present in older gen. games but not in YR Needs testing ⚙️T1 T1 maintainer review is sufficient labels Jul 17, 2026
@phoboscn-bot

Copy link
Copy Markdown

To Chinese users:
This pull request has been mentioned on Phobos CN. There might be relevant details there:

致中文用户:
此拉取请求已在 Phobos CN 上被提及。那里可能有相关详细信息:

https://www.phoboscn.top/t/topic/662/1

@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

Comment thread docs/Fixed-or-Improved-Logics.md
Comment thread src/Ext/Building/Hooks.cpp Outdated
@DeathFishAtEase

Copy link
Copy Markdown
Collaborator Author

Tested by: https://www.phoboscn.top/t/topic/662/2?u=noble_fish

image

[YAGGUN]
StartFacing=192

@DeathFishAtEase DeathFishAtEase added Tested ❓Unhardcoding / Customization Make something more tweakable Will be merged in 24h This PR will be merged in 24 hours if no one has further instructions. and removed Needs testing ❓Unhardcoding / Customization Make something more tweakable labels Jul 18, 2026
@DeathFishAtEase
DeathFishAtEase merged commit 2eea69c into Phobos-developers:develop Jul 19, 2026
7 checks passed
@DeathFishAtEase
DeathFishAtEase deleted the StartFacing branch July 19, 2026 13:44
DeathFishAtEase added a commit to DeathFishAtEase/Phobos that referenced this pull request Jul 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

❓Restored feature Logic present in older gen. games but not in YR ⚙️T1 T1 maintainer review is sufficient Tested Will be merged in 24h This PR will be merged in 24 hours if no one has further instructions.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants