GBA Emulation in XNA - Windows Phone 7 Software Development

I read the requests/ideas thread, and saw an Idea for a GBA emulator. I looked around the internet and found a C#/DirectX GBA emulator. I downloaded the source and began to copy/paste the code to an XNA WP7.0 Game. Most of the Code ported(ARM System Emulation, Opcodes, etc), but Audio and Graphics are bothersome because of the managed API differences between XNA and MDX, If someone wants to look at the code, I've uploaded it. I am not that great with programming, so if anyone can figure out how to change the API from the MDX to XNA equivalent, I give great thanks.
http://www.forwardcoding.com/projects/gbaemu.html Here is the page for the original pc project.
P.S: i used VS2010

I wonder if looking at the xbox360 gba emulator may be of some help?
Wish I had more coding skills to help

Fullmetal99012 said:
I read the requests/ideas thread, and saw an Idea for a GBA emulator. I looked around the internet and found a C#/DirectX GBA emulator. I downloaded the source and began to copy/paste the code to an XNA WP7.0 Game. Most of the Code ported(ARM System Emulation, Opcodes, etc), but Audio and Graphics are bothersome because of the managed API differences between XNA and MDX, If someone wants to look at the code, I've uploaded it. I am not that great with programming, so if anyone can figure out how to change the API from the MDX to XNA equivalent, I give great thanks.
http://www.forwardcoding.com/projects/gbaemu.html Here is the page for the original pc project.
P.S: i used VS2010
Click to expand...
Click to collapse
Hey dont worry There is already a gameboy emulator that is .XAP format its not out yet but I am on the team (It's just me and Samuel now XD) that is working on it. I cant post the .XAP yet but I can show you this http://img221.imageshack.us/img221/1320/wj7ia.png it should be out in the next couple of days if all goes well . I will post it on here so be sure check back soon

You guys are awesome! I've been wanting to do a GBA emulator for WP7, but I have practically NIL XNA background. I've also been preparing to hack together some managed code from the android emus and port to a suitable WP7 build.

sweet..... I guess I don't have to worry.....
P.S: how do you add roms?
P.P.S: does it do GBA or just GB???

thank you for this great work

Just a friendly reminder: This is not legal in most countries, incl. the US.

Well emulators themselves are not illegal, if you own the game yourself, why shouldn't you be able to use an emulator to play them?
On the other hand making a full speed GBA emulator on WP7 would be quite the feat considering everything has to be done in managed code.

WithinRafael said:
Just a friendly reminder: This is not legal in most countries, incl. the US.
Click to expand...
Click to collapse
Emulators themselves are not illegal. If you own the games then you are alright.
and Rafael. we already got an emulator that will be out very very soon Follow us on twitter or facebook to stay updated http://twitter.com/#!/wariojewels7 http://www.facebook.com/pages/Warios-Jewels-for-WP7/225788057444688

Badcam3 said:
Emulators themselves are not illegal. If you own the games then you are alright.
and Rafael. we already got an emulator that will be out very very soon Follow us on twitter or facebook to stay updated http://twitter.com/#!/wariojewels7 http://www.facebook.com/pages/Warios-Jewels-for-WP7/225788057444688
Click to expand...
Click to collapse
Yeah, but that's for the original Game Boy right?

Nudua said:
Well emulators themselves are not illegal, if you own the game yourself, why shouldn't you be able to use an emulator to play them?
On the other hand making a full speed GBA emulator on WP7 would be quite the feat considering everything has to be done in managed code.
Click to expand...
Click to collapse
yes, yes it would.... On the same note, I would love to know how they buffered the video inwarios jewels so I could rewrite the video subsystem on the emulator that Im trying to port. and also how they load the games..., because trying to load from internal isn't working atm.

Fullmetal99012 said:
yes, yes it would.... On the same note, I would love to know how they buffered the video inwarios jewels so I could rewrite the video subsystem on the emulator that Im trying to port. and also how they load the games..., because trying to load from internal isn't working atm.
Click to expand...
Click to collapse
I'm guessing they're just using the Texture2D.SetData function to update a texture from a video buffer. Haven't really found something like WritableBitmap that silverlight has and SetData is said to be pretty slow.
As for loading roms, you either have to load it from the project itself using the TitleContainer class or you have to download the rom from a service or url.

):
The facebook page for WJ7 shows that he was testing GBA functionality, but that the framerate was horrible because of the sandboxing. Without hardware level access, it seems for now GBA isn't playable.

