CodeWalrus

Featured Member Projects => Completed and Inactive Projects => [Inactive] KnightOS (TI-73/83+/84+/CSE) => Topic started by: Yuki on November 18, 2014, 01:33:53 PM

Title: KnightOS
Post by: Yuki on November 18, 2014, 01:33:53 PM
http://juju.codewalr.us/emu.html

Just trying out something.


EDIT (DJ) made it external link because it will make some people's older computers freeze otherwise >.<
Title: Re: KnightOS
Post by: novenary on November 18, 2014, 01:49:57 PM
Whoa it's pretty cool that you got this running here. :D It totally lags my browser though (and maxes a whole cpu core out O.O).
/me enables e10s to try

Edit : OK lol e10s totally breaks it (maybe it's because of vimperator but I'm too lazy to turn it off :P).
Title: Re: KnightOS
Post by: Yuki on November 18, 2014, 02:49:00 PM
Yeah, it will be pretty useful if and when we'll get some nice KnightOS packages in the downloads section eventually.
Title: Re: KnightOS
Post by: Dream of Omnimaga on November 18, 2014, 11:04:16 PM
Yeah I agree. I think this should be used mostly for the future arcade, though. If this site gets an arcade like Omni had it will be calc-only material or at least ports of calc games, and being able to disallow exiting games and launching them instantly, while also being able to extract highscores would be amazing.

However, I don't think we should implement TI-OS support since it will require uploading a ROM for the user, unless you implement some ROM uploader that doesn't keep a ROM copy on the server like jsTIfied. So yeah people might have to port some games :P


SirCMpwn really needs to make this emulator less laggy, though. It's awesome but on my Intel Core i7 in CHrome and Opera it's like if I was running Crysis 2 maxed out. This might also explain the server lag if there is any PHP code in this.
Title: Re: KnightOS
Post by: aetios on November 19, 2014, 10:16:43 AM
How? I am not getting any lag, and I'm running a mobile i5 O.o
Title: Re: KnightOS
Post by: pimathbrainiac on November 19, 2014, 01:04:45 PM
I'm getting lag myself. Maybe GPU has more to do with it than CPU?
Title: Re: KnightOS
Post by: aetios on November 19, 2014, 04:05:01 PM
Err, actually... I'm getting lag, especially on Phoenix :P
Title: Re: KnightOS
Post by: Dream of Omnimaga on November 19, 2014, 05:26:14 PM
Yeah lots of lag in Phoenix and my computer fans spin like crazy
Title: Re: KnightOS
Post by: matrefeytontias on November 19, 2014, 06:24:35 PM
Haha yeah z80e is in the "work first, optimize later" stage.
Title: Re: KnightOS
Post by: novenary on November 19, 2014, 06:37:39 PM
The problem is that the emulator was not really made for browsers. I can actually run the PC version at something like 300MHz. :P
Title: Re: KnightOS
Post by: Yuki on November 19, 2014, 06:46:25 PM
Yeah, an arcade based on calc games would be pretty cool. KnightOS can launch games without going through the castle menu and for the high scores, you would probably be able to look in the RAM, but that's game by game. A ROM uploader would be doable entierely in Javascript with HTML5 storage. And we have a few people here who works on KnightOS stuff iirc, guess he can always help us.

Anyway, the emulator works fine on Chrome with computers I tested with 4GB RAM. On this netbook with 1GB RAM it's kinda laggy, but usable. Well, at least it's better than nothing.
Title: Re: KnightOS
Post by: novenary on November 19, 2014, 06:52:10 PM
I thnk Firefox is the only browser supposed to run it really well for now due to asm.js (that iirc Chrome doesn't have).
Title: Re: KnightOS
Post by: Yuki on November 19, 2014, 07:10:15 PM
asm.js stuff runs pretty well on Chrome. You just need a decent computer. Of course, your mileage may vary.
Title: Re: KnightOS
Post by: Dream of Omnimaga on November 19, 2014, 10:50:21 PM
I got a quad core 2.8 GHz with 8 GB of RAM so maybe it's my GPU?  Anyway I assume it will improve in terms of speed in the future, else not many people will use it. If jsTIfied CSE emulation can run at full speed on this computer then I'm sure it would be possible to improve this KOS emulator to run just as fast. It just takes quite a lot of work and we have to be patient. >.<
Title: Re: KnightOS
Post by: novenary on November 19, 2014, 11:17:54 PM
The emulator is purely CPU based.
Title: Re: KnightOS
Post by: Snektron on January 01, 2015, 03:02:59 PM
Really nice :D although the takes a bit to load.
This can maybe be used for an online IDE which can run your program
w/o downloading and uploading it to an emu first?
Title: Re: KnightOS
Post by: Dream of Omnimaga on January 01, 2015, 11:02:14 PM
If KnightOS ever gets an on-calc programming language, then this emulator could definitively be useable to develop programs. The best part will most likely be debugging, though, for people who use ASM/C. But yeah as long as this uses KnightOS and Bootfree/any other custom Boot code, you should be able to use this emulator without having to provide your own ROM.
Title: Re: KnightOS
Post by: Yuki on January 02, 2015, 04:06:19 AM
Quote from: Cumred_Snektron on January 01, 2015, 03:02:59 PM
Really nice :D although the takes a bit to load.
This can maybe be used for an online IDE which can run your program
w/o downloading and uploading it to an emu first?
Quote from: DJ Omnimaga on January 01, 2015, 11:02:14 PM
If KnightOS ever gets an on-calc programming language, then this emulator could definitively be useable to develop programs. The best part will most likely be debugging, though, for people who use ASM/C. But yeah as long as this uses KnightOS and Bootfree/any other custom Boot code, you should be able to use this emulator without having to provide your own ROM.
/me points to http://try.knightos.org/
Title: Re: KnightOS
Post by: Dream of Omnimaga on January 02, 2015, 04:11:51 AM
Oh that's pretty nifty. :D I'M still hoping for the ability to send commands via a browser and sending commands back to the browser, so that we could setup an arcade with highscores that is entirely based on calculator stuff or close. Another cool thing would be if we could link-play accross multiple connections, but I dunno how hard (if that's possible at all) it would be to enable such emulator feature and if it would be worth it.
Title: Re: KnightOS
Post by: novenary on January 03, 2015, 11:44:00 PM
I should poke SIrcmpwn about this. Pretty sure he'd be happy to see his stuff is being used. :)
Title: Re: KnightOS
Post by: Dream of Omnimaga on January 04, 2015, 04:54:39 AM
That said, since I was still Omni admin when the 2011 incidents started happening, I hope he didn't hold any grudges that could have resulted into the opposite. I think he would like the idea of such calc-based arcade, though, because I think he once wanted to do something involving calculator games and highscores back then.


I am curious about how hard it would be to make such arcade hacker proof, though. I think for it to be safe, we would need to be able to disable certain keys and emulator features, so that the user won't just plain reset the emulated calc then send an hacked copy of Phoenix, for example.
Title: Re: KnightOS
Post by: novenary on January 06, 2015, 08:31:13 AM
He doesn't like you, but that doesn't mean he can't be cooperative. :)
Title: Re: KnightOS
Post by: Dream of Omnimaga on January 07, 2015, 04:31:19 AM
Indeed, but having seen some more recent stuff with other people, as well as hearing about some much older IRL incidents, we never know :P. Hopefully it's fine, though (besides, after all, if some people use KnightOS here then this means it's more popular.) :)
Title: Re: KnightOS
Post by: novenary on January 21, 2015, 10:48:34 AM
About hacking the emulator, it would probably require some browser tricks to replace page resources. Not something the average user could do and I don't think people who can are stupid enough to cheat to get highscores.
Title: Re: KnightOS
Post by: Dream of Omnimaga on January 21, 2015, 03:44:43 PM
Oh I meant hacking as in quitting the game, sending MirageOS/DCS then unlocking game code to edit some of the gibberish in the BASIC editor. Hence why I was saying it would be nice if it was possible to make the emulator redirect to another webpage on game exit or stuff like that, depending of the script used on the said site :P

Title: Re: KnightOS
Post by: novenary on January 21, 2015, 03:49:34 PM
Wouldn't be possible.
Title: Re: KnightOS
Post by: Snektron on January 21, 2015, 03:51:35 PM
How would you even send it? :P
Title: Re: KnightOS
Post by: novenary on January 21, 2015, 03:58:56 PM
The emulator runs locally in your browser.
Title: Re: KnightOS
Post by: Dream of Omnimaga on January 22, 2015, 05:02:33 AM
I suggested the idea because TiEmu did it with 68K calcs compilers. On some TI-89T ROMs, if you compiled a program with TIGCC, you could run it in a single click (Compile+Run IIRC). It automatically pasted the program name on the home screen then pressed ENTER automatically. However, I don't think TIGCC had any control on what you do next in TiEmu (such as exiting the game)