View Single Post
  #7  
Unread 07-31-2011, 05:25 PM
Garan's Avatar
Garan Garan is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Oct 2010
Posts: 343
Your "imports" do not include the path to the Class.lua file. You need to add:
import Turbine.Utils

and your original code will work. A word of advice, it is simpler to copy the Turbine sample files that you find yourself using into your own project and import them from there. That way if you ever build something worthy of publishing you won't have to worry about users having the Turbine samples. You also won't have to worry about changes to the Turbine samples breaking your plugin (back in November, Turbine moved the Class.lua file from one folder to another and broke a number of plugins).

Last edited by Garan : 07-31-2011 at 05:32 PM.
Reply With Quote