Welcome, Guest. Please login or register.
Did you miss your activation email?
June 19, 2013, 02:40:08 am

Login with username, password and session length
Search:     Advanced search
Savage: XR is a new patch for Savage, created by the Newerth.com staff. The RC3 Client is out now! Download it now!
170729 Posts in 9714 Topics by 15278 Members
Latest Member: hardflip01
* Home Forum Wiki Help Search Login Register
+  Newerth Forums
|-+  Savage XR
| |-+  Mapping Forum (Moderators: Notausgang, Overon)
| | |-+  INFO: Automatic Map Updating (Client/Server)
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: INFO: Automatic Map Updating (Client/Server)  (Read 1674 times)
Mohican
Order of the Stick
Administrator
Legendary Member
*****
Posts: 2635



View Profile
« on: April 08, 2012, 12:59:19 pm »

As most of you know, The XR client features automatic update of Maps from the repository, in case of mismatch with the dedicated server version.

But from today, XR 1.0 dedicated servers will also automatically pick up the latest version from the repository before loading maps! Thanks to this new feature, mappers will be able to keep updating their "online" maps on the newerth database without having to change the name (mini, mini2, miniXX... not anymore!).

TIP: I have also added a new console command "mapCheckVersion <mapName>", on both client and server.
It will check whether the specified map is up-to-date, and will automatically download the latest version.
(It can also be used to download new maps that are not yet in your local installation of Savage!)

 afro
« Last Edit: April 08, 2012, 01:04:08 pm by Mohican » Logged

Daemon
Administrator
Legendary Member
*****
Posts: 3290


beware, for this is the everbroken...


View Profile
« Reply #1 on: April 08, 2012, 01:19:54 pm »

Does that mean G&G will have the latest versions as well? Tongue
Logged


My black list: Mein (hax0r, troll), Slayer (multiclanner), biggeruniverse (XR thief, troll), Robbo (thug and liar), Thrill (junkie).
Groentjuh
Newerth Serveradmin, German Mirror and Webdeveloper
Administrator
Super Hero Member
*****
Posts: 1182


View Profile WWW
« Reply #2 on: April 08, 2012, 02:21:55 pm »

does that mean my server will take seconds longer to start if newerth goes down for some reason?
Logged


Before adding any of my IMs, ask yourself: Can I ask it in a PM?
Before sending me a PM with questions, Search the forums!
Wanna be ref? Post on my Server Forum
Faun
carn =/= hax
XR Developer
Hero Member
*****
Posts: 919


Hear a flute in the forest...


View Profile
« Reply #3 on: April 08, 2012, 03:41:57 pm »

Wonderful news! Hopefully it works seamlessly like it's intended to and Groentjuh doesn't have to wait longer for his server to start, then its a great advancement.
Logged

Mohican
Order of the Stick
Administrator
Legendary Member
*****
Posts: 2635



View Profile
« Reply #4 on: April 08, 2012, 03:53:03 pm »

does that mean my server will take seconds longer to start if newerth goes down for some reason?

I am running this code in a thread, to prevent freezing the server.
The actual check takes only a few dozens millisecs (depending on your PING to newerth).

To test how long it would take if newerth goes down, try to set "svr_mapurl" to something like www.newthre.com.
You will find that it does the check within less than a second (the timeout is very short).
Logged

Groentjuh
Newerth Serveradmin, German Mirror and Webdeveloper
Administrator
Super Hero Member
*****
Posts: 1182


View Profile WWW
« Reply #5 on: April 14, 2012, 11:34:01 am »

Great, it just made my server commit suicide!

Multiple threads were started to check for map updates. After finishing checking for map updates, multiple world commands were sent to the server by your python script in such a way the server was cleared out.
The whole thing above was triggered by a next map vote which passed.
Logged


Before adding any of my IMs, ask yourself: Can I ask it in a PM?
Before sending me a PM with questions, Search the forums!
Wanna be ref? Post on my Server Forum
Mohican
Order of the Stick
Administrator
Legendary Member
*****
Posts: 2635



View Profile
« Reply #6 on: April 23, 2012, 03:02:41 am »

Hi Gro!

I was away for business for the past week or so, and could not fix this sooner.
The bugs are now fixed and you can update your server safely.

Very sorry about the trouble the new system caused...    cry

Moh.
Logged

Mohican
Order of the Stick
Administrator
Legendary Member
*****
Posts: 2635



View Profile
« Reply #7 on: April 30, 2012, 03:10:05 am »

BTW how do i update a map on the repository for a map that is online - and editing/uplaoding is disabled ?

You need to send the new map to an admin (Faun or Aneurysm).
The admin will then review your changes, and upload the replacement.
Logged

Hakugei
Newerth Donator
Legendary Member
*****
Posts: 3004



View Profile
« Reply #8 on: May 01, 2012, 11:20:02 pm »

If you try to load your newly created map with the mapChecker on (e.g. /world xr_map), and it thus can't find the map online in the map repository, it just overwrites your map with an empty corrupt (!) archive.

Thought I'd let you know; I'd consider it a bug that could wipe your hard work. (Or maybe it just happens for me? :p)
Logged
Aneurysm
Administrator
Super Hero Member
*****
Posts: 1044



View Profile
« Reply #9 on: May 06, 2012, 03:56:52 am »

No this is true - however i thought it was due to  the editor saving in the gui - which no longer works. I've been using the console /writeworld to save instead - however this does not seem to save TOD/physics etc. But definitly the save gui does not works - it makes a null file of 1k. I should also mention the keyframe TOD does not work - but im not sure if its ever worked in the editor?

Granted I haven't been around for most of this year, but last I checked in the editor, it worked, it just suffered from a bug that resets the TOD settings if you save your map without first making a second action.

So for example, you select a TOD node and then adjust the terrain colour; before you can save, you must first complete a totally different action somewhere else in the editor (for example placing a prop; raising or lowering a piece of terrain; painting a section of terrain etc). While this is obviously not the best scenario, it is still a workable solution.


Also Moh having the auto updater finally work is fantastic news.
Logged

Faun
carn =/= hax
XR Developer
Hero Member
*****
Posts: 919


Hear a flute in the forest...


View Profile
« Reply #10 on: June 06, 2012, 08:16:59 pm »

If you try to load your newly created map with the mapChecker on (e.g. /world xr_map), and it thus can't find the map online in the map repository, it just overwrites your map with an empty corrupt (!) archive.

Thought I'd let you know; I'd consider it a bug that could wipe your hard work. (Or maybe it just happens for me? :p)

Is anyone on this problem in the moment? It's pretty annoying for anyone losing work with that. (didnt happen to me yet -yet-)
Logged

Mohican
Order of the Stick
Administrator
Legendary Member
*****
Posts: 2635



View Profile
« Reply #11 on: July 30, 2012, 05:53:15 am »

Bug Fixed. You can now work on new maps without losing your work.
Just use  "devworld myMap"  or  "world myMap 0".
Logged

Pages: [1] Go Up Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.077 seconds with 20 queries.