#Tetris The Grandmaster 2 Plus
1 messages · Page 1 of 1 (latest)
ty
About to go out and see some family. Let me know how that goes and I'll try to get it quickly
@shadow verge @solid ocean Done I got a little distracted thats why it took so long: `<!DOCTYPE html>
<html>
<head>
<base href="https://cdn.jsdelivr.net/gh/CoderandHacker69/Ports/tgm2/">
<meta charset="utf-8">
<title>TGM2 Portable</title>
<style>
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background: black;
}
#game {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="game"></div>
<script>
EJS_player = "#game";
// Arcade setup
EJS_system = "arcade";
EJS_core = "fbneo";
// ROM via direct link
EJS_gameUrl = "https://raw.githubusercontent.com/CoderandHacker69/Ports/refs/heads/main/tgm2/emulatorjs/data/roms/tgm2.zip";
EJS_gameName = "Tetris The Grand Master 2";
// EmulatorJS CDN (local)
EJS_pathtodata = "emulatorjs/data/";
</script>
<script src="emulatorjs/data/loader.js"></script>
</body>
</html>`
Added, thank you
changed it from rawgithub to jsdelivr
I didn't even notice that. I'll correct that when I get to my laptop next
wait
what the fuck
my jsdelivr link doesnt work
but the rawgit works
nvm fixed it
`<!-- PORTED BY CoderandHacker69 -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>TGM2 Portable</title>
<style>
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background: black;
overflow: hidden;
}
#game {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="game"></div>
<script>
EJS_player = "#game";
// Arcade setup
EJS_system = "arcade";
EJS_core = "fbneo";
// ROM via jsDelivr
EJS_gameUrl = "https://cdn.jsdelivr.net/gh/CoderandHacker69/Ports@main/tgm2/emulatorjs/data/roms/tgm2.zip";
EJS_gameName = "Tetris The Grand Master 2";
// EmulatorJS Data Path via jsDelivr
// This tells the loader where to find the core engines and bios files
EJS_pathtodata = "https://cdn.jsdelivr.net/gh/CoderandHacker69/Ports@main/tgm2/emulatorjs/data/";
</script>
<!-- Loader Script via jsDelivr -->
<script src="https://cdn.jsdelivr.net/gh/CoderandHacker69/Ports@main/tgm2/emulatorjs/data/loader.js"></script>
</body>
</html>`
@solid ocean ^^ this version should work
what the fuck
never mind i guess
@boreal oracle could you perhaps tell me whats going wrong
The file limit is being exceeded.
Try splitting it,
wait
I see that its a zip.
oh fuck lmao
idk how to do zip files on splitting, Im pretty sure that the browser fails to merge a zip
Idk i might try smth in a min after dead tapes, and eggs for bart
also pretty sure that the max file limit for jsdelivr is 20
yeah
Yeah, and MAME needs it to be a ZIP as it relies on the specific file name to load the configuration too
lemme see
and MAME only takes ZIP files? Or will it take another conpressed folder as in RAR, 7Z etc.
I know Emujs takes 7z too because I tested that. Don't know if the same works with the internal MAME emulator though
i just split the files, do i put the direct .zip onto github
Interesting.
the game is 20.1mb im crine
7Z should compress smaller then a ordinary zip, correct?
literally 1mb away
not even 0.1mb
0.1mb
ok i put the zip
Usually. 7zip does support stronger compression, but I've noticed that compatibility heavily drops sometimes
True.
You have to give the ROM the very exact name that it expects
yeah i have no clue how to do that
somebody help
Are you still trying to do Tetris Grandmaster 2?
If im correct the reason its failing is because of the .part1 and .part2 instead of the .zip? I don't know much about emulation, even though I've did like 100 html files with EmuJS
It wants the file to be named exactly "tgm2p"
Because MAME uses the name of the file itself to know how to configure itself
Yeah, it needs to be tgm2p specifically
any way to change it?
GitHub is outside the scope of what I do aside from the uploading stuff
I never found a solution aside from deleting and reuploading when I made a mistake
can we make a file that merges the two files, put it onto jsdelivr, and then name it tgm2.zip?
You can still use the part files, they just have to be combined to become tgm2p in the end
ok now what sgoing wrong
someone whos more experienced with emulator.js try and fix this
My question is regarding what you did to get a not allowed error
cors error i think
idk
send me your html and github rq
CORS would explicitly specify as such that it's a CORS issue
https://github.com/shayderrr/portsv2/blob/main/tgm2.zip.part1
https://github.com/shayderrr/portsv2/blob/main/tgm2.zip.part2
Tetris Absolute Grandmaster 1 & 2
(This does work, use however you see fit)