Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.

Issues #3

Closed
BlackZon77 opened this issue Sep 17, 2019 · 20 comments
Closed

Issues #3

BlackZon77 opened this issue Sep 17, 2019 · 20 comments

Comments

@BlackZon77
Copy link

The disableDistance feature doesn't work.
I cant create/login in computer unless i go to the cardealer with no login.
This is some errors that was on my console: http://prntscr.com/p7gl73

@MaximohFoxy
Copy link

The disableDistance feature doesn't work.
I cant create/login in computer unless i go to the cardealer with no login.
This is some errors that was on my console: http://prntscr.com/p7gl73

I have the same problem, when i try to log in with admin admin, doesnt load, shows at the console the route of init,js:645 Error "Failed to fetch"

@jonassvensson4
Copy link
Owner

disableDistance has been fixed, you'll now have to include a location in the command /command location

I can't seem to recreate the issue that you have to visit the cardealer to be able to login on another computer

The first error is just a warning and you should only get it once. The failed to fetch error seems to happen randomly and I'm not sure why. I'll have to do some more digging

Thanks for helping me testing it out!

@MaximohFoxy
Copy link

I get this error too when i try to log in with the default account admin admin
image

@TheBritishBrotherhood
Copy link

It seems we all get this error, Atleast from what i can see anyway

@BlackZon77
Copy link
Author

BlackZon77 commented Sep 18, 2019

@jonassvensson4 i still cant login and create an account, and the command is working now
ERROR: http://prntscr.com/p7vmop

@jonassvensson4
Copy link
Owner

"The first error is just a warning and you should only get it once. The failed to fetch error seems to happen randomly and I'm not sure why. I'll have to do some more digging"

I never said I fixed that issue.

@MaximohFoxy
Copy link

image
// # if set to false the player can open the computer everywhere. If set to true the player needs to be standing next to one of the positions above ^ its reverted, if it to false u can open it when you are standing near at the marker :P and when is true u can open it everywhere

@jonassvensson4
Copy link
Owner

Yeah you're right, the comment is wrong

@jonassvensson4
Copy link
Owner

jonassvensson4 commented Sep 19, 2019

Alright so after some testing it seems like it was the nuimessage that sometimes didn't pass on the sessiontoken to the javascript.

I've updated the resource. Not sure if that's what caused the issue or not but feel free to try it out and then get back to me

@TheBritishBrotherhood
Copy link

I'll give it a try now and get back to you, I'll try admin and a made account.

Thanks for the quick update js :)

@TheBritishBrotherhood
Copy link

TheBritishBrotherhood commented Sep 19, 2019

@jonassvensson4 Unfortunatly the error seems to persist.

With both admin and made accounts.

This is how my config.js looks in the core resource

module.exports = { endpoint: 'MACHINEIP:3306', gamemaster: { enabled: false, token: 'tprp' },

Starting of resource the core is before the computer.

It could be that where maybe doing something incorrect?

Thanks

https://gyazo.com/676fed0aeb9c01a894cb3bd0e8f37af8

EDIT:

Tried with the actual server's port and it cant fond the IP that way, So i assume using the SQL port was correct.

@jonassvensson4
Copy link
Owner

You're supposed to use the same IP and port as your server is using, aka the ip that shows up in the server list.

When you're in the game, try to login on the computer and have a look in the debugger to see what error you're getting. You can open the debugger by visiting this page http://localhost:13172

@TheBritishBrotherhood
Copy link

Yeah i use my machines IP (Thats where my server is) If i use the port 30120 it cant find the IP?

Ill try use localhost instead of the machines IP, And okay give me a moment.

Im on the ESX discord if you would like to debug with me.

@jonassvensson4
Copy link
Owner

No you can't use localhost since others have to connect to it. localhost is your own machine, not the server. You have to use the same ip and port as the server is using. And what do you mean by "it cant find the IP"? Please provide some screenshot of that error

@MaximohFoxy
Copy link

Now when i try to log in i receive this error and the computer goes
https://streamable.com/bcaip

@BlackZon77
Copy link
Author

I managed to login and create account, but some programs are not working properly, like medicalrecords, i cant really do anything, bossactions i cant deposit or withdraw.

@MaximohFoxy
Copy link

I managed to login and create account, but some programs are not working properly, like medicalrecords, i cant really do anything, bossactions i cant deposit or withdraw.

How did u do it? Help me please! Discord: Maximohs#4788
Thanks

@BlackZon77
Copy link
Author

After this last update of core and computer, i just put the ip of machine, not 127.0.0.1 or 0.0.0.0, in config.js on jsfour-core, and i was able to login and do most of the things. @MaximohFoxy

@MaximohFoxy
Copy link

MaximohFoxy commented Sep 19, 2019

After this last update of core and computer, i just put the ip of machine, not 127.0.0.1 or 0.0.0.0, in config.js on jsfour-core, and i was able to login and do most of the things. @MaximohFoxy

Now the problem is this
image i tried now log in with admin admin but still loading, what could i do?
image

EDIT:
Now i can log in with admin admin, i will see if i can do accounts and more things!

@jonassvensson4
Copy link
Owner

I've updated some programs and the jsfour-core resource that should've fixed the issues with the programs not working correctly. Feel free to try them out and create new issues if it doesn't work. I'm closing this issue since it's getting a bit messy with a lot of different problems

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants