Local Records

Post here every finished plugin

Moderator: NADEO

Post Reply
User avatar
lille79
Posts: 12
Joined: 15 Jun 2010, 15:54

Local Records

Post by lille79 » 19 Apr 2011, 12:30

Hi! I was just wondering if anyone could point me in the right direction for setting up local records. I'm not sure about what is needed and what should be enabled and so on.

Tried enabling local records from the MLEPP but I'm not sure how it should be done. Most things I read is for developers or old versions, so I thought it'd be better to ask ;) I've figured out how to start Manialive and gotten the admin-plugin, joinleave-plugin and a few others to work, so I'm about to get the basics right atleast.

ps. Is there a certain sequence that the plugins need to be listed like with Aseco/xaseco-plugins, or doesn't that matter in ManiaLive?
/lille79
Old man of the Norwegian Trackmania team Super Sheep Racing
To visit my homepage/blog, and download the usbTMFserver, this is the place to go.

TheM
Posts: 1445
Joined: 15 Jun 2010, 14:30
Location: Uden, Noord-Brabant, Netherlands
Contact:

Re: Local Records

Post by TheM » 19 Apr 2011, 14:15

First of all: welcome in this little world called ManiaLive ! :)
The only currently available Local Records plugin is inside the MLEPP package.
As stated on the MLEPP wiki (http://code.google.com/p/mlepp/wiki/InstallGuide?tm=6):
MLEPP Wiki wrote:find this at the end:
;------------------
[hostname: testHost]
;------------------

add semicolon at the start of the middle line:
;------------------
;[hostname: testHost]
;------------------

then open config-example-mlepp.ini
select all and copypaste it to the end of the config.ini -file.

then find the database
edit the database to look like this:

plugins.load = 'MLEPP\Database'
plugins.MLEPP\Database.type = 'MySQL'
plugins.MLEPP\Database.port = '3306'
plugins.MLEPP\Database.host = '127.0.0.1'
plugins.MLEPP\Database.user = 'mlepp'
plugins.MLEPP\Database.password = 'yourmysqlpasswordhere'
plugins.MLEPP\Database.name = 'mlepp'

Save and close config.ini..
start dedicated server and manialive with run.bat
And you are done.
I think you understand the MySQL part (creating the database etc.), but if not... follow the link, it is explained there.

As far as I know there isn't a certain sequence like in Aseco...
If running Freezone, putting the Freezone last might solve some errors (someone: if wrong... correct me ;))

If you have further questions, feel free to ask! ;)
Global moderator | Dutch moderator | Laddermoderator | ManiaWiki moderator
Server Manager/webmaster of Smurfen.net, join us on Canyon, Valley and Royal!
ESL (Game) Staff Head for TrackMania (Stadium, Canyon and Valley).

User avatar
lille79
Posts: 12
Joined: 15 Jun 2010, 15:54

Re: Local Records

Post by lille79 » 19 Apr 2011, 15:14

I think I'm getting it a bit now. Been so used to Xaseco that this is like learning to crawl again...
I had forgotten to copy the setup from MLEPP into the config.ini, so when that was in place I've come a small step further. Now I'm getting this error after it initially seems to start relatively correct:

Code: Select all

[15:59:49] XML-RPC connection established
[15:59:49] Successfully authentified with XML-RPC server
[15:59:50] Current map: C11-Race
[PluginHandler] Start plugin load process:
[PluginHandler] is loading MLEPP\Core ...
[PluginHandler] is loading MLEPP\Database ...
[PluginHandler] is loading MLEPP\AdminPanel ...
[PluginHandler] is loading MLEPP\AddRemoveTracks ...
[PluginHandler] is loading MLEPP\ChallengeWidget ...
[PluginHandler] is loading MLEPP\ChatEmotes ...
        [PluginHandler] is loading MLEPP\ChatLog ...
[PluginHandler] is loading MLEPP\ChatMe ...
[PluginHandler] is loading MLEPP\Communication ...
[PluginHandler] is loading MLEPP\CustomChat ...
[PluginHandler] is loading MLEPP\DonateCoppers ...
[PluginHandler] is loading MLEPP\ForceMods ...
[PluginHandler] is loading MLEPP\JoinLeaveMessage ...
[PluginHandler] is loading MLEPP\Jukebox ...
[PluginHandler] is loading MLEPP\Karma ...
[PluginHandler] is loading MLEPP\LocalRecords ...
[PluginHandler] is loading MLEPP\RandomMessage ...
[PluginHandler] is loading MLEPP\Rankings ...
[PluginHandler] is loading MLEPP\ServerMail ...
[PluginHandler] is loading MLEPP\TmxInfo ...
[PluginHandler] is loading MLEPP\Votes ...
[15:59:50] [MLEPP] Enabling MLEPP r394 . . .
[15:59:50] [MLEPP] Enabling MLEPP Database r394 . . .
[15:59:50] [MLEPP] [Database] Connecting to MYSQL database server . . .
[15:59:50] [MLEPP] [Database] Connection succesfully established !
[15:59:50] [MLEPP] [Database] checking and creating databases if needed..
[15:59:50] [MLEPP] Plugin: AdminPanel r294 by TheM & reaby.
[15:59:50] [MLEPP] Plugin: Add/Remove Tracks r394 by TheM & reaby.
[15:59:50] [MLEPP] Plugin: ChallengeWidget r394 by reaby.
[15:59:50] [MLEPP] Plugin: ChatEmotes r394 by TheM, reaby & Knutselmaaster.
[15:59:50] [MLEPP] Plugin: ChatLog r394 by reaby.
[15:59:50] [MLEPP] Plugin: ChatMe r394 by Knutselmaaster & reaby.
[15:59:50] [MLEPP] Plugin: Communication r394 by reaby.
[15:59:50] [MLEPP] Plugin: CustomChat r394 by TheM & reaby.
[15:59:50] [MLEPP] Plugin: DonateCoppers r394 by TheM & reaby.
[15:59:50] [MLEPP] Plugin: ForceMods r394 by TheM & reaby.
[15:59:50] [MLEPP] Plugin: JoinLeaveMessage r340 by TheM & reaby.
[15:59:50] [MLEPP] Plugin: Jukebox v394 by TheM & reaby & oliverde8.
[15:59:50] [MLEPP] Plugin: Karma r394 by reaby.
[15:59:50] [MLEPP] Plugin: LocalRecords r394 by TheM & reaby.
[15:59:50] [MLEPP] Plugin: RandomMessage r394 by TheM, reaby & Knutselmaaster.
[15:59:50] [MLEPP] Plugin: Rankings r394 by reaby.
[15:59:50] [MLEPP] Plugin: ServerMail r394 by reaby.
[15:59:50] [MLEPP] Plugin: TmxInfo r394 by reaby, W1lla & Knutselmaaster.
[15:59:50] [MLEPP] Plugin: Votes r394 by reaby.

 -> ManiaLive\Database\QueryException with code 1054
    Unknown column 'challenge_uid' in 'field list'
  - in
      D:\usbTMFserverbetas\29alpha3\TMF\control\ManiaLive\libraries\ManiaLive\D
      atabase\MySQL\Connection.php on line 150
  - Stack: #0
      D:\usbTMFserverbetas\29alpha3\TMF\control\ManiaLive\libraries\ManiaLivePl
      ugins\MLEPP\Database\Database.php(212):
      ManiaLive\Database\MySQL\Connection->query('INSERT INTO `ch...')
           #1
      D:\usbTMFserverbetas\29alpha3\TMF\control\ManiaLive\libraries\ManiaLivePl
      ugins\MLEPP\Database\Database.php(769):
      ManiaLivePlugins\MLEPP\Database\Database->query(Object(ManiaLivePlugins\M
      LEPP\Database\Structures\multiQuery))
           #2
      D:\usbTMFserverbetas\29alpha3\TMF\control\ManiaLive\libraries\ManiaLivePl
      ugins\MLEPP\Database\Database.php(678):
      ManiaLivePlugins\MLEPP\Database\Database->insertChallenge(Object(ManiaLiv
      e\DedicatedApi\Structures\Challenge))
           #3
      D:\usbTMFserverbetas\29alpha3\TMF\control\ManiaLive\libraries\ManiaLivePl
      ugins\MLEPP\Database\Database.php(122):
      ManiaLivePlugins\MLEPP\Database\Database->updateServerChallenges()
           #4
      D:\usbTMFserverbetas\29alpha3\TMF\control\ManiaLive\libraries\ManiaLive\P
      luginHandler\PluginHandler.php(159):
      ManiaLivePlugins\MLEPP\Database\Database->onReady()
           #5
      D:\usbTMFserverbetas\29alpha3\TMF\control\ManiaLive\libraries\ManiaLive\P
      luginHandler\PluginHandler.php(684):
      ManiaLive\PluginHandler\PluginHandler->loadPlugins()
           #6
      D:\usbTMFserverbetas\29alpha3\TMF\control\ManiaLive\libraries\ManiaLive\A
      pplication\Event.php(39): ManiaLive\PluginHandler\PluginHandler->onInit()
           #7
      D:\usbTMFserverbetas\29alpha3\TMF\control\ManiaLive\libraries\ManiaLive\E
      vent\Dispatcher.php(52):
      ManiaLive\Application\Event->fireDo(Object(ManiaLive\PluginHandler\Plugin
      Handler))
           #8
      D:\usbTMFserverbetas\29alpha3\TMF\control\ManiaLive\libraries\ManiaLive\A
      pplication\AbstractApplication.php(130):
      ManiaLive\Event\Dispatcher::dispatch(Object(ManiaLive\Application\Event))
           #9
      D:\usbTMFserverbetas\29alpha3\TMF\control\ManiaLive\libraries\ManiaLiveAp
      plication\Application.php(38):
      ManiaLive\Application\AbstractApplication->init()
           #10
      D:\usbTMFserverbetas\29alpha3\TMF\control\ManiaLive\libraries\ManiaLive\A
      pplication\AbstractApplication.php(137):
      ManiaLiveApplication\Application->init()
           #11
      D:\usbTMFserverbetas\29alpha3\TMF\control\ManiaLive\bootstrapper.php(19):
      ManiaLive\Application\AbstractApplication->run()
           #12 {main}

