markcavalli / rageserver Goto Github PK
View Code? Open in Web Editor NEWOpen source rage mp role play server
Open source rage mp role play server
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:
Good Day. What is the Maximum AdminLevel please`?
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!"
Есть интересное предложение по работе.
Напиши в телеграм: @key_okay
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.
I already set in the files the Email and Password from GMAIL and also activate the Imap/Pop option in the email settings.
Still get this error
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
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.
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>
Screenshot: https://i.imgur.com/VfiCco3.png
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.
I tried to add noClip and nativeUI and afew other and none seem to work, would be awesome to add some documentation on this!
[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)
(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.
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!
"const fromAddress = '[email protected]'" is added by me and maybe useless now,delete it?
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' }
please add admin panel and new jobs and panel house ...
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
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
Good evening :)
I noticed that the Vehicle button (numpad+) does not work.
Best Regards and Thanks in advance.
Suggestions for improvement:
Further suggestions follow;)
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
(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)
i spawned a fagio,then drive it into water.and when i type /v again, it wont work.seems problem with rage itself?
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 ?
(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.
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
Hi. Sorry but it is unclear the installation instructions for me.
- 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!
So,if that player setlang to rus,server will say “xxx подключение”in rus even i seted lang to chinese.
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."
For example,when you use command: /v , you don't see error and nothing happends.
And can you describe please, admin system... I find only adminlvl and some command with (adminlvl<1)... but can't find admin system...
If one word enter too fast,it will send twice.like:
[12:54:01]aaa:hi
[12:54:02]aaa:hi
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!
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:
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
It tells Node to accept self signed certificates.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.
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.
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, 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 :)
it redirect to gta network automatically.
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.
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:
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)
Thank you!
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
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
It is hard to translate when code is going to comlicate.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.