Landscape generation - tweak land type placement distances

Abierto
#4,032 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp
Área
game-dev

Línea de trabajo

Start by locating the landscape-generation options, the code that places land types relative to water, mountains, and cliffs, and the configuration-loading path. Check existing tests or add focused coverage for configured distance limits and clamping; done means the supported distances can be configured within reasonable bounds and affect placement as intended.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Describe the solution you'd like
Instead of having fixed distances for the different land generation options (near water / far from water / on mountains / far from mountains and arround cliffs), allow the distances to be set via config file (clamped to some reasonable values). For example, "Near Water" option currently marks all tiles up to 25 tiles away from the water. It could be changed to be anywhere from 1 to 30-50 tiles away (could be a common setting for near water and far from water so they don't clash). UI options for these settings can be optional or could be placed in the landscape generation window.

Describe alternatives you've considered
It would be better to store these settings on a per scenario basis, but that requires new save format. A per scenario basis would allow finer control depending on how the scenario author designs the scenario. Maybe he wants to make a desert map with grass only near water, or he wants sand only near water for 1-2 tiles to have beaches. etc.

Additional context
Scenarios save only the option for the land type, not the actual distance it applies to, so this tweaking option won't affect existing save games. Scenarios with "only generate random landscape on game starts" could result in different looking maps due to new settings but would not make them incompatible.
Once new save format is added, these options can be used as default values when creating a new scenario.

Lenguaje dominante
C++
Estrellas
1.9k
Forks
221
Merge medio
1 d 37 min
PR fusionados (30 d)
1

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de OpenLoco/OpenLoco

Todos los issues de OpenLoco/OpenLoco

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.