ERROR: Update service was unable to contact server ...
About a minute after it says "ERROR: Update service was unable to contact server ...", I get this:

Code: Select all

[16:00:41] [MLEPP] [ForceMods] Enabling mod: http://trackmaniadownloads.free.fr/mod/MLEPP4.zip
PHP Fatal error:  Call to a member function quote() on a non-object in D:\usbTMFserverbetas\29alpha3\TMF\control\ManiaLive\libraries\ManiaLivePlugins\MLEPP\Rankings\Rankings.php on line 246

Fatal error: Call to a member function quote() on a non-object in D:\usbTMFserverbetas\29alpha3\TMF\control\ManiaLive\libraries\ManiaLivePlugins\MLEPP\Rankings\Rankings.php on line 246
Press any key to continue . . .
Is this just something I haven't configured you think, or have I stepped wrong somewhere.
/lille79
Old man of the Norwegian Trackmania team Super Sheep Racing
To visit my homepage/blog, and download the usbTMFserver, this is the place to go.

TheM
Posts: 1445
Joined: 15 Jun 2010, 14:30
Location: Uden, Noord-Brabant, Netherlands
Contact:

Re: Local Records

Post by TheM » 19 Apr 2011, 15:45

Strange thing is... I don't seem to be able to reproduce your error...
You made a database, edited the config.ini and than started ManiaLive?

EDIT: You might try to remove the tables from your database and try again...
Global moderator | Dutch moderator | Laddermoderator | ManiaWiki moderator
Server Manager/webmaster of Smurfen.net, join us on Canyon, Valley and Royal!
ESL (Game) Staff Head for TrackMania (Stadium, Canyon and Valley).

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

Re: Local Records

Post by Knutselmaaster » 19 Apr 2011, 18:26

I had a similar problem once, when i tried to use an existing xaseco database for mlepp.
You do use a fresh database don't you?

User avatar
lille79
Posts: 12
Joined: 15 Jun 2010, 15:54

Re: Local Records

Post by lille79 » 19 Apr 2011, 18:29

No I used an old one actually. Will try a clean and fresh start tomorrow :) Thanx for all help so far!
/lille79
Old man of the Norwegian Trackmania team Super Sheep Racing
To visit my homepage/blog, and download the usbTMFserver, this is the place to go.

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

Re: Local Records

Post by Knutselmaaster » 19 Apr 2011, 19:40

You're welcome :)

Edit:
Moved topic to the plugins section.

User avatar
lille79
Posts: 12
Joined: 15 Jun 2010, 15:54

Re: Local Records

Post by lille79 » 24 Apr 2011, 15:33

A clean database was all it took :) Thanks!
/lille79
Old man of the Norwegian Trackmania team Super Sheep Racing
To visit my homepage/blog, and download the usbTMFserver, this is the place to go.

Post Reply

Return to “ManiaLive Plugins”

Who is online

Users browsing this forum: No registered users and 1 guest