View Issue Details

IDProjectCategoryView StatusLast Update
0002395Spring engineGeneralpublic2011-04-10 13:48
ReporterForboding Angel Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version0.82.7.1 
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

Activities

jK

2011-04-07 07:09

developer   ~0006536

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

Forboding Angel

2011-04-07 07:15

reporter   ~0006537

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.

Google_Frog

2011-04-07 09:15

reporter   ~0006539

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.

FLOZi

2011-04-07 21:14

reporter   ~0006542

"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

Forboding Angel

2011-04-07 21:18

reporter   ~0006543

Nice! Thanks flozi =D

Kloot

2011-04-10 13:48

developer   ~0006549

bai

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