Related

Silverlight/XNA App development section of the forum

As per title,
Having never writting apps before, I thought I'd have a go at downloading Expression studio (mainly due to it being free for students )
Seems pretty easy to get the hang of and these tutorial videos to follow are pretty handy http://microsoft.com/design/toolbox, it would be nice to maybe have a section of the forum for developing apps in Silverlight
Espescially seeing as deploying apps directly to your phone in Visual Studio seems to be the only way to side load apps at the moment.
This is the right section, as soon as I can make clear that this section is not intended for general chat but actual software development questions
ok so, pulling the silverlight and xna libraries out of the emulator and cooking them into wm6.5.5 i now need a way to test if these libraries are valid.
anyone interested in compiling a simple test for these? it seems the xna game, input and core libraries are there as well as silverlight browser and ui stuff.
very interested to see how valid these libraries are if at all
norgan said:
ok so, pulling the silverlight and xna libraries out of the emulator and cooking them into wm6.5.5 i now need a way to test if these libraries are valid.
anyone interested in compiling a simple test for these? it seems the xna game, input and core libraries are there as well as silverlight browser and ui stuff.
very interested to see how valid these libraries are if at all
Click to expand...
Click to collapse
Ha love this way of thinking, how to get new stuff running on old stuff.
Reminds me of this big community i have heard of.
Sorry dude but I'm very sure this won't work.
First up, the files have dependencies (namely CE7 and other core files must use the CE7 API). You can't get around this without source code.
Secondly, the files from the emulator have ARM headers but use x86 code, as far as I know.
Thanks!!
You can find a whole bunch of silverlight projects to download here http://silverlight.net/community/samples/silverlight-samples/
Noonski said:
Ha love this way of thinking, how to get new stuff running on old stuff.
Reminds me of this big community i have heard of.
Click to expand...
Click to collapse
thinking without restricted boundaries, it may not work and i may be waaay off, but then again....it may just work lol and if not i've lost nothing.
the silverlight causes issues and i am sure there is more to xna than just the framework dll's. will be interesting to try and call functions within them and see what happens either way.

Will a Sega Genesis/Mega Drive Emulator come to WP7?

I for one would like to see one of this on the WP7 platform. What are your thoughts?
I hate to say it, but I don't think we will ever see any emulation programs on WP7 until we are allowed to side load data. I doubt Zune would allow loading of roms therefore the program would be useless. This is also assuming Microsoft lets these programs on the market. The emulation/rom market is mostly piracy and Microsoft likely wants no part of that.
I'd love to have a good snes emulator but i just can't see it happening.
if it does itll only be for unlocked devices....
It's definitely possible. Silverlight is powerful enought to emulate code (see here for example). However, the version of silverlight / XNA currently built into WP7 may not be up to the task just yet. But full silverlight support is due to be integrated in upcoming updates.
EDIT: SNES Silverlight Emulator too
Legally speaking though there's little or no chance that an emulator would be allowed on the marketplace. Although MS are open enough with their Marketplace (eg allowing a Kamasutra app and many uTorrent remote clients), emulators need roms and roms are usually copyrighted.
What we will see eventually are emulators that can be sideloaded using Chevron or similar tools, or possibly via a future alternative Marketplace like Cydia. The roms themselves, due to isolated storage in WP7, will need to be loaded from your PC using a Zune Desktop-style tool, or alternatively downloaded from the emulator app itself (eg from a private webserver over Wifi).
It's all definitely possible, there are just a few steps to go first
lyriquidperfection said:
I for one would like to see one of this on the WP7 platform. What are your thoughts?
Click to expand...
Click to collapse
i would love to have sega alongside my nes on wp7 !!!
Oh MAN I hope so.
Shadowrun on on my phone would be beyond incredible.
not going to happen as long as MS tries to pretend to be "moral" about copyright infringement...
I don't mean to necro this thread, but I figured it'd be better than creating a new one.
I've seen NES and Gameboy emulators around, but I've still got my fingers crossed for Master System, Game Gear and (dare I dream?) Genesis/Mega Drive.
I just hope that someone out there is thinking about making these. I, for one, would be eternally grateful.

