[Tool] AdminServ 2.1.0

Moderator: NADEO

User avatar
weerwolf
Posts: 603
Joined: 15 Jun 2010, 21:21
Location: Wijchen, Netherlands
Contact:

Re: [Tool] AdminServ

Post by weerwolf »

From the dedicated_cfg.txt:

Code: Select all

<callvote_ratio>-1</callvote_ratio>					<!-- default ratio. value in [0..1], or -1 to forbid. -->
From srvopts.php

Code: Select all

<input class="text" type="number" [b]min="0" max="1"[/b] step=".1" name="CallVoteRatio" id="CallVoteRatio" value="<?php echo $srvOpt['CallVoteRatio']; ?>" />
From 0 to 1 is the % needed for a vote to pass. -1 is used to disable the callvotes.

Using the latest version of Adminserv, Trackmania Server and Maniaplanet server.

WW
hackie
Posts: 1168
Joined: 19 Jul 2012, 22:43

Re: [Tool] AdminServ

Post by hackie »

I think my problem is solved. ( by it self )

I forgot something to change in dedicated config :

<title>SMStorm</title> <!-- SMStorm, TMCanyon, ... -->

should be : <title>TMStadium</title>

Don't know if that was the problem but it runs fine now.

Thanks again for this lovely program. :thumbsup:
System Specs:
OS: Windows 7 Professionnal x64
CPU: Intel Core i7-6700K / 4 GHz - 8 MB cache
GPU: MSI GTX 980TI GAMING 6G - OC Edition
Motherboard: ASUS MAXIMUS VIII RANGER
RAM : 32Gb Kingston HyperX Savage - DDR4
DirectX 11
Kev717
Posts: 34
Joined: 15 Jun 2010, 11:20
Location: La Rochelle

Re: [Tool] AdminServ

Post by Kev717 »

weerwolf wrote:From srvopts.php

Code: Select all

<input class="text" type="number" min="0" max="1" step=".1" name="CallVoteRatio" id="CallVoteRatio" value="<?php echo $srvOpt['CallVoteRatio']; ?>" />
From 0 to 1 is the % needed for a vote to pass. -1 is used to disable the callvotes.
Ok, so just changes "min" attribute to "-1" in this file. ;)
User avatar
weerwolf
Posts: 603
Joined: 15 Jun 2010, 21:21
Location: Wijchen, Netherlands
Contact:

Re: [Tool] AdminServ

Post by weerwolf »

So here we go :P

The callvotes:

Code: Select all

<input class="text" type="number" min="0" max="1" step=".1" name="CallVoteRatio" id="CallVoteRatio" value="<?php echo $srvOpt['CallVoteRatio']; ?>" />
I can change the min to -1 yes. It would allow the script also to send values -0.9 till -0.1. Allthough i did not test how the server handels such a value, but i think its better to change to code above in a manner thhe besides the values above only -1 is accepted extra.

Upload maps:
When trying to upload a map to a folder i get

Code: Select all

The file was not uploaded. Upload has been cancelled or a server error occurred. (write error)
Looking into the logs i am provided with the following entrys:

Code: Select all

[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: PHP Fatal error:  Uncaught exception 'Exception' with message 'GBX map error: Insufficient data for 3 bytes at pos 0x0000' in _serverpath_AdminServ/includes/class/gbxdatafetcher.inc.php:99, referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: Stack trace:, referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: #0 _serverpath_AdminServ/includes/class/gbxdatafetcher.inc.php(149): GBXBaseFetcher->errorOut('Insufficient da...', 2), referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres- mod_fcgid: stderr: #1 _serverpath_AdminServ/includes/class/gbxdatafetcher.inc.php(301): GBXBaseFetcher->readData(3), referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: #2 _serverpath_AdminServ/includes/class/gbxdatafetcher.inc.php(618): GBXBaseFetcher->checkHeader(Array), referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: #3 _serverpath_AdminServ/includes/class/gbxdatafetcher.inc.php(593): GBXChallMapFetcher->processGBX(), referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: #4 _serverpath_AdminServ/includes/adminserv.inc.php(2303): GBXChallMapFetcher->processFile('/var/www/vhosts...'), referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: #5 _serverpath_AdminServ/includes/pages/maps-l in _serverpath_AdminServ/includes/class/gbxdatafetcher.inc.php on line 99, referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
Result upload map
The result of trying to upload a map creates the file, but the errror produces a file with 0B.
Because of that the LOCAL pages of AdminServ produce a 500 server error.

Code: Select all

[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: PHP Fatal error:  Uncaught exception 'Exception' with message 'GBX map error: Insufficient data for 3 bytes at pos 0x0000' in _serverpath_AdminServ/includes/class/gbxdatafetcher.inc.php:99, referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: Stack trace:, referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: #0 _serverpath_AdminServ/includes/class/gbxdatafetcher.inc.php(149): GBXBaseFetcher->errorOut('Insufficient da...', 2), referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: #1 _serverpath_AdminServ/includes/class/gbxdatafetcher.inc.php(301): GBXBaseFetcher->readData(3), referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: #2 _serverpath_AdminServ/includes/class/gbxdatafetcher.inc.php(618): GBXBaseFetcher->checkHeader(Array), referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: #3 _serverpath_AdminServ/includes/class/gbxdatafetcher.inc.php(593): GBXChallMapFetcher->processGBX(), referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: #4 _serverpath_AdminServ/includes/adminserv.inc.php(2303): GBXChallMapFetcher->processFile('/var/www/vhosts...'), referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
[Sun Mar 17 23:43:17 2013] [warn] [client -ipadres-] mod_fcgid: stderr: #5 _serverpath_AdminServ/includes/pages/maps-l in _serverpath_AdminServ/includes/class/gbxdatafetcher.inc.php on line 99, referer: https://_serverurl_AdminServ/?p=maps-upload&d=Trackmania2_TMLYNX1%2FTMXtmp/
WW
User avatar
weerwolf
Posts: 603
Joined: 15 Jun 2010, 21:21
Location: Wijchen, Netherlands
Contact:

Re: [Tool] AdminServ

Post by weerwolf »

any clue? :lol:
Kev717
Posts: 34
Joined: 15 Jun 2010, 11:20
Location: La Rochelle

Re: [Tool] AdminServ

Post by Kev717 »

weerwolf wrote:I can change the min to -1 yes. It would allow the script also to send values -0.9 till -0.1. Allthough i did not test how the server handels such a value, but i think its better to change to code above in a manner thhe besides the values above only -1 is accepted extra.
It's fixed in the next version ;)

But for upload maps, I cannot find this bug :shock: Can you send maps by PM?
hackie
Posts: 1168
Joined: 19 Jul 2012, 22:43

Re: [Tool] AdminServ

Post by hackie »

About that map thing , could it be that coverted maps ( tmnf tracks to stadium2 maps ) do not work always ?

I rent a server at trackmaniaserver.org when I upload my maps there ( converted ones ) the server keeps crashing.
When I load my converted maps to my Lab ( server I host @home ) tracks are perfectly loading.

A bit weird.

Just wanted you to know , maybe it's helpfull.
System Specs:
OS: Windows 7 Professionnal x64
CPU: Intel Core i7-6700K / 4 GHz - 8 MB cache
GPU: MSI GTX 980TI GAMING 6G - OC Edition
Motherboard: ASUS MAXIMUS VIII RANGER
RAM : 32Gb Kingston HyperX Savage - DDR4
DirectX 11
w00p
Posts: 1
Joined: 27 Feb 2013, 20:37

Re: [Tool] AdminServ

Post by w00p »

Nice work!! Works perfect :)

I am working on a Norwegian translation of the script.
Kev717
Posts: 34
Joined: 15 Jun 2010, 11:20
Location: La Rochelle

Re: [Tool] AdminServ

Post by Kev717 »

hackie wrote:About that map thing , could it be that coverted maps ( tmnf tracks to stadium2 maps ) do not work always ?

I rent a server at trackmaniaserver.org when I upload my maps there ( converted ones ) the server keeps crashing.
When I load my converted maps to my Lab ( server I host @home ) tracks are perfectly loading.

A bit weird.

Just wanted you to know , maybe it's helpfull.
Ok, it's strange... I tested with some TM2 stadium maps and I have no problem.
w00p wrote:Nice work!! Works perfect :)

I am working on a Norwegian translation of the script.
Thx ! :thx:
User avatar
weerwolf
Posts: 603
Joined: 15 Jun 2010, 21:21
Location: Wijchen, Netherlands
Contact:

Re: [Tool] AdminServ

Post by weerwolf »

Well,

After some agony about why it did not work, and not having a clue what caused the error, i went and tried
the the dedicated server manager from nadeo. Some issues later to get that one work - lol - i wanted to upload
there. OMG, the same error. More than ever i thought some issue on the server side and turned everthing upside down, i noted a little thing on that dedicated manager. It said: local file: c:\fakepath\<map> ??? :roflol:

So downloaded Firefox.... and watta ya know.....both AdminServ and dedicated manager uploaded.

The error was produced locally by Explorer. I still do not know why.
For your information:
Internet explorer 9
Version 9.0.8112.16421
Updates: 9.0.14

WW
Post Reply

Return to “Dedicated Server”

Who is online

Users browsing this forum: No registered users and 1 guest