Jump to content

Day & Night Script not working anymore


Arska134
 Share

Recommended Posts

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.

Windows 7 Ultimate | Intel Core i7 930 @ 2.80 ghz | Nvidia GeForce GTX 560 | Leadwerks 2.5 | Blitzmax

Link to comment
Share on other sites

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.

Windows 7 Ultimate | Intel Core i7 930 @ 2.80 ghz | Nvidia GeForce GTX 560 | Leadwerks 2.5 | Blitzmax

Link to comment
Share on other sites

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.

Windows 7 Ultimate | Intel Core i7 930 @ 2.80 ghz | Nvidia GeForce GTX 560 | Leadwerks 2.5 | Blitzmax

Link to comment
Share on other sites

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'"

Windows 7 Ultimate | Intel Core i7 930 @ 2.80 ghz | Nvidia GeForce GTX 560 | Leadwerks 2.5 | Blitzmax

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...