• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Improvements for the dedicated server

As of now it doesn't look like givexp works on dedicated servers.

givexp entityid x skillname

and they all report they see no change in the exp bar or skill.

Vote h0tr0d 2016 -- change you can believe in

 
It doesn't work because AddExpServer method doesn't work the same way AddScoreServer does. It only sends package to server and not to clients.

If you are building from source you can open GiveXp.cs, remove this line

Code:
GameManager.Instance.AddExpServer (ci.entityId, skill.Id, xp);
(You can also delete line since that variable isn't used)

Code:
EntityPlayer ep = GameManager.Instance.World.Players.dict [ci.entityId];
and instead add this line

Code:
ci.SendPackage(new NetPackageConsoleCmdClient("giveselfskillxp " + skillName+" "+xp, true));
 
Last edited by a moderator:
Has anyone gotten spawnscouts to work?
Yeah, Coppis version wasn't used as the game had one itself. But that one was only working for local players (e.g. the host on a listen server). It will be fixed in A15, will see if I can get a workaround in the mod for A14 though.

It doesn't work because AddExpServer method doesn't work the same way AddScoreServer does. It only sends package to server and not to clients....
Thanks for looking into it and the workaround :)

Will be added in the next mod release.

 
I fired up the new Allocs Fixes rev. 277 (8_11_14_1) to my server, and it seems there is an issue reading from the existing saves (AllocsPeristentData.bin ?). I get error messages when the server is starting, and offline players from before the update are no longer shown on the map. Claims are visible, the owner names are shown as unknown, but with their Steam ID. The names of the claim owners come back, when the respective player logs in. Everything else seems to work fine, dunno what I was doing wrong, or why this happens.

I uploaded the server log here: http://pastebin.com/mdKw23bf

 
Have you been running Coppi's version before? If so that's bound to happen as he used a different class name for part of the data ("Atributes" instead of "Attributes").

 
Oh, yeah, before I used Coppi's merged manually with your Fixes. Thanks for answering. It is not game breaking, but good to know what happened, and why :)

 
How do I render the map using this?
https://7dtd.illy.bz/wiki/Server%20fixes#Maprendering

Edit: There is also this command.

rendermap / rm: Render the map as far as it was ever visited by any player to both a big file and many small tiles that can be used for a map viewer like Leaflet. WARNING: This command can take a long time to execute (like 5 to 30 minutes) and the server won't be usable at that time for anything else!

 
Last edited by a moderator:
Hey alloc, can you add a player search bar in the web map ?

So i can write a name in that search bar and he show me the offline or online player.. It would be nice.

I have some hundred offline players...

Thanks!

 
Is it possible to Change the path where the Icons are loaded from like in previous Versions? With that we can add our custom Icons.

 
Hey alloc, can you add a player search bar in the web map ?
Part of the upcoming version, but not yet at a point where it's really of much use.

The givexp command is broken.
As stated just a bunch of posts above.

Also fixed in the next version.

Is it possible to Change the path where the Icons are loaded from like in previous Versions? With that we can add our custom Icons.
They aren't loaded from files but from gamedata. Use the mod interface with custom item icons and they will work fine.

 
hi alloc there is a new api added in latest version of server fixed named executeconsolecommand but i found no usage or guide to read cloud you tell me how to use is? thanks i have send a pm to you ignore that plz

 
Added API executeconsolecommand: Executes a console command and returns result. Uses the same permission checks as would apply to any ingame user

Just add the command as GET parameter 'command', that's it.
So just add a new js file with code like this?

Code:
var myfunction = function() {
$.getJSON( "../api/executeconsolecommand?llp") [color="#FF8C00"]<-- Format???[/color]
.done(function(data) {

//do things with returned data here

})
 
Back
Top