2025-08-27 23:07 CEST

spring: maintenance 4bca5217 Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
Gajo Petrovic Gajo Petrovic maintenance 2018-12-20 12:32:03 maintenance a0687b32
Changeset Fix simple map generator in form of a few hacks:
- workaround (hacky & slow) that prevents segfault when generating maps
  - changing mapSeed with Spring.Reload has no effect (probably because of caching? avoid caching somehow altogether?)
  - to reload with new mapSeed, specify a different mapName as well
- generate maps of arbitrary size (point out to some issues there..)

Further details in the source code comments.

Not the pretties commit but it gets us something usable and useful right now.
I currently use it as https://github.com/Spring-SpringBoard/SpringBoard-Core/blob/42a903cd66769f799ecae39eab418dccea7079c2/scen_edit/view/dialog/new_project_dialog.lua#L157-L183
mod - rts/Map/Generation/SimpleMapGenerator.cpp Diff ] File ]
mod - rts/System/FileSystem/ArchiveScanner.cpp Diff ] File ]