Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft.Xna.Framework.Graphics.EffectResource.dict.set is not a function #1

Open
SamArmand opened this issue Nov 4, 2019 · 4 comments

Comments

@SamArmand
Copy link

Getting this error in the browser console:

Microsoft.Xna.Framework.Graphics.EffectResource.dict.set is not a function

Does anyone know what could be causing it?

@ApmeM
Copy link

ApmeM commented Jul 15, 2020

Hi, did you find a reason for this problem?
I got the same issue and not sure where to start checking from.

@ApmeM
Copy link

ApmeM commented Jul 20, 2020

I think I found a reason - for some case bridge.js have changed the way it handles dictionaries and now there is no .set method for them.
Now old projects that was compiled under 17.2.0 can not be executed with bridge 17.10.0 (which is latest for today).
The proper way is to use setItem I think, but not sure.
@harry-cpp it seems you are working on both Web port for MonoGame and this Platformer2D example. Can you please recompile Monogame under new version of bridge.js and put it to nuget please? And update Platformer2D with new references.

Thanks.

@harry-cpp
Copy link
Member

You can just reference the older version of Bridge and everything will work fine.

Platformer2D is already using the newest Bridge.NET, its referencing MG from my bridge branch, I will not be updating the MG.Bridge nuget any time soon as I've broken some stuff like fullscreen in the source code and I don't have time to fix them.

@ApmeM
Copy link

ApmeM commented Jul 20, 2020

Ok, I see, thanks for your response.
It is very unfortunate that such a cool stuff is not in priority.
I'm writing some game engine (all game developers should write such themselves) and it would be cool if it would be possible to present the result in web platform out of the box as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants