View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0005012 | Spring engine | Lua | public | 2015-12-16 21:40 | 2015-12-16 22:57 | ||||
Reporter | The_Yak | ||||||||
Assigned To | |||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 100.0+git | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0005012: minerals.lua shader trees are misaligned | ||||||||
Description | The crystal trees on Zed are misaligned to the ground in latest engine, but still work fine in 100. Screenshot: http://i.imgur.com/JzX5zUy.jpg\ The script in question that spawns and shades the trees: https://github.com/The-Yak/crystaltree/blob/master/LuaRules/Gadgets/minerals.lua | ||||||||
Steps To Reproduce | Load map Zed 1.7 on latest engine https://springfiles.com/spring/spring-maps/zed | ||||||||
Additional Information | Relevant code(?): local spSetFeatureDirection = Spring.SetFeatureDirection local spSetFeatureAlwaysVisible = Spring.SetFeatureAlwaysVisible local spTransferFeature = Spring.TransferFeature local rand = math.random function gadget:FeatureCreated(fid) if (fid and spGetFeatureDefID(fid) == minerals_FDefID) then spSetFeatureAlwaysVisible(fid, true) spSetFeatureDirection(fid, 2*rand() - 1, 0, 2*rand() - 1) end end | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|
Anonymous (viewer) 2015-12-16 22:57 |
Fix a2f352641f5d73e2a72c4ff154c377fff88eb8f4 committed to develop branch: fix 0005012, repo: spring changeset id: 5981 |