Giter Site home page Giter Site logo

rageserver's People

Contributors

dependabot[bot] avatar deras15 avatar diegobh avatar edouardlicn avatar maramail avatar markcavalli avatar njpa382 avatar rchl2 avatar rex2630 avatar rsxdalv avatar suppercraft5000 avatar takumibr avatar yiin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rageserver's Issues

Strange Problems

hiho, i am newbie in RageMP servers but i will still learning ;)
I have downloaded a Project on the RageMP Forum (https://rage.mp/forums/topic/1559-open-source-role-play-server/) and configurate it. (mysql data are correct)
But always when i connected to the local Server, he didnt create a user entry in the Database and i can see in the server console that he query the Database correctly.
A Register or Login Window doens't opened also after connect to the local Server.

What i do wrong?

My Steps:

  1. Download Project from Github an paste it on a fresh clear RageMP Server
  2. Install Mysql Modul over npm ("npm install mysql")
  3. Edit sMisc.js for correct mysql Connection Datas
  4. Create manuell the Table for the Server (like Forum ;) )
  5. Start the Server and connect via RageMP Client to the Server

German Translation GasStation

doneText = "Erledigt!";
enterText = Drücke ~b~E ~s~um das Tankstellenmenü zu öffnen;
priceForLitreText = "Preis pro Liter:";
goodJourneyText = "Gute weiter Reise!";
offEngineText = "Bitte schalte den Motor ab!"

a problem about mail

As we know now login need email.But there is a problem with rage that any cef windows opening and minimal game and back again will get game folzen(may be conflict with pause menu).So if i use web browser to read it and back,I will get a frozen game.

mp.players empty - Client Side

Hi everyone,

I've a problem with my client side. I rework all the elements for data object but the link between the client side's players and server side is broken. When i call mp.players.toArray() i've array with empty objects... Where the player is passed to the client side ? What the variables needed ?

Best regard

Bug on creating clothshop

1: i did "/createclothingshop 5" it say success.
2: 1 did "/setchbuyerstandcoord 3"(3 is id in database for shop) it say success
3: i restart server and even game nothing show.
4: checked database,id 3 chothshop created with coord {"x":127.154,"y":-223.853"z":54.558,"rot":267.3},but no buyermenucoord.and in game clothshop manegement menu circle not show.

npm i errors

Hi,

i have some errors after npm i

C:\gtaserver\server-files>npm i
npm WARN deprecated [email protected]: This version is no longer maintained. Please upgrade to the latest version.
npm ERR! code EINTEGRITY
npm ERR! sha1-qJ+7Ig9c4l7FboxKqKT9e1sNKf4= integrity checksum failed when using sha1: wanted sha1-qJ+7Ig9c4l7FboxKqKT9e1sNKf4= but got sha512-U2ALcoAHvA1oO2xOreyHvtkQ+IELqDG2WVWRI1GH/XEmmfGIOalnM5MU5Dd2ITyWfr3m6kNqXiy8XuYyd4wKJw== sha1-NjyatchZ2p0tb7kBtk2YCWYYEYQ=. (2232 bytes)

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2019-03-31T00_45_36_804Z-debug.log

C:\gtaserver\server-files>

infini fuel?

i call a fagio,then after driving for a while drive it to hit the wall and fall from bike.when i back to it the fuel full again,so trafic accident can replace gas station.

help error

