1lann / Mimic

A fully featured emulator for the Minecraft mod ComputerCraft that runs straight in your browser.
gravlann.github.io
MIT License
45 stars 20 forks source link

[Suggestion] _MIMIC variable #75

Open Selim042 opened 8 years ago

Selim042 commented 8 years ago

In the version of Mimic I am hosting on my website I added the _MIMIC variable to _G so that programs can easily determine their environment. Personally, I like that feature in emulators, as some emulators do not respond well to some functions. So, I suggest making _G._MIMIC=true

dmarcuse commented 8 years ago

Why not just use the existing _HOST variable?

Selim042 commented 8 years ago

_HOST is not existent in the current version of CC that Mimic is using and I am not sure when that will change. But that would work too. I just would like any way of detecting what environment the program is running under.

dmarcuse commented 8 years ago

Then why not update Mimic to the latest CC version and add the _HOST variable?

Selim042 commented 8 years ago

Not sure if anyone else has been successful, but I cannot seem to update the CC version.

dmarcuse commented 8 years ago

Mimic is pretty far behind right now. It would require significant changes on the Javascript side to bring it up to date.

If I were you I'd just use an emulator like CCLite. It's faster, still very lightweight, and more capable.

Selim042 commented 8 years ago

The reason I am sticking with Mimic right now is that all I can use on my Chromebook at school.

dmarcuse commented 8 years ago

Then unless you make your own changes, I doubt you'll get any updates. Mimic is pretty stale in terms of development at this point.