Skip to content

Hologram fixes#421

Merged
LlmDl merged 5 commits intoTownyAdvanced:mainfrom
Buap-pro:main
Feb 12, 2026
Merged

Hologram fixes#421
LlmDl merged 5 commits intoTownyAdvanced:mainfrom
Buap-pro:main

Conversation

@Fer2G
Copy link
Copy Markdown
Contributor

@Fer2G Fer2G commented Feb 11, 2026

Brief Description:

Fixes for:

  1. Hologram creation broken due to bad name when creating one
  2. Hologram height too low
  3. Hologram timer index was previously hardcoded

Relevant FlagWar Issue tickets:

resolves #420


  • I have tested this pull request for defects on a server.

By making this pull request, I represent that I have read and agree to release my own changes that I
have submitted under the terms of the accompanying license (Apache-2.0). I guarantee that these
changes are mine and are not encumbered by any other license or restriction to the best of my
knowledge.

@TheFlagCourier TheFlagCourier requested a review from LlmDl February 11, 2026 03:06
@TheFlagCourier TheFlagCourier added this to the 0.8.1 milestone Feb 11, 2026
Copy link
Copy Markdown
Member

@LlmDl LlmDl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd also like you to confirm that this doesn't require any changes to the config.yml file in the resources folder.

From the looks of it, it appears that the new setting only needs to know which line the timer is on.

private static Material beaconWireFrameMaterial = null;
/** Set of EditableMaterials which can be built/destroyed in attacked cells. */
private static Set<Material> editableMaterialsInWarZone = null;
/** Index value for the timer string in the hologram (if enabled) */
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be more descriptive and make mention that it is the line on the hologram where the time remaining will appear. The variable name could also be clearer.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

config.yml does not need any changes, the created variable is just a helper to cache the line index (instead of having to find where the timer is located whenever creating/updating a hologram).

Updated comment:

Index to know which hologram line contains the timer string (not shown/used in config.yml)

Is hologramTimerLineIndex a better variable name? idk what else to label it.

@LlmDl
Copy link
Copy Markdown
Member

LlmDl commented Feb 11, 2026 via email

@Fer2G Fer2G requested a review from LlmDl February 11, 2026 17:36
@LlmDl LlmDl merged commit d608e48 into TownyAdvanced:main Feb 12, 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.

FlagWar does not use valid hologram names with DecentHolograms, breaking implementation.

3 participants