Arska134 Posted July 8, 2013 Posted July 8, 2013 Why Day & Night script isn't working anymore? It works in editor, but when i compile my project in Blitzmax sky is black and script is missing. Still working with my old project even after re-compile. I tried to use old shaders.pak and scripts but still nothing shows up. Quote Windows 7 Ultimate | Intel Core i7 930 @ 2.80 ghz | Nvidia GeForce GTX 560 | Leadwerks 2.5 | Blitzmax
ESP Posted July 8, 2013 Posted July 8, 2013 Blitzmax Quote Programmer , Intel Quad core, NVIDIA GeForce GT 220, Windows 7 Pro, Galaxy Tab 2 ( 7" and 10"), LE2,LE3,3DWS
Arska134 Posted July 8, 2013 Author Posted July 8, 2013 LE2 with Blitzmax. I don't understand why it's not working anymore. O_o And i think environment_atmosphere.gmf was working months ago when i just put it in map with editor, but now i need to load skybox in code. I think problem is same with this script. Any way to load script in Blitzmax code? I really need this script in my project. Quote Windows 7 Ultimate | Intel Core i7 930 @ 2.80 ghz | Nvidia GeForce GTX 560 | Leadwerks 2.5 | Blitzmax
AggrorJorn Posted July 8, 2013 Posted July 8, 2013 Have you tried a new scene and with a newly downloaded skybox? Perhaps something was edited by accident that causes the problems. Quote
Arska134 Posted July 8, 2013 Author Posted July 8, 2013 Is environment_atmosphere.gmf required with 'Day night script'? Edit: When i do this in my code: Print entityposition(FindChild( scene, "daynight_2" )).x It gives correct X axis of daynight entity. So it exists. Quote Windows 7 Ultimate | Intel Core i7 930 @ 2.80 ghz | Nvidia GeForce GTX 560 | Leadwerks 2.5 | Blitzmax
Arska134 Posted July 8, 2013 Author Posted July 8, 2013 Waterplane isn't working either... What happened to LE2 Quote Windows 7 Ultimate | Intel Core i7 930 @ 2.80 ghz | Nvidia GeForce GTX 560 | Leadwerks 2.5 | Blitzmax
Arska134 Posted July 8, 2013 Author Posted July 8, 2013 More info! I have been using old "lua-gluefunctions.bmx". When i created new one with this code: Framework leadwerks.engine Import "C:\Leadwerks Engine SDK\BMX\Framework\framework.bmx" Import lugi.generator AppTitle:String = "Create Lua Functions" generateGlueCode("lua-gluefunctions.bmx") Notify("All Done", 0) End Then is compile my project and i get error from new lua-gluefunctions.bmx. "Compile Error Missing function parameter 'extra'" Quote Windows 7 Ultimate | Intel Core i7 930 @ 2.80 ghz | Nvidia GeForce GTX 560 | Leadwerks 2.5 | Blitzmax
Arska134 Posted July 9, 2013 Author Posted July 9, 2013 Alright it's solved! My code was missing "SetScriptObject("fw", fw)" Thanks for Dennis in Google+ 1 Quote Windows 7 Ultimate | Intel Core i7 930 @ 2.80 ghz | Nvidia GeForce GTX 560 | Leadwerks 2.5 | Blitzmax
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.