Page 1 of 1

Unable to add maps

Posted: 17 Aug 2017, 19:59
by Plateo
Hi there,

I'm fairly new to Uaseco. I just created my first dedicated server with Uaseco.
Everything seems to work well except the fact that I can't add any map on my server.

From what I've found, as MasterAdmin, I should be able to add a map with the following command :

Code: Select all

/admin add <TRACK ID>
The thing is, whenever I try to add a map like that, it miserabily fails and I get the following message :

Code: Select all

Method [GetMapInfo]: Error getting info on Map [Tech Nicker]!
(Tech Nicker being the map I tried to add)

Thus I can't add any map from MX on my server. Do you have any idea or guide that may help me ?

EDIT : OK, I just lokked through Uaseco's log file, and here's what comes when I try to add a map :

Code: Select all

[UASECO Exception] Error returned: "Map unknown." [-1000] at GbxRemote::query() for method "CheckMapForCurrentServerParams" with arguments:
array(1) {
  [0]=>
  string(36) "MX/Stadium/tech-nicker_29517.Map.gbx"
}

[UASECO Exception] Error returned: "Map unknown." [-1000] at GbxRemote::query() for method "AddMap" with arguments:
array(1) {
  [0]=>
  string(36) "MX/Stadium/tech-nicker_29517.Map.gbx"
}

Re: Unable to add maps

Posted: 17 Aug 2017, 20:46
by undef.de
Maybe that map is still a MP3 version? You can try: download, recalculate shadow, add manually.

Re: Unable to add maps

Posted: 18 Aug 2017, 00:35
by Plateo
At first, thanks for your answer.

Here's where I am :

1 - How can I recompute the map's shadows ? All the maps I find are password protected and cannot be opened in editor.

2 - I still tried to add the map manually using

Code: Select all

/admin addlocal <map name>
That map is located in the Maps/Downloaded folder of my server.
Still, it does not work and it says that my file is not found.
Here's what I get in Uaseco's log file :

Code: Select all

[2017-08-17 23:26:35] [Chat] Player [plateosaurus] used command "/admin addlocal Tech Nicker.Map.Gbx"
[PHP Notice] Undefined offset: 1 on line 632 in file /home/pi/Maniaplanet/uaseco/includes/core/helper.class.php

Re: Unable to add maps

Posted: 18 Aug 2017, 08:22
by undef.de
1: http://lmgtfy.com/?q=maniaplanet+calculate+shadows

2: It seems that "/admin addlocal MAP" is buggy, but you can manually add the map in the "MatchSettings" file to test the map (added to the todo list).

Btw.: You should also take a look into the logfile from the dedicated server, there could be detailed information about why the dedicated server don't like the map.

Re: Unable to add maps

Posted: 18 Aug 2017, 11:34
by Plateo
So recomputing shadows do not seems to change anything.

I already tried to load maps by editing MatchSettings, in fact this is the first thing I tried. When I did so, the map loads and is playable, but I loose all info about it (ex : it appears as map "Unknown" made by "Unknown", no dedimania, etc ...). By searching on the net, I found some people coming across that problem, who solved it by adding the map with admin commands.

On the Dedicated log file, there's absolutely nothing abnormal : it just loads the map file if it's in Matchsettings. And if I try to add it with

Code: Select all

/admin add <MAP ID>
It calls this :

Code: Select all

PluginManialinks?Action=23
Which is normal I think ?

Re: Unable to add maps

Posted: 18 Aug 2017, 13:42
by fiendy
Hi,
this sounds similar to the problem I had. See this post: viewtopic.php?f=522&t=42265&sid=0555002 ... 06#p289579.

Re: Unable to add maps

Posted: 18 Aug 2017, 13:51
by Plateo
OK so I'm still searching for a solution and I think that that's caused by a wrong parameter in my uaseco.sh and webrequest.sh files.

The thing is, when I run those scripts after launchig my dedicated server, it creates a new folder inside of my UASECO installation.
That folder's name is the path I put in newinstall/uaseco.sh and newinstall/webrequest.sh files. I mean, the path to that folder looks like this :

Code: Select all

/home/USER/Maniaplanet/uaseco/E:\home\USER\Maniaplanet\GameServer\UserData\Maps\MX
It contains environments sub folders, and in Stadium subfolder, I find the GBX files I tried to add with the /admin add <TRACKID> command !

Is it normal ? I think UASECO is able to download the maps, but it did not add them directly into my server map folder ; it adds them in that new folder in my UASECO installation. And when I try to add them ingame, it can't because they are not in the actual dedicated server map folder.

I think I put wrong parameters in my newinstall/webrequest.sh and newinstall/uaseco.sh files.
On the Uaseco website, we can read the following :
Edit newinstall\uaseco.sh and newinstall\webrequest.sh

Replace cd /home/tm2/uaseco with the real path on your server.
So in my files, I put the actual path of my ManiaPlanetServer file. newinstall/uaseco.sh looks like this :

Code: Select all

#!/bin/sh
cd /home/user/Maniaplanet/GameServer
php -d allow_url_fopen=on -d safe_mode=0 uaseco.php TM2 2>>logs/uaseco.log 1>&2 &
echo $!
/home/user/Maniaplanet/GameServer being the folder where my dedicated server is installed.

Are those parameters correct ?