Comments (4)
Heads up, guys:
#if !XNA && !WINDOWS_PHONE && !XBOX && !ANDROID && !MONOGAME
The Matrix class should be ignored by the compiler when compiling for MonoGame, but for some reason, it didn't work for everyone, so I manually made sure that MONOGAME
is defined a line above.
That should fully fix it.
from burningknight.
Hello Egor,
First I want to apologise if this is a mistake on my behalf.
Having issues running the project.
Currently, I am building and running the Desktop project in the Lens.sln, but when I do that I get the error :The type 'Matrix'(same with Vector2) exists in both 'VelcroPhysics.MonoGame, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' and 'MonoGame.Framework, Version=3.8.0.13, Culture=neutral, PublicKeyToken=null'
I tried working around with the namespaces, but I could not make it work.Also there are some missing dlls when i try to build :
In the project BurningKnight and Desktop, there is a Lens.dll missing
Again in Desktop there is a BurningKnight.dll missing.Best regards,
Kiril.
Let me know if you found something. I'm stuck like you describe...
from burningknight.
This has been a common issue whenever I try to use monogame related libraries that have duplicate stuff inside. I'm sure there is a better and simpler way of making this work, but I usually just comment out the classes that are duplicated. In the case of Burning Knight the only classes that are duplicated or that cause problems (last time I tried the repo) where Matrix Vector2 and Vector3. So if you just comment out the classes/structs definition (literally comment out or just delete) it should work.
from burningknight.
It looks like an issue with monogame update or smth. I'm very sorry, very busy with a lot (like very a lot) of projects right now, can't help you debug/fix this. Lens dll should be a result of the project Lens compilation, so I guess its missing because it couldn't compile because of the Matrix clash. The only thing I can propose to you is to rename Matrix class in VelcroPhysics into something like MatrixTest (via refractor, so every type Matrix becomes MatrixTest only in VelcroPhysics).
I hope this helps,
Egor
from burningknight.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from burningknight.