Upgrading game samples from CartBlanche GitHub Samples

So I opened a draft for how to build them and got a reply to upgrade, now how do I do that?

Please avoid super long-with URL titles…

I copied the link here so people can click on it

Are they the same available here?:

MonoGame/MonoGame.Samples: A few cross-platform game samples using MonoGame. (github.com)

Looks like a whole bunch of samples, so just do:

Basically just create a new template project and copy the code over, hence build… as in Run the program in VS etc.

Hope that helps.

Sorry, I didn’t know you couldn’t send long links, and no that sample does not exist in the repo you sent

Not saying you cannot, just, kind of not good etiquette… especially when you fail to include it in the post… help us help you :slight_smile:

Just copy the code to a new project and run the project, that should solve the issue.

Well I did but there seems to be a class used in the main method that doesn’t exist and when I try to import all of the texture files to the content manager as folders it doesn’t seem to recognize them

there seems to be a class used in the main method that doesn’t exist

Which one? Share the code.

when I try to import all of the texture files to the content manager as folders it doesn’t seem to recognize them

Which? share a screenshot.

Help us help you :slight_smile:

this line: Components.Add(new GamerServicesComponent(this));
in https://github.com/CartBlanche/MonoGame-Samples/blob/master/RolePlayingGame/RolePlayingGame.cs

That will be from the XNA days, GamerServices as far as I remember is not included as they are from the XBLive days which is no longer in use today.

You want to rip that code out and develop your own if it is something you require, if not, focus on the remainder code.

Hope that helps.

1 Like

This is the correct answer.
Reference: Migrating from XNA | MonoGame Documentation

1 Like