Jump to content

Recommended Posts

Posted
12 minutes ago, lpossamai said:

Hi. Sorry but it is unclear the installation instructions for me.

  1. Put all files in your project.

Does that mean clone the repository under C:\RAGEMP\server-files\packages?
I.e.: C:\RAGEMP\server-files\packages\rageserver?

I do that, run all steps you mention and when executing server.exe I get the error:


[N] Starting network... - OK: (IPv4-only) at 127.0.0.1:22005
(node:17480) ExperimentalWarning: The ESM module loader is experimental.
Loading packages
        "rageserver" loaded
Error: Error: Cannot find module './packages/rageserver'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
    at Function.Module._load (internal/modules/cjs/loader.js:507:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at getDirectories.forEach.src (<anonymous>:827:341)
    at Array.forEach (<anonymous>)
    at _initialize (<anonymous>:827:272)
    at <anonymous>:833:1
[P] Plugin bridge.dll loaded!
Started HTTP server at 22006 port.

What am I doing wrong? Thanks!

This has been fixed. I put the files under C:\RAGEMP\server-files\. Thanks!

  • 1 month later...
Posted
В 25.04.2020 в 21:30, RealTDZ сказал:

im unable to get the code it gives me an error

 

I doint see the error. What's the error?

  • 6 months later...
Posted
  1. Install Ragemp server.
  2. Put all files in your project.
  3. Run npm i by cmd in main directory with "server.exe" excutable script.
  4. Server using MySQL as a database. So you have to import sql file in to your database. In database management make one like "ragerp". Import sql structure file (rpserver.sql) into it.
  5. Rename sMailer.js.example and sMysql.js.example to sMailer.js and sMysql.js in ./app/server/,then modify the settings.(More sMailer instructions see https://nodemailer.com/usage/)
  6. Modify files in app directory (if you need).
  7. Do npm run build by cmd in main directory (BESURE DO THIS every time after some improvements in 'app' directory). or npm run watch for watching for changes and autorebuild
  8. Start a server

 

I did everything you mentioned before. Only Number 2 and Number 7 wasnt possible. I have a Zap-Hosting.com RageMP Server. My Files are on a ftp-Server. I use WinSCP to manage the files.

I use Git CMD and log-in into my FTP. Afterwards I switch the directory to the main directory where the "server.exe" lies. Sadly when I type "npm i" or "npm run build" it doesnt work for me.... 

Someone got an idea what I'm doing wrong?

Posted
19 hours ago, PatrickSidinaps said:
  1. Install Ragemp server.
  2. Put all files in your project.
  3. Run npm i by cmd in main directory with "server.exe" excutable script.
  4. Server using MySQL as a database. So you have to import sql file in to your database. In database management make one like "ragerp". Import sql structure file (rpserver.sql) into it.
  5. Rename sMailer.js.example and sMysql.js.example to sMailer.js and sMysql.js in ./app/server/,then modify the settings.(More sMailer instructions see https://nodemailer.com/usage/)
  6. Modify files in app directory (if you need).
  7. Do npm run build by cmd in main directory (BESURE DO THIS every time after some improvements in 'app' directory). or npm run watch for watching for changes and autorebuild
  8. Start a server

 

I did everything you mentioned before. Only Number 2 and Number 7 wasnt possible. I have a Zap-Hosting.com RageMP Server. My Files are on a ftp-Server. I use WinSCP to manage the files.

I use Git CMD and log-in into my FTP. Afterwards I switch the directory to the main directory where the "server.exe" lies. Sadly when I type "npm i" or "npm run build" it doesnt work for me.... 

Someone got an idea what I'm doing wrong?

You must get sure you have node.js installed

  • 1 month later...
  • 1 month later...
  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...