Code Monkey home page Code Monkey logo

omp-node-ts's Introduction

Introduction

A very simple omp server template that based on samp-node and uses the library @infernus/core

Getting started

Recommended

pnpm create @infernus/app

Manual

The necessary files were removed to ensure that the latest version is always used and that the repository file size is reduced

  1. Download the omp server, later extract the omp-server[.exe] and components folder to the project root directory
  2. Download the samp-node, later put libnode.so/dll in the project root directory and samp-node.so/dll in the plugins folder
  3. Download the streamer plugin, later put streamer.so/dll in the plugins folder
# clone the project with https
git clone https://github.com/dockfries/infernus-starter
# or ssh
git clone [email protected]:dockfries/infernus-starter.git

# enter the project directory
cd infernus-starter

# install dependency
pnpm install

# change rcon.password in config.json
vim config.json

"rcon": {
  "password": "changeme" # change this
},

# develop (start compilation, listen for changes and restart automatically)
pnpm dev

Build

# build for production environment
pnpm build

# run omp server
pnpm serve

Notice

  • Why does crash the first time you run it?
  • samp-node plugin should be executed after other plugins, see config.json -> pawn.legacy_plugins
  • samp-node requires compliance with the commonjs specification and has been converted via rollup

Credits

License

MIT License © 2022-PRESENT Carl You

omp-node-ts's People

Contributors

dockfries avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

omp-node-ts's Issues

Why does crash the first time you run it?

dist folder doesn't exist at the first, 'rollup' will start compiling with an error message because 'omp server' can't find the file.

After this, 'rollup' is compiled and produces the 'dist' folder, and the server restarts automatically as' nodemon 'listens for file changes. At this point, the server can find the file in the dist folder, so it works.

Write a cli to quickly generate templates

Write a cli to quickly generate templates, automatically download necessary dependencies, and choose the default environment (streamer, samp-node, omp-latest) or raknet, etc

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.