Jump to content




[CC1.5]ComputerCraft Emulator V0.57 (February 19th)


399 replies to this topic

#1 tomass1996

    sυρяємє ovєяloяđ

  • Members
  • 348 posts
  • LocationNew Zealand

Posted 17 July 2012 - 10:21 AM

Posted Image


This an emulator of ComputerCraft that does not require Minecraft to be installed, But allows you to run computers as if you were in Minecraft.

Attention:
This project is pretty much dead at this point in time, I just do not have the time available to work on it (the very thing that caused Lochie to leave and eventually begin his own project), neither do I at this point in time have the 'enterprise' level skills/knowledge to compete with the kind of plans and features Lochie has in store for CCDesk. I'll endeavor to keep the applet online until I feel it is time to take it down. Thank you to all the people who supported me and this project and I wish Lochie all the best with CCDesk.

Features:
-All the apis from ComputerCraft are enabled
-Supports advanced computers
-That includes rednet so all the emulated computers can talk to each other
-All the computers come with a modem on the right hand side, ie rednet.open("right")

Installation/Running:
NOTE: Requires Java 1.6
This emulator strives to retain as much original functionality of the mod as it can. One thing that helps to achieve this is that Dan200 has given me permission to use the original mod classes in the emulator.
All you need to do is run the launcher .jar and it will automatically download the core cc-emu files along with computercraft and the lwjgl library files. If there is an updated version it will ask you if you would like to download the new version ^_^

A directory named ccemu will be created in one of these places:
On Windows -> %appdata%.ccemu
On Linux -> ~/.ccemu
On Mac -> ~/Library/Application Support/ccemu

Inside it you will find these things
- bin folder, Where cc-emu, computercraft, lwjgl libs are kept
- saves folder, Where the computers files and folders are kept
- screenshots folder, Where screenshots taken from cc-emu are kept
- crash-reports folder, Where crash-reports if they occur are kept
- mods folder, Not created by default but you can manually make the directory structure of ccemu/mods/ComputerCraft/lua/rom So that you can externally edit/make programs stored in the rom
- EmulatorSettings.cfg, This is the configuration file for cc-emu
- ccemu-X.log, Are log files not much gets written to these atm except for exceptions that cause the aforementioned crash reports


Using It:
Posted Image
//Sorry still working on some new screenshots ;P
This will do for now:

Shortcuts:
CTRL + T : Terminate focused computers
CTRL + S : Shutdown focused computers
CTRL + R : Reboot focused computers
CTRL + V : Paste clipboard into focused computers
ESCAPE : Close all focused computers
CTRL + N : Quick create a new computer, Auto sets id to lowest avail.
CTRL + ALT + N : Quick create a new adv computer, Auto sets id to lowest avail.
F1 : Take screenshot
F2 : Toggle some debug info
CTRL + Right Click : Add computer to focused 'list'
Left Click : Give lone focus / move computer

Config File:
Example default config file:
# Configuration file
# Generated on 23/10/12 4:37 PM

####################
# general
####################

general {
   # The disk space limit for computers, in bytes (0 is unlimited)
   computerSpaceLimit=2097152
   # The colour of the Emulator background (blue component);[def: 163]
   emulator_backgroundColour_b=163
   # The colour of the Emulator background (green component);[def: 122]
   emulator_backgroundColour_g=122
   # The colour of the Emulator background (red component);[def: 48]
   emulator_backgroundColour_r=48
   # The amount of scaling that is applied to the Computer screens;[def: 1]
   emulator_guiScale=1
   # Enable the "http" API on Computers;[def: false]
   enableAPI_http=false
   # The colour of the Computer screen 'frame' when focused (blue component);[def: 0]
   terminal_focusColour_b=0
   # The colour of the Computer screen 'frame' when focused (green component);[def: 0]
   terminal_focusColour_g=0
   # The colour of the Computer screen 'frame' when focused (red component);[def: 255]
   terminal_focusColour_r=255
   # The height of Computer screens, in characters;[def: 19]
   terminal_height=19
   # The width of Computer screens, in characters;[def: 51]
   terminal_width=51
}

Downloads:
CC-Emu Launcher[cc-emu V0.5 and up][Oct 23rd]: [Removed by request. -L]

Bug/Issue/Suggestion Reporting:
If you have a bug or issue to report or even a suggestion, please post them here: CC-Emu Issues
This makes it a lot easier to keep track of them.
You can also contact me quite often on the EsperNet IRC in the #computercraft channel and also the #cc-emu channel although nobody else ever goes in there :C
Or alternatively you can post here on this thread with your reports/suggestions.

