beo6 Posted January 22, 2010 Share Posted January 22, 2010 Hello everyone and here is my (first?) Question after some time with this nice Engine and even nicer Forum. I now tried to do most of the stuff in LUA and use the Simple scene loader most of it just works like in the editor except 2 things. the Sky is just Black. I can not find a function to run Game-LUA-Scripts like in the Editor when i select the FPS-Controller or Car LUA Script. In the simple-scene-loader BlitzMax Code is the PlayerController included in BMX-Code, so there is no possibility to just run the existing LUA-Controllers? i didnt looked into the Editor-LUA-Game-scripts so maybe the black Sky needs the Game-Controller in LUA. Sorry if this are stupid Questions or they get answered already somewhere. Hope in the future i can also help or post some Code for you all. Thanks Quote Link to comment Share on other sites More sharing options...
Marleys Ghost Posted January 22, 2010 Share Posted January 22, 2010 Good morning beo6, ok firstly just to clarify when you say "1.the Sky is just Black." do you mean when loading a "scene".sbx with the Simple scene loader ? Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head" Link to comment Share on other sites More sharing options...
klepto2 Posted January 22, 2010 Share Posted January 22, 2010 The black sky was a problem i had myself as i have switched from lua back to bmx for my main project. Have you done: 'To Generate an updated lua-gluefunctions.bmx uncomment the lines tagged [1] 'and comment out the line tagged [2]. Run the code once, then swap back. 'lua-gluefunctions.bmx needs to be inside the App directory. Import "PATH TO YOUR 2.3 SDK FOLDER\BMX\Framework\framework.bmx" 'Import lugi.generator '[1] Include "lua-gluefunctions.bmx" '[2] 'generateGlueCode("lua-gluefunctions.bmx") '[1] 'End '[1] Also you need the script folder (which you find in the root directory of the editor) in the folder your app is in. After I have done this i could load the scene as if i have opened it in the editor. Quote Windows 10 Pro 64-Bit-Version NVIDIA Geforce 1080 TI Link to comment Share on other sites More sharing options...
beo6 Posted January 23, 2010 Author Share Posted January 23, 2010 oh. Thanks for all your answers, i looked again at my Files and found out that i have used a wrong version of my SBX File in my Game-Folder . there was no Atmosphere. Sometimes i am Blind so i think my second question can be answered: I have to use Thingoids for Character-Control in LUA. Quote Link to comment Share on other sites More sharing options...
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.