• Tracker

    Spaces
    Browse
    Statistics
  • /
  • /Reforger Modding
  • /ARMD-50
Back
1

ForestGeneratorEntity wrongly skews TreeGroupClass weights

1

State

Assigned
Issue key
ARMD-50
Access
Public
Space
Arma Reforger
Project
Reforger Modding
Creator
tilw
Created
Aug 28, 2026
Views
57
Platform
PC Steam
Game Version

1.8.0.10

Modlist

None

Description

When mixing tree groups, the forest generator only respects the group weights at a cluster strength of 0.

As the cluster strength is increased, the resulting mix will start deviating from the intended ratio.

Reproduction:

Preparation:

  1. Create a simple world for test purposes, in there create a new (non prefab) ForestGeneratorEntity on a polyline of somewhat large size.

  2. Configure the ForestGeneratorEntity to only have a top level, which contains 2 tree groups, which each has only a single tree (e. g. picea_abies_3f and pinus_silvestris_3f, both with the exact same settings!)

  3. Set the weight of group A to 0.1 and the weight of group B to 0.9.

Now, change the cluster strength to different values, regenerate the forest and observe the result. Leave cluster radius at 15 for simplicity.

The "expected" result would be that no matter what, the ratio between tree types would very approximately follow the 0.1-0.9 ratio.

That is in fact the case when using a cluster strength of 0, but when increasing it, there will be big changes in the resulting mix of trees.

Additional information

  • As I mentioned, the issue can be measured before SelectTreeToSpawn(), so it is likely related to the actual group selection.

  • Whoever investigates this is welcome to contact me (tilw) on Discord to discuss the topic further.

Reactions

Activity

    23 days ago
  • tilw
    created issue23 days ago
  • tilw
    changed23 days ago
  • l909
    changed state to
    ASSIGNED
    23 days ago
  • tilw(edited)
    23 days ago
    tilw(edited)
    23 days ago

    Actually, the statistics were not correct, I think they might have been from a slightly modified version and not the vanilla script - sorry about that.

    There is definitely still an issue resulting in the generator not respecting weights though (if cluster strength is over 0), just not in the way I described. It seems like it's not actually a reverse relationship but the other way around with cluster strength further disfavoring the already low weight group.

    I have edited the report.

  • tilw
    changed23 days ago

You are not signed in. Please sign in to see more details and to reply.

State

Assigned
Issue key
ARMD-50
Access
Public
Space
Arma Reforger
Project
Reforger Modding
Creator
tilw
Created
Aug 28, 2026
Views
57