Changelog:
23/10/2012: Version 0.5pr4
-Major rewrite
-Updated lwjgl to 2.8.3
-Updated ComputerCraft to 1.45
-Moveable Computer 'screens'
-Added Advanced Computers
-Added screenshot function, F1
-Added show [not very helpful] debug info, F2
-Uses fixed install directory
-Added toolbar
-Now uses a launcher system
-Now downloads all required libraries
-Better Crash Reporting
--> Shows crash-report screen
--> Saves crash-reports to file
-Window is resizeable
-Fixed the computer frame render 'bug'
-Added ability to create new computers with CTRL+N
-Added ability to close computers
-Removed CTRL+PgUp & CTRL+PgDn shortcuts

20/7/2012: Version 0.4
-Fixed Heater Issue
-Added ability to change static directory
-Made CC installation checking more robust
-Added Font scaling in config
-Added ability to cycle focus with CTRL + (PgUp || PgDn)
-Added ability to paste text

17/7/2012: Version 0.3
-Initial release

Donate:
If you would like to show your support for CC-Emu, consider using the donation button below to help me out. All proceeds will go into purchasing web hosting and the like for the web applet and other web based services for CC-Emu. Until such time that I have web hosting I'll put all donators below and after on a special page hosted on the website, please specify your username if you would like to appear on the list in the special instructions box on the donation page. :)/>

Posted Image


Donators:
Spoiler

License:
Spoiler

Permission has been given to me (tomass1996) to use and redistribute the ComputerCraft mod and associated files by dan200.

LWJGL License: http://lwjgl.org/license.php

Edited by Lyqyd, 28 March 2014 - 02:25 PM.


#2 Tiin57

    Java Lunatic

  • Members
  • 1,357 posts

Posted 17 July 2012 - 10:25 AM

Edit: Thank you! Testing on OS X now.

#3 tomass1996

    sυρяємє ovєяloяđ

  • Members
  • 348 posts
  • LocationNew Zealand

Posted 17 July 2012 - 10:50 AM

View Posttiin57, on 17 July 2012 - 10:25 AM, said:

Yay, thank you for the first CC emulator that actually works with CraftOS apis and programs! However, I don't see a download link. I'll test on OS X as soon as one goes up.

Page currently under construction once I have finished writing up the page and adding images it will go up,
Submitting the thread before it is finished is like saving it in case I stuff up.

#4 Mendax

  • Members
  • 366 posts

Posted 17 July 2012 - 11:00 AM

:P/> you released it! I'm happy :)/> Time to work on ShadOS ;)/>
EDIT: D: No DL link? D:

#5 tomass1996

    sυρяємє ovєяloяđ

  • Members
  • 348 posts
  • LocationNew Zealand

Posted 17 July 2012 - 11:10 AM

View Postmrminer84403, on 17 July 2012 - 11:00 AM, said:

:P/> you released it! I'm happy :)/> Time to work on ShadOS ;)/>
EDIT: D: No DL link? D:

Read the top of the thread
UNDER-CONSTRUCTION

#6 Mendax

  • Members
  • 366 posts

Posted 17 July 2012 - 11:14 AM

View Posttomass1996, on 17 July 2012 - 11:10 AM, said:


Read the top of the thread
UNDER-CONSTRUCTION
I know. Still. I'll wait a bit... :P/>

#7 tomass1996

    sυρяємє ovєяloяđ

  • Members
  • 348 posts
  • LocationNew Zealand

Posted 17 July 2012 - 11:19 AM

Ok guys DL link should be up within half an hour just need to do a couple tweaks.

#8 Mendax

  • Members
  • 366 posts

Posted 17 July 2012 - 11:25 AM

View Posttomass1996, on 17 July 2012 - 11:19 AM, said:

Ok guys DL link should be up within half an hour just need to do a couple tweaks.
:)/> ;)/> ;)/> ;)/> :)/> Please tell me you can add files to the computer dir :D/> :D/> :D/> :D/> :D/>
EDIT:
hfjdhdkjhk Never mind :P/>

#9 tomass1996

    sυρяємє ovєяloяđ

  • Members
  • 348 posts
  • LocationNew Zealand

Posted 17 July 2012 - 11:27 AM

View Postmrminer84403, on 17 July 2012 - 11:25 AM, said:

View Posttomass1996, on 17 July 2012 - 11:19 AM, said:

Ok guys DL link should be up within half an hour just need to do a couple tweaks.
:P/> :)/> ;)/> ;)/> ;)/> Please tell me you can add files to the computer dir :)/> :D/> :D/> :D/> :D/>

