This is what i get when i tried your .dll on my WindowsPhone Monogame Project. ( 3.2 )
I think i need to recompile it for WP.
This is what i get when i tried your .dll on my WindowsPhone Monogame Project. ( 3.2 )
I think i need to recompile it for WP.
According to this blog post, that error could be caused because the file was downloaded in a zip file and Window’s is blocking it.
Apparently, if you right-click the file in Windows Explorer and go to Properties you should see an “Unblock” button. Try clicking that and see if the issue goes away.
Sorry, I had no idea this would happen, it’s the first time I’ve seen that error.
@craftworkgames Yeap, worked when i did that.
Just namespace is changed a little
using FarseerPhysics.Dynamics;
using FarseerPhysics.Portable.Dynamics;
Ah right… that namespace change was not intentional.
Must’ve been when I did some re-factoring with Reshaper recently.
Anyway, that’s great news. It means we CAN have a reusable physics library that works with MonoGame
Yes, one week ago i don’t have any idea how to work with farseer + monogame.
Now, we have a couple alternative
MonoGame Portable is not working for me. I always get some error messages: How can I install the portable version of MonoGame?
@craftworkgames
Is it possible to use the Farseer DebugView with MonoGame?
Yeah, this is why it is usually a lot easier to use NuGet to distribute dll’s as it handles all the component registration stuff
If you got queries about the portable version @fox9 its better to log it on my MonoGame fork rather than on here, as its not officially part of the main MonoGame project (yet)
Just started blogging again with this : How to use Farseer with Monogame and Windows Phone
Nothing fancy and probably you guys now all this but, hey.
@semihmasat
Will your Farseer .dll work with the original MonoGame or just with SimonDarksideJ’s portable version of MonoGame?
I’m not sure if I should use the original or the portable version of MonoGame.
@semihmasat
Which version of Visual Studio are you using in your tutorial? I tried to add Farseer Physics Engine to my solution, but some of the Farseer projects are not getting loaded. Which version of Visual Studio should I use to add Farseer correctly to my solution? I use VS 2013.
I’m using VS2013 Ultimate but i don’t think that whould be a issue.
You only need one Project to load and it is “Farseer Physics MonoGame”. It is OK that others are not loaded.
@Fox9 Like, this is ok for me : http://i.imgur.com/NuZZQWr.png
I can’t find the Windows Phone templates in Visual Studio 2013. They are missing and I don’t know how to get the templates.
In addition, I couldn’t find the Windows Phone Class Library template online.
@Fox9, which version of VS you are using ?
Can you try downloading these ? http://dev.windowsphone.com/en-us/downloadsdk
You can select the one which suits you.
@semihmasat
The last video in your tutorial doesn’t show how to install “MonoGame.Binaries” to a WPCL project via Nuget.
I tried it like this:
I run the following command in the Package Manager Console: PM> Install-Package MonoGame-Portable
Is that how I should install “MonoGame.Binaries” to my WPCL project via Nuget?
After that, I build the Farseer .dll and referenced it to a MonoGame Windows Phone 8 project. But I always get many Vector2 error messages. They look all similar to this error message:
Body Ball.LinearVelocity = new Vector2(0, 2.0f);
Cannot implicitly convert type ‘Microsoft.Xna.Framework.Vector2 [c:.…\GameName1\GameName1\bin\WindowsPhone\x86\Debug\MonoGame.Framework.dll]’ to ‘Microsoft.Xna.Framework.Vector2’ C:.…\GameName1\GameName1\Game1.cs
What is wrong?
@Fox9 You don’t need to ( and maybe shouldn’t i don’t know that ) use Monogame.Portable.
I fixed the video from blog.
But error looks like your code is may be wrong. Can you send the full code ? If you .zip your entire solution and upload that to somewhere it would be great and easy for me to test the code.
Thanx. It works now. But I can’t use the Farseer DebugView. I get the following error message:
using FarseerPhysics.DebugView;
The type or namespace name ‘DebugView’ does not exist in the namespace ‘FarseerPhysics’ (are you missing an assembly reference?)
Is the Farseer DebugView not in the created .dll? How can I use the Farseer DebugView in my MonoGame Windows Phone 8 project?
@Fox9 well , i didn’t know anything about DebugView but it looks like it is a seperate Project.
I found the project now. And trying to make it work on WP8. I will post it here as soon as i got it work. ( Doesn’t look like hard, just like orj monogame -> wp8 process. )