CPM with Zwoptex - HELP!!!

Anyone used these two together?

does the datafile need to be loaded from the library - if so how do you do this

I can’t even get a simple -require “test.lua” - to work…

also had to manually rename the data file from test.plist to test.lua for it to be recognised by CPM

I though zwoptex was the ‘standard’ way to go and can’t understand why I’m hitting these issues

all help gratefully appreciated [import]uid: 3093 topic_id: 11169 reply_id: 311169[/import]

CPM will recognize anything – even stuff it doesn’t recognize. In other words, throw a file into the asset list and it will be included in a launch or a build. CPM doesn’t have to understand what a file is for to know that you want it included.

I’ve never used Zwoptex (I “standardized” on TexturePacker myself) but the process is the same with any tool and CPM – have the other tool generate the code you need and then drag those files into the asset list of the project in CPM. You should then be able to reference them with require().

Jay [import]uid: 9440 topic_id: 11169 reply_id: 40597[/import]

I use both of these together and have no problems.

Did you add the assets (the png and the lua) file into CPM?

Did you select corona game edition when exporting coordinates? [import]uid: 27671 topic_id: 11169 reply_id: 40611[/import]


CPM will recognize anything – even stuff it doesn’t recognize. In other words, throw a file into the asset list and it will be included in a launch or a build. CPM doesn’t have to understand what a file is for to know that you want it included.

To that end, is it possible to update the file extensions that CPM is aware of, such that other files, like a .TTF file will be listed as a “font” instead of an “audio” file etc.? [import]uid: 5317 topic_id: 11169 reply_id: 40629[/import]

well, have you change the format to CoronaSDK at Publish Settings in Zwoptex?

cause the default it save to Zwoptex generic .plist
[import]uid: 7427 topic_id: 11169 reply_id: 40669[/import]

Thanks for feedback

I got this to work after an afternoon of pulling out what little hair I have out :slight_smile: like a lot of things with Corona its the really easy stuff that tends to throw you - the complex stuff is made easy

  1. I used the example in the Horse Animation Corona docs, the code in the Zwoptex docs gave an error that appear to say the module hadn’t loaded - which is why I thought it was something to do with CPM and libraries, a red herring pointed out above.

  2. I had to rename the file, which only worked if I saved it initially without an extension. Again I’m new to Mac…

Yes I set up everything I could in Zwoptex to output in Corona format, the text file even had a version of Corona docs. [import]uid: 3093 topic_id: 11169 reply_id: 40683[/import]