Advertisement
Guest User

Untitled

a guest
Mar 10th, 2014
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. Ok, so I have made a mod called "skybox", and in it is "init.lua" and "textures". In the textures folder is "skybox_day.png" and "skybox_night.png".
  2.  
  3. The code I am using is this:
  4.  
  5. minetest.register_on_joinplayer(function(player)
  6. minetest.after(0, function()
  7. textures ={
  8. "skybox_day.png",
  9. "skybox_night.png",
  10. }
  11.  
  12. player:set_sky({r=0, g=0, b=0, a=0},"skybox", textures)
  13. end)
  14. end
  15.  
  16. And I get this error:
  17.  
  18. 12:52:27: ERROR[main]: ========== ERROR FROM LUA ===========
  19. 12:52:27: ERROR[main]: Failed to load and run script from
  20. 12:52:27: ERROR[main]: C:\Users\Rhys\Documents\minetest-0.4.9-3rdpv2\bin\..\games\minetest_game\mods\skybox\init.lua:
  21. 12:52:27: ERROR[main]: ...9-3rdpv2\bin\..\games\minetest_game\mods\skybox\init.lua:10: ')' expected (to close '(' at line 1) near '<eof>'
  22. 12:52:27: ERROR[main]: ======= END OF ERROR FROM LUA ========
  23. 12:52:27: ERROR[main]: Server: Failed to load and run C:\Users\Rhys\Documents\minetest-0.4.9-3rdpv2\bin\..\games\minetest_game\mods\skybox\init.lua
  24. 12:52:27: ERROR[main]: ModError: ModError: Failed to load and run C:\Users\Rhys\Documents\minetest-0.4.9-3rdpv2\bin\..\games\minetest_game\mods\skybox\init.lua
  25.  
  26. What am I doing wrong?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement