#jsmess 2017-07-09,Sun

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)

WhoWhatWhen
SketchCowOh, wonderful
I was in the warehouse all day
Wait a minute
{
"name": "Atari2600",
"js_filename": "mamea2600.js.gz",
"bios_filenames": [""],
"peripherals": ["cart"],
"native_resolution": [352,223],
"extra_args": [""],
"driver": "a2600"
}
Where do I add that
[03:33]
Anyone have ideas - bai
arkiver: Ops please
[03:51]
db48x: hey [03:56]
...... (idle for 26mn)
Also, it complains about no .wast file [04:22]
....... (idle for 34mn)
(i left it up, broken, so you can see) [04:56]
..... (idle for 20mn)
db48xthe order of the lines doesn't matter [05:16]
SketchCowBut do I just literally put that in [05:17]
db48xone tweak needed: "file_locations": { "mamea2600.wasm": "mamea2600.wasm.gz" } [05:18]
SketchCowI just don't know JSON in this [05:18]
db48xnote that this value is not an array (with square brackets), it's a hash (with curly brackets) [05:18]
SketchCowLike, do I put that under the thing above? [05:18]
db48xhttps://hastebin.com/lajeyecace.json
we're adding a property called file_locations to the object
the value of that property is itself an object
btw, firefox has a JSON view that is handy for this
if you load https://ia801906.us.archive.org/7/items/emularity_engine_v1/a2600.json you'll see it
[05:19]
SketchCowAdded [05:20]
db48xyea, now it looks right [05:21]
SketchCowError: Don't know how to find file: mamea2600.wast [05:21]
db48xthe extension there is unexpected [05:23]
SketchCowIt's looking for some sort of text thing
It's in the javascript
[05:23]
db48xoh, hrm [05:24]
SketchCowvar wasmTextFile=Module["wasmTextFile"]||"mamea2600.w
ast";var wasmBinaryFile=Module["wasmBinaryFile"]|
[05:25]
db48xoh, I see
it hasn't even decided which it needs
so really this is a bug in Emularity; we shouldn't throw an error
ok, for the purposes of this test, let's just extend the JSON
ok, Firefox, let's get going...
here:
file_locations: { "mamea2600.wasm": "mamea2600.wasm.gz",
"mamea2600.wast": "mamea2600.wast.gz",
"mamea2600.asm.js": "mamea2600.asm.js.gz" },
[05:25]
SketchCowUploaded
same error but it could just be dumbmess
{
"name": "Atari2600",
"js_filename": "mamea2600.js.gz",
"bios_filenames": [""],
"peripherals": ["cart"],
"native_resolution": [352,223],
"extra_args": [""],
"driver": "a2600",
"file_locations": { "mamea2600.wasm": "mamea2600.wasm.gz",
"mamea2600.wast": "mamea2600.wast.gz",
"mamea2600.asm.js": "mamea2600.asm.js.gz" },
}
[05:31]
db48xif you load it in Firefox 54 you'll see an error message
although I'll admit that it's a little obscure, since the real error is that you have an extra comma on the end
[05:33]
SketchCowI took out the last m
comma
[05:36]
db48xand now it works [05:36]
SketchCowI still get the error
Yeah, my phone and my desktop here get the same error
[05:36]
db48xhrm
I don't
when you load https://ia801906.us.archive.org/7/items/emularity_engine_v1/a2600.json, do you see the .wast and .asm.js lines?
[05:39]
SketchCowI'll name "Atari2600"
js_filename "mamea2600.js.gz"
bios_filenames
0 ""
peripherals
0 "cart"
native_resolution
0 352
1 223
extra_args
0 ""
driver "a2600"
file_locations
mamea2600.wasm "mamea2600.wasm.gz"
mamea2600.wast "mamea2600.wast.gz"
mamea2600.asm.js "mamea2600.asm.js.gz"
yep
Error: Don't know how to find file: mamea2600.wast loader.js:224:14
locateAdditionalJS https://archive.org/includes/loader.js:224:14
integrateWasmJS https://cors.archive.org/cors/emularity_engine_v1/mamea2600.js.gz:1:3038268
<anonymous> https://cors.archive.org/cors/emularity_engine_v1/mamea2600.js.gz:1:6452978
That's the error that stops the show
maybe I make a dummy file?
Made one just to see
Something's broke
[05:40]
db48xwhat item are you testing with? [05:48]
SketchCowhttps://archive.org/details/demo_derivative_2600_dma_2015
Found the problem
[05:48]
db48xoh, that uses a different config file [05:50]
SketchCowexactly
Fixing
[05:50]
Vito`why is there an asm.js version that's separate from the regular js version?
isn't asm.js going to work in any js
[05:54]
db48xVito`: for asm2wasm mode
it falls back through several methods:
// wasm.js has several methods for creating the compiled code module here:
// * 'native-wasm' : use native WebAssembly support in the browser
// * 'interpret-s-expr': load s-expression code from a .wast and interpret
// * 'interpret-binary': load binary wasm and interpret
// * 'interpret-asm2wasm': load asm.js code, translate to wasm, and interpret
// * 'asmjs': no wasm, just load the asm.js code and use that (good for testing)
[05:55]
SketchCowA2600p and A2600 now both work
Can we do a800 before I turn in?
That's one where I know there's sound issues
[05:56]
db48xthere's no a800 driver [05:57]
SketchCowOh, there's atari400 [05:57]
db48xbuilding atari400 [05:58]
SketchCowI have to modify 5 .json files for it, so you know it's special to me [06:00]
db48x:) [06:00]
DFJustinanything interpreted is way too slow to use [06:01]
db48xyea, we won't actually bother to make that file available
SketchCow: it's built
[06:01]
SketchCow-rw-rw-r-- 1 db48x staff 72607154 Jul 9 05:59 mameatari400.asm.js
-rw-rw-r-- 1 db48x db48x 3407896 Jul 9 06:00 mameatari400.js
-rw-rw-r-- 1 db48x staff 9739352 Jul 9 06:00 mameatari400.wasm
[06:03]
db48xthose are the ones [06:03]
SketchCowI do all three? [06:03]
db48xyou don't need the .asm.js file [06:04]
SketchCowYou will be shocked to hear I'm hitting errors [06:11]
db48xan example? [06:12]
SketchCowhttps://archive.org/details/Preppie_1982_Adventure_International_US
Error: Don't know how to find file: mameatari400.asm.js
{
"name": "Atari 800",
"js_filename": "mameatari400.js.gz",
"bios_filenames": ["a800.zip"],
"peripherals": ["flop1"],
"native_resolution": [336,225],
"extra_args": [""],
"driver": "a800",
"file_locations": { "mameatari400.wasm": "mameatari400.wasm.gz",
"mameatari400.wast": "mameatari400.wast.gz",
"mameatari400.asm.js": "mameatari400.asm.js.gz" }
}
[06:12]
db48xI don't get that error [06:13]
SketchCowNice, it started working.
Everything's not zoomed in anymore
I wonder what it's identifying as now
[06:13]
db48xzoomed in? [06:14]
SketchCowYeah, it's showing 1x instead of 2x [06:15]
OK, here's the question... is it using webassembly?
(all of them are fixed now, all 5)
[06:22]
db48xwell, it loads the wasm file [06:22]
SketchCowI just don't know!
But I'm glad we have this in place
we can inspect it on machines, etc.
Thank you!
We're running webassembly biiiiiitches
https://github.com/copy/v86 is the emulator we were discussing, db48x
[06:24]
db48xit would be handy if it printed out which version it's running [06:32]
***DFJustinZ has joined #jsmess [06:35]
bainiiiice [06:35]
***DFJustin has quit IRC (Remote host closed the connection)
DFJustin has joined #jsmess
[06:36]
db48xgotta figure out how to build all the "drivers" we have
for example, the "a800" driver is apparently really "atari400" :P
[06:50]
DFJustinmame -listsource a800 [06:56]
db48xI don't even _have_ a mame executable :P
I've just got all of these js files
[06:57]
..... (idle for 20mn)
***DFJustin has quit IRC (Remote host closed the connection) [07:17]
baiwe should set up build which does nothing but listsource, heh [07:17]
***DFJustin has joined #jsmess [07:19]
DFJustin has quit IRC (Remote host closed the connection) [07:24]
.... (idle for 16mn)
bai1 [07:40]
***DFJustin has joined #jsmess [07:50]
........................... (idle for 2h13mn)
DFJustinZ has quit IRC (Remote host closed the connection) [10:03]
........................................................... (idle for 4h52mn)
SketchCowSo, I'm not sure where the lack of zoom is coming from.
The compile time speed is truly ridiculous.
uncaught exception: no binaryen method succeeded. consider enabling more options, like interpreting, if you want that: https://github.com/kripken/emscripten/wiki/WebAssembly#binaryen-methods
[14:55]
db48xSketchCow: how did you manage that?
it should fall back to asmjs
[15:04]
SketchCowI turned off .wasm
To see what it would do.
javascript.options.wasm in about:config
Just doing the testing we do. :)
[15:04]
db48xhrm [15:07]
SketchCowWe MIGHT want to haul Kripken in on this
Since we're doing this the first time, etc.
[15:12]
........... (idle for 53mn)
But we're at a good point. It doesn't work in usual Javascript, of course, but we can address
And it's Sunday, Kripken won't likely be around.
[16:05]
I pinged him.
ted______: Yo
So, other piece - the resolution/scaling.
There's something goofy there, which may or may not be the Archive being "clever"
[16:10]
.......... (idle for 46mn)
db48xah [16:57]
..................... (idle for 1h44mn)
SketchCowwill investigate [18:41]
............................. (idle for 2h24mn)
db48xsorry, I figured it out and then got distracted
turns out the documentation is slightly lacking
by default it only runs wasm and doesn't tall back to anything
you have to specifically ask it to fall back to asmjs
I rebult a2600 and atari400 with that option, if you want to give it a try
this time you will need the .asm.js file in addition to the .js and .wasm files
[21:05]
DFJustinone thing I notice is that the .asm.js files seem to be humongous [21:07]
db48xoh, there was one oddity though, which is that it started making .mem files again [21:13]
....... (idle for 31mn)
***azakai has joined #jsmess [21:44]
.......... (idle for 45mn)
SketchCowhey, azakai advised a different way
i am at warehouse, now driving back, will do loads when I get there
[22:29]
***azakai has quit IRC (Quit: Ex-Chat)
azakai has joined #jsmess
[22:32]
............... (idle for 1h14mn)
SketchCowHere I am hack at the thing. [23:47]

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)