latest daily builds now expecting forward-slashes instead of periods for subdirectories?

well, it looks like the API has changed so that any files within folders now require forward-slashes instead of periods. For example:

[lua]storyboard.gotoScene(“ui.screens.screenSplash”)[/lua]

must now be written as

[lua]storyboard.gotoScene(“ui/screens/screenSplash”)[/lua]

(the dots changed to forward slashes). I didn’t see this documented anywhere… so no idea if it’s a change to the API, or just an issue that will be soon resolved in another daily.

Any official word on this? Anyone? Seems like a pretty significant change. [import]uid: 49447 topic_id: 25963 reply_id: 325963[/import]

@Producerism, mate, thanks for noticing this!

I was really thinking that I should use DOTS instead SLASHES

:S
Rodrigo. [import]uid: 89165 topic_id: 25963 reply_id: 105087[/import]

technically, you should be using dots instead of slashes. I’m hoping this was just an oversight that will be fixed soon - otherwise lots of code changes for me (and I imagine lots of others). [import]uid: 49447 topic_id: 25963 reply_id: 105091[/import]

Sure!!

I`m totally into the same boat as you.

Ansca , please, shed a light here!
Rodrigo. [import]uid: 89165 topic_id: 25963 reply_id: 105096[/import]

Well I have refused to put my Lua files in sub-directories because dots are just no the Unix file system way of specifying folders. We use slashes for that. We use them for other resources like image folders (images/filename.png or even images/splash/filename.png) and Lua files in folder should use the same syntax.

In the Unix world (which our phones iOS and Android are based on), a filename can have several periods in it. So myimage.group.png is a perfectly valid name. However on Windows, periods are to separate the filename from the extension. Dots used other wise is simply out of place.

For backward compatibility, Ansca should continue to allow dots for folder names so code doesn’t break, but they should deprecate it and have everyone convert to slashes.

Off my soap box!

[import]uid: 19626 topic_id: 25963 reply_id: 105124[/import]

I’ve just had problems with storyboard breaking with periods, had to change all to forward slash /. All other libs works fine with just the period though, I rather have forward slash than periods. [import]uid: 13560 topic_id: 25963 reply_id: 105144[/import]

if we’re making requests, I’d also like forward-slashes instead of periods in all paths, globally, as well.

But most of all, I just want to know if I change everything to forward slashes now, will it break again if this is “fixed?” Not the biggest issue ever, but I’d rather wait out a few more daily builds if so. [import]uid: 49447 topic_id: 25963 reply_id: 105176[/import]

Which build are you referring to?

A recent change has made it so that the Corona Simulator requires DOTS to be used and should not accept slashes (to remain consistent with Lua conventions as well as on-device behavior).

UPDATE: To clarify, build 2012.811 is the one with the change. Here is the commit message:

“casenum 13760: Simulator/Core: Modified ‘require’ to error out if the package name uses ‘/’ path separators instead of ‘.’. This is intended to avoid the problem of slashes working on the simulator but failing on devices. See the simulator console to help you track down the offending lines of code in your program.” [import]uid: 52430 topic_id: 25963 reply_id: 106168[/import]