Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

NanoSVG not found
Started by danielbeer1376 Jan 24 2019 07:38 PM

2 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

danielbeer1376

[GLOBAL: userInfoPane.html]
danielbeer1376
  • Enthusiast

  • 63 posts
  • Corona SDK

I authorized nanosvg on the marketplace and in terms of code have:

-- game.lua (loaded from main.lua)
local nanosvg = require('plugin.nanosvg');


-- from build.settings
settings = {
	...
	plugins =
	{
		["plugin.nanosvg"] =
		{
			publisherId = "com.coronalabs"
		},
	},
	...
}

I'm not sure what I'm doing wrong, as I continue to get the following error when running in the simulator:

ItimqxP.png

I also get a warning in the console "plugin.nanosvg is not configured in build.settings", which immediately precedes the runtime error.

This is my first time using a plugin so I'm not sure if I'm missing anything, but I also couldn't find much information about installing or using plugins on the documentation.

 

Thanks in advance.

 

EDIT: I think I may just not know how to use plugins since I got the same issue trying to load utf8 in the same manner



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,243 posts
  • Enterprise

Can you post your entire build.settings?

 

Rob



[TOPIC: post.html]
#3

danielbeer1376

[GLOBAL: userInfoPane.html]
danielbeer1376
  • Enthusiast

  • 63 posts
  • Corona SDK

I don't know why but it just suddenly resolved itself without me changing anything. Thanks.

 

EDIT: Now that I have it working it seems pretty incompetent for anything more than very simple graphics, so I'll just have to convert my vector graphics to PNG




[topic_controls]
[/topic_controls]