This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Kolpa's profile picture

[Windows] simple lua emulator

Started by Kolpa, 21 April 2012 - 11:31 AM
Kolpa #1
Posted 21 April 2012 - 01:31 PM
so i sat myself down and coded a lua emulator for Windows :)/>/>


NOTE: FOR NOW THIS DOESNT UNDERSTAND CC SYNTAX

WARNING: U NEED .NET Framework 4

Please note im to busy to work on this right now so please use this lovely tool instead: http://www.computercraft.info/forums2/index.php?/topic/2674-computercraft-emulator-v03/
if that is proper english :)/>/>

Download
SpoilerClick me :)/>/>


Screenshots
Spoiler
http://imgur.com/a/R5JOh#0

.Net Fw
Spoiler
http://www.microsoft...s.aspx?id=17851

Changelog
Spoiler1.0.0.1 added the network check for version info and added read() command

1.0.0.0 Initial Release
if u find any errors feel free to report them to me :)/>/>
6677 #2
Posted 21 April 2012 - 02:03 PM
Why did you bother when you can get lua for windows anyway.
Lua is just a programming language, you don't emulate it, you interpret it.

http://code.google.com/p/luaforwindows/ <the official version made by the original lua devs.
Kolpa #3
Posted 21 April 2012 - 02:42 PM
Why did you bother when you can get lua for windows anyway.
Lua is just a programming language, you don't emulate it, you interpret it.

http://code.google.c.&#46;&#46;/luaforwindows/ <the official version made by the original lua devs.
i know that :)/>/> but well i coded this one for the circumstances of adding computer craft code syntax, so u can test ur program outgame and thats also the point why it is an emulator :)/>/>

and also as u can tell my tool is lightweight instead of the original lua for windows :)/>/>

hoped i coud clearificate my point :)/>/>
libraryaddict #4
Posted 21 April 2012 - 03:59 PM
When I attempt to run the program it doesn't do anything.

I run windows 7 Home premium and its a pretty clean install atm
Kolpa #5
Posted 21 April 2012 - 04:03 PM
When I attempt to run the program it doesn't do anything.

I run windows 7 Home premium and its a pretty clean install atm

ur running the latest .net framework ?
:)/>/> thats probably the issiue

http://www.microsoft...s.aspx?id=17851
Advert #6
Posted 21 April 2012 - 06:27 PM
I don't really see the use of this unless it also emulates cc.
cant_delete_account #7
Posted 21 April 2012 - 06:36 PM
Ignore:

(please remove this reply)
Kolpa #8
Posted 21 April 2012 - 07:03 PM
I don't really see the use of this unless it also emulates cc.

i know :)/>/> i just wanted to try out the lua.net stuff and wanted to see how the released thing looks :)/>/> im working on addin the cc functions and maybe a litte constructor where u can set the turtles and stuff and interact to them over program code :)/>/>
BigSHinyToys #9
Posted 21 April 2012 - 10:38 PM
I like the idea of an emulator for CC but I would use it more for ruining lua when computer craft is not updated or when Minceraft is not available ( if you make it portable app for USB ) would be very useful combined with Notepad++ in its own IDE.

while I admire the effort that goes into something like this it just leaves me thinking "Why not make a folder called user on the rom and modify files outside minecraft with Notepad++ and run the in game from rom?"


Edit
for anyone with a bad Internet connection you might want to try this instead of the web installer for .Net 4

http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=17718
Squizzle #10
Posted 22 April 2012 - 01:00 AM
.NET 4.0 does not come with Windows 7 (Any). .NET 3.5 is included with Windows 7. Did you know that Java also has a lua implimentation called LuaJ that is used by Computer Craft internally. It is very easy to get up and running if you already know how to program in java. http://luaj.org/luaj/README.html
MysticT #11
Posted 22 April 2012 - 02:36 AM
Nice work. I started doing something like this, but with LuaJ. It doesn't have the CC functions yet, just the screen and the lua interpreter (wich doesn't work correctly for some reason), and I can't work on it for now, so it might never be released.
There's some pics of the current progress:
Spoiler
Luanub #12
Posted 22 April 2012 - 04:26 AM
It would be nice if this was done so it ran on the java vm so you could run it on any OS. Would be nice to be able to use it on a Linux based systems, I would be able to test my scripts at work then.
Kolpa #13
Posted 22 April 2012 - 10:29 AM
It would be nice if this was done so it ran on the java vm so you could run it on any OS. Would be nice to be able to use it on a Linux based systems, I would be able to test my scripts at work then.

well jes im not quite that confident with java :)/>/> so i coded it in vb.net but if i ever get to the point of doing it i will post it here :)/>/>
Luanub #14
Posted 22 April 2012 - 11:29 AM
Yeah that is about where my java skills are at. I'm learning but not quite there yet. Someday hopefully I can make my own. :)/>/>

Good job on this it will come in handy for sure.
sam_technologeek #15
Posted 06 May 2012 - 03:24 PM
Cool Idea.

Was thinking in making something like this.
Onionnion #16
Posted 06 May 2012 - 03:36 PM
I'd love to see this be made cross-platform, or even as a CLI utility.
Tiin57 #17
Posted 16 July 2012 - 04:37 PM
Any updates on this?
Kolpa #18
Posted 17 July 2012 - 03:05 PM
Any updates on this?
sadly im to busy with work to do this atm :/