2019-08-21 02:49 CEST

View Issue Details Jump to Notes ] Related Changesets ]
IDProjectCategoryView StatusLast Update
0005012Spring engineLuapublic2015-12-16 22:57
ReporterThe_Yak 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version100.0+git 
Target VersionFixed in Version 
Summary0005012: minerals.lua shader trees are misaligned
DescriptionThe 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 ReproduceLoad map Zed 1.7 on latest engine https://springfiles.com/spring/spring-maps/zed
Additional InformationRelevant 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
TagsNo tags attached.
Checked infolog.txt for lua Errors
Attached Files

-Relationships
+Relationships

-Notes

~0015384

Anonymous (viewer)

Fix a2f352641f5d73e2a72c4ff154c377fff88eb8f4 committed to develop branch: fix 0005012, repo: spring changeset id: 5981
+Notes

+Related Changesets

-Issue History
Date Modified Username Field Change
2015-12-16 21:40 The_Yak New Issue
2015-12-16 22:57 Changeset attached => spring develop a2f35264
2015-12-16 22:57 Anonymous Note Added: 0015384
2015-12-16 22:57 Anonymous Status new => resolved
2015-12-16 22:57 Anonymous Resolution open => fixed
+Issue History