NeonShaped module : Module 'plugin_utf8' not found

I’m using the Neon shapes plugin by René Aye

I have one line of code

local Neon = require( "devilsquid.neonshapes.neon" )

which generates an error

Corona Simulator Runtime error Module 'plugin\_utf8' not found: no field package.preload['plugin\_utf8'] no file '/Users/d/Library/Application Support/Corona/Simulator/Plugins/plugin\_utf8.lua' no file '/Users/d/Sites/ramen/app/sixBeforeSix/plugin\_utf8.lua' no file '/Applications/Corona-3268/Corona Simulator.app/Contents/Resources/plugin\_utf8.lua' no file '/Users/d/Library/Application Support/Corona/Simulator/Plugins/plugin\_utf8.dylib' no file './plugin\_utf8.dylib' no file '/Applications/Corona-3268/Corona Simulator.app/Contents/Resources/plugin\_utf8.dylib' File: module 'plugin\_utf8' not found stack traceback: [C]: in function 'require' ?: in function 'require' devilsquid/util/fontmanager.lua:16: in main chunk [C]: in function 'require' ?: in function 'require' devilsquid/neonshapes/neon.lua:16: in main chunk [C]: in function 'require' ?: in function 'require' main.lua:14: in main chunk

I’m following the instructions here https://devilsquid.com/create-flickering-neon-effects-corona-sdk/

I have the  devilsquid folder in my root of your Corona SDK project.

Any ideas? Thanks.

I’m pretty sure you need to be a member of his site, and download the plugin, then put it in your project.

Intro Video

Installation

To Download the NeonShapes you need to be part of our free Basic membership or of our paid Premium plan. If you are already a member, you can dowload the latest version of this module in your member download section.

You can’t just add that line to a project and have it work.

Hi there,

thanks for the reply.

I have indeed downloaded the module and placed in the  the devilsquid folder in my root of my Corona SDK project.

That’s not all there is to it.  You need the util folder too.

Testing, and will type steps in a moment.

thanks for your assistance.

I have the following in the devilsquid folder

drwxr-xr-x@ 12 d  staff   384 16 Apr 17:23 neonshapes drwxr-xr-x@ 35 d  staff  1120 16 Apr 17:23 util

the contents of the util folder

[devilsquid]$ ls -la util total 728 drwxr-xr-x@ 35 d staff 1120 16 Apr 17:23 . drwx------@ 5 d staff 160 16 Apr 17:23 .. -rw-r--r--@ 1 d staff 8196 16 Apr 23:00 .DS\_Store -rw-r--r--@ 1 d staff 1293 8 Mar 2016 README.md -rw-r--r--@ 1 d staff 7143 12 Jul 2016 arc.lua -rw-r--r--@ 1 d staff 3256 3 Sep 2017 base64.lua drwxr-xr-x@ 7 d staff 224 12 Jul 2016 bezier -rw-r--r--@ 1 d staff 7927 3 Sep 2017 bitmapfontbutton.lua -rw-r--r--@ 1 d staff 34519 8 Mar 2016 camera.lua -rw-r--r--@ 1 d staff 5693 8 Mar 2016 cameralayer.lua -rw-r--r--@ 1 d staff 1607 24 Feb 2016 centeredMultilineText.lua -rw-r--r--@ 1 d staff 4174 24 Feb 2016 collision.lua -rw-r--r--@ 1 d staff 3486 3 Sep 2017 device.lua drwxr-xr-x@ 8 d staff 256 3 Sep 2017 doc -rw-r--r--@ 1 d staff 8462 3 Sep 2017 eventdispatcher.lua -rw-r--r--@ 1 d staff 3578 24 Feb 2016 file.lua -rw-r--r--@ 1 d staff 81172 3 Sep 2017 fontmanager.lua -rw-r--r--@ 1 d staff 3962 3 Sep 2017 fps.lua -rw-r--r--@ 1 d staff 15045 3 Sep 2017 helper.lua -rw-r--r--@ 1 d staff 4107 24 Feb 2016 imageblur.lua drwxr-xr-x@ 5 d staff 160 16 Apr 17:23 imagesize -rw-r--r--@ 1 d staff 2902 12 Jul 2016 loadsavetable.lua -rw-r--r--@ 1 d staff 1624 3 Sep 2017 log.lua -rw-r--r--@ 1 d staff 9289 3 Sep 2017 logger.lua -rw-r--r--@ 1 d staff 42982 12 Jul 2016 mathlib.lua -rw-r--r--@ 1 d staff 8692 3 Apr 2016 object.lua -rw-r--r--@ 1 d staff 1622 3 Sep 2017 particleDesigner.lua -rw-r--r--@ 1 d staff 11783 17 May 2016 particledesignerplus.lua -rw-r--r--@ 1 d staff 10402 24 Feb 2016 preference.lua -rw-r--r--@ 1 d staff 8964 8 Mar 2016 quadtree.lua -rw-r--r--@ 1 d staff 2133 24 Feb 2016 storehelper.lua -rw-r--r--@ 1 d staff 3808 8 Mar 2016 touchzone.lua -rw-r--r--@ 1 d staff 3674 17 May 2016 transitionmanager.lua -rw-r--r--@ 1 d staff 733 3 Sep 2017 validation.lua -rw-r--r--@ 1 d staff 10807 3 Sep 2017 vector2d.lua

