Sign in to follow this  
Chopper

Package Restarting (JS)

Recommended Posts

I think having a package reload and restart feature would be essential. Right now the server restart thing works, but after 10-20 restarts, I believe the client gets filled up with all the compiled code, and puts itself to not responding, resulting in a complete freeze and having to restart the client.

This makes it pretty cumbersome when working on things that need constant testing.

Even a built in /reconnect command would work, just something that empties all the garbage.

 

@ragempdev

Edited by Chopper
  • Like 2

Share this post


Link to post
Share on other sites
5 hours ago, MarkCavalli said:

You can write tests for that things

So take an example. You are trying to fix a weird bug, and you contantly need to restart the server to update the package code. How would you manage that? I honestly have no idea how people are running servers and developing gamemodes without this feature, I cant stand crashing every 5 minutes.

Share this post


Link to post
Share on other sites
16 hours ago, Chopper said:

This makes it pretty cumbersome when working on things that need constant testing.

What types of things need constant testing, are you referring to carrying out regression testing? you should aim to develop your resource with a greater separation of concerns so code changes doesnt effect the rest of your code and make it easier to debug

1 hour ago, Chopper said:

I cant stand crashing every 5 minutes.

This sounds like a you problem . do you have an example of what causes these crashes? maybe incorrect usage of the rage api is causing this. its very rare for me to crash in a stable build of RAGE:MP.

 

 

  • Like 1

Share this post


Link to post
Share on other sites
40 minutes ago, Jaimuzu said:

What types of things need constant testing, are you referring to carrying out regression testing? you should aim to develop your resource with a greater separation of concerns so code changes doesnt effect the rest of your code and make it easier to debug

This sounds like a you problem . do you have an example of what causes these crashes? maybe incorrect usage of the rage api is causing this. its very rare for me to crash in a stable build of RAGE:MP.

 

 

Crashes happen after 5+ server restarts.

 

Constant testing: Positioning elements maybe? A lot of things, you just have to be open minded.

Share this post


Link to post
Share on other sites

I don't want to restart the server when there are many players. 

The MTA:SA or GTA:NETWORK the solved this good.

Edited by Legend
  • Like 1

Share this post


Link to post
Share on other sites

@Chopper

9 hours ago, Chopper said:

Positioning elements

what elements?

Maybe this is a JavaScript only problem (doubtful it is, maybe its just the ability to write shit-code in JS 😋). I develop in C# on both clientside and serverside and I can restart both the game and server multiple times (probably restarted the server in a single game session 50+ times on an occasion) and have neither crash. It sounds like you are making code changes that cause the crashes, so the ability to:  "package reload and restart" I doubt will help you here. Although I don't disagree that any feature is nice, I just don't think it's necessary or the solution to your problem, you may be better off asking a different question to solve this

Edited by Jaimuzu
  • Like 2

Share this post


Link to post
Share on other sites
Just now, Jaimuzu said:

doubtful it is, maybe its just the ability to write shit-code in JS 😋

Thanks, I write JS full time though. :) I'm done here lol.

Share this post


Link to post
Share on other sites
1 minute ago, Chopper said:

Thanks, I write JS full time though. :) I'm done here lol.

lol i don't doubt ur JS skills, maybe lack on knowledge of the api causes you to use functions incorrectly, resulting in ur crashes, good luck men

  • Like 2

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.