ManiaLive 1.0 r239

Discuss the Dedicated Server Tools developed by Nadeo Live such as ManiaLive, Trust Circles, Dedicated Manager, Competition Manager and Lobbies

Moderator: NADEO

farfa
Nadeo
Nadeo
Posts: 585
Joined: 14 Jun 2010, 16:15
Location: In front of your hood with one lap late

ManiaLive 1.0 r239

Post by farfa »

Here is a new version of ManiaLive
In this version the changelog is not that big, but changes are important

ManiaHome
The ManiaHome Client is now compatible with the last version of ManiaHome. The method signature has change so, update your plugin before using it.

chat commange
A new feature has been set in the chat command interpreter.
if you register a command with the number of parameter equal to -1, you can send as much argument as you want to the command.
Here is a code sample to use it:

Code: Select all

function onLoad()
{
     $this->registerChatCommand('t', 'test', -1, true);
}

function test()
{
    $args = func_get_args();
    //Do what you want here!!!
}
Some bug fixes has been made too.

You can download this version here: http://code.google.com/p/manialive/downloads/list

The standard plugins have been also updated, so think to download them too ;)
Also known as: satanasdiabolo
schmidi
Posts: 8
Joined: 16 Mar 2011, 21:05

Re: ManiaLive 1.0 r239

Post by schmidi »

last time i will annoy you with this. like in the previous releases, typo still present.
maybe nobody cares anyways.

ManiaLive\DedicatedApi\Callback\Listener.php line 27

Code: Select all

	/**
	 * Method called when a Player quit the server
	 * @param int $playerUid
	 * @param string $login
	 * @param string $text
	 * @param bool $isRegistredCmd
	 */
	function onPlayerChat($playerUid, $login, $text, $isRegistredCmd);
onPlayerChat ... "Method called when a Player quit the server"
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: ManiaLive 1.0 r239

Post by reaby »

great update!!!
this will make the plugin development for end user more easy to use since chat based plugins requires no more those extra hyphens to enter command

+++
User avatar
Knutselmaaster
Posts: 1206
Joined: 15 Jun 2010, 18:03
Location: Somewhere between Paris and Disney in France.
Contact:

Re: ManiaLive 1.0 r239

Post by Knutselmaaster »

Indeed, the hyphens were difficult to understand for most users.
The help messages in mlepp did not help them much, as not many people understand the word "hyphen" and i did not find a synonymy that was more understandable...

The (dedimania) broken pipe error has not occured since i updated this afternoon, i will keep you updated about it.
Fadden
Posts: 181
Joined: 10 May 2011, 18:21

Re: ManiaLive 1.0 r239

Post by Fadden »

I tried to update Manialive with the update.php script but it didn't work.
This errors appeared many times :

Code: Select all

PHP Warning:  readdir() expects parameter 1 to be resource, boolean given in /usr/games/ManiaLive/update/update.php on line 240
copying: ./temp/ManiaLive/libraries/ManiaLive
PHP Warning:  copy(./temp/ManiaLive/libraries/ManiaLive/): failed to open stream: No such file or directory in /usr/games/ManiaLive/update/update.php on line 251
The script extracts in ./temp/manialive and try to copy extracted files from ./temp/ManiaLive... So it fails and only delete files without replacing them :|
Elle est où la poulette ?
User avatar
Knutselmaaster
Posts: 1206
Joined: 15 Jun 2010, 18:03
Location: Somewhere between Paris and Disney in France.
Contact:

Re: ManiaLive 1.0 r239

Post by Knutselmaaster »

Try this version of the updater.
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: ManiaLive 1.0 r239

Post by reaby »

I found that windows console doesn't support utf-8 by default, this had some issues with character encoding with upcoming mlepp and console output. Can you add the following startup command to run.ini to fix this ?

Code: Select all

chcp 65001 > nul && %phpPath% bootstrapper.php
Though one have to edit the defaults little too. The normal console font doesn't have utf-8 chars. To fix:
  • Open console window
  • Right click at title bar
  • Choose defaults from the menu (second last entry)
  • Choose the first font: tt Consolas
  • Click Ok
*EDIT*
futher testing shows, that this works quite ok, but i get one extra line containing some characters from the original string. not good.




