[00:14] *** bai_ is now known as bai [00:15] *** naTmeg sets mode: +o bai [00:38] *** GLaDOS has quit IRC (Ping timeout: 260 seconds) [01:10] *** SketchCo2 is now known as SketchCow [01:11] :) [01:11] wb [01:25] *** GLaDOS has joined #jsmess [01:35] So, seems like db had to get a nap [01:35] THen he can hit in again. [01:35] He's right, keeping things updated at github is definitely a way to go. [01:36] You are both in very different parts of the world. [01:39] and I think db48x is on an even wackier schedule than I am, heh [01:44] yep, i'll keep github up to date from now on [02:12] Great [02:12] Is the action just waiting for him to get a chance to do the work, right? [02:12] I think naTmeg gave over all that was needed [02:16] hmm [02:22] i think it's ok for a first test. there are details like sound or fullscreen which does require future work on both sides. [02:43] I get that. [02:43] Once it's snapped in the framework, it becomes a lot more functional. [02:43] We know what's working, what's not. [02:48] ok. i did a quick on emularity.com it's basicaly a framework/container for emulators. did not know it existed. i even thought archive.org just hosting text-stuff :) [02:48] quick read [02:53] i'm curious whether you guys can make this all working, so that it's easy to handle and does make fun :) [02:58] I'm positive we can. [02:58] A lot of the groundwork was already laid over the last 3+ years. [02:58] good [03:00] can you immediately use the original kickstart-roms now or do you have to wait with that and use AROS instaed? [03:01] For the first run-through, we'll use AROS, just to prove it works. [03:02] Then I will likely ping/punk Mike B. with an example of it Just Working. [03:02] ok sounds good [03:05] maybe i can use the original roms on sae.net too some day. nothing against AROS, but i really hate those replacements. [03:06] I get that. [03:29] SketchCow: yeah, once db48x has the basics going I can jump in and help out with the info naTmeg's given us today [03:29] Great [03:29] He might wake up soon [03:29] Using his patented sleep cycle [03:29] Mine's been pretty messy lately. [03:30] I'm getting things done but the sun and I are like divorced parents fighting over visitation rights. [03:30] same, heh [03:30] wife does night shifts at the hospital so for me that's when I get things done too [03:31] what's up over there, isn't it 10:30pm in the US? :) [03:32] 8:30 here, 11:30 for SketchCow [03:32] 5:30am here :) [03:32] austria right? [03:33] yep [03:33] sun is just comming [03:34] -m [03:37] cool, I'm gonna be visiting switzerland next month [03:37] heh, thats 200km from here [03:38] hey, closer than it is to here :P [03:38] i guess so :) [03:38] switzerland is cool, and expensive :) [03:40] holidays? [03:40] yup [03:40] nice [03:43] out may visit tyrol in austria next time. thats where i'm from. we have have tourism and nice mountains. best to come in winter, so you could skiing :) [03:43] out=you [03:44] have=pently [03:44] I was in Austria number of years. [03:44] oh, where? [03:48] nevermind, time for a lay down. cya tomorrow, n8 [03:48] *** naTmeg has quit IRC (Leaving) [03:51] *** GLaDOS has quit IRC (Ping timeout: 260 seconds) [04:51] *** n00b528 has joined #jsmess [04:54] It's the 30th Anniversary of the TRS-80 CoCo 3 tomorrow and I'm trying to get some old games and apps running in Emscripten. [04:54] Jason at archive.org sent me here and told me to ping @bai [04:54] Greetings, people, this is a friend who is trying desperately to get the emularity running. bai - can you help him? [04:54] hi [04:55] Everything's working well but it seems to be ignoring the .cfg files. [04:55] is this about getting a new system running, or just getting emularity working? [04:55] Maybe both? I did a custom build of a system (I'm a MAME contributor) and it's up and running. [04:56] ah ok, so using mame [04:56] I think this is something silly on the emularity side. [04:56] got it up at a publicly accessible url somewhere? [04:56] I have a demo up here: https://milliluk.github.io/cocoweb/ [04:57] seems to boot at least... [04:58] I generated clean .cfg files with some settings I need but they don't seem to be picked up. They're loaded but don't take effect. I tried with and without the BOM mark at the front as well as various names within the driver hierarchy. It just uses default settings. [04:58] Boots, sound works great (disabled here -- this is unmodified loader files from your github), I just can't set keyboard and video modes. [04:59] https://milliluk.github.io/cocoweb/drivers/coco3h.cfg is the cfg file you're talking about? [04:59] yes. [05:01] I tried both .fetchFile("Config"... and .fetchFile("Config Files"... as the docs vary on that. But I think that's just for the splash screen(?) [05:01] *** GLaDOS has joined #jsmess [05:01] Emularity is pulling down the file at least [05:02] this is the version with the BOM I assume? [05:02] Yes. When I rename it, it does not boot. [05:02] Yes. [05:02] Straight unicode as written by MAME. [05:04] one thing that strikes me as odd is the pathnames in that file [05:05] but I'm not sure mame is loading it at all. trying to see if those settings are being applied but my keyboard doesn't have a scroll lock key so it's not easy [05:06] I based it on the example here -- it puts .cfg in the same dir as the roms, too. https://github.com/db48x/emularity/blob/master/example_computer.html [05:07] the settings definitely aren't being applied. the screen will be a shocking shade of electric green instead of the muted one when it finally kicks in. [05:08] also I'm turning off the crosshairs but you can see them at upper left for 10 seconds until they fade out. [05:09] hmm, I wonder if you just need some additional mame argument [05:09] to tell it to load that file [05:10] is that different from the normal mame command line? I don't need to specify anything but a driver to pull it in there. [05:10] hmm. shouldn't be no but hard to say that the paths all end up being the same [05:11] there's a -cfg_directory command line option. any guesses how it should be set? [05:20] something like this maybe https://github.com/db48x/emularity/blob/master/example_computer.html#L65 [05:20] Tried a bunch of settings there but 1) still boots 2) no config [05:21] when I do a line like this, where does it wind up in the 'virtual' filesystem? [05:21] JSMESSLoader.mountFile("coco3h.cfg", JSMESSLoader.fetchFile("cfg", "cfg/coco3h.cfg")) [05:21] if I could do this JSMESSLoader.mountFile("cfg/coco3h.cfg", JSMESSLoader.fetchFile("cfg", "cfg/coco3h.cfg")) I bet it would work. [05:22] hmm, let's see [05:22] I tried: [05:22] JSMESSLoader.extraArgs(["-cfg_directory", "cfg", '""'] [05:22] JSMESSLoader.extraArgs(["-cfg_directory", "roms", '""'] [05:22] JSMESSLoader.extraArgs(["-cfg_directory", ".", '""'] [05:22] no luck. [05:23] MAME looks in cfg/* by default. [05:23] looks like it's in /emulator/coco3h.cfg [05:24] same dir for coco3h.zip and DK.DSK [05:24] BINGO. [05:24] nice [05:25] JSMESSLoader.extraArgs(["-cfg_directory", "emulator"]) fixes it. [05:26] excellent [05:26] nice work. [05:27] phew, now jason will never figure out my horrible secret, that I've never actually installed or used Emularity myself :D [05:27] ...oops [05:27] MAME can be fussy... there are a lot of layers. [05:28] yeah, heh [05:28] A more direct way to set up the virtual file hierarchy would be nice. [05:28] well, technically you can do all sorts of crazy stuff with BrowserFS directly [05:28] Emularity wraps it in a way that fills most of our needs [05:29] but it's not the most direct [05:29] if you get curious you can do filesystem operations directly using the global FS object as well [05:30] which exposes the same API a nodejs's fs object [05:31] Excellent. This should be fine for now, though. I'll cc Jason so he can update the docs at least. This is a fine workaround for now. [05:31] Lemme push some changes up and I'll poke in later if I get into trouble. [05:31] Thanks again for your work on all this stuff. [05:32] always glad to see it being used in new places [05:33] *** n00b528 has quit IRC (Quit: Page closed) [05:48] *** db48x has joined #jsmess [11:45] *** joepie91 has quit IRC (Read error: Operation timed out) [11:48] *** arkiver has quit IRC (Ping timeout: 370 seconds) [12:11] *** joepie91 has joined #jsmess [12:12] *** arkiver has joined #jsmess [13:40] db48x: We have stuff for youuuuu [15:35] *** Coderjoe has quit IRC (Read error: Operation timed out) [15:39] *** Coderjoe has joined #jsmess [15:52] *** Rye has quit IRC (Ping timeout: 244 seconds) [15:54] *** Rye has joined #jsmess [17:15] SketchCow: oh yes? [17:31] *** naTmeg has joined #jsmess [17:31] hi there [17:45] morning [18:00] hmm: SAEC_Video_DEF_SAE_WIDTH is not defined [18:04] in video.js [18:06] should be SAEC_Video_DEF_AMIGA_WIDTH, where do you get that? [18:08] when using the emularity to load sae [18:09] I'm seeing a bunch of other exceptions as well; I think this compiled version isn't working correctly [18:09] i have not defined SAEC_Video_DEF_SAE_WIDTH in the shoulw soure, something must be wrong here. use SAEC_Video_DEF_AMIGA_WIDTH instead [18:10] whole [18:10] oh, weird [18:11] I copied and pasted that part of the code from your example.js :P [18:11] maybe take a look at video.js for possible values [18:12] ok, that's easily fixed [18:12] but there's still other problems [18:12] still wired, must be some old version?! [18:13] ok [18:15] can you load http://erebor.db48x.net:8000/? [18:16] nope [18:23] I tweaked my port forwarding setup; it should be accessible now [18:23] now it works, i got a file list [18:24] check out example_amiga.html [18:26] ReferenceError: cfg is not defined saejf line 99 [18:26] saejf = scriptedamigaemulator.js [18:26] yep [18:28] you should do a var cfg = SAEFV_config; somewehre or replace all "cfg" with "SAEV_config" [18:28] SAEFV_config = SAEV_config [18:30] see loader.js:507 [18:35] line 509: this._cfg = this._sae.getConfig(); _cfg is not global while scriptedamigaemulator.js line 99 does request a global-variable? [18:36] I don't want it to be a global, in this case [18:37] ok, so cfg.blah... must be bend to module._cfg [18:40] maybe: SAERunner.prototype.getConfig = function () { return this._cfg; } [18:40] I think this is just an error [18:40] in fixup_prefs [18:41] it takes an argument which looks like a config object [18:41] function fixup_prefs(p) { [18:41] and it usually uses that p: [18:41] if (((p.memory.chipSize & (p.memory.chipSize - 1)) != 0 && p.memory.chipSize != 0x180000) [18:42] but then it changes to using the global variable cfg: [18:42] if (cfg.video.api == SAEC_Config_Video_API_Canvas && cfg.video.colorMode != 5) { [18:42] wow, nice find [18:42] thats a bug [18:43] i added to lines on the button just before release from another test-file [18:43] lemme fix that [18:44] and yes, p is a config-object [18:48] ok [18:50] ups, now something is messed up.. [18:50] error 40 [18:52] SAEE_Video_ElementNotFound [18:52] see amiga.js for error codes [18:53] yea, I forgot to tell it the video element id [18:53] it could not find cfg.video.id [18:53] ok [18:53] details, details :) [18:58] oh, gotta set up a rom at some point [18:58] and a floppy [18:58] yep [19:00] cfg.memory.rom.data and cfg.floppy.drive[n].file.data can be a reference [19:02] *** Coderjoe has quit IRC (Ping timeout: 260 seconds) [19:03] if you have crc32 avail, you can pre-calcuate and stor the checksum to cfg.memory.rom.crc32 / cfg.floppy.drive[n].file.crc32 this does speed up the program-start [19:03] *** Coderjoe has joined #jsmess [19:15] well, the error code comes back 0 now [19:16] 0 does mean okay [19:16] doesn't actually run though :) [19:16] hmm [19:17] prints out RES true scriptedamigaemulator.js:2068:5 [19:17] did cfg.hooks.started() get called? [19:17] dunno, I didn't add any hooks [19:18] means it did a reset, w8 [19:19] do this._cfg.debug.level = SAEC_Config_Debug_Level_Log; do enable log to console [19:20] i think it does start, but it's not drawing anything? [19:21] cpu.illegal() op 4e7b, pc 00f80c3a -> 00f80cc0, perhaps [19:21] no, thats just for >68010 [19:21] oh, lol [19:21] I forgot to hide the splash screen, that's all [19:22] :) [19:29] pretty sweet [19:29] I have to clean up a few things [19:29] does it work? [19:29] looks like it to me [19:29] nice [19:29] hehe [19:29] good job db48x [19:31] oops [19:31] I made all of these changes on top of a different uncommitted patch [19:32] where I remove all of the duplicated MESS code, and change everything to say MAME instead [19:32] I'll deal with that later [19:33] ok ic [19:34] the other thing to deal with is that the MAME/DosBox and the SAE paths diverge a bit at the end [19:34] I need to repair that [19:34] on the other hand, that'll let me support modularized emscripten builds [19:34] which will be nice [19:35] ooh, yeah [19:36] I might ditch my custom loader and switch to emularity if you add module support :D [19:40] :) [19:40] very soon [23:43] *** Coderjoe has quit IRC (Read error: Operation timed out) [23:50] *** Coderjoe has joined #jsmess