Jump to content

[Gamemode] Project V: RPG (Node.js, MongoDB, Vue.js)


Willdurkumpf

Recommended Posts

Hey guys. Back in January I've started working on this gamemode. It never seen the light since it was never finished.

  • 8 Jobs: Bus Driver, Pizza Driver,  Detective, Lawyer, Car Jacker, Taxi Driver, Trucker (not completed)
  • 2 Factions: Medics and Cops. Has a 'half-dynamic' faction system. Easy to add another one.
  • Inventory with trading.
  • Personal vehicles with unlimited slots that can be bought from the vip store.
  • House system.
  • Clothes system that are saved (Bug: Props aren't seen by other players)
  • YouTube MP3 (Needs another API Token from them) -- you can play music for others, in your vehicle or play a song from youtube in the club for everyone inside.
  • Uses MongoDB for database.

Here are the pictures: (They are included in the github repo)

https://ibb.co/bmjz9GL
https://ibb.co/0JcjBMq
https://ibb.co/NpQ1kj3
https://ibb.co/LRzsY0w
https://ibb.co/CK5ZY9M
https://ibb.co/ZLBBY6b
https://ibb.co/6HR0hRZ
https://ibb.co/TW27pvK
https://ibb.co/Q6KHXxs

Known bugs:

  • After completing the trade, the vehicle keys aren't sent to the new owner.
  • Login buttons sometimes during restarts not being clickable (Had a few windows issues back then, can't prove it was me or smth else)
  • The chat is built inside the Vue Web Application. Sometimes if you spam the chat long enough the last event to unfreeze your character isn't sent.

And maybe more. The server didn't had huge bugs but I'm advising you guys to either use it just as a resource or test it from head to toe again before using it on a public server.

Feel free to contribute to the gamemode on github if you fix anything.

The gamemode language is English.

I'm sorry for my grammar mistakes in the gamemode. I'm not a native english speaker.

https://github.com/Hurdock/gta5-ragemp-server

 

Common bugs & how to fix them

On 9/8/2019 at 4:28 PM, Denny DeRossi said:

Business] 9 loaded.
(node:21292) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'x' of null
    at global.UpdateBizz3D (D:\ragemp\server-files\packages\server\src\systems\business\index.js:101:24)
    at Business.forEach (D:\ragemp\server-files\packages\server\src\systems\business\index.js:74:7)
    at Array.forEach (<anonymous>)
    at query.then (D:\ragemp\server-files\packages\server\src\systems\business\index.js:73:14)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:21292) 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:21292) [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.
[Data] 5 loaded.
[Houses] 5 loaded.

 

The business of Alhambra has hasEntrance = true, but no entrance positions. Set it to false.

On 9/8/2019 at 2:53 PM, Denny DeRossi said:

Now I can not import the database into mongodb writes Unexpected end of JSON input

 

Please use NoSQLBooster, (MongoDB Client) to do the import easily.

 

- On login i cant click on the input to fill in my pasword

Go to this file - \Web\src\assets\scss\bootstrap\_asparagus_extra.scss

Look for .auth => .login and add:      pointer-events: none; 

 

Edited by Willdurkumpf
  • Like 5
Link to comment
Share on other sites

51 minutes ago, RuNNer. said:

How can we install this gamemode can you explain us?

Thank you very much !!

 

You must have a MongoDB Database first of all.

 

You'll need to install Node.js first. Start by launching the Vue.js app. npm install and then npm serve in the folder.

 

Then you'll have to install the npm modules for the server as well and then launch by using the server.exe

 

I've left there a database as well, someone said something about being 'corrupt' -- A must have it's just the databox json, try to copy that into your db that would be all.

 

I used the databoxes to store small information that needed to be stored inside a db but shouldn't have it's own table, let's say.

 

Also you'll need the factions as well. Sorry, this project has been abandoned in March, i don't have the database anymore.

Edited by Willdurkumpf
Link to comment
Share on other sites

Hello, do you know what that mean? 

[N] Starting network... - OK: (IPv4-only) at 127.0.0.1:22005 (node:6752) ExperimentalWarning: The ESM module loader is experimental. Loading packages "camera" loaded "server" loaded [P] Plugin bridge.dll loaded! Started HTTP server at 22006 port. [DEBUG] Server started at Wed Jul 24 2019 22:35:23 GMT+0200 (Central European Summer Time) [Data] 0 loaded. (node:6752) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'data' of undefined at global.loadFactions (F:\Rage\server-files\packages\server\src\systems\factions\index.js:10:29) at prom.then (F:\Rage\server-files\packages\server\src\systems\databox\index.js:29:7) at process._tickCallback (internal/process/next_tick.js:68:7) (node:6752) 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:6752) [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. [Business] 0 loaded. [Houses] 0 loaded.

Link to comment
Share on other sites

1 minute ago, RuNNer. said:

and what should i do ..,? Sorry for și many questions🤮🙂

 

You must launch the gamemode with the mongodb connected with databox collection with all the data required.

 

RO: Iti cere baza de date. conecteaza sv la mongodb, fi sigur ca ai collection (tabel) cu databox. Ala si factions sunt necesare.

Edited by Willdurkumpf
  • Like 1
Link to comment
Share on other sites

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...