You mean the dir that are the id numbers? Well then yes, they're just like normal CC computers

#10 Mendax

  • Members
  • 366 posts

Posted 17 July 2012 - 11:57 AM

P.S. I'm refreshing this page every five mins to check if it's up :P/>

#11 tomass1996

    sυρяємє ovєяloяđ

  • Members
  • 348 posts
  • LocationNew Zealand

Posted 17 July 2012 - 12:05 PM

Houston, We have lift off.

#12 Mendax

  • Members
  • 366 posts

Posted 17 July 2012 - 12:07 PM

:P/> YAY :)/> YAY

#13 samrg472

  • Members
  • 64 posts

Posted 17 July 2012 - 12:44 PM

Nice work on this :P/>

#14 tomass1996

    sυρяємє ovєяloяđ

  • Members
  • 348 posts
  • LocationNew Zealand

Posted 17 July 2012 - 12:56 PM

View Postsamrg472, on 17 July 2012 - 12:44 PM, said:

Nice work on this :P/>

Thank you,
Glad you like it.

In other news I've gotten reports of it working on linux.

#15 Tiin57

    Java Lunatic

  • Members
  • 1,357 posts

Posted 17 July 2012 - 01:59 PM

Ok, excellent job and all, still quite impressed, but on OS X, it starts and goes to the terminal screen fine, but with a 2x2 setup, I cannot change screens or input to the default selected screen. (I am running Mountain Lion, or OS X 10.8).
Also, a copy/paste function would be nice.
Finally, how would I make a program available to all the emulator computers? They don't seem to read anything except the default programs in mods/computercraft/lua/rom/programs.

#16 Sxw

  • Members
  • 268 posts
  • LocationWhenever, Wherever!

Posted 17 July 2012 - 02:07 PM

Ohhhhhhh, I have Lion (NOT the dev version that tiin57 has, the one that normal people have and im testing in in just a sec...
EDIT:Same result as tiin. D:

#17 kazagistar

  • Members
  • 365 posts

Posted 17 July 2012 - 07:12 PM

View Posttiin57, on 17 July 2012 - 01:59 PM, said:

Also, a copy/paste function would be nice.
Finally, how would I make a program available to all the emulator computers? They don't seem to read anything except the default programs in mods/computercraft/lua/rom/programs.
They are a full emulator, as far as I can tell, so they will read bios and startup just like any a computercraft computer, have the same limitations, etc.

On another note, I have a small issue... the program does not idle. I don't know if this is a CC limitation or what, but idling 1 terminal causes 99% CPU usage and causes it to enter heater mode.

#18 luingar

  • New Members
  • 8 posts

Posted 17 July 2012 - 11:49 PM

Suggestion. Context menu. This could let you do many many things, making the emulator a much better testing enviroment without sacrificing asthetics or realistic-ness (I hate when I forget a word)

here's a shitty photoshop of how it could look.

Posted Image

#19 tomass1996

    sυρяємє ovєяloяđ

  • Members
  • 348 posts
  • LocationNew Zealand

Posted 18 July 2012 - 04:30 AM

View Posttiin57, on 17 July 2012 - 01:59 PM, said:

Ok, excellent job and all, still quite impressed, but on OS X, it starts and goes to the terminal screen fine, but with a 2x2 setup, I cannot change screens or input to the default selected screen. (I am running Mountain Lion, or OS X 10.8).
Also, a copy/paste function would be nice.
Finally, how would I make a program available to all the emulator computers? They don't seem to read anything except the default programs in mods/computercraft/lua/rom/programs.

View PostSxw1212, on 17 July 2012 - 02:07 PM, said:

Ohhhhhhh, I have Lion (NOT the dev version that tiin57 has, the one that normal people have and im testing in in just a sec...
EDIT:Same result as tiin. D:

Hmm that is strange it *should* work though that obviously not guaranteed due to each os being different.
Did you get any errors output in your terminal/console window?
It sounds like an issue with LWJGL + OSX

#20 tomass1996

    sυρяємє ovєяloяđ

  • Members
  • 348 posts
  • LocationNew Zealand

Posted 18 July 2012 - 04:41 AM

View Postkazagistar, on 17 July 2012 - 07:12 PM, said:

On another note, I have a small issue... the program does not idle. I don't know if this is a CC limitation or what, but idling 1 terminal causes 99% CPU usage and causes it to enter heater mode.

Hmm that isn't good I'll see if I can mend this.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users