Skip to content

Customize the images for building sell and undeploy#2271

Draft
DeathFishAtEase wants to merge 1 commit into
Phobos-developers:developfrom
DeathFishAtEase:Builddown
Draft

Customize the images for building sell and undeploy#2271
DeathFishAtEase wants to merge 1 commit into
Phobos-developers:developfrom
DeathFishAtEase:Builddown

Conversation

@DeathFishAtEase

@DeathFishAtEase DeathFishAtEase commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator
SellImage
  • In vanilla, when a building is sold or undeployed, it plays the reversed Buildup image. Now you can customize the images for these two cases and set whether to reverse them separately.

In artmd.ini:

[SOMEBUILDING]         ; BuildingType
Sell=                  ; filename - excluding the .shp extension
Sell.Reverse=true      ; boolean
Undeploy=              ; filename - excluding the .shp extension
Undeploy.Reverse=true  ; boolean

Note

When the replacement image is not explicitly set, the Buildup image will be used, and reversal can still work independently.


The configuration parameters for displaying images are as follows:

In rulesmd.ini:

[NACNST]
SellBuildupLength=31

[GACNST]
SellBuildupLength=31

In artmd.ini:

[GACNST]
Buildup=GAPILLMK
Sell=NACNSTMK
Undeploy=NACNSTMK
Undeploy.Reverse=false

Tested changing SellTime value and Buildup; the sell sequence still synchronizes and disappears at the same time (the end time is not delayed by the frame count of Buildup), and it synchronizes under both FPS=120 and FPS=1.

Todo:

  1. Although it synchronizes under FPS=1, when stepping frame by frame in Frame by frame mode, [GACNST] (Buildup=GAPILLMK) appears to be 1 step faster than [NACNST]; the cause is still under investigation.
  2. When the frame count of Buildup is significantly less than that of Sell, the first frame of the sell sequence cannot erase the building body image of [GACNST] in time at higher FPS, causing the sell sequence image to overlap with the building image.
  3. Added a LoadTheaterSHP function similar to Ares' approach to handle reading under different theaters; need to confirm whether it can be replaced by reusing the content related to 005F9070 - ObjectTypeClass_Load_Theater_Art, but lack of energy.

@DeathFishAtEase DeathFishAtEase self-assigned this Jun 27, 2026
@DeathFishAtEase DeathFishAtEase added ⚙️T1 T1 maintainer review is sufficient ❓Unhardcoding / Customization Make something more tweakable labels Jun 27, 2026
@github-actions

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.

@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/597/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚙️T1 T1 maintainer review is sufficient ❓Unhardcoding / Customization Make something more tweakable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants