2025-07-18 19:50 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004660Spring engineLuapublic2015-01-31 23:44
Reporterzoggop 
Assigned ToKloot 
PrioritylowSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version98.0 
Target VersionFixed in Version 
Summary0004660: Spring.GetGroundExtremes unresponsive to in-game heightmap changes
DescriptionSpring.GetGroundExtremes() returns the extremes of the heightmap when it's first loaded only. If the heightmap is changed with lua functions such as Spring.AdjustHeightMap(), or deformed by explosions in such a way as to create a new minimum or maximum, Spring.GetGroundExtremes() will return the same values as it did when the map loaded.
Steps To Reproducecreate a gadget with the code:

if gadgetHandler:IsSyncedCode() then
function gadget:UnitCreated()
  Spring.Echo(Spring.GetGroundExtremes())
end
end

add this gadget to a map
play BA
/cheat
/give armpw
blow up commander in lowest part of the map
/give armpw
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0013971

zoggop (reporter)

Sorry about the first screenshot, it doesn't show you anything useful. Second screenshot (the jpg) shows elevation at cursor of 92 and Spring.GetGroundExtremes() returning a minimum elevation of 108.

~0013972

jK (developer)

just not true

~0013973

zoggop (reporter)

what does that mean?

~0013974

jK (developer)

that Spring.GetGroundExtremes() works period

you are doing either something wrong or you think wrong

~0013975

zoggop (reporter)

okay, i guess i'll this make a forum post

~0013976

Kloot (developer)

Last edited: 2015-01-31 23:38

View 2 revisions

No need for that, the only one wrong here is jK.

~0013977

Kloot (developer)

because it was too much goddamn effort for jK: https://github.com/spring/spring/commit/45c6f627662935a0261892c566f0c7ef4aa37337
+Notes

-Issue History
Date Modified Username Field Change
2015-01-31 21:35 zoggop New Issue
2015-01-31 21:35 zoggop File Added: Screenshot from 2015-01-31 12:30:12.png
2015-01-31 21:37 zoggop File Added: Screenshot from 2015-01-31 12:36:11.jpg
2015-01-31 21:39 zoggop Note Added: 0013971
2015-01-31 22:40 jK Note Added: 0013972
2015-01-31 22:53 zoggop Note Added: 0013973
2015-01-31 23:25 jK Note Added: 0013974
2015-01-31 23:30 zoggop Note Added: 0013975
2015-01-31 23:35 Kloot Note Added: 0013976
2015-01-31 23:38 Kloot Note Edited: 0013976 View Revisions
2015-01-31 23:44 Kloot Note Added: 0013977
2015-01-31 23:44 Kloot Status new => resolved
2015-01-31 23:44 Kloot Resolution open => fixed
2015-01-31 23:44 Kloot Assigned To => Kloot
+Issue History