2025-06-23 14:19 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002395Spring engineGeneralpublic2011-04-10 13:48
ReporterForboding Angel 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
Product Version0.82.7.1 
Target VersionFixed in Version 
Summary0002395: SonarDistance <-> SonarRadius - Neither work on ground units
DescriptionTop says it all.

According to: http://springrts.com/wiki/Lua_UnitDefs

 UnitDefs[216]["sonarJamRadius"] = 0,
 UnitDefs[216]["sonarRadius"] = 300,
 UnitDefs[216]["sonarStealth"] = false,

^^ Those are the only sonar related tags in the engine, except for the small quirk that sonar radius does not work on scout planes and you HAVE to use sonardistance.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0006536

jK (developer)

INPUT != OUTPUT
Means the Lua UnitDefs table is NOT an example for the supported tags in the unitdefs.lua!

~0006537

Forboding Angel (reporter)

Last edited: 2011-04-07 07:15

Ok. There is no better resource for tags, JK. Short of busting open the engine code and me and just about every other content dev here will pass on that little guilty pleasure.

Regardless. SonarDistance isn't working for ground based units.

~0006539

Google_Frog (reporter)

Forb, that page is not a resource for tag AT ALL, you are completely wrong and are misinterpreting the page. That page has the values in the unitdef table that can be read by lua. Many actual unitdef tags are missing from the Lua UnitDefs table, others have been renamed for absolutely no logical reason (for example there is no tag 'health' in a unitdefs) and some values are combinations of multiple unitdef tags or other random things about the unit that the engine thought it would be good for lua to have easy access to.

~0006542

FLOZi (reporter)

"Short of busting open the engine code and me and just about every other content dev here will pass on that little guilty pleasure."

Quite incorrect, every single game dev should have it bookmarked

https://github.com/spring/spring/blob/master/rts/Sim/Units/UnitDef.cpp

~0006543

Forboding Angel (reporter)

Nice! Thanks flozi =D

~0006549

Kloot (developer)

bai
+Notes

-Issue History
Date Modified Username Field Change
2011-04-07 07:01 Forboding Angel New Issue
2011-04-07 07:09 jK Note Added: 0006536
2011-04-07 07:15 Forboding Angel Note Added: 0006537
2011-04-07 07:15 Forboding Angel Note Edited: 0006537
2011-04-07 09:15 Google_Frog Note Added: 0006539
2011-04-07 21:14 FLOZi Note Added: 0006542
2011-04-07 21:18 Forboding Angel Note Added: 0006543
2011-04-10 13:48 Kloot Note Added: 0006549
2011-04-10 13:48 Kloot Status new => closed
2011-04-10 13:48 Kloot Resolution open => no change required
+Issue History