[2019-05-12T23:01:51.895] [ERROR] default - UPDATE users SET ip = '178.68.102.28', logdate = '5/12/2019, 11:01:00 PM', position = '{"x":382.7,"y":6556.7,"z":27.4,"rot":333.7,"dim":0}', health = '100', loyality = '0' WHERE id = '1'
(node:2308) UnhandledPromiseRejectionWarning: Error: ER_LOCK_WAIT_TIMEOUT: Lock wait timeout exceeded; try restarting transaction
at Query.Sequence._packetToError (C:\RAGEMP\server-files\node_modules\mysql\lib\protocol\sequences\Sequence.js:47:14)
at Query.ErrorPacket (C:\RAGEMP\server-files\node_modules\mysql\lib\protocol\sequences\Query.js:77:18)
at Protocol._parsePacket (C:\RAGEMP\server-files\node_modules\mysql\lib\protocol\Protocol.js:278:23)
at Parser.write (C:\RAGEMP\server-files\node_modules\mysql\lib\protocol\Parser.js:76:12)
at Protocol.write (C:\RAGEMP\server-files\node_modules\mysql\lib\protocol\Protocol.js:38:16)
at Socket. (C:\RAGEMP\server-files\node_modules\mysql\lib\Connection.js:91:28)
at Socket. (C:\RAGEMP\server-files\node_modules\mysql\lib\Connection.js:502:10)
at Socket.emit (events.js:182:13)
at addChunk (_stream_readable.js:283:12)
at readableAddChunk (_stream_readable.js:264:11)
--------------------
at Pool.query (C:\RAGEMP\server-files\node_modules\mysql\lib\Pool.js:199:23)
at Promise (C:\RAGEMP\server-files\packages\RP\index.js:1:1304)
at new Promise ()
at Object.dbquery (C:\RAGEMP\server-files\packages\RP\index.js:1:1283)
at Object.query (C:\RAGEMP\server-files\packages\RP\index.js:1:1425)
at Object.e.saveBasicData (C:\RAGEMP\server-files\packages\RP\index.js:1:52111)
at Object.saveAccount (C:\RAGEMP\server-files\packages\RP\index.js:1:50908)
at Object.self (C:\RAGEMP\server-files\packages\RP\index.js:1:52996)
at Object.fire (:721:8)
at eval (eval at add (unknown source), :3:11)
(node:2308) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 9)

bug

(node:17602) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse ()
at new o (/mnt/data/rage_mp01/ragemp-srv/packages/RP/index.js:1:83521)
at /mnt/data/rage_mp01/ragemp-srv/packages/RP/index.js:1:84789
at
(node:17602) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:17602) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Deprecation warning

DATABASE IS WORKING (node:10284) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'x' of null at r.createBuyerEntities (C:\RAGEMP\server-files\packages\RP\index.js:1:19717) at new e.exports (C:\RAGEMP\server-files\packages\RP\index.js:1:19232) at new r (C:\RAGEMP\server-files\packages\RP\index.js:1:97419) at C:\RAGEMP\server-files\packages\RP\index.js:1:100446 at process._tickCallback (internal/process/next_tick.js:68:7) (node:10284) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:10284) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. EMAIL SERVER READY!

Startup error.

Hi, when I start the server I get an SSL error (not sure) what can be the problem and how to solve it?

[N] Starting network... - OK: (IPv4-only) at 127.0.0.1:22005
(node:3480) ExperimentalWarning: The ESM module loader is experimental.
Loading maps:
        "fences.xml.json" loaded
Loading packages
        "RP" loaded
[2018-08-06T11:28:20.884] [FATAL] default - Server Started
[P] Plugin bridge.dll loaded!
Started HTTP server at 22006 port.
{ Error: self signed certificate in certificate chain
    at TLSSocket.onConnectSecure (_tls_wrap.js:1036:34)
    at TLSSocket.emit (events.js:159:13)
    at TLSSocket._finishInit (_tls_wrap.js:637:8) code: 'ECONNECTION', command: 'CONN' }

Problem with installing

Hello,

can you make it a bit more detailed? because Put all files in your project i don't know what you
mean with this so far. or can you send me the compelte server-files? sry for my bad english

Can not set Hospital Leader

When i try the command "/sethospitalleader" or "/sethospitalleader 1" then nothing happend the Database is not changed. And there is a error on the console.
(node:5356) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: s.getAdminLvl is not a function (node:5356) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. (node:5356) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: s.getAdminLvl is not a function

Numpad + does not work

Good evening :)

I noticed that the Vehicle button (numpad+) does not work.

Best Regards and Thanks in advance.

Suggestions for Improvement

Suggestions for improvement:

  • Password input should not be displayed as plain text
  • Vehicles are not manageable or very difficult to destroy and spew from time to time.

Further suggestions follow;)

Error when signing up

I get this error on the server cmd when anybody tries to login and or press "get code"

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. at void Bootstrapper.EventInternalClass.OnPlayerRemoteEvent(ushort playerId, ulong eventHash, uint argsCount, IntPtr args) in C:\Users\Adam\Documents\Git\comp-layer2\BootstrapperNC\Handlers\EventHandler.cs:line 499

