I'm trying to load a .lua file in the windows corona simulator and an error pops up saying "Only main.lua can be opened". I'm saving the files as the only .lua format I can but it's not working. Any ideas as to what special brand of stupidity I have committed?
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
.lua file error
Your primary file needs to be named main.lua. That file can in turn load other lua files through require().
I had the same problem, at first i was just trying to use the default windows text editor and i just put the .lua at the end of my file name when saving. What you need to do is use an actual .lua editor, im using LuaEdit, its free and works great thus far, here is the link
http://luaedit.luaforge.net/
you then can save in the proper .lua format and it should work for you!
You should make sure you have show file name extensions turned on. What's probably happening is you're saving main.lua.txt and the simulator doesn't know to open it.
:)
Its working now! Thanks guys!
views:1605 update:2011/10/10 15:46:04
热门文章
GameCenter LeaderBoards and Achievements Enabled Through OpenFeint
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
相关文章
Label control documentation
Joints
Using Dynamic Image Resolution without Dynamic Content Scaling
Butterfly Adventures
dynamic scaling content (dsc)
accessing elements/groups in for loop
iPad Game Video Creation?
Amazon Store - Views of a Developer (not me)
Birdsong Quiz / Vogelstimmenquiz
Want a TabBar in your app?
Joints
Using Dynamic Image Resolution without Dynamic Content Scaling
Butterfly Adventures
dynamic scaling content (dsc)
accessing elements/groups in for loop
iPad Game Video Creation?
Amazon Store - Views of a Developer (not me)
Birdsong Quiz / Vogelstimmenquiz
Want a TabBar in your app?
corona forums © 2003-2011