[Q] Converting PC game to Xperia Play

Hello everyone. I was wondering if there is any way to convert the popular game, "I wanna be the guy" to the Xperia Play. Or for that matter, any Multimedia Fusion game. Since the game was made in Multimedia Fusion 2, and the source code was released, AND there is an option to export the game into android, it should be possible, right? If anyone knows how to do this, and will be willing to work on it with me, then please reply to this thread. Thank you.
The android export is only a placeholder-text at this point, it's still being worked on
Hmmm, well there is a java export. Maybe we could somehow import that into eclipse and then edit the buttons.
bballchace said:
Hmmm, well there is a java export. Maybe we could somehow import that into eclipse and then edit the buttons.
Click to expand...
Click to collapse
Its nowhere near that simple. While Android programs are programmed in "Java" theres way more behind the scenes with libraries involved and other parts of the Android SDK.
It could be done, but it is a staggering amount of work.
Rogue Leader said:
Its nowhere near that simple. While Android programs are programmed in "Java" theres way more behind the scenes with libraries involved and other parts of the Android SDK.
It could be done, but it is a staggering amount of work.
Click to expand...
Click to collapse
well, since thats basically out of the question, what if i got an html5 source code of a similar game that was made in gamemaker? would that be possible to port onto the Xperia Play? Sorry about me being such a noob, I am not familiar with the Android SDK, and only know C++
bballchace said:
well, since thats basically out of the question, what if i got an android export of a similar game that was made in gamemaker? would that be possible to port onto the Xperia Play? Sorry about me being such a newbie, I am not familiar with the Android SDK, and only know C++
Click to expand...
Click to collapse
Creating a game using game maker will only give you the binaries not the source, you cant just use it to make an android or iOS game.
Honestly the easiest way to make a game for android would be to create it in flash and then put in in some kind of wrapper to make it launch natively. The proper way to make a game would be to learn how to create one using C++ which will probably take a good few months before you could even create something basic. It depends how fast you are at learning new things.
However if you are going to learn programming I highly recommend starting somewhere easier like VB or Java to at least understand the general concept of programming. (preferably VB is you are a total newbie)
bballchace said:
well, since thats basically out of the question, what if i got an html5 source code of a similar game that was made in gamemaker? would that be possible to port onto the Xperia Play? Sorry about me being such a noob, I am not familiar with the Android SDK, and only know C++
Click to expand...
Click to collapse
That would be even more work than converting the Java program. There is no simple way to "Port" games from one platform to another unless there is an emulator (and they don't make PC emulators for Android, and even if they did it would probably run like ****).
Android games are programmed in Java, however the Android SDK has libraries to make it work for every possible function of an Android Phone. If you don't know Java, you won't get very far in making anything work on Android. There are also special libraries for the Xperia Play you will need to download and then program the code into the game to recognize the gamepad controls.
If you really want to do this I would go ahead and learn Java, make a few programs and then tackle the game. Its going to be quite the project, but you'll definitely learn a lot.

Android Emulator

Is there a Android Emulator?
anned20 said:
Is there a Android Emulator?
Click to expand...
Click to collapse
I have heard that you can use an emulator to load the image files which come with eclipse. Sorry I don't have more details, but it is a start. Best
Okay, an Emulator for Android... Hm... On Windows or what?
You want to emulate your own apps on the PC? Then you should take a close look into Android SDK.
You want to use other apps? Then you need "bluestacks"... Just search for it and you'll be fine
Thanks i will look at it
Verstuurd van mijn GT-S5660 met Tapatalk
Blue stacks
Sent from my GT-N7100 using xda premium
aukhan said:
Blue stacks
Sent from my GT-N7100 using xda premium
Click to expand...
Click to collapse
... As I already said
anned20 said:
Is there a Android Emulator?
Click to expand...
Click to collapse
i heard about device anyware , its not an emulator but the real deal controlled remotely .
maybe it'll be good for you
Yes.. There is !
anned20 said:
Is there a Android Emulator?
Click to expand...
Click to collapse
Yes ... There is an Android Emulator. But what type of an emulator do you want ? ... That's a question you have to answer.
If You want an emulator to test android apps that you make:
Then you should use the Android Virtual Device emulator that comes with the Android SDK.
It allows you to test your app in different Android OS versions and screen sizes.
To know more on how to use it, CLICK HERE
If you want an emulator to simply run android apps and games on your Computer:
Then BlueStacks is the one for you. BlueStacks App Player lets you run apps from your phone fast and fullscreen on Windows and Mac.
It runs on Android 2.3 (i think). You can download it from the company website here - www.bluestacks.com
I would not recommend anyone use Bluestacks for an Emulator. It is sh!t.
Try Jar of Beans. It is an XDA developer build based on the SDK emulator and has great things like GL rendering, root access and is more functional and close to real device than currently what is offered as part of the SDK. You can at least test full rendered wallpapers without force closes and or total device failure i.e. shut down of your emulator.
The developer has it updated to 4.1.2 Android, but I am currently working on Updating it to 4.2.2. So far I have managed to port across a fair chunk of the Ouya gaming console as an emulator, however it doesn't run properly.
I have done some hacking in Windows and developed an application/ "add-on" that allows users a one click method for run the Android emulator in a RAM Disk (although it is very alpha, untested and not something I am going to upload just yet).
RAM disk performance is said to be approximately 50-100x faster than solid state drive, so the potential looks to be very promising! :victory:
Although my code is something else. Umm let me just say this, at execution or runtime there are no error checks in any steps of my code lol. Essentially my app in its current state assumes no errors. I am definitely not an idealist, and more so a pragmatist by nature, however due to lack size of code I had to make, lack of of time and surely extreme eagerness (to see its potential) on my behalf to view its potential managed to get it working.
All I can say is that it is fairly complex to set up and probably the reason why we have not seen or heard of it yet, so for me I wanted to build something that wouldn't mind boggle people at the thought.
I may write essay length posts, but I am not all about essay length tutorials. I would rather make something that puts the essay into code and actions that is simple for people to use.
My goal is to have fully working interface for people who want to run Android on Windows that has all of its functions. I also want to have a testbed of an emulated console to allow people to run accelerated Android game play with full rendering support on Windows. This requires full bluetooth emulation to allow for game controllers to connect to the virtual android device. Something not yet working. It is available on some developer X86 builds but is that is a lucky dip and will require you a sh!t tin of work to configure.
You can try the VirtualBox builds of GENYMOTION (previously known as AndroVM) that i can get to boot maybe 1 out of every 10 attempts. If you change any setting inside the VM via their claimed app forget about it, delete the VM and start again.
Link to a Wallpaper showing full GL Rendering
http://goo.gl/OEnLF
More info here in thread
20/01/2013 Jar of Beans - Android Emulator Portable x86 - BETA 4.9.3
More info on my concepts here in same thread
Post #490
ye i would do a google search for emulators as bluestacks is not a very good one, in my game i wont render some thing correctly or at all leaving ether nothing there or a black.
Now Bluestacks released new version. It is work perfectly
If you're primarily interested in gaming, I'd suggest considering LeapDroid. There is no subscription or monthly fee, and the emulator has been optimized for gaming
http://leapdroid.com/
Key features include:
- key mapping
- multiple instances, (two emulators side by side)
- very, very fast start up speed
- you can use your google play account
- painless installation
my favorite is Genymotion
there is clearly a need for such product hope one day somebody will create it
Thanks for all the answers.

Nexus 5x. From noob to Master. [Seeking answers to advanced questions]

Since I am new I just wanted to introduce myself and ask that if anybody is capable of answering some intermediate to advanced device specific Nexus 5x questions including but not limited to hardware/software, as well as related questions to the community and the technology Market, I would greatly appreciate it. My goal is to go from apprentice to Master of my android device. More importantly, I hope to gain a better understanding of the technology behind the scenes and how specific functions are compiled and executed so that I can satisfy my curiosity as it pertains to my Nexus and also the community.
Respectfully,
CT
Yeah, just post those questions here
Eurofighter_ty said:
Yeah, just post those questions here
Click to expand...
Click to collapse
Ok. So maybe I will start with the question thats been nagging at me a lot lately. I've searched and found very little information pertaining to the topic of my interest.
Main question: What is a game Emulator, and how does it differ from something like Game Guardian or Game Gem??
My ballpark guess based off what Ive read is that an emulator is something that allows you to for instance play gameboy games on your phone, or old school nintendo on your phone. And on the other hand Game Guardian allows you to edit values in the game.
But the bigger question is how Game Guardian works on a broad scale. I would assume that simple games are pretty easy to change values. However, how would it work on more complex games such as games that involve servers and multiplayer and games that developers have taken action to try to prevent such applications from working? And what about detectability. I am a big gamer in my spare time so naturally I am curious about these things and how they work, what they work on, and what they may not work on.
I guess I should also mention that any of the info listed above may be wrong or slightly misleading. My main question is the question I've been scouring the internet in order to find adequate answers.
Thank you for responding to my post.
Respectfully,
CT
Like you guessed, an emulator is a program that emulates the hardware of a different machine, for example GameBoy or NES so that you can play games from those machines.
Game Guardian is an app that modifies the running processes (game in this instance) register values. There are similar apps for Windows. They work by you looking for the value you want to change in the register and then inputting a new value. For example you want to change your HP. Your HP is 100 so you look for that value in Game Guardian, if there's only one you've found the value you wanted. If there are several, you change your HP and then look which one of those values that matched the first time changed and you continue until you've found the right one. This method might not work at all with more complex games and multiplayer games that store/check the values on the server.
CazeW said:
Like you guessed, an emulator is a program that emulates the hardware of a different machine, for example GameBoy or NES so that you can play games from those machines.
Game Guardian is an app that modifies the running processes (game in this instance) register values. There are similar apps for Windows. They work by you looking for the value you want to change in the register and then inputting a new value. For example you want to change your HP. Your HP is 100 so you look for that value in Game Guardian, if there's only one you've found the value you wanted. If there are several, you change your HP and then look which one of those values that matched the first time changed and you continue until you've found the right one. This method might not work at all with more complex games and multiplayer games that store/check the values on the server.
Click to expand...
Click to collapse
Understood. On the subject of compatibility, are more complex games, for arguments sake lets go with a well known game developer EA.... do their softwares and services embed methods detect and then terminate sessions when you attempt to access with a rooted device? I've heard about android pay, but are there other major apps that can do the same thing? And furthermore, are there any specific countermeasures one can take to bypass this.
Hi guys, quick update.
Happy to say I accomplished I have successfully made a custom recovery using twrp. I should note that I took my sweet time and read and watched so many videos so I was familiarized with the ins and outs.
Just gunna post the links I used cause if you are a Mac user, you will definitely want to take a look since the process is slightly different...
I used this how-to geek for my guide: https://www.howtogeek.com/240047/how-to-flash-twrp-recovery-on-your-android-phone/
want to thank SlimSnoopOS for this post which is Vital for people using mac: https://forum.xda-developers.com/showpost.php?p=68758793&postcount=3
and I used this catalog to get the twrp.img that corresponds to my device: https://twrp.me/Devices/
Pretty happy I was able to do this right. Now I suppose I should evaluate my next move....

Categories

Resources