Page 4 of 8
Re: [Tools] SMAdminTools
Posted: 25 Nov 2012, 03:09
by slugish
I will be updating my servers tonight. These new commands are awesome, thank you so much!
Edit: Working great, but just a heads up to prevent anyone from going through the same ordeal as I. Any .dll file in the plugin directory will be loaded. I initially renamed the current IGAdmin.dll file to IGAdmin_backup.dll and was clueless as to why each !players received two replies. It took me way longer than it should have to figure that out.
Re: [Tools] SMAdminTools
Posted: 26 Nov 2012, 21:31
by Loone
slugish wrote:I will be updating my servers tonight. These new commands are awesome, thank you so much!
Edit: Working great, but just a heads up to prevent anyone from going through the same ordeal as I. Any .dll file in the plugin directory will be loaded. I initially renamed the current IGAdmin.dll file to IGAdmin_backup.dll and was clueless as to why each !players received two replies. It took me way longer than it should have to figure that out.
yeah, better do something like IGAdmin.dll.bak to prevent it
Re: [Tools] SMAdminTools
Posted: 07 Dec 2012, 21:07
by Loone
NEW IMPROVEMENTS!!!
Hello again guys, i added some new commands again, hope they'll be usefull for you.
COMMANDS FOR ALL PLAYERS:
- !netstats (it displays some net stats about server and players. Read at bottom post for more info about this command)
COMMANDS FOR ADMINS:
- !getpw (write the current pw in chat. I don't know.. it could be allowed for every players. let me know what you think about this).
- !nopassword (remove the password from the server. Until next map server will keep askin for password which will be an empty string).
- !teamrounds <integer> (should set max team round but didn't test it yet. Should be usefull expecially for Elite where there are cups with 6 rounds and cups with 9 rounds.)
- !nohorns (disable horns for all players)
- !yeshorns (opposite as above)
----------------
The purpose of !netstats was to display current ping/snapshotdeltatime of players but i could not find a command in ManiaPlanet API that returns those values. Currently it displays PacketLossRate for players. If anybody knows or has a document on how to get ping and/or snapshotdeltatime of players please PM ME.
------------------
INSTALLATION:
1) replace ShootManiaXMLRPC.dll (backup recommended. just rename it do ShootManiaXMLRPC.dll.bak)
2) replace IGAdmin.dll (backup recommended. just rename it do IGAdmin.dll.bak)
3) restart SMAdminTools
DOWNLOAD LINKS:
- DLLs:
https://www.dropbox.com/s/upmj5a20br0xb ... n_DLLs.zip
- SRC:
https://www.dropbox.com/s/2mw1kuiey3pb8 ... nTools.zip
Re: [Tools] SMAdminTools
Posted: 07 Dec 2012, 21:34
by Triseaux
Yop,
thx for upgrad it.
I have problemes, !netstats reload the bot and !teamround say in tchat "rounds have been changed to XX" but realy not.
The maxround dont change.
Re: [Tools] SMAdminTools
Posted: 08 Dec 2012, 11:55
by Loone
Triseaux wrote:Yop,
thx for upgrad it.
I have problemes, !netstats reload the bot and !teamround say in tchat "rounds have been changed to XX" but realy not.
The maxround dont change.
thanks for feedback. The maxrounds seems not working. I will try some fix tomorrow.
What do u mean by "reload" the bot? On my server it works fine. Which version are u using?
Re: [Tools] SMAdminTools
Posted: 08 Dec 2012, 12:39
by Triseaux
yop, im using last 1.3c beta server.
After use commandes !netstats, bot say in tchat "connected !" and in consol :
Code: Select all
Connected to server !
Authentication ...
Authentication success !
Set API version : 2012-06-19 ...
Ok ...
Enable callbacks ...
Ok ...
Register events ...
Ok ...
Calling OnConnectionSuccessful ...
Ok ...
Everythings is up and running !
[DEBUG] Callback received : ManiaPlanet.PlayerChat (Params : 4)
Re: [Tools] SMAdminTools
Posted: 09 Dec 2012, 18:25
by Loone
tried to figure out the maxroujnd problem without success. The problem with netstats i cannot test it coz i haven't a 1.3c server available.
I guess i will stop develop since beta2 is gonna be released next week.
Re: [Tools] SMAdminTools
Posted: 09 Dec 2012, 18:27
by Triseaux
I think, go to teste with 1.3e and say you.
Re: [Tools] SMAdminTools
Posted: 10 Dec 2012, 04:19
by slugish
Loone wrote:
thanks for feedback. The maxrounds seems not working. I will try some fix tomorrow.
What do u mean by "reload" the bot? On my server it works fine. Which version are u using?
To change the score limit in Elite, three settings must be changed. I stuck this code on the bottom of the php script I use (huge thank you to Griffin) to start our servers with less than six players and it works fine. This will set the server to "win at 9 points" with a maximum score of 20. Maybe you are already aware of this, but it sounded like you were trying to change the setting with only one variable.
Code: Select all
$settings['S_TurnLimit'] = 20;
$settings['S_DeciderTurnLimit'] = 20;
$settings['S_TurnWin'] = 9;
I would suggest using two commands to change these settings.
!pointstowin x
!maxpoints x
!pointstowin would set the 'S_TurnWin' variable, while !maxpoints would set both of the other two. I would also set it so that !maxpoints could not be set lower than !pointstowin, as that would be a little odd.
Re: [Tools] SMAdminTools
Posted: 10 Dec 2012, 16:48
by Loone
slugish wrote:Loone wrote:
thanks for feedback. The maxrounds seems not working. I will try some fix tomorrow.
What do u mean by "reload" the bot? On my server it works fine. Which version are u using?
To change the score limit in Elite, three settings must be changed. I stuck this code on the bottom of the php script I use (huge thank you to Griffin) to start our servers with less than six players and it works fine. This will set the server to "win at 9 points" with a maximum score of 20. Maybe you are already aware of this, but it sounded like you were trying to change the setting with only one variable.
Code: Select all
$settings['S_TurnLimit'] = 20;
$settings['S_DeciderTurnLimit'] = 20;
$settings['S_TurnWin'] = 9;
I would suggest using two commands to change these settings.
!pointstowin x
!maxpoints x
!pointstowin would set the 'S_TurnWin' variable, while !maxpoints would set both of the other two. I would also set it so that !maxpoints could not be set lower than !pointstowin, as that would be a little odd.
i see... SMAdminTools communicae via XMLRPC commands. I'd need a complete list of methods can be used to alter variables.
i found this;
http://www.gamers.org/tm2/docs/ListMeth ... 08-01.html but it's quite old. i'm pretty sure there is a newer version. On that list there's not command which alter a variable called "TurnWin".
Anyone knows where can i find that list? Othrwise i'll try PM Nadeo staff