#1498

Vineyards: rows down the slope, lying on the ground, filled up to edges and roads (PR incoming)

OpenTachyopened 1d ago

Hi TecnaGamer,

I'm the author of World-to-BeamNG, a tool that exports real-world terrain into static BeamNG levels. Its vineyards follow the terrain, and I've ported that approach to BeamNG.Earth. Before I open the PR I'd like to check that it fits your plans.

What it changes

  • Row direction: on a slope (2 % or more), rows run along the fall line, like real hillside vineyards (Mosel, Douro, Lavaux). On flat ground, or where the fall line is within 15° of the parcel's edge, they keep following the edge as they do today.
  • Lying on the slope: each vine group is pitched and rolled to the graded ground. At the moment they stand level, so on a 10 % slope their ends float about 0.8 m above the ground or sink into it.
  • Filled up to edges and roads: the 15.9 m groups stay in the interior. The rest of each row, up to the parcel edge, roads, paths and buildings, is filled with Italy's single-row grape_vine. That removes the stairs and open triangles along slanted edges and roads. Groups also check all three of their rows now: until now an outer row could stand outside the parcel or on a road running along the rows.
  • No gaps on slopes: the group spacing takes the pitch into account, so groups meet end to end.

Format and compatibility

  • Only vegetation tiles that contain vines get two extra numbers per item (pitch, roll), so their stride is 10 instead of 8. Every other tile is unchanged.
  • No changes to earthfast, so no rebuild is needed.
  • An older mod reads the stride and skips the extra numbers, so vines simply stay level for it.
  • New group vine_row.
  • vegetation.VERSION 29 → 30, so cells are rebuilt once.

Cost: the fill rows add items along parcel edges. On a 1 ha test field it came to about 3× the items of groups alone. Larger, regular parcels add proportionally less. The existing per-cell cap stays.

Tests: new server tests in test_vegetation and mod tests in test_trees; the existing suites pass on dev. Checked in game.

Overlap with #1424: Madderose's French IGN RPG vineyards also feed vineyard_items. The two should complement each other (more vineyards from that PR, better layout from mine), but they'll conflict in code. I'm happy to rebase on top of #1424 if it lands first.

The branch is rebased on dev and ready; I'd open the PR against dev. Anything you'd like done differently, for example the item cost or the tile format?

Thanks!

Activity

1
Tachy1d ago

Before / after at Laufen (Baden-Württemberg):

before (BeamNG.Earth 1.10.1-beta)

after: