Skip to content

Add tags to control the models of units across various theater conditions. - #2313

Closed
obsidian14 wants to merge 6 commits into
Phobos-developers:developfrom
obsidian14:image
Closed

Add tags to control the models of units across various theater conditions.#2313
obsidian14 wants to merge 6 commits into
Phobos-developers:developfrom
obsidian14:image

Conversation

@obsidian14

Copy link
Copy Markdown
Contributor

I have added tags to control the vxl models of units across various conditions.
[TechnoType]->TemperateImage=;TechnoType entry
Change the unit model to specified model under temperate climate conditions.
[TechnoType]->SnowImage=;TechnoType entry
Change the unit model to specified model in snowy weather.
[TechnoType]->UrbanImage=;TechnoType entry
Change the unit model to specified model in urban environments.
[TechnoType]->DesertImage=;TechnoType entry
Change the unit model to specified model in desert environments.
[TechnoType]->NewUrbanImage=;TechnoType entry
Change the unit model to specified model in new urban environments.
[TechnoType]->LunarImage=;TechnoType entry
Change the unit model to specified model in lunar environments.

@DeathFishAtEase

DeathFishAtEase commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Ares already has a [TechnoType]►AlternateTheaterArt= (boolean), would it be better to use the same flag to add support for voxel technos?


[TechnoType]►AlternateTheaterArt= (boolean)

  • Specifies whether or not this SHP-based unit can have alternate art depending on the theater of the current map. For example, setting Image=JUNK and AlternateTheaterArt=yes on a unit will make the unit load artmd.ini section [JUNKA] on arctic, [JUNKD] on desert, and so on according to theater. If any of those sections do not exist then the unit will fall back to [JUNK]. So quite similar to AlternateArcticArt, just automatic and smarter. Defaults to no.
image

In rulesmd.ini:

[General]
ArtImageSwap=true
[DLPH]
AlternateTheaterArt=true

In artmd.ini:

[DLPHA]:[SQD]
Image=SQD

In addition, we have already added these. If the custom flags for each climate are retained, how will the contents of this PR coordinate with them?

In rulesmd.ini:

[SOMEVEHICLE]                         ; VehicleType
Image.ConditionYellow=                ; VehicleType entry
Image.ConditionRed=                   ; VehicleType entry
WaterImage.ConditionYellow=           ; VehicleType entry
WaterImage.ConditionRed=              ; VehicleType entry

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

@obsidian14 obsidian14 changed the title add tags to control the models of units across various weather conditions Add tags to control the models of units across various theater conditions. Jul 27, 2026
@obsidian14 obsidian14 closed this by deleting the head repository Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants