Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

math2d plugin can't be found
Started by austincolepage Nov 16 2015 01:03 PM

2 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

austincolepage

[GLOBAL: userInfoPane.html]
austincolepage
  • Observer

  • 25 posts
  • Corona SDK

Getting this error when trying to run simulator on a project my friend made using math2d...

Module 'plugin_math2d' not found:

no field package.preload['plugin_math2d']
no file '/Users/Austin/Library/Application Support/Corona/Simulator/Plugins/plugin_math2d.lua'
no file '/Users/Austin/Documents/Avoid/plugin_math2d.lua'
no file '/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/plugin_math2d.lua'
no file '/Users/Austin/Library/Application Support/Corona/Simulator/Plugins/plugin_math2d.dylib'
no file './plugin_math2d.dylib'
no file '/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/plugin_math2d.dylib'


[TOPIC: post.html]
#2

happymongoose

[GLOBAL: userInfoPane.html]
happymongoose
  • Contributor

  • 351 posts
  • Corona SDK

Hi there,

 

I ran into this the other day - have you activated their plug-in for your Corona account?

 

If you go to the Math2D page, and the plug-in to your cart, you'll be able to activate the plug-in, then you should be able to include it in your project and run it successfully.



[TOPIC: post.html]
#3

schroederapps

[GLOBAL: userInfoPane.html]
schroederapps
  • Contributor

  • 466 posts
  • Corona SDK

Based on the error messages you copied into your post, it looks like you might be requiring the plugin as "plugin_math2d" - if that's the case, then make sure you are requiring it 

local math2d = require "plugin.math2d" -- replace underscore(_) with period(.)

And double-check the documentation at http://roaminggamer.com/math2d/ to make sure it's being utilized correctly. Good luck!




[topic_controls]
[/topic_controls]