mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-08-03 11:07:23 -04:00
Updated Home (markdown)
parent
abb6f63bc4
commit
57294d9f1a
8
Home.md
8
Home.md
@ -3,7 +3,7 @@ Welcome to the documentation of OpenComputers!
|
||||
|
||||
This wiki is organized into four parts:
|
||||
- General information (this page).
|
||||
- [[Block and item documentation|BlocksItems]].
|
||||
- [[Block|Blocks]] and [[item|Items]] documentation.
|
||||
- [[Lua API documentation|APIs]].
|
||||
- [[Component API documentation|Components]].
|
||||
|
||||
@ -12,7 +12,7 @@ OpenComputers is a mod that adds computers and robots into the game that can be
|
||||
Persistence
|
||||
-----------
|
||||
|
||||
Programs will resume where they were stopped when the chunk with the computer they run on was unloaded and reloaded later. This is partularly useful for single player, servers where you can't spam chunk loaders and last but not least Redstone in Motion frames. OpenComputers achieves this by persisting the actual call stacks of all running coroutines. This is the reason OpenComputers cannot use a Java implementation of the Lua VM, since those all use Java threads as far I'm aware, which cannot be persisted. Therefore:
|
||||
Programs will resume where they were stopped when the chunk with the computer they run on was unloaded and reloaded later. This is particularly useful for single player, servers where you can't spam chunk loaders and last but not least Redstone in Motion frames. OpenComputers achieves this by persisting the actual call stacks of all running coroutines. This is the reason OpenComputers cannot use a Java implementation of the Lua VM, since those all use Java threads as far I'm aware, which cannot be persisted. Therefore:
|
||||
|
||||
**Important**: OpenComputers requires a native library - the [Eris] library, specifically. This includes the official Lua VM implementation. However, *only the server* requires the library. Clients do not. All Lua code is executed purely on the server. Please also see [Dependencies](#dependencies).
|
||||
Currently the library is distributed with the mod for Windows and Linux (tested on Linux Mint). If you think you're capable of compiling it as a dynamic library for Mac OS, please get in touch.
|
||||
@ -26,14 +26,14 @@ Resource Limits
|
||||
---------------
|
||||
|
||||
Besides the obvious limitation of disk space, computers also have a limited amount of RAM. You'll actually have to keep this in mind when writing your programs, since low end computers can run out of memory pretty quickly.
|
||||
This also makes computers quite server-friendly, since it's less likely for them to strain the server unduly. A few more limits are in place to further enhance server performance: OpenComputer does not have to spawn a new thread for each coroutine. Instead, it uses a fixed number of low-priority worker threads to drive all currently loaded and running computers. Computers are also forced to yield regularly (per default within one second) to avoid them blocking the worker threads. If they fail to do so, the computer will "crash".
|
||||
This also makes computers quite server-friendly, since it's less likely for them to strain the server unduly. A few more limits are in place to further enhance server performance: OpenComputers does not have to spawn a new thread for each coroutine. Instead, it uses a fixed number of low-priority worker threads to drive all currently loaded and running computers. Computers are also forced to yield regularly (per default within one second) to avoid them blocking the worker threads. If they fail to do so, the computer will "crash".
|
||||
|
||||
Power
|
||||
-----
|
||||
|
||||
Computers and certain components need power to operate. For example, computers and screens require a constant amount of energy per tick to continue running / displaying. If there is not enough power, computers will crash / stop. Graphics cards consume energy when modifying the screen they are bound do, the amount of energy being consumed depending on the size of the area that is changed. Wireless network cards consume energy when sending wireless messages, based on the used signal strength. Robots use energy to move and perform other actions.
|
||||
|
||||
There is - except for a robot upgrade - no built-in mechanic for generating power at this point, so you'll want to use this mod together with others. OpenComputers can convert power from BuildCraft, IndustrialCraft² and Universal Electricity using the [[Power Converter block|BlocksItems#PowerConverter]].
|
||||
There is - except for a robot upgrade - no built-in mechanic for generating power at this point, so you'll want to use this mod together with others. OpenComputers can convert power from BuildCraft, IndustrialCraft² and Universal Electricity using the [[Power Converter block|Blocks#PowerConverter]].
|
||||
|
||||
Connectivity
|
||||
------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user