and the contents of the neon shapes folder

[devilsquid]$ ls -la neonshapes/ total 224 drwxr-xr-x@ 12 d staff 384 16 Apr 17:23 . drwx------@ 5 d staff 160 16 Apr 17:23 .. -rw-r--r--@ 1 d staff 14340 16 Apr 20:55 .DS\_Store -rw-r--r--@ 1 d staff 542 28 Feb 2016 README.md drwxr-xr-x@ 7 d staff 224 16 Apr 17:23 doc drwxr-xr-x@ 6 d staff 192 28 Feb 2016 examples drwxr-xr-x@ 24 d staff 768 16 Apr 17:23 fonts drwxr-xr-x@ 11 d staff 352 16 Apr 17:23 img -rw-r--r--@ 1 d staff 45677 23 May 2016 neon.lua -rw-r--r--@ 1 d staff 15101 23 May 2016 neonbezierpath.lua -rw-r--r--@ 1 d staff 132 28 Feb 2016 neonshapes.sublime-project -rw-r--r--@ 1 d staff 24006 24 May 2016 neonshapes.sublime-workspace

Looks like his code depends on the utf-8 plugin: https://docs.coronalabs.com/plugin/utf8/index.html

Make sure to put this in build.settings file:

   plugins =    {       ["plugin.utf8"] = { publisherId = "com.coronalabs" },    },   

For example, my full build.settings file for running his test code looks like this:

-- ============================================================= -- Minimalistic 'starter' build.settings -- ============================================================= -- https://docs.coronalabs.com/guide/distribution/buildSettings/index.html -- https://docs.coronalabs.com/guide/tvos/index.html -- https://docs.coronalabs.com/guide/distribution/win32Build/index.html -- https://docs.coronalabs.com/guide/distribution/osxBuild/index.html -- ============================================================= local orientation = 'portrait' -- portrait, landscapeRight, ... settings = { ------------------------------------------------------------------------------- -- Orientation Settings ------------------------------------------------------------------------------- orientation = { default = orientation, supported = { orientation }, }, plugins = { ["plugin.utf8"] = { publisherId = "com.coronalabs" }, }, --[[build = { neverStripDebugInfo = true, }, --]] }

I tried requiring example0.lua from main.lua to essentially run the scripts in it.

I got some missing image warnings.

So, I copied the img folder (from the downloaded zip) into ‘devilsquid/neonshapes/’

Now it runs fine.

sent you a pm with my project attached.

scroll to top of screen here and you should see a little mail icon with a notification bubble.  Click it.

Hi again,

Many thanks for going above and beyond the call of duty. Using your examples I was able to get it working.

Glad to hear it.  Welcome to the community.

It’s a bit early and not related to this question, but for future reference I have many coded answers to forums questions here:

, plus other stuff: