View Issue Details

IDProjectCategoryView StatusLast Update
0004660Spring engineLuapublic2015-01-31 23:44
Reporterzoggop Assigned ToKloot  
PrioritylowSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version98.0 
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.
Attached Files
Screenshot from 2015-01-31 12:30:12.png (Attachment missing)
Screenshot from 2015-01-31 12:36:11.jpg (Attachment missing)
Checked infolog.txt for Errors

Activities

zoggop

2015-01-31 21:39

reporter   ~0013971

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.

jK

2015-01-31 22:40

developer   ~0013972

just not true

zoggop

2015-01-31 22:53

reporter   ~0013973

what does that mean?

jK

2015-01-31 23:25

developer   ~0013974

that Spring.GetGroundExtremes() works period

you are doing either something wrong or you think wrong

zoggop

2015-01-31 23:30

reporter   ~0013975

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

Kloot

2015-01-31 23:35

developer   ~0013976

Last edited: 2015-01-31 23:38

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

Kloot

2015-01-31 23:44

developer   ~0013977

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

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
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