View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0002395 | Spring engine | General | public | 2011-04-07 07:01 | 2011-04-10 13:48 | ||||
Reporter | Forboding Angel | ||||||||
Assigned To | |||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | no change required | ||||||
Product Version | 0.82.7.1 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0002395: SonarDistance <-> SonarRadius - Neither work on ground units | ||||||||
Description | Top 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. | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|
jK (developer) 2011-04-07 07:09 |
INPUT != OUTPUT Means the Lua UnitDefs table is NOT an example for the supported tags in the unitdefs.lua! |
Forboding Angel (reporter) 2011-04-07 07:15 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 (reporter) 2011-04-07 09:15 |
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 (reporter) 2011-04-07 21:14 |
"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 (reporter) 2011-04-07 21:18 |
Nice! Thanks flozi =D |
Kloot (developer) 2011-04-10 13:48 |
bai |
![]() |
|||
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 |