on registation.

(node:17932) UnhandledPromiseRejectionWarning: TypeError: s.isEmailValid is not a function
at Object.tryGetCodeToRegister (/mnt/data/rage_mp01/ragemp-srv/packages/RP/index.js:1:94833)
at Object.sRegister-TryGetCodeToRegister [as self] (/mnt/data/rage_mp01/ragemp-srv/packages/RP/index.js:1:97230)
at Object.fire (:721:8)
at eval (eval at add (unknown source), :3:11)
(node:17932) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 5)

some "problem" about /v

i spawned a fagio,then drive it into water.and when i type /v again, it wont work.seems problem with rage itself?

NPM

E:\RP_SRV\server-files>npm i
npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

maybe any think wrong but were ?

still with problem with register.

(node:11698) UnhandledPromiseRejectionWarning: TypeError: i.getMailAdress is not a function
at Object.sendCode (/mnt/data/rage_mp01/ragemp-srv/packages/RP/index.js:1:89154)
at Object.trySendCode (/mnt/data/rage_mp01/ragemp-srv/packages/RP/index.js:1:88873)
at Object.tryGetCodeToRegister (/mnt/data/rage_mp01/ragemp-srv/packages/RP/index.js:1:88804)
at
(node:11698) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:11698) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Error while npm run build

PS C:\RAGEMP\server-files> npm run build

[email protected] build C:\RAGEMP\server-files
webpack --mode=production

Hash: d980ece65d2414010312
Version: webpack 4.29.6
Time: 1948ms
Built at: 2019-06-05 16:16:26
2 assets
Entrypoint packages/RP = packages/RP/index.js
Entrypoint client_packages = client_packages/index.js
[20] ./app/server/index.js 519 bytes {1} [built]
[21] ./app/server/Basic/Auth/sLogin.js 4.04 KiB {1} [built]
[31] ./app/server/Basic/Auth/sRegister.js 4.81 KiB {1} [built]
[32] ./app/server/Basic/sChat.js 3.13 KiB {1} [built]
[34] ./app/server/Basic/Money/sATM.js 5.91 KiB {1} [built]
[35] ./app/server/Business/sBarberShop.js 3.67 KiB {1} [built]
[36] ./app/server/Business/sClothingShop.js 3.41 KiB {1} [built]
[37] ./app/server/Business/sCheapCarDealership.js 1.92 KiB {1} [built]
[38] ./app/server/Business/sCommercialCarDealership.js 1.98 KiB {1} [built]
[39] ./app/server/Business/sGasStation.js 5.77 KiB {1} [built]
[40] ./app/server/Jobs/sOrangeCollector.js 6.8 KiB {1} [built]
[41] ./app/server/Jobs/sCluckinBellCourier.js 7.91 KiB {1} [built]
[42] ./app/server/Factions/Police/sPolice.js 309 bytes {1} [built]
[45] ./app/server/Basic/sMenu.js 3.32 KiB {1} [built]
[48] ./app/client/index.js 581 bytes {0} [built]
+ 52 hidden modules

ERROR in ./app/server/sI18n.js 111:6
Module parse failed: Unexpected token (111:6)
You may need an appropriate loader to handle this file type.
| zhs: '秒',
| zht: '秒',

                  cs 'sekund',

| },
|
@ ./app/server/Basic/sChat.js 2:13-32
@ ./app/server/index.js
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: webpack --mode=production
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Gabriele\AppData\Roaming\npm-cache_logs\2019-06-05T14_16_26_198Z-debug.log

Cannot find module './packages/rageserver'

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!

Error on startup

I followed all instructions to run the server, but when running ./server I get this

image

game files broken

So i'm having the issue that i am connecting to the server and its downloading the resources and then the game reloads and than the rror comes up it says "Game files broken etc."

Enter too fast

If one word enter too fast,it will send twice.like:

[12:54:01]aaa:hi
[12:54:02]aaa:hi

building project assets

Hey! Project looks awesome, thanks for sharing all your hard work!

Unfortunately it appears documentation is severely lacking

I found this to be very confusing on setting up, especially with how webpack is being used. I've got the database up with a schema defined, app is connected, but all the relative paths between packages are broken.