Can you also add the line breaks to log files, it's damn hard to read them when it's only at 1 line.
nouseforname
Posts: 32
Joined: 30 Dec 2010, 19:03

Re: ManiaLive 1.0 r239

Post by nouseforname »

pls change:

.../ManiaLive/libraries/ManiaLive/Utilities\logger.php

line 77

from:

Code: Select all

 error_log($text, 3, $this->path);
to:

Code: Select all

 error_log(date("Y.m.d_H:i ",time()).$text."\n", 3, $this->path);


for new line in command log...
User avatar
Knutselmaaster
Posts: 1206
Joined: 15 Jun 2010, 18:03
Location: Somewhere between Paris and Disney in France.
Contact:

Re: ManiaLive 1.0 r239

Post by Knutselmaaster »

One timer in my logs:

Code: Select all

    Occured on 03.07.2011 at 14:39:51 at process with ID #9298
    ---------------------------------
 -> ErrorException with code 0
    sqlite_exec(): database is locked
  - in /home/tmservers/servers/train/ManiaLive240/libraries/ManiaLive/Database/SQLite/Connection.php on line 114
  - Stack: #0 [internal function]: ManiaLive\Application\ErrorHandling::createExceptionFromError(2, 'sqlite_exec(): ...', '/home/tmservers...', 114, Array)
           #1 /home/tmservers/servers/train/ManiaLive240/libraries/ManiaLive/Database/SQLite/Connection.php(114): sqlite_exec(Resource id #60, 'INSERT INTO cmd...')
           #2 /home/tmservers/servers/train/ManiaLive240/libraries/ManiaLive/Threading/Thread.php(256): ManiaLive\Database\SQLite\Connection->execute('INSERT INTO cmd...')
           #3 /home/tmservers/servers/train/ManiaLive240/libraries/ManiaLive/Threading/Thread.php(432): ManiaLive\Threading\Thread->sendCommand(Object(ManiaLive\Threading\Commands\QuitCommand))
           #4 /home/tmservers/servers/train/ManiaLive240/libraries/ManiaLive/Threading/ThreadPool.php(430): ManiaLive\Threading\Thread->restart()
           #5 /home/tmservers/servers/train/ManiaLive240/libraries/ManiaLive/Threading/ThreadPool.php(304): ManiaLive\Threading\ThreadPool->removeDeadThreads()
           #6 /home/tmservers/servers/train/ManiaLive240/libraries/ManiaLive/Features/Tick/Event.php(26): ManiaLive\Threading\ThreadPool->onTick()
           #7 /home/tmservers/servers/train/ManiaLive240/libraries/ManiaLive/Event/Dispatcher.php(52): ManiaLive\Features\Tick\Event->fireDo(Object(ManiaLive\Threading\ThreadPool))
           #8 /home/tmservers/servers/train/ManiaLive240/libraries/ManiaLive/Features/Tick/Ticker.php(32): ManiaLive\Event\Dispatcher::dispatch(Object(ManiaLive\Features\Tick\Event))
           #9 /home/tmservers/servers/train/ManiaLive240/libraries/ManiaLive/Application/Event.php(36): ManiaLive\Features\Tick\Ticker->onPreLoop()
           #10 /home/tmservers/servers/train/ManiaLive240/libraries/ManiaLive/Event/Dispatcher.php(52): ManiaLive\Application\Event->fireDo(Object(ManiaLive\Features\Tick\Ticker))
           #11 /home/tmservers/servers/train/ManiaLive240/libraries/ManiaLive/Application/AbstractApplication.php(144): ManiaLive\Event\Dispatcher::dispatch(Object(ManiaLive\Application\Event))
           #12 /home/tmservers/servers/train/ManiaLive240/bootstrapper.php(82): ManiaLive\Application\AbstractApplication->run()
           #13 {main}
Server with threading enabled, php 5.3.6
farfa
Nadeo
Nadeo
Posts: 585
Joined: 14 Jun 2010, 16:15
Location: In front of your hood with one lap late

Re: ManiaLive 1.0 r239

Post by farfa »

@nouseforname: done in the latest commit, it's optional, so it's up to you if you want to enable it.
@Knutselmaaster: I'll check this.
Also known as: satanasdiabolo
Post Reply

Return to “Dedicated Server Tools”

Who is online

Users browsing this forum: No registered users and 1 guest