Posts: 7,801
Threads: 187
Joined: Feb 2010
Reputation:
0
I doubt this is possible through PAWN, but could I make it so every time I save my mode, it automatically adds +1 to the server version's define? I usually forget to update the server version and it would be so much easier if it could do it itself.
I'm using Notepad++, for what it's worth!
Posts: 3,085
Threads: 37
Joined: Nov 2012
Reputation:
0
Yeah maybe not that accurate, but using OnGameModeInit and adding a certain value to a variable and then saving it is as close as you might get. I had this exact same idea and was wondering if it was possible, because it was annoying to constantly change my server.cfg. I was leaning more towards a command for setting the server version, but I wasn't really prepared to try and figure out how to script it to automatically change...
Posts: 759
Threads: 80
Joined: Oct 2012
Reputation:
0
Benzo Ummm... just put in under GameModeInit.... Or GameModeExit... Like everything the gamemode closed the value ++.... or everytime is starts the value ++... and the value is saved and all is needed a string to be format and problem solved.... just like how u would save any other variable...
Posts: 2,628
Threads: 32
Joined: Apr 2007
Reputation:
0
Can't you make a batch file (which you'd run to compile instead of directly running pawncc.exe) to write to a file which you then can include?
Posts: 3,085
Threads: 37
Joined: Nov 2012
Reputation:
0
Yes, but this wouldn't really support server crashes... therefore the version would update even if the server restarts itself...
Posts: 759
Threads: 80
Joined: Oct 2012
Reputation:
0
Here is how simple...... Make A Cmd:newversion everytime a admin does the variable goes up ++ and everyone is happy....
Posts: 7,801
Threads: 187
Joined: Feb 2010
Reputation:
0
Schurman, that seems like a logical idea. However, where is this "build.bld" file being made, can I add (f.e) .0001 instead of "1" each time? And, can I use the "version" in the mode?
Posts: 7,801
Threads: 187
Joined: Feb 2010
Reputation:
0
Still looking for a valid answer to this...