LoTROInterface

LoTROInterface (https://www.lotrointerface.com/forums/index.php)
-   Interface Requests (L) (https://www.lotrointerface.com/forums/forumdisplay.php?f=5)
-   -   Server Name? (https://www.lotrointerface.com/forums/showthread.php?t=3730)

TheStormKing 01-27-2019 11:03 AM

Server Name?
 
I have a plugin that gets all character data, for offline website viewing.

I can't find a "servername" field I can use to determine what server the lua save method was run on. This is crucial to handle the same character name on different servers.

Does a "server name" extract exist for use when saving data?

Thurallor 01-27-2019 12:28 PM

Regrettably, no. And as far as I can tell, there is no "sneaky" way to tell, either. Some recent discussion here.

(However, if you're going to be parsing the .plugindata files using an external program, obviously that program will know which server the data was saved on, if it's saved with "Server" scope.)

glafria 01-27-2019 12:30 PM

Hi,


yes the servername is used to save variables.
There are folders for the servers.


I didnīt find it in the lua, but you could read it by the folder where the data is saved.


Greetz Glafria

Thurallor 06-16-2020 01:10 PM

Starting tomorrow, there will be a reliable way to identify the server:

Quote:

Originally Posted by Cordovan
The /loc command has been modified to include the player's server ID and timestamp. Including this information with GM correspondence could help us expedite your request.

(Update 26.2.2 Release Notes)

It requires a click from the user, but it's a huge improvement over the options we had before!

It will also probably break a lot of existing plugins that rely on the "/loc" command's output format.

Garan 06-16-2020 03:05 PM

Yep, likely this will break Waypoint, MoorMap, TerrainMap, Anthology and a slew of other plugins but it's still a step in the right direction. Sort of. Anyway, thanks for the heads up I hadn't seen the release notes yet.

Hyoss 06-17-2020 06:59 AM

Quote:

Originally Posted by Garan (Post 12462)
Yep, likely this will break Waypoint, MoorMap, TerrainMap, Anthology and a slew of other plugins but it's still a step in the right direction. Sort of. Anyway, thanks for the heads up I hadn't seen the release notes yet.

I can think of Reminders, Roving Threat Plugin as well. Might be time for some community patches.

Garan 06-17-2020 08:33 AM

Well, the first thing I noticed is it isn't implemented for the FR client.
EDIT: Not implemented in the DE client either.

The EN client format looks like:
Code:

You are on server 65 at r2 lx1212 ly1538 ox85.67 oy49.68 oz711.87 h180.0. Game timestamp 413530581.868.
It turns out the server number is for the actual physical server within a cluster and does not have a 1:1 relationship to the World. For instance, three different characters simultaneously logged into Landroval had server numbers 64, 65, and 67 (they were in different regions) - heh just going through the door from ouside Erebor to inside Erebor moved me from server 64 to 52. Depending on their architecture, it may even be possible for one server to host regions from two different worlds (although probably only US or EU, not a combination due to database isssues). Since the physical servers that make up a cluster can be reallocated any time the servers are taken down for maintenance (and depending on their architecture possibly even while live), I suspect this value to be useless to Lua developers. I can see why SSG would want this for debugging purposes in case one physical server out of a cluster is causing trouble it will be much easier to pinpoint the affected server.

Thurallor 06-17-2020 09:36 AM

Ugh...

Thurallor 06-17-2020 09:53 AM

Quote:

Originally Posted by Hyoss (Post 12463)
I can think of Reminders, Roving Threat Plugin as well. Might be time for some community patches.

Reminders actually will be OK, because it uses ";loc", not "/loc".

DLevel 06-19-2020 08:54 AM

Server Name?
 
Garan thank you for updating TerrainMap 1.27 and MoorMap 1.42.
have downloaded both and Alias /Loc now working. Thanks for pointing me to this forum for newest info on updates. Hoping Waypoint plugin (Lunarwater) will be updated soon as well.


All times are GMT -5. The time now is 10:20 AM.

vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI