just tried to add the director class as a library to a very minimal test project
first I added the director class via the preferences option in cpm
director.lua Macintosh HD:Users:macuser:Documents:work:corona development:libraries:director_by_ricardo_rauber_1_4:director.lua
i then created a new project and set it to use a base folder called “test” on the desktop
i then went to tools - code generator and ticked the checkbox next to director.lua and copied the following code to clipboard
-- cpmgen main.lua
local director = require("director")
i then opened main.lua in cpm and pasted this code into it and saved it. This is the only code that main.lua contains.
when i do a test launch i get the following error
Runtime error
…R1ngViHfymXo+nGymTFE+++TI/TemporaryItems/11/main.lua:3: module ‘director’ not found:resource (director.lu) does not exist in archive
no field package.preload[‘director’]
no file ‘/var/folders/Jd/JdR1ngViHfymXo+nGymTFE+++TI/TemporaryItems/11/director.lua’
no file ‘/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/director.lua’
no file ‘/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/director.blu’
stack traceback:
[C]: ?
[C]: in function ‘require’
…R1ngViHfymXo+nGymTFE+++TI/TemporaryItems/11/main.lua:3: in main chunk
Runtime error: …R1ngViHfymXo+nGymTFE+++TI/TemporaryItems/11/main.lua:3: module ‘director’ not found:resource (director.lu) does not exist in archive
no field package.preload[‘director’]
no file ‘/var/folders/Jd/JdR1ngViHfymXo+nGymTFE+++TI/TemporaryItems/11/director.lua’
no file ‘/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/director.lua’
no file ‘/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/director.blu’
stack traceback:
[C]: ?
[C]: in function ‘require’
…R1ngViHfymXo+nGymTFE+++TI/TemporaryItems/11/main.lua:3: in main chunk
any ideas what the problem is?
cpm Version 2.7.1 (2)
corona Version 2011.268 (2011.1.20) [import]uid: 11642 topic_id: 15109 reply_id: 315109[/import]