#jsmess 2016-07-30,Sat

↑back Search

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

irclogger-viewer