Jump to content

Glitch in LUA script


Recommended Posts

So I tried doing tutorial number 1 of the scripting lessons. I created a script, and tried to run it after attaching it to the fan and got the following error: Failed to load model "C:/Users/Owner/Documents/Leadwerks/Projects/deletetutorial/fan_blades.mdl".

 

I also notice the error Error: Failed to load material "C:/Users/Owner/Documents/Leadwerks/Projects/deletetutorial/fan1.mat".

in red text when loading the map in general on the bottom output box.

post-21875-0-97829300-1492227342_thumb.png

post-21875-0-41860500-1492227360_thumb.png

Link to comment
Share on other sites

Your right. There is a problem with this tutorial.

 

The problem is that the fan model is not in the folder ( nor are its materials) that Leadwerks is expecting.

 

Solution: drag a new fan from Assets- Models- Fan- fan_blades.mdl near to where the original model is.

 

Click on the old fan and press delete (on your keyboard).

 

Now attach your "MyScript.Lua" script to your new fan. As described in the tutorial.

 

Your script should work now.

 

You will get an error about "fan1_dot3.tex" missing but your game should work.

  • Upvote 1
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...