Jump to content
RAGE Multiplayer Community

Open source Role Play server


MarkCavalli

Recommended Posts

i changed protocol.js at

Protocol.prototype._startSequence = function(sequence) {
  if (sequence._timeout > 0 && isFinite(sequence._timeout)) {
    //Timers.enroll(sequence, sequence._timeout);
    setTimeout(sequence, sequence._timeout);
    Timers.active(sequence);
  }

 

but got a new error 

Error: TypeError [ERR_INVALID_CALLBACK]: Callback must be a function settimeout <timers.js:379:11>

Link to comment
Share on other sites

Hey Mark,

really nice work you have done here. But i keep on running in Problems while scripting and i think it is because of the webpack thing you did there.
e.g if i add BasicMenu, NativeUI or something like that in app/client, linking it in index.js and loading it in a js script that uses NativeUI (NativeUI = require("../nativeui/index.js");) , i keep getting "xxx is not a construct" error in the client.
Other scripts like fingerpointing e.g are working just fine.
Would be nice if anyone would point me in the right direction.
 

Link to comment
Share on other sites

4 часа назад, DJ_Synergy сказал:

really nice work you have done here. But i keep on running in Problems while scripting and i think it is because of the webpack thing you did there.
e.g if i add BasicMenu, NativeUI or something like that in app/client, linking it in index.js and loading it in a js script that uses NativeUI (NativeUI = require("../nativeui/index.js");) , i keep getting "xxx is not a construct" error in the client.
Other scripts like fingerpointing e.g are working just fine.
Would be nice if anyone would point me in the right direction.

https://stackoverflow.com/questions/36388766/unexpected-uncaught-typeerror-xxx-is-not-a-constructor-errors-with-babel-and

Link to comment
Share on other sites

Hi Mark ! 

I'm currently working on adding clothes to the clothingShop, almost added everything (tops, legs, feet, hats...) but I cant figure how to add accessories, body armors, bags etcetc 

Can you explain what I have to do server side and client side to add those categories ? (I already tried with accessories, I had the selection in the menu in game, added accessorie but they didnt appeared in game, they was invisible so I guess I missed something for this try, my process was to copy/paste and replace the existing glasses categ)

thanks in advance

Link to comment
Share on other sites

1 час назад, Lithy сказал:

Hi Mark ! 

I'm currently working on adding clothes to the clothingShop, almost added everything (tops, legs, feet, hats...) but I cant figure how to add accessories, body armors, bags etcetc 

Can you explain what I have to do server side and client side to add those categories ? (I already tried with accessories, I had the selection in the menu in game, added accessorie but they didnt appeared in game, they was invisible so I guess I missed something for this try, my process was to copy/paste and replace the existing glasses categ)

thanks in advance

You can debug your code via console.log() on the serverside and mp.gui.chat.push on the clientside

  • Confused 1
Link to comment
Share on other sites

I have a problem. I have hosting at ZAP-Hosting.. and when i start server.. This is in log
(node:26211) ExperimentalWarning: The ESM module loader is experimental.
Loading maps:
        ""prison.json"" loaded
        ""police.json"" loaded
        ""fences.xml.json"" loaded
        ""orangetrees.json"" loaded
[M] Announcing into master server...
Loading packages
        "Basic" loaded
Error: Error: Cannot find module './packages/Basic'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:587:15)
    at Function.Module._load (internal/modules/cjs/loader.js:513:25)
    at Module.require (internal/modules/cjs/loader.js:643:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at getDirectories.forEach.src (<anonymous>:827:341)
    at Array.forEach (<anonymous>)
    at _initialize (<anonymous>:827:272)
    at <anonymous>:833:1
        "Business" loaded
Error: Error: Cannot find module './packages/Business'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:587:15)
    at Function.Module._load (internal/modules/cjs/loader.js:513:25)
    at Module.require (internal/modules/cjs/loader.js:643:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at getDirectories.forEach.src (<anonymous>:827:341)
    at Array.forEach (<anonymous>)
    at _initialize (<anonymous>:827:272)
    at <anonymous>:833:1
        "Character" loaded
Error: Error: Cannot find module './packages/Character'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:587:15)
    at Function.Module._load (internal/modules/cjs/loader.js:513:25)
    at Module.require (internal/modules/cjs/loader.js:643:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at getDirectories.forEach.src (<anonymous>:827:341)
    at Array.forEach (<anonymous>)
    at _initialize (<anonymous>:827:272)
    at <anonymous>:833:1
        "Factions" loaded
Error: Error: Cannot find module './packages/Factions'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:587:15)
    at Function.Module._load (internal/modules/cjs/loader.js:513:25)
    at Module.require (internal/modules/cjs/loader.js:643:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at getDirectories.forEach.src (<anonymous>:827:341)
    at Array.forEach (<anonymous>)
    at _initialize (<anonymous>:827:272)
    at <anonymous>:833:1
        "Jobs" loaded
Error: Error: Cannot find module './packages/Jobs'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:587:15)
    at Function.Module._load (internal/modules/cjs/loader.js:513:25)
    at Module.require (internal/modules/cjs/loader.js:643:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at getDirectories.forEach.src (<anonymous>:827:341)
    at Array.forEach (<anonymous>)
    at _initialize (<anonymous>:827:272)
    at <anonymous>:833:1

Link to comment
Share on other sites

[2018-12-09T13:19:55.731] [FATAL] default - Server Started
[2018-12-09T13:19:56.333] [WARN] default - 'SELECT * FROM vehicles WHERE factionName = 'Hospital'' ends with: 0.515s
[2018-12-09T13:19:56.408] [WARN] default - 'SELECT * FROM business INNER JOIN barbershop ON business.id = barbershop.id' ends with: 0.583s
[2018-12-09T13:19:56.410] [WARN] default - 'SELECT * FROM business INNER JOIN gasstation ON business.id = gasstation.id' ends with: 0.582s
[2018-12-09T13:19:56.411] [WARN] default - 'SELECT * FROM business INNER JOIN commercialcardealership ON business.id = commercialcardealership.id' ends with: 0.584s
[2018-12-09T13:19:56.412] [WARN] default - 'SELECT * FROM business INNER JOIN cheapcardealership ON business.id = cheapcardealership.id' ends with: 0.585s
[2018-12-09T13:19:56.413] [WARN] default - 'SELECT * FROM business INNER JOIN clothingshop ON business.id = clothingshop.id' ends with: 0.587s
[2018-12-09T13:27:03.450] [FATAL] default - Server Started
[2018-12-09T13:27:04.102] [WARN] default - 'SELECT * FROM business INNER JOIN commercialcardealership ON business.id = commercialcardealership.id' ends with: 0.556s
[2018-12-09T13:27:04.104] [WARN] default - 'SELECT * FROM business INNER JOIN gasstation ON business.id = gasstation.id' ends with: 0.558s
[2018-12-09T13:29:37.247] [FATAL] default - Server Started
[2018-12-09T13:29:37.901] [WARN] default - 'SELECT * FROM business INNER JOIN commercialcardealership ON business.id = commercialcardealership.id' ends with: 0.56s
[2018-12-09T13:29:37.903] [WARN] default - 'SELECT * FROM business INNER JOIN gasstation ON business.id = gasstation.id' ends with: 0.562s
[2018-12-09T13:30:52.184] [FATAL] default - Server Started
[2018-12-09T13:30:52.842] [WARN] default - 'SELECT * FROM business INNER JOIN commercialcardealership ON business.id = commercialcardealership.id' ends with: 0.563s
[2018-12-09T13:30:52.844] [WARN] default - 'SELECT * FROM business INNER JOIN gasstation ON business.id = gasstation.id' ends with: 0.564s
[2018-12-09T13:35:14.434] [FATAL] default - Server Started
[2018-12-09T13:35:15.108] [WARN] default - 'SELECT * FROM business INNER JOIN commercialcardealership ON business.id = commercialcardealership.id' ends with: 0.564s
[2018-12-09T13:35:15.109] [WARN] default - 'SELECT * FROM business INNER JOIN gasstation ON business.id = gasstation.id' ends with: 0.564s
[2018-12-09T13:35:57.090] [FATAL] default - Server Started
[2018-12-09T13:35:57.750] [WARN] default - 'SELECT * FROM business INNER JOIN commercialcardealership ON business.id = commercialcardealership.id' ends with: 0.564s
[2018-12-09T13:35:57.751] [WARN] default - 'SELECT * FROM business INNER JOIN gasstation ON business.id = gasstation.id' ends with: 0.565s
[2018-12-09T13:37:18.184] [FATAL] default - Server Started
[2018-12-09T13:37:18.848] [WARN] default - 'SELECT * FROM business INNER JOIN commercialcardealership ON business.id = commercialcardealership.id' ends with: 0.565s
[2018-12-09T13:37:18.850] [WARN] default - 'SELECT * FROM business INNER JOIN gasstation ON business.id = gasstation.id' ends with: 0.567s
[2018-12-09T13:40:11.653] [FATAL] default - Server Started
[2018-12-09T13:40:12.308] [WARN] default - 'SELECT * FROM business INNER JOIN commercialcardealership ON business.id = commercialcardealership.id' ends with: 0.558s
[2018-12-09T13:40:12.309] [WARN] default - 'SELECT * FROM business INNER JOIN gasstation ON business.id = gasstation.id' ends with: 0.558s
[2018-12-09T13:41:08.028] [FATAL] default - Server Started
[2018-12-09T13:41:08.687] [WARN] default - 'SELECT * FROM business INNER JOIN commercialcardealership ON business.id = commercialcardealership.id' ends with: 0.562s
[2018-12-09T13:41:08.689] [WARN] default - 'SELECT * FROM business INNER JOIN gasstation ON business.id = gasstation.id' ends with: 0.564s

and than server close... i have install npm and npm run build but not works why ? i join at the server and when i register the server close too wtf smailer sooo broke

Edited by Vize1610
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...