I want to fight against the use of rigidbodies in platformers, dammit!
I just need to know how to integrate this as a plugin.
It uses a tilemap as a colliding mask, gets positions from tiles that have a certain baseindex, and then using another rectangle (the character), the barebones platformer is born.
Nice!! Keep the good work!
I had to make it framework agnostic, so the setup is a bit on the hard side.
I have already solutions up my sleeve, so to hide some redundant structs I had to implement like Vector3 and Rectangles.
I'll instead rename Rectangle to BBox (or some other name), so I can further expand it, by adding other info, like if it is passable when coming from the underside, etc.
A bit harder will be hiding my personal implementation of Vector3, but that shouldn't be that hard to manage.
I'm aiming towards simplification, but alas, implementing Duality's libs made it behave weirdly, so I had to make my best and make it really all purpose.
That doesn't sound right MethodNotFoundException is often the cause of mismatched package versions, like having an up-to-date plugin with an outdated Duality core or similar. What's the story behind that?
The rectangle struct is just a placeholder for something different, and doesn't get used directly by the user. The tilemap plugin gives the information, and I just do a quick math. Nothing major.
Now, to make most of the previous paragraph irrelevant, apparently, when one builds a library that depends on other libraries, some measures have to be taken care of because of paths.
I made the issue go away by copying duality.dll and dualityprimitives.dll to the plugins folder. After that, all worked ok.
I just have to set the paths right next time.
That doesn't sound too good either - it might cause the Duality core to be loaded twice, which can potentially cause all sorts of weird bugs and hard to trace type cast exceptions.
Right now I'm not sure what's happening or where the error could be. Can you provide a setup and / or steps to reproduce this? I think it would be better if we found a proper solution for this. It's definitely not something that you should regularly encounter developing a plugin / game, regardless of whether or not you use any libraries or dependencies.
refactored stuff a bit, all worked ok with my library in the Plugins folder.
But, if I use the Tilemap plugin, it gives the MethodNotFoundException. Moving my plugin to the main folder, all works ok.
My main motivation is actually using the Tilemap plugin.
Onwards! Still a lot of stuff to do!
I can't reproduce this behavior locally. Referencing the Tilemaps plugin worked fine in my tests. I understand that you've found a workaround, but it if you could reproduce this, pack the entire Duality folder (except Backups) and upload it somewhere so I can debug this, it would be incredibly helpful. If not, please do report back if that issue appears again!
Ok, I'll try to make something small and try to see if the problem resurfaces.
To make this really quick to test, just try to launch the launcher as is.
Then, move Duality.AABB.dll to the root folder, and run the launcher again.