(Case 8529) dots in module name throws an error

If you try to require a module with a dot in the file name, the simulator throws this error like this one where I try to require ‘hello.world.lua’

[text]
Copyright © 2009-2011 A n s c a , I n c .
Version: 2.0.0
Build: 2011.630
The file sandbox for this project is located at the following folder:
(/Users/mugen/Library/Application Support/Corona Simulator/dotsinmodulename-4FBDED52EEFBB1357CBA23578FA389BF)
Runtime error
…na/support_spriteloq/brock/dotsinmodulename/main.lua:1: module ‘hello.world’ not found:resource (hello.world.lu) does not exist in archive
no field package.preload[‘hello.world’]
no file ‘/Users/mugen/Desktop/prog/corona/support_spriteloq/brock/dotsinmodulename/hello/world.lua’
no file ‘/Users/mugen/Desktop/prog/corona/CoronaSDK.630/Corona Simulator.app/Contents/Resources/hello/world.lua’
no file ‘/Users/mugen/Desktop/prog/corona/CoronaSDK.630/Corona Simulator.app/Contents/Resources/hello/world.blu’
no file ‘/Users/mugen/Desktop/prog/corona/CoronaSDK.630/Corona Simulator.app/Contents/Resources/hello.blu’
stack traceback:
[C]: ?
[C]: in function ‘require’
…na/support_spriteloq/brock/dotsinmodulename/main.lua:1: in main chunk
Runtime error: …na/support_spriteloq/brock/dotsinmodulename/main.lua:1: module ‘hello.world’ not found:resource (hello.world.lu) does not exist in archive
no field package.preload[‘hello.world’]
no file ‘/Users/mugen/Desktop/prog/corona/support_spriteloq/brock/dotsinmodulename/hello/world.lua’
no file ‘/Users/mugen/Desktop/prog/corona/CoronaSDK.630/Corona Simulator.app/Contents/Resources/hello/world.lua’
no file ‘/Users/mugen/Desktop/prog/corona/CoronaSDK.630/Corona Simulator.app/Contents/Resources/hello/world.blu’
no file ‘/Users/mugen/Desktop/prog/corona/CoronaSDK.630/Corona Simulator.app/Contents/Resources/hello.blu’
stack traceback:
[C]: ?
[C]: in function ‘require’
…na/support_spriteloq/brock/dotsinmodulename/main.lua:1: in main chunk
[/text] [import]uid: 27183 topic_id: 16021 reply_id: 316021[/import]

Starting with build 618, module file names can’t have any ‘.’ characters (except for the .lua extension). This change was made to allow Lua files in subdirectories. This is mentioned in the release notes for build 618. I’ll update the API pages.

Thanks,
Tom [import]uid: 7559 topic_id: 16021 reply_id: 59523[/import]

Thanks for the heads up Tom. I definitely missed that in the release notes. [import]uid: 27183 topic_id: 16021 reply_id: 59527[/import]