Giter VIP home page Giter VIP logo

ocremote's Introduction

OCRemote new

我(上游仓库作者)自己用的 GTNH 性能优化方案

现在该分支用于无限能源之前的系统架构,并打算重写服务端和前端

部署

如果你是用上游仓库,那请回上游仓库查看。

项目三个文件夹的介绍

  • OC 为动态执行的 lua 脚本,你需要修改 energy_station.lua
  • OCServer 为游戏内 OC 电脑需要执行的文件,你需要通过复制粘贴或者 wget 将其中的两个文件上传到游戏内
  • OCRemoteServer 为与游戏内对接的 Java 端,你需要用 爪哇 运行它

安装教程

  • 一个java jdk 或 jre (你跑GTNH怎么可能会没有?)
  • 从 NEI 找到数据存储 导出物品面板 128*128 png 。将导出的文件夹放到 OCRemote 中,既这个目录下有OCOCServer等文件夹的地方。
  • 如果 MC 服务端和运行此项目不是在同一台主机运行,你需要在 OCServer/server2.lua 修改 http 地址,如果你需要修改端口,可以在 OCRemoteServer\src\main\resources\app.yml 内修改。(改完需要重新编译)
  • 将 OCServer 下的文件 全部弄到游戏内,运行 OCServer
  • OCRemoteServer有一份编译好的jar,用java -jar 文件名 就可以运行后端了。
  • 修改 OC 配置文件 允许访问本地 ip,解除内存限制(或者使用魔法内存),CPU 加速(我不知道是否需要),本项目根目录带了一份可以用的 OpenComputers.cfg(貌似不改的话,会导致服务端假死)
  • 修改 OC/energy_station.lua , 里面有一个字符串地址。将其改为接到兰博顿能源站的适配器的地址。
  • 进入oc-remote-web目录,如果你有npm环境,那么可以直接npm run previewnpm run dev(开发模式) 打开web页面。如果没有,emm,要不装一个。或者想办法部署dist文件内的编译文件。
  • itempanel.csv文件暂时不需要了,但是以后可能还会需要。目前项目自带一个 GTNH-2.5.1 + tst 0.49.27 的nei导出。
  • 运行,如果要运行在公网可以反代

Showcase

a

ocremote's People

Contributors

cyl18 avatar daygoodtime avatar resview avatar yaoerwu avatar hikari1nvoid avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.