I am assuming the build process with webpack resolves paths and build assets but Its very unclear on how one should build all these assets together.

Any clarity on this would be greatly appreciated!

Thanks!

Nodemailer issue

I know that there already was such issue, but nobody posted the solution and I was unable to find it by myself.
I've set up the server and everything works fine except mailer module. You can login and play, but server closes if you try to register (when you press button "Get code") with the line: "Error occured. self signed certificate in certificate chain".
This message you have in server console on startup:

{ Error: self signed certificate in certificate chain
    at TLSSocket.onConnectSecure (_tls_wrap.js:1036:34)
    at TLSSocket.emit (events.js:159:13)
    at TLSSocket._finishInit (_tls_wrap.js:637:8) code: 'ESOCKET', command: 'CONN' }

I have tried different email services (known for nodemailer), different settings and accounts of gmail etc. The same.

Maybe It's cause I'm starting server locally with local IP?

I've found 2 solutions in web:

  1. Try adding this: process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; It tells Node to accept self signed certificates.
  2. You can use this as well:
nodemailer.createTransport({
    host:'...',
    ...,
    tls:{
        rejectUnauthorized: false
    }
`});

But I couldn't implement this. Maybe you can advice how to disable correctly this check for certificates.
I'm sure this is spread problem during setting up your tremendous server.

Database id mismatch bug

Due to errors in inputting commands, the server/database got a mismatch, so that my business table looks like this:

id | title
1 | Clothing Shop
2 | Cheap Car Dealership
3 | Commercial Car Dealership
5 | Barber Shop
6 | Gas Station
7 | Gas Station

and given that all joins are on identically matched ids that are synchronized via JS mirror code, well, everything is off by 1-2.

I don't think I'll debug this, but this is just a reference of what can happen - unsaved businesses or something else skewing the count vs id, resulting in businesses not showing up because the joins fail.

Inventory &

Grüße ... Wo werden die angesammelten Orangen (Job) abgespeichert? Der Script hat "kein" Spieler Inventar! Oder?
Wird es später noch ein Tuningshop/Waffengeschäft geben?

Greetings ... Where are the accumulated oranges (job) stored? The script has "no" player inventory! Or?
Will there be a tuning shop / gun shop later?

Hello! Some questions

Hello, sorry for offtop @MarkCavalli .

I just want to ask you some questions:
Are you Russian?
And if the answer is yes - do you know who Farbid_Halifa is?(samp)

It's wierd, but there is a chance that i can know you, but missed contacts some years ago :)

Abou the translation on 1st login.

I think we can set a default data on language like "rus",so any one can select face with the translated interface.I will make changes later on sql file update.

New RageMP broke the resource

I updated the ragemp and noticed that a lot of things just broke... I've no idea how fix then, could u or anyone give me any help, please? It was all working wonderfully before the update lol.

Things that i noticed breaks:

  • Server crash after enter the colshape to get the job. Error:
    Object reference not set to an instance of an object. Object reference not set to an instance of an object. Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object. at void Bootstrapper.EventInternalClass.OnPlayerEnterColshape(ushort playerId, ushort colshapeId)
  • Keybinds are just strange. Can't toggle engine with numkey-0 but can toggle lock with L key o.O The keys I mapped to open the vehicles windows aren't working too. I can use the numpad-9 to open right front window, but the others numkeys-7 (driver's window) , numkeys-1 (back left window) and numkey-3 (back right window) aren't working. I press and nothing happens...

Thank you!

Hi guys i need help

When i try start npm run build i get this error
C:\Users\Dorado>npm run build
npm ERR! path C:\Users\Dorado\package.json
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\Dorado\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Dorado\AppData\Roaming\npm-cache_logs\2019-05-30T05_36_51_638Z-debug.log

How i can fix it?
Thanks :D

BLIP IN MAP Error

index.js:1031: TypeError: Cannot read property 'blip' of undefined

This is what i get when i press to something in the personal MENU GPS

404 Not Found

I already setup everything accordingly but when I'm connected to the server it shows 404 Not Found on top left corner of the screen. No login screen.

client_packages/Browsers have everything it should have.
https://imgur.com/HD4p9T7

Nothing weird on the console.
https://imgur.com/64miEN9

NodeJS 8.x
MySQL 5.7

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.