Open DrTosh opened 8 years ago
hi, pls give me url and I'll try to investigate.
Thx for trying to help me. But i solved the problem my self.
It was just a tiny mistake here:
url : "/roms/Metroid.nes"
it hast to be:
url : "roms/Metroid.nes"
without the slash, because it is a relative path.
The Problem in here is that there isn't a failure message or something like that. It just says game loaded 100%. That's really confusing. :D
384/5000 Hi good day. I would need your help. I'm testing with blogger and google sites nesbox, I load well the emulator 100%. But it stays frozen on that screen. Never load the rom. I leave the link so that they can see it all.
Http://retrojuegosonline.blogspot.com/2017/01/play-indiana-jones-and-last-crusade.html
I await your prompt response and thank you beforehand.
<div>
<div id="emulator">
<p>To play this game, please, download the latest Flash player!</p>
<br>
<a href="http://www.adobe.com/go/getflashplayer">
<img src="//www.adobe.com/images/shared/download_buttons/get_adobe_flash_player.png" alt="Get Adobe Flash player"/>
</a>
</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript">
var resizeOwnEmulator = function(width, height)
{
var emulator = $('#emulator');
emulator.css('width', width);
emulator.css('height', height);
}
$(function()
{
function embed()
{
var emulator = $('#emulator');
if(emulator)
{
var flashvars =
{
system : 'snes',
url : 'https://sites.google.com/site/retrojuegosonline/roms/snes1449.zip'
};
var params = {};
var attributes = {};
params.allowscriptaccess = 'sameDomain';
params.allowFullScreen = 'true';
params.allowFullScreenInteractive = 'true';
swfobject.embedSWF('https://sites.google.com/site/retrojuegosonline/flash/Nesbox.swf', 'emulator', '640', '480', '11.2.0', '/flash/expressInstall.swf', flashvars, params, attributes);
}
}
embed();
});
</script>
try to rename "Super_Metroid" to "Super_Metroid.smc" in the zip file
Thank you very much for your response. But it still does not work the same error. I'm like this now:
var flashvars = { system : 'snes', url : 'https://sites.google.com/site/retrojuegosonline/roms/super_metroid.smc' }; var params = {}; var attributes = {};
seem the problem is in domains, you are using two domains retrojuegosonline.blogspot.com and sites.google.com to host emulator and roms I think sites.google doesn't allow to download rom for blogspot So, try to host all the files on same domain.
perfect. I'm going to try some other host. Do you have any free to recommend me?
try github pages :) https://pages.github.com/
ty
I do not understand how to use github to host a website. Do you know any other free? Thank you
I finally learned how to use github and manage to make the emulator work perfectly. I thank him with all my heart. You are a genius
I am rpeveri by the way. Now my question is how much space and bandwidth supports free github
Hello i just want to embed the emulator into my website this is my index page: ` // the javascript: var resizeOwnEmulator = function(width, height) { var emulator = $('#emulator'); emulator.css('width', width); emulator.css('height', height); }
`
But it is not working. The Emulator is displayed, but he just says Loading game 100% But it doesnt matter where the rom is. If I say url:"asjdfkajs;dlkfja;lsdkjf;lkasjdf" then he says Loading game 100%
If i let flashvars empty like this: var flashvars = {};
The Emulator displays to and i can click on it and choose a rom and can play!
But of course i want to choose a rom in the code.
My Directories on the server is
index.php Nesbox.as3proj src roms -Metroid.nes lib flash -expressInstall.swf bin -Nesbox.swf -nes.swf
So Pls guys can someone help me out?