There got to be a better way to reset server and test code


#1

I have been resetting my server and coding a L O T and there has to be a better way to restart with a command, a batch file, voodoo rituals…

Here is what i do in loop

1- scripting
2- delete cache //if i dont delete cache i dont have to start the server twice… session manager is flawless but im never sure if the latest code is active or not and it can make big difference in the way you will go with your code
3- run server
4- close server imediately
5- run server again to fix the "session manager error at login"
6- seeing result or not ingame
7-disconnecting
goto 1 //GW Basic coco2 flashback… :slight_smile:


#2

What? Why? You do know restart <resource> exists, right?

start <resource> -- start a resource 
stop <resource> -- stop a resource
restart <resource> -- well, you get th idea 

#3

@Havoc
yes… but i run vrp framework and ME… i create my own world now (was using fx psycho edit at first)…

i did not knew you could restart the framework…

if you mean changing like frfuel while in vrp… changing frfuel i would restart the resource but changing something from the main platform while in it… i did not had the ballz

EDIT: oh… and what about the cache and the latest changes made to your code… then why do we really need to erase the cache is becoming the question if start is powerful enough.


#4

I’ve used the restart command many times when coding myself and, I’ve never had an issue with the cache.


#5

in that case that is great freakin’ news my friend… you just up’ed my productivity by 10% which is awesome

I will go try that right now


#6

Admittedly, I didn’t know that was a thing either. Thanks!


#7

icecon, log in and “restart resourcenamehere” the specific resources you need to. Most restarts don’t require a full server restart.


#8

A bit late, don’t ya think? Also, this was already mentioned by @Havoc


#9

Gotta love the “just to be a dick” comments. They really make you feel warm and fuzzy inside. It’ll be helpful to someone, I don’t have an issue recommending icecon specifically.


#10

Lol, being a dick?

There is just no need to answer in threads which were solved months ago…


#11

You’re still going on about this? There’s additional info I posted to help anyone else who will have the same question and need a little more info, as if that’s a bad thing. You’re literally paroling topics to confront people, you weren’t even involved in the topic to begin with. At least me commenting contributes. Just relax…breathe.


#12