-
Posts
597 -
Joined
Community Answers
-
Alienhead's post in How to prevent .. was marked as the answer
Since I seem to be having problems that no one else has been reporting, I've decided to reinstall my copy of windows this morning.
So far none of the BS I listed above has occurred.
-
Alienhead's post in VK wait for febces casuing hard crash was marked as the answer
https://helpx.adobe.com/substance-3d-painter/technical-support/technical-issues/gpu-issues/gpu-drivers-crash-with-long-computations-tdr-crash.html
TdrDelay and TdrDdiDelay.
-
Alienhead's post in Game is crashing in standalone version was marked as the answer
9 times out of 10 you are missing some media, only things in code that use the load function get moved to the zip. if your loading filename with a varaible like:
fish = {}
for t=1, 10 do
ent = Model:Load("models/fish"..t..".mdl")
end
then those files are not present in the media .ZIP file and you'll crash on a compiled run.
I ran into this when I first started out with LE too.
you can work around it by rem'ing some load commands.
-- ent = Model:Load("models/fish1.mdl")
-- ent = Model:Load("models/fish2.mdl")
-- ent = Model:Load("models/fish3.mdl")
and so forth. The zipper will pick up those files from the rem'ed code and you can still use variable naming to load mass media.
-
Alienhead's post in Terrain height at given point was marked as the answer
Make sure you have the correct pointer to the terrain object.
-- Cycle loaded map for x=0,world:CountEntities()-1 do local entity = world:GetEntity(x)
-- get terrain mesh if world:GetEntity(x):GetClass()==Object.TerrainClass then terrain=world:GetEntity(x) terrain=tolua.cast(terrain,"Terrain") end end Your code should be more like this :
local y = terrain:GetElevation(x, z)