• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

gamax92/OCEmu: OpenComputers Emulator in Lua. Depreciated

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

gamax92/OCEmu

开源软件地址(OpenSource Url):

https://github.com/gamax92/OCEmu

开源编程语言(OpenSource Language):

Lua 97.9%

开源软件介绍(OpenSource Introduction):

OCEmu - OpenComputers Emulator

Depreciated

I haven't been active with OpenComputers or Minecraft in general.
Please see https://github.com/zenith391/OCEmu for a more up to date fork.

Installation

Needs lua-5.2, luafilesystem, luautf8, luaffi, and SDL2.
luasocket is optional but is required for the Internet Component and higher precision timing.
luasec is optional but is required for HTTPS.

This git repository contains submodules, please clone using git clone --recursive https://github.com/gamax92/OCEmu.git

Windows

Binaries: Windows 32bit and Windows 64bit (Build Date)

The binaries above have everything pre compiled and packed up for ease of use.

If you'd like to compile OCEmu yourself for Windows, the provided script msys2_setup_ocemu.sh will automated the compiling process for Windows, run it inside of the MSYS2 environment.
Ignore the Lua Libraries step as it doesn't work on Windows and the script does this for you.

Ubuntu

apt-get install lua5.2 liblua5.2-dev libsdl2-dev subversion

Install a versioned luarocks for 5.2 as described in: http://stackoverflow.com/a/20359102

# Download and unpack the latest luarocks from: http://luarocks.org/releases
./configure --lua-version=5.2 --lua-suffix=5.2 --versioned-rocks-dir
make build
sudo make install

Follow the luarocks steps below.

Arch Linux

Grab the Lua 5.2, luarocks5.2, lua52-filesystem, lua52-sec & lua52-socket from the official repos using Pacman.

pacman -S lua52 luarocks5.2 lua52-filesystem lua52-sec lua52-socket

Now follow the luarocks steps below to get the remaining libraries which are not on Arch's repos.

Mac

Mac users can get up and running quickly by using brew.

Brew installs luarocks as part of the lua package.

# Run this before the luarocks install steps below
brew install lua
brew install sdl2

Follow the luarocks steps below.

Lua Libraries

luarocks-5.2 install luafilesystem
luarocks-5.2 install luautf8
luarocks-5.2 install luasocket
luarocks-5.2 install luasec
cd luaffifb
luarocks-5.2 make

# OpenComputer's lua source code is not provided, if you have svn then use the provided Makefile
# If you hate svn, manually download assets/loot, assets/lua, and assets/font.hex into src/

Running

Launch boot.lua with lua5.2, and provided everything is installed, you'll have a working Emulator.
OCEmu stores its files in the following locations:

OS Location
Windows %APPDATA%\\OCEmu
Linux $XDG_CONFIG_HOME/ocemu or $HOME/.config/ocemu
cd src
lua boot.lua

If you want to use a custom path (for example, for running multiple machines with unique filesystems) you can specify the machine path as an argument to boot.lua:

cd src
lua boot.lua /path/to/my/emulated/machine_a



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
fperrad/lua: Lua on Parrot发布时间:2022-08-16
下一篇:
timn/lua-xmlrpc: Lua XML-RPC is a Lua package to access and provide XML-RPC serv ...发布时间:2022-08-16
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap