eXpansion 0.9.5 (02/05/2014) | OLD

The next generation of server controlling with clean and powerful user interface

Moderators: oliverde8, reaby, NADEO

mangastef
Posts: 704
Joined: 15 Jun 2010, 22:46
Location: Chez moi
Contact:

Re: eXpansion 0.9.5 (02/05/2014)

Post by mangastef »

Yop all

Désolé je ne parle pas anglais, possible que quelqu'un m'aide?
J'ai installé le plugin 0.9.5 pour le nouveau serveur de la PMC en multi et il ne lance pas tout. Problème local record.
Dans la database, il ne crée que 5 tables.
Je mettrai plus d'info ce soir.

Merci

Structure exp_databaseversion
Structure exp_maps
Structure exp_planet_transaction
Structure exp_players
Structure exp_ratings
Et rien d'autre, je vois dans logs
[ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords]..............................Not Compatible -> unLoaded


Code: Select all

 _|      _|                      _|            _|        _|
 _|_|  _|_|    _|_|_|  _|_|_|          _|_|_|  _|            _|    _|    _|_|
 _|  _|  _|  _|    _|  _|    _|  _|  _|    _|  _|        _|  _|    _|  _|_|_|_|
 _|      _|  _|    _|  _|    _|  _|  _|    _|  _|        _|  _|  _|    _|
 _|      _|    _|_|_|  _|    _|  _|    _|_|_|  _|_|_|_|  _|    _|        _|_|_|
-----------------------------------------------------
PHP Environment Compatibility Test
-----------------------------------------------------
PHP 5.3.1 or newer    -> required  -> [ Yes ] 5.3.8
Standard PHP Library  -> required  -> [ Yes ]
JSON                  -> required  -> [ Yes ]
cURL with SSL         -> required  -> [ Yes ] 7.21.0 (with OpenSSL/0.9.8o)
MySQL                 -> optional  -> [ Yes ]
SQLite3               -> optional  -> [ Yes ]
-----------------------------------------------------
Running ManiaLive 4.0.0...
[PluginHandler] Start plugin load process:


[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\AutoLoad\AutoLoad" 0.9.5...
[eXpansion] AutoLoading eXpansion pack ... 
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Core\Core" 0.9.5...
   
   

                     __   __                      _             
                     \ \ / /                     (_)            
                  ___ \ ' / _ __   __ _ _ __  ___ _  ___  _ __  
                 / _ \ > < | '_ \ / _` | '_ \/ __| |/ _ \| '_ \ 
                |  __// . \| |_) | (_| | | | \__ \ | (_) | | | |
                 \___/_/ \_\ .__/ \__,_|_| |_|___/_|\___/|_| |_|
...........................| |.........Plugin Pack for Manialive...............
                           |_|                                                  
Dedicated Server running for title: PMC@redix
Dedicated Server api version in use: 2013-04-16
eXpansion version: 0.9.5
Minimum Dedicated version 2014.4.2: Pass (2014.6.5)
Minimum PHP version 5.3.3: Pass (5.3.8)
Garbage Collector enabled: Pass 

Language support detected for: de,en,fi,fr!
Enabling default locale: 

-------------------------------------------------------------------------------

Init Bill 

[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\AdminGroups\AdminGroups" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Gui\Gui" 0.1...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Menu\Menu" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Adm\Adm" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Database\Database" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\AutoUpdate\AutoUpdate" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Chat_Admin\Chat_Admin" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Chatlog\Chatlog" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Emotes\Emotes" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\DonatePanel\DonatePanel" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Faq\Faq" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\JoinLeaveMessage\JoinLeaveMessage" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\ManiaExchange\ManiaExchange" 0.9.5...
    
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\MapRatings\MapRatings" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Maps\Maps" 0.9.5...
jukeOnLoad
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\PersonalMessages\PersonalMessages" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Players\Players" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Statistics\Statistics" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Votes\Votes" 0.9.5...

[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Widgets_Clock\Widgets_Clock" 0.9.5...

[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Widgets_BestCheckpoints\Widgets_BestCheckpoints" 0.9.5...

[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Widgets_EndRankings\Widgets_EndRankings" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Widgets_PersonalBest\Widgets_PersonalBest" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Widgets_RecordSide\Widgets_RecordSide" 0.9.5...

[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Widgets_Times\Widgets_Times" 0.9.5...


[ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords]..............................Not Compatible -> unLoaded
Unloading \ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords
[eXpansion] Unloading Dependencies of \ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords
Unloading \ManiaLivePlugins\eXpansion\Widgets_RecordSide\Widgets_RecordSide
[eXpansion] Unloading Dependencies of \ManiaLivePlugins\eXpansion\Widgets_RecordSide\Widgets_RecordSide
[ManiaLivePlugins\eXpansion\Widgets_BestCheckpoints\Widgets_BestCheckpoints]..............................Not Compatible -> unLoaded
Unloading \ManiaLivePlugins\eXpansion\Widgets_BestCheckpoints\Widgets_BestCheckpoints
[eXpansion] Unloading Dependencies of \ManiaLivePlugins\eXpansion\Widgets_BestCheckpoints\Widgets_BestCheckpoints
[ManiaLivePlugins\eXpansion\Widgets_PersonalBest\Widgets_PersonalBest]..............................Not Compatible -> unLoaded
Unloading \ManiaLivePlugins\eXpansion\Widgets_PersonalBest\Widgets_PersonalBest
[eXpansion] Unloading Dependencies of \ManiaLivePlugins\eXpansion\Widgets_PersonalBest\Widgets_PersonalBest
[ManiaLivePlugins\eXpansion\Widgets_Times\Widgets_Times]..............................Not Compatible -> unLoaded
Unloading \ManiaLivePlugins\eXpansion\Widgets_Times\Widgets_Times
[eXpansion] Unloading Dependencies of \ManiaLivePlugins\eXpansion\Widgets_Times\Widgets_Times
[PluginHandler] All registered plugins have been loaded

ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!

[03:36:46] Map change: PMC00 - Signs for PMC -> PMCXX - WaitingMap

ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!

[09:36:46] Map change: PMCXX - WaitingMap -> PMC28 - VodCoka

Code: Select all

                     __   __                      _             
                     \ \ / /                     (_)            
                  ___ \ ' / _ __   __ _ _ __  ___ _  ___  _ __  
                 / _ \ > < | '_ \ / _` | '_ \/ __| |/ _ \| '_ \ 
                |  __// . \| |_) | (_| | | | \__ \ | (_) | | | |
                 \___/_/ \_\ .__/ \__,_|_| |_|___/_|\___/|_| |_|
...........................| |.........Plugin Pack for Manialive...............
                           |_|                                                  
[2014-06-06T21:36:46+02:00] Dedicated Server running for title: PMC@redix
[2014-06-06T21:36:46+02:00] Dedicated Server api version in use: 2013-04-16
[2014-06-06T21:36:46+02:00] eXpansion version: 0.9.5
[2014-06-06T21:36:46+02:00] Minimum Dedicated version 2014.4.2: Pass (2014.6.5)
[2014-06-06T21:36:46+02:00] Minimum PHP version 5.3.3: Pass (5.3.8)
[2014-06-06T21:36:46+02:00] Garbage Collector enabled: Pass 
[2014-06-06T21:36:46+02:00] 
[2014-06-06T21:36:46+02:00] Language support detected for: de,en,fi,fr!
[2014-06-06T21:36:46+02:00] Enabling default locale: 
[2014-06-06T21:36:46+02:00] 
[2014-06-06T21:36:46+02:00] -------------------------------------------------------------------------------
[2014-06-06T21:36:46+02:00] 
[2014-06-06T21:36:47+02:00] jukeOnLoad
[2014-06-06T21:36:47+02:00] 

[2014-06-06T21:36:47+02:00] [ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords]..............................Not Compatible -> unLoaded
[2014-06-06T21:36:47+02:00] Unloading \ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords
[2014-06-06T21:36:47+02:00] [eXpansion] Unloading Dependencies of \ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords
[2014-06-06T21:36:47+02:00] Unloading \ManiaLivePlugins\eXpansion\Widgets_RecordSide\Widgets_RecordSide
[2014-06-06T21:36:47+02:00] [eXpansion] Unloading Dependencies of \ManiaLivePlugins\eXpansion\Widgets_RecordSide\Widgets_RecordSide
[2014-06-06T21:36:47+02:00] [ManiaLivePlugins\eXpansion\Widgets_BestCheckpoints\Widgets_BestCheckpoints]..............................Not Compatible -> unLoaded
[2014-06-06T21:36:47+02:00] Unloading \ManiaLivePlugins\eXpansion\Widgets_BestCheckpoints\Widgets_BestCheckpoints
[2014-06-06T21:36:47+02:00] [eXpansion] Unloading Dependencies of \ManiaLivePlugins\eXpansion\Widgets_BestCheckpoints\Widgets_BestCheckpoints
[2014-06-06T21:36:47+02:00] [ManiaLivePlugins\eXpansion\Widgets_PersonalBest\Widgets_PersonalBest]..............................Not Compatible -> unLoaded
[2014-06-06T21:36:47+02:00] Unloading \ManiaLivePlugins\eXpansion\Widgets_PersonalBest\Widgets_PersonalBest
[2014-06-06T21:36:47+02:00] [eXpansion] Unloading Dependencies of \ManiaLivePlugins\eXpansion\Widgets_PersonalBest\Widgets_PersonalBest
[2014-06-06T21:36:47+02:00] [ManiaLivePlugins\eXpansion\Widgets_Times\Widgets_Times]..............................Not Compatible -> unLoaded
[2014-06-06T21:36:47+02:00] Unloading \ManiaLivePlugins\eXpansion\Widgets_Times\Widgets_Times
[2014-06-06T21:36:47+02:00] [eXpansion] Unloading Dependencies of \ManiaLivePlugins\eXpansion\Widgets_Times\Widgets_Times

Code: Select all

[2014-06-07T09:36:44+02:00] 
    Occured on 07.06.2014 at 09:36:44 at process with ID #12770
    ---------------------------------
 -> ManiaLive\PluginHandler\Exception with code 0
    Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords" which you want to call a method from, does not exist!
  - in /home/pmc/TM2-CMC/Expansion/vendor/maniaplanet/manialive-lib/ManiaLive/PluginHandler/PluginHandler.php on line 176
  - Stack: #0 /home/pmc/TM2-CMC/Expansion/vendor/maniaplanet/manialive-lib/ManiaLive/PluginHandler/Plugin.php(162): ManiaLive\PluginHandler\PluginHandler->callPublicMethod(Object(ManiaLivePlugins\eXpansion\Widgets_EndRankings\Widgets_EndRankings), '\ManiaLivePlugi...', 'getRanks', Array)
           #1 /home/pmc/TM2-CMC/Expansion/libraries/ManiaLivePlugins/eXpansion/Widgets_EndRankings/Widgets_EndRankings.php(28): ManiaLive\PluginHandler\Plugin->callPublicMethod('\ManiaLivePlugi...', 'getRanks')
           #2 /home/pmc/TM2-CMC/Expansion/libraries/ManiaLivePlugins/eXpansion/Widgets_EndRankings/Widgets_EndRankings.php(49): ManiaLivePlugins\eXpansion\Widgets_EndRankings\Widgets_EndRankings->displayWidget()
           #3 /home/pmc/TM2-CMC/Expansion/vendor/maniaplanet/manialive-lib/ManiaLive/DedicatedApi/Callback/Event.php(71): ManiaLivePlugins\eXpansion\Widgets_EndRankings\Widgets_EndRankings->onEndMatch(Array, -1)
           #4 /home/pmc/TM2-CMC/Expansion/vendor/maniaplanet/manialive-lib/ManiaLive/Event/Dispatcher.php(58): ManiaLive\DedicatedApi\Callback\Event->fireDo(Object(ManiaLivePlugins\eXpansion\Widgets_EndRankings\Widgets_EndRankings))
           #5 /home/pmc/TM2-CMC/Expansion/vendor/maniaplanet/manialive-lib/ManiaLive/Application/Application.php(123): ManiaLive\Event\Dispatcher::dispatch(Object(ManiaLive\DedicatedApi\Callback\Event))
           #6 /home/pmc/TM2-CMC/Expansion/bootstrapper.php(73): ManiaLive\Application\Application->run()
           #7 {main}
ImageImage
Image
User avatar
Rots
Translator
Translator
Posts: 1101
Joined: 01 Sep 2010, 14:39
Location: España, Barcelona

Re: eXpansion 0.9.5 (02/05/2014)

Post by Rots »

mangastef wrote: translation :P

I installed the 0.9.5 expansion version for the new PMC server in TM2 multi and it doesn't launch everything. There is a problem in local records.

It only creates 5 tables in database:

Structure exp_databaseversion
Structure exp_maps
Structure exp_planet_transaction
Structure exp_players
Structure exp_ratings

And that's all, I see in logs

[ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords]..............................Not Compatible -> unLoaded
Image
Image
Image
TrackMania Original brought me here... Here I am since 2006
oliverde8
Posts: 1286
Joined: 16 Jun 2010, 07:33
Location: in a Blue Box

Re: eXpansion 0.9.5 (02/05/2014)

Post by oliverde8 »

mangastef wrote:Yop all

Désolé je ne parle pas anglais, possible que quelqu'un m'aide?
J'ai installé le plugin 0.9.5 pour le nouveau serveur de la PMC en multi et il ne lance pas tout. Problème local record.
Dans la database, il ne crée que 5 tables.
Je mettrai plus d'info ce soir.

Merci

Structure exp_databaseversion
Structure exp_maps
Structure exp_planet_transaction
Structure exp_players
Structure exp_ratings
Et rien d'autre, je vois dans logs
[ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords]..............................Not Compatible -> unLoaded


Code: Select all

 _|      _|                      _|            _|        _|
 _|_|  _|_|    _|_|_|  _|_|_|          _|_|_|  _|            _|    _|    _|_|
 _|  _|  _|  _|    _|  _|    _|  _|  _|    _|  _|        _|  _|    _|  _|_|_|_|
 _|      _|  _|    _|  _|    _|  _|  _|    _|  _|        _|  _|  _|    _|
 _|      _|    _|_|_|  _|    _|  _|    _|_|_|  _|_|_|_|  _|    _|        _|_|_|
-----------------------------------------------------
PHP Environment Compatibility Test
-----------------------------------------------------
PHP 5.3.1 or newer    -> required  -> [ Yes ] 5.3.8
Standard PHP Library  -> required  -> [ Yes ]
JSON                  -> required  -> [ Yes ]
cURL with SSL         -> required  -> [ Yes ] 7.21.0 (with OpenSSL/0.9.8o)
MySQL                 -> optional  -> [ Yes ]
SQLite3               -> optional  -> [ Yes ]
-----------------------------------------------------
Running ManiaLive 4.0.0...
[PluginHandler] Start plugin load process:


[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\AutoLoad\AutoLoad" 0.9.5...
[eXpansion] AutoLoading eXpansion pack ... 
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Core\Core" 0.9.5...
   
   

                     __   __                      _             
                     \ \ / /                     (_)            
                  ___ \ ' / _ __   __ _ _ __  ___ _  ___  _ __  
                 / _ \ > < | '_ \ / _` | '_ \/ __| |/ _ \| '_ \ 
                |  __// . \| |_) | (_| | | | \__ \ | (_) | | | |
                 \___/_/ \_\ .__/ \__,_|_| |_|___/_|\___/|_| |_|
...........................| |.........Plugin Pack for Manialive...............
                           |_|                                                  
Dedicated Server running for title: PMC@redix
Dedicated Server api version in use: 2013-04-16
eXpansion version: 0.9.5
Minimum Dedicated version 2014.4.2: Pass (2014.6.5)
Minimum PHP version 5.3.3: Pass (5.3.8)
Garbage Collector enabled: Pass 

Language support detected for: de,en,fi,fr!
Enabling default locale: 

-------------------------------------------------------------------------------

Init Bill 

[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\AdminGroups\AdminGroups" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Gui\Gui" 0.1...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Menu\Menu" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Adm\Adm" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Database\Database" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\AutoUpdate\AutoUpdate" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Chat_Admin\Chat_Admin" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Chatlog\Chatlog" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Emotes\Emotes" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\DonatePanel\DonatePanel" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Faq\Faq" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\JoinLeaveMessage\JoinLeaveMessage" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\ManiaExchange\ManiaExchange" 0.9.5...
    
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\MapRatings\MapRatings" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Maps\Maps" 0.9.5...
jukeOnLoad
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\PersonalMessages\PersonalMessages" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Players\Players" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Statistics\Statistics" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Votes\Votes" 0.9.5...

[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Widgets_Clock\Widgets_Clock" 0.9.5...

[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Widgets_BestCheckpoints\Widgets_BestCheckpoints" 0.9.5...

[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Widgets_EndRankings\Widgets_EndRankings" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Widgets_PersonalBest\Widgets_PersonalBest" 0.9.5...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Widgets_RecordSide\Widgets_RecordSide" 0.9.5...

[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Widgets_Times\Widgets_Times" 0.9.5...


[ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords]..............................Not Compatible -> unLoaded
Unloading \ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords
[eXpansion] Unloading Dependencies of \ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords
Unloading \ManiaLivePlugins\eXpansion\Widgets_RecordSide\Widgets_RecordSide
[eXpansion] Unloading Dependencies of \ManiaLivePlugins\eXpansion\Widgets_RecordSide\Widgets_RecordSide
[ManiaLivePlugins\eXpansion\Widgets_BestCheckpoints\Widgets_BestCheckpoints]..............................Not Compatible -> unLoaded
Unloading \ManiaLivePlugins\eXpansion\Widgets_BestCheckpoints\Widgets_BestCheckpoints
[eXpansion] Unloading Dependencies of \ManiaLivePlugins\eXpansion\Widgets_BestCheckpoints\Widgets_BestCheckpoints
[ManiaLivePlugins\eXpansion\Widgets_PersonalBest\Widgets_PersonalBest]..............................Not Compatible -> unLoaded
Unloading \ManiaLivePlugins\eXpansion\Widgets_PersonalBest\Widgets_PersonalBest
[eXpansion] Unloading Dependencies of \ManiaLivePlugins\eXpansion\Widgets_PersonalBest\Widgets_PersonalBest
[ManiaLivePlugins\eXpansion\Widgets_Times\Widgets_Times]..............................Not Compatible -> unLoaded
Unloading \ManiaLivePlugins\eXpansion\Widgets_Times\Widgets_Times
[eXpansion] Unloading Dependencies of \ManiaLivePlugins\eXpansion\Widgets_Times\Widgets_Times
[PluginHandler] All registered plugins have been loaded

ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!

[03:36:46] Map change: PMC00 - Signs for PMC -> PMCXX - WaitingMap

ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!
ERROR: Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords"
      which you want to call a method from, does not exist!

[09:36:46] Map change: PMCXX - WaitingMap -> PMC28 - VodCoka

Code: Select all

                     __   __                      _             
                     \ \ / /                     (_)            
                  ___ \ ' / _ __   __ _ _ __  ___ _  ___  _ __  
                 / _ \ > < | '_ \ / _` | '_ \/ __| |/ _ \| '_ \ 
                |  __// . \| |_) | (_| | | | \__ \ | (_) | | | |
                 \___/_/ \_\ .__/ \__,_|_| |_|___/_|\___/|_| |_|
...........................| |.........Plugin Pack for Manialive...............
                           |_|                                                  
[2014-06-06T21:36:46+02:00] Dedicated Server running for title: PMC@redix
[2014-06-06T21:36:46+02:00] Dedicated Server api version in use: 2013-04-16
[2014-06-06T21:36:46+02:00] eXpansion version: 0.9.5
[2014-06-06T21:36:46+02:00] Minimum Dedicated version 2014.4.2: Pass (2014.6.5)
[2014-06-06T21:36:46+02:00] Minimum PHP version 5.3.3: Pass (5.3.8)
[2014-06-06T21:36:46+02:00] Garbage Collector enabled: Pass 
[2014-06-06T21:36:46+02:00] 
[2014-06-06T21:36:46+02:00] Language support detected for: de,en,fi,fr!
[2014-06-06T21:36:46+02:00] Enabling default locale: 
[2014-06-06T21:36:46+02:00] 
[2014-06-06T21:36:46+02:00] -------------------------------------------------------------------------------
[2014-06-06T21:36:46+02:00] 
[2014-06-06T21:36:47+02:00] jukeOnLoad
[2014-06-06T21:36:47+02:00] 

[2014-06-06T21:36:47+02:00] [ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords]..............................Not Compatible -> unLoaded
[2014-06-06T21:36:47+02:00] Unloading \ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords
[2014-06-06T21:36:47+02:00] [eXpansion] Unloading Dependencies of \ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords
[2014-06-06T21:36:47+02:00] Unloading \ManiaLivePlugins\eXpansion\Widgets_RecordSide\Widgets_RecordSide
[2014-06-06T21:36:47+02:00] [eXpansion] Unloading Dependencies of \ManiaLivePlugins\eXpansion\Widgets_RecordSide\Widgets_RecordSide
[2014-06-06T21:36:47+02:00] [ManiaLivePlugins\eXpansion\Widgets_BestCheckpoints\Widgets_BestCheckpoints]..............................Not Compatible -> unLoaded
[2014-06-06T21:36:47+02:00] Unloading \ManiaLivePlugins\eXpansion\Widgets_BestCheckpoints\Widgets_BestCheckpoints
[2014-06-06T21:36:47+02:00] [eXpansion] Unloading Dependencies of \ManiaLivePlugins\eXpansion\Widgets_BestCheckpoints\Widgets_BestCheckpoints
[2014-06-06T21:36:47+02:00] [ManiaLivePlugins\eXpansion\Widgets_PersonalBest\Widgets_PersonalBest]..............................Not Compatible -> unLoaded
[2014-06-06T21:36:47+02:00] Unloading \ManiaLivePlugins\eXpansion\Widgets_PersonalBest\Widgets_PersonalBest
[2014-06-06T21:36:47+02:00] [eXpansion] Unloading Dependencies of \ManiaLivePlugins\eXpansion\Widgets_PersonalBest\Widgets_PersonalBest
[2014-06-06T21:36:47+02:00] [ManiaLivePlugins\eXpansion\Widgets_Times\Widgets_Times]..............................Not Compatible -> unLoaded
[2014-06-06T21:36:47+02:00] Unloading \ManiaLivePlugins\eXpansion\Widgets_Times\Widgets_Times
[2014-06-06T21:36:47+02:00] [eXpansion] Unloading Dependencies of \ManiaLivePlugins\eXpansion\Widgets_Times\Widgets_Times

Code: Select all

[2014-06-07T09:36:44+02:00] 
    Occured on 07.06.2014 at 09:36:44 at process with ID #12770
    ---------------------------------
 -> ManiaLive\PluginHandler\Exception with code 0
    Plugin "\ManiaLivePlugins\eXpansion\LocalRecords\LocalRecords" which you want to call a method from, does not exist!
  - in /home/pmc/TM2-CMC/Expansion/vendor/maniaplanet/manialive-lib/ManiaLive/PluginHandler/PluginHandler.php on line 176
  - Stack: #0 /home/pmc/TM2-CMC/Expansion/vendor/maniaplanet/manialive-lib/ManiaLive/PluginHandler/Plugin.php(162): ManiaLive\PluginHandler\PluginHandler->callPublicMethod(Object(ManiaLivePlugins\eXpansion\Widgets_EndRankings\Widgets_EndRankings), '\ManiaLivePlugi...', 'getRanks', Array)
           #1 /home/pmc/TM2-CMC/Expansion/libraries/ManiaLivePlugins/eXpansion/Widgets_EndRankings/Widgets_EndRankings.php(28): ManiaLive\PluginHandler\Plugin->callPublicMethod('\ManiaLivePlugi...', 'getRanks')
           #2 /home/pmc/TM2-CMC/Expansion/libraries/ManiaLivePlugins/eXpansion/Widgets_EndRankings/Widgets_EndRankings.php(49): ManiaLivePlugins\eXpansion\Widgets_EndRankings\Widgets_EndRankings->displayWidget()
           #3 /home/pmc/TM2-CMC/Expansion/vendor/maniaplanet/manialive-lib/ManiaLive/DedicatedApi/Callback/Event.php(71): ManiaLivePlugins\eXpansion\Widgets_EndRankings\Widgets_EndRankings->onEndMatch(Array, -1)
           #4 /home/pmc/TM2-CMC/Expansion/vendor/maniaplanet/manialive-lib/ManiaLive/Event/Dispatcher.php(58): ManiaLive\DedicatedApi\Callback\Event->fireDo(Object(ManiaLivePlugins\eXpansion\Widgets_EndRankings\Widgets_EndRankings))
           #5 /home/pmc/TM2-CMC/Expansion/vendor/maniaplanet/manialive-lib/ManiaLive/Application/Application.php(123): ManiaLive\Event\Dispatcher::dispatch(Object(ManiaLive\DedicatedApi\Callback\Event))
           #6 /home/pmc/TM2-CMC/Expansion/bootstrapper.php(73): ManiaLive\Application\Application->run()
           #7 {main}
Merci pour la traduction, mais je parle français, :D

Pour une raison, le système a décider que le plugin Local Records n'est pas compatible avec le jeu actuelle. Le problème vient du faite que vous avez un titre custom? si j'ai bien compris?

La 0.9.5 géré mal les titres custom :( nous avons corriger le problème sur la prochaine version. tu peux esseyer la nighty actuelle qui est quand meme assez stable si mis a jours : http://forum.maniaplanet.com/viewtopic. ... 18&t=27748

On espérait faire une realese de la 0.9.6 cette semaine mais pour des raison personnelles je ne peux pas trop m'occuper cette semaine et je sait pas si Reaby auras les temps de tout faire tout seul.
Image
Developper for The next generation, Clean and Powerfull controller eXpansion for your SM & TM server . Working on eXpansion² with full MP4 support and many other awesome features...
mangastef
Posts: 704
Joined: 15 Jun 2010, 22:46
Location: Chez moi
Contact:

Re: eXpansion 0.9.5 (02/05/2014)

Post by mangastef »

oliverde8 wrote: Merci pour la traduction, mais je parle français, :D

Pour une raison, le système a décider que le plugin Local Records n'est pas compatible avec le jeu actuelle. Le problème vient du faite que vous avez un titre custom? si j'ai bien compris?
Ok et merci. Je pense attendre la nouvelle version, un peu chargé en ce moment.
C'est bien un titre custom, Actuellement Je tourne avec l'un des première version de manialive + mlepp avec un plugin inscription.
Pensez vous qu'il adaptable avec eXpansion?
Ainsi que l'import des locarecords ?

Code: Select all

<?php

/**
 * MLEPP - ManiaLive Extending Plugin Pack
 *
 * -- MLEPP PMC --
 * @name PMC
 * @date 02-07-2011
 * @version r934 TM2 Beta
 * @website mlepp.trackmania.nl
 * @package MLEPP
 *
 * @author The MLEPP team
 * @copyright 2010 - 2011
 *
 * ---------------------------------------------------------------------
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License; or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful;
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not; see <http://www.gnu.org/licenses/>.
 * ---------------------------------------------------------------------
 * You are allowed to change things or use this in other projects; as
 * long as you leave the information at the top (name; date; version;
 * website; package; author; copyright) and publish the code under
 * the GNU General Public License version 3.
 * ---------------------------------------------------------------------
 */

namespace ManiaLivePlugins\MLEPP\PMC;

use ManiaLive\Utilities\Console;
use ManiaLib\Utils\TMStrings as String;
use ManiaLive\DedicatedApi\Connection;
use ManiaLive\Data\Storage;
use ManiaLive\Features\ChatCommand\Interpreter;
use ManiaLive\Features\ChatCommand\Command;
use ManiaLive\Event\Dispatcher;
use ManiaLib\Gui\Manialink;
use ManiaLive\Utilities\Logger;
use ManiaLive\DedicatedApi\Xmlrpc\Exception;

use ManiaLivePlugins\MLEPP\Core\Core;
use ManiaLivePlugins\MLEPP\Core\Mlepp;
use ManiaLivePlugins\MLEPP\Database\Structures\multiQuery;

class PMC extends \ManiaLive\PluginHandler\Plugin {
public static $version = 1.0;

	 /**
	 * onInit()
	 * Function called on initialisation of ManiaLive.
	 *
	 * @return void
	 */
	 
	function onInit() {
		$this->mlepp = Mlepp::getInstance();
		$this->config = Config::getInstance();
		$this->log = Logger::getLog('PMC', '');
		
	}
	
	 /**
	 * onLoad()
	 * Function called on loading of ManiaLive.
	 *
	 * @return void
	 */
	function onLoad() {
		Console::println("[" . date("H:i:s") . "] [MLEPP] Enabling Planet Millions Cup r" . $this->getVersion() . " . . .");
		$this->enableDedicatedEvents();
		$this->enableStorageEvents();
		$this->enableDatabase();
		if ($this->isPluginLoaded('MLEPP\Database', 251)) {
			$this->connected = true;
		} else {
			Console::println('[' . date('H:i:s') . '] [MLEPP] [PMC] Plugin couldn\'t been load because plugin \'MLEPP\Database\' isn\'t activated.');
			$this->connected = false;
		}
		if ($this->isPluginLoaded('MLEPP\Admin', 251)) {
            $this->callPublicMethod('MLEPP\Admin', 'addAdminCommand', array($this, 'pmcstart'), array("pmc", "open"), true, false, false);
        } else {
            Console::println('[' . date('H:i:s') . '] [MLEPP] [PMC] Disabled admin commands, Admin is not loaded, define admin plugin before this!');
        }
	}

	 
		/**
     * addmx()
     * Handles the /addmx command.
     *
     * @param mixed $login
     * @param string $mxid
     * @return void
     */
    function pmcstart($login, $no = '') {
        $loginObj = $this->storage->getPlayerObject($login);

        if (!$this->mlepp->AdminGroup->hasPermission($login, 'addLocalTrack')) {
            $this->mlepp->sendChat($this->mlepp->AdminGroups->noPermissionMsg, $login);
            return;
        }

        if (empty($no)) {
            $this->mlepp->sendChat('%adminerror%You must enter a number.', $login);
            Console::println('[' . date('H:i:s') . '] [MLEPP] [PMC] [' . $loginObj->login . '] Please use a number to open Registration.');
            return;
        }
		$this->mlepp->depot("admin")->get("pmc")->edition = $no;
		if ($no == -1){
		$this->connection->chatSendServerMessage('$0a0CMC>>Registration Closed till Further Notice');
		}
		else
		{
		$this->connection->chatSendServerMessage('$0a0CMC>>Registration opened for Edition:'.$no.'');
		$this->update_player($login);
		}
		}
		
	/**
     * createDatabaseTable()
     * Helper function, creates Database version table.
     *
     * @return void
     */
    function createdatabasePMC() {

		
		$q5 = "CREATE TABLE IF NOT EXISTS `joueurs` (
  `joueurid` int(11) NOT NULL AUTO_INCREMENT,
  `login` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `edition` int(11) NOT NULL DEFAULT '59',
  `planets` int(11) NOT NULL DEFAULT '0',
  UNIQUE KEY `joueurid` (`joueurid`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci PACK_KEYS=1 AUTO_INCREMENT=8743 ;";
$this->mlepp->db->query($q5);
        Console::println("created PMC joueurs table.");
}

	 /**
	 * onReady()
	 * Function called when ManiaLive is ready loading.
	 *
	 * @return void
	 */
	function onReady() {
		if($this->connected == true) {
					$this->createdatabasePMC();
	}
	}
	
	
	/**
	 * onPlayerConnect()
	 * Function called when a player connects.
	 *
	 * @param mixed $login
	 * @param mixed $isSpectator
	 * @return void
	 */
	function onPlayerConnect($login, $isSpectator) {
		$this->update_player($login, null);
		}
		
		
	function update_player($login){
	$query = "SELECT * FROM  `joueurs` WHERE  `login` =  ".$this->mlepp->db->quote($login)." AND  `edition` = ".$this->mlepp->db->quote($this->mlepp->depot("admin")->get("pmc")->edition)."";
	$data = $this->mlepp->db->query($query);
	if ($data->recordCount() == 0) {
	$this->connection->chatSendServerMessage("$0a0CMC>> John Doe!!!.", $login);
	$datas = $this->storage->getPlayerObject($login);
	$this->manialink($datas);
	}
	else
	{
	$this->connection->chatSendServerMessage("$0a0CMC>>Database already Found you!!!.", $login);
	}
	}
	
		function manialink($login){
		$xml1 = '<?xml version="1.0" encoding="utf-8"?>
<manialink id="0885577777271">
<format style="TextStaticSmall" textsize="1" />
<frame>
<quad sizen="30 5.5" posn="-45 30 1" halign="left" valign="top" style="Bgs1InRace" substyle="BgCardChallenge"/>
<quad sizen="156 80" posn="-45 30 0" halign="left" valign="top" style="Bgs1InRace" substyle="BgCardChallenge"/>
<quad sizen="152 22" posn="-45 30 1" halign="left" valign="top" style="Bgs1InRace" substyle="BgCardChallenge"/>
<quad sizen="16 16" posn="-45 30 2" halign="left" valign="top" style="Icons128x128_1" substyle="Coppers"/>
<quad sizen="12 12" posn="-45 30 3" style="Icons128x128_1" substyle="Buddies" />
<quad sizen="152 10" posn="-45 30 1" halign="left" valign="top" style="Bgs1InRace" substyle="BgCardChallenge"/>
<label sizen="80 6" posn="-20 20 3" halign="left" valign="center2" style="TextRaceMessage" text="Inscription à la Coppers Millions Cup"/>
<quad posn="-30 -25 3" sizen="30 10" action="3000" style="Bgs1InRace" substyle="BgCardChallenge"/>
<label textsize="2" posn="-26 -28 3" text="$f00$oJe Paye" />
<quad posn="15 -25 3" sizen="30 10" action="5000" style="Bgs1InRace" substyle="BgCardChallenge"/>
<label textsize="2" posn="19 -28 3" text="$f00$oJe refuse" />
<quad posn="60 -25 3" sizen="30 10" action="0" style="Bgs1InRace" substyle="BgCardChallenge"/>
<label textsize="2" posn="64 -28 3" text="$f00$oFermer" />
<label textsize="1.6" posn="-30 0" autonewline="1" text="$f00If you want to participate in the Million Coppers Cup, inscribed in now for next month." />center">
<label textsize="1.6" posn="-30 -05" autonewline="1" text="$f00- The PMC takes place on the first Thursday of each month at 21h French Time." />center">
<label textsize="1.6" posn="-30 -10" autonewline="1" text="$f00- 4 maps kept secret with times of 5-10 minutes, 1 Round per map." />center">
<label textsize="1.6" posn="-30 -15" autonewline="1" text="$f00- All players win planets by the amount of JACKPOT !" />center">
<label textsize="1.6" posn="-30 -20" autonewline="1" text="$f00$wYou are not registered for the next CMC." />center">
</frame>
</manialink>';
			try {
			$this->connection->sendDisplayManialinkPage($login, $xml1, 0, true, true);
			} catch (\Exception $e) {
            $this->mlepp->sendChat('%adminerror%' . $e->getMessage(), $login);
        }
		}
		
function onPlayerManialinkPageAnswer($playerUid, $login, $answer,array $entries)
{
$data = $answer;
$amount = $this->config->amount;
if($answer==3000){
$fromPlayer = $this->storage->getPlayerObject($login);
$billId = $this->connection->sendBill($fromPlayer, (int)$amount, 'Gain reçu pour la Coppers Million Cup');
$this->connection->chatSendServerMessage('The bill has been created with the id '.$billId, $fromPlayer, true);
$bill = $this->connection->getBillState($billId);
$this->connection->chatSendServerMessage('The bill n°'.$billId.' is currently $<$o'.$bill->stateName.'$>', $login, true);
$text = 'You joined the PMC: Stay tuned...';
$this->connection->chatSendServerMessage('$fff» ' . $text, $login);
$source_player = $this->storage->getPlayerObject($login);
$this->log->write("{$login}.\t{$playerUid}\t{$source_player->nickName}\t{$this->mlepp->depot("admin")->get("pmc")->edition}");
$this->connection->chatSendServerMessage("$0a0CMC>>You are already joined for PMC", $login);
$this->connection->chatSendServerMessage("$0a0CMC>>Merci de vous être inscrit à la CMC", $login);
$query = "INSERT INTO joueurs(login,edition,planets) VALUES(".$this->mlepp->db->quote($login).", ".$this->mlepp->db->quote($this->mlepp->depot("admin")->get("pmc")->edition).", ".$this->mlepp->db->quote($this->config->amount).")";
	$this->mlepp->db->query($query);
	$this->connection->chatSendServerMessage("$0a0CMC>>Added to database", $login);
}
if ($answer == 0){

}
}
		
}
?>

Code: Select all

<?php

/**
 * MLEPP - ManiaLive Extending Plugin Pack
 *
 * -- MLEPP PMC --
 * @name PMC
 * @date 02-07-2011
 * @version r934 TM2 Beta
 * @website mlepp.trackmania.nl
 * @package MLEPP
 *
 * @author The MLEPP team
 * @copyright 2010 - 2011
 *
 * ---------------------------------------------------------------------
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License; or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful;
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not; see <http://www.gnu.org/licenses/>.
 * ---------------------------------------------------------------------
 * You are allowed to change things or use this in other projects; as
 * long as you leave the information at the top (name; date; version;
 * website; package; author; copyright) and publish the code under
 * the GNU General Public License version 3.
 * ---------------------------------------------------------------------
 */

namespace ManiaLivePlugins\MLEPP\PMC;

class Config extends \ManiaLib\Utils\Singleton {

public $amount= 50;

}

?>
ImageImage
Image
oliverde8
Posts: 1286
Joined: 16 Jun 2010, 07:33
Location: in a Blue Box

Re: eXpansion 0.9.5 (02/05/2014)

Post by oliverde8 »

mangastef wrote:
oliverde8 wrote: Merci pour la traduction, mais je parle français, :D

Pour une raison, le système a décider que le plugin Local Records n'est pas compatible avec le jeu actuelle. Le problème vient du faite que vous avez un titre custom? si j'ai bien compris?
Ok et merci. Je pense attendre la nouvelle version, un peu chargé en ce moment.
C'est bien un titre custom, Actuellement Je tourne avec l'un des première version de manialive + mlepp avec un plugin inscription.
Pensez vous qu'il adaptable avec eXpansion?
Ainsi que l'import des locarecords ?

Code: Select all

<?php

/**
 * MLEPP - ManiaLive Extending Plugin Pack
 *
 * -- MLEPP PMC --
 * @name PMC
 * @date 02-07-2011
 * @version r934 TM2 Beta
 * @website mlepp.trackmania.nl
 * @package MLEPP
 *
 * @author The MLEPP team
 * @copyright 2010 - 2011
 *
 * ---------------------------------------------------------------------
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License; or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful;
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not; see <http://www.gnu.org/licenses/>.
 * ---------------------------------------------------------------------
 * You are allowed to change things or use this in other projects; as
 * long as you leave the information at the top (name; date; version;
 * website; package; author; copyright) and publish the code under
 * the GNU General Public License version 3.
 * ---------------------------------------------------------------------
 */

namespace ManiaLivePlugins\MLEPP\PMC;

use ManiaLive\Utilities\Console;
use ManiaLib\Utils\TMStrings as String;
use ManiaLive\DedicatedApi\Connection;
use ManiaLive\Data\Storage;
use ManiaLive\Features\ChatCommand\Interpreter;
use ManiaLive\Features\ChatCommand\Command;
use ManiaLive\Event\Dispatcher;
use ManiaLib\Gui\Manialink;
use ManiaLive\Utilities\Logger;
use ManiaLive\DedicatedApi\Xmlrpc\Exception;

use ManiaLivePlugins\MLEPP\Core\Core;
use ManiaLivePlugins\MLEPP\Core\Mlepp;
use ManiaLivePlugins\MLEPP\Database\Structures\multiQuery;

class PMC extends \ManiaLive\PluginHandler\Plugin {
public static $version = 1.0;

	 /**
	 * onInit()
	 * Function called on initialisation of ManiaLive.
	 *
	 * @return void
	 */
	 
	function onInit() {
		$this->mlepp = Mlepp::getInstance();
		$this->config = Config::getInstance();
		$this->log = Logger::getLog('PMC', '');
		
	}
	
	 /**
	 * onLoad()
	 * Function called on loading of ManiaLive.
	 *
	 * @return void
	 */
	function onLoad() {
		Console::println("[" . date("H:i:s") . "] [MLEPP] Enabling Planet Millions Cup r" . $this->getVersion() . " . . .");
		$this->enableDedicatedEvents();
		$this->enableStorageEvents();
		$this->enableDatabase();
		if ($this->isPluginLoaded('MLEPP\Database', 251)) {
			$this->connected = true;
		} else {
			Console::println('[' . date('H:i:s') . '] [MLEPP] [PMC] Plugin couldn\'t been load because plugin \'MLEPP\Database\' isn\'t activated.');
			$this->connected = false;
		}
		if ($this->isPluginLoaded('MLEPP\Admin', 251)) {
            $this->callPublicMethod('MLEPP\Admin', 'addAdminCommand', array($this, 'pmcstart'), array("pmc", "open"), true, false, false);
        } else {
            Console::println('[' . date('H:i:s') . '] [MLEPP] [PMC] Disabled admin commands, Admin is not loaded, define admin plugin before this!');
        }
	}

	 
		/**
     * addmx()
     * Handles the /addmx command.
     *
     * @param mixed $login
     * @param string $mxid
     * @return void
     */
    function pmcstart($login, $no = '') {
        $loginObj = $this->storage->getPlayerObject($login);

        if (!$this->mlepp->AdminGroup->hasPermission($login, 'addLocalTrack')) {
            $this->mlepp->sendChat($this->mlepp->AdminGroups->noPermissionMsg, $login);
            return;
        }

        if (empty($no)) {
            $this->mlepp->sendChat('%adminerror%You must enter a number.', $login);
            Console::println('[' . date('H:i:s') . '] [MLEPP] [PMC] [' . $loginObj->login . '] Please use a number to open Registration.');
            return;
        }
		$this->mlepp->depot("admin")->get("pmc")->edition = $no;
		if ($no == -1){
		$this->connection->chatSendServerMessage('$0a0CMC>>Registration Closed till Further Notice');
		}
		else
		{
		$this->connection->chatSendServerMessage('$0a0CMC>>Registration opened for Edition:'.$no.'');
		$this->update_player($login);
		}
		}
		
	/**
     * createDatabaseTable()
     * Helper function, creates Database version table.
     *
     * @return void
     */
    function createdatabasePMC() {

		
		$q5 = "CREATE TABLE IF NOT EXISTS `joueurs` (
  `joueurid` int(11) NOT NULL AUTO_INCREMENT,
  `login` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `edition` int(11) NOT NULL DEFAULT '59',
  `planets` int(11) NOT NULL DEFAULT '0',
  UNIQUE KEY `joueurid` (`joueurid`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci PACK_KEYS=1 AUTO_INCREMENT=8743 ;";
$this->mlepp->db->query($q5);
        Console::println("created PMC joueurs table.");
}

	 /**
	 * onReady()
	 * Function called when ManiaLive is ready loading.
	 *
	 * @return void
	 */
	function onReady() {
		if($this->connected == true) {
					$this->createdatabasePMC();
	}
	}
	
	
	/**
	 * onPlayerConnect()
	 * Function called when a player connects.
	 *
	 * @param mixed $login
	 * @param mixed $isSpectator
	 * @return void
	 */
	function onPlayerConnect($login, $isSpectator) {
		$this->update_player($login, null);
		}
		
		
	function update_player($login){
	$query = "SELECT * FROM  `joueurs` WHERE  `login` =  ".$this->mlepp->db->quote($login)." AND  `edition` = ".$this->mlepp->db->quote($this->mlepp->depot("admin")->get("pmc")->edition)."";
	$data = $this->mlepp->db->query($query);
	if ($data->recordCount() == 0) {
	$this->connection->chatSendServerMessage("$0a0CMC>> John Doe!!!.", $login);
	$datas = $this->storage->getPlayerObject($login);
	$this->manialink($datas);
	}
	else
	{
	$this->connection->chatSendServerMessage("$0a0CMC>>Database already Found you!!!.", $login);
	}
	}
	
		function manialink($login){
		$xml1 = '<?xml version="1.0" encoding="utf-8"?>
<manialink id="0885577777271">
<format style="TextStaticSmall" textsize="1" />
<frame>
<quad sizen="30 5.5" posn="-45 30 1" halign="left" valign="top" style="Bgs1InRace" substyle="BgCardChallenge"/>
<quad sizen="156 80" posn="-45 30 0" halign="left" valign="top" style="Bgs1InRace" substyle="BgCardChallenge"/>
<quad sizen="152 22" posn="-45 30 1" halign="left" valign="top" style="Bgs1InRace" substyle="BgCardChallenge"/>
<quad sizen="16 16" posn="-45 30 2" halign="left" valign="top" style="Icons128x128_1" substyle="Coppers"/>
<quad sizen="12 12" posn="-45 30 3" style="Icons128x128_1" substyle="Buddies" />
<quad sizen="152 10" posn="-45 30 1" halign="left" valign="top" style="Bgs1InRace" substyle="BgCardChallenge"/>
<label sizen="80 6" posn="-20 20 3" halign="left" valign="center2" style="TextRaceMessage" text="Inscription à la Coppers Millions Cup"/>
<quad posn="-30 -25 3" sizen="30 10" action="3000" style="Bgs1InRace" substyle="BgCardChallenge"/>
<label textsize="2" posn="-26 -28 3" text="$f00$oJe Paye" />
<quad posn="15 -25 3" sizen="30 10" action="5000" style="Bgs1InRace" substyle="BgCardChallenge"/>
<label textsize="2" posn="19 -28 3" text="$f00$oJe refuse" />
<quad posn="60 -25 3" sizen="30 10" action="0" style="Bgs1InRace" substyle="BgCardChallenge"/>
<label textsize="2" posn="64 -28 3" text="$f00$oFermer" />
<label textsize="1.6" posn="-30 0" autonewline="1" text="$f00If you want to participate in the Million Coppers Cup, inscribed in now for next month." />center">
<label textsize="1.6" posn="-30 -05" autonewline="1" text="$f00- The PMC takes place on the first Thursday of each month at 21h French Time." />center">
<label textsize="1.6" posn="-30 -10" autonewline="1" text="$f00- 4 maps kept secret with times of 5-10 minutes, 1 Round per map." />center">
<label textsize="1.6" posn="-30 -15" autonewline="1" text="$f00- All players win planets by the amount of JACKPOT !" />center">
<label textsize="1.6" posn="-30 -20" autonewline="1" text="$f00$wYou are not registered for the next CMC." />center">
</frame>
</manialink>';
			try {
			$this->connection->sendDisplayManialinkPage($login, $xml1, 0, true, true);
			} catch (\Exception $e) {
            $this->mlepp->sendChat('%adminerror%' . $e->getMessage(), $login);
        }
		}
		
function onPlayerManialinkPageAnswer($playerUid, $login, $answer,array $entries)
{
$data = $answer;
$amount = $this->config->amount;
if($answer==3000){
$fromPlayer = $this->storage->getPlayerObject($login);
$billId = $this->connection->sendBill($fromPlayer, (int)$amount, 'Gain reçu pour la Coppers Million Cup');
$this->connection->chatSendServerMessage('The bill has been created with the id '.$billId, $fromPlayer, true);
$bill = $this->connection->getBillState($billId);
$this->connection->chatSendServerMessage('The bill n°'.$billId.' is currently $<$o'.$bill->stateName.'$>', $login, true);
$text = 'You joined the PMC: Stay tuned...';
$this->connection->chatSendServerMessage('$fff» ' . $text, $login);
$source_player = $this->storage->getPlayerObject($login);
$this->log->write("{$login}.\t{$playerUid}\t{$source_player->nickName}\t{$this->mlepp->depot("admin")->get("pmc")->edition}");
$this->connection->chatSendServerMessage("$0a0CMC>>You are already joined for PMC", $login);
$this->connection->chatSendServerMessage("$0a0CMC>>Merci de vous être inscrit à la CMC", $login);
$query = "INSERT INTO joueurs(login,edition,planets) VALUES(".$this->mlepp->db->quote($login).", ".$this->mlepp->db->quote($this->mlepp->depot("admin")->get("pmc")->edition).", ".$this->mlepp->db->quote($this->config->amount).")";
	$this->mlepp->db->query($query);
	$this->connection->chatSendServerMessage("$0a0CMC>>Added to database", $login);
}
if ($answer == 0){

}
}
		
}
?>

Code: Select all

<?php

/**
 * MLEPP - ManiaLive Extending Plugin Pack
 *
 * -- MLEPP PMC --
 * @name PMC
 * @date 02-07-2011
 * @version r934 TM2 Beta
 * @website mlepp.trackmania.nl
 * @package MLEPP
 *
 * @author The MLEPP team
 * @copyright 2010 - 2011
 *
 * ---------------------------------------------------------------------
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License; or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful;
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not; see <http://www.gnu.org/licenses/>.
 * ---------------------------------------------------------------------
 * You are allowed to change things or use this in other projects; as
 * long as you leave the information at the top (name; date; version;
 * website; package; author; copyright) and publish the code under
 * the GNU General Public License version 3.
 * ---------------------------------------------------------------------
 */

namespace ManiaLivePlugins\MLEPP\PMC;

class Config extends \ManiaLib\Utils\Singleton {

public $amount= 50;

}

?>
Salut, alors il y a rien de tres particulier dans ton code dans pour le plugin je dirais aucun soucis, je veux bien de l'adapter dans la semaine,

Pour importer les record de mlepp c'est fesable, mais je doute que on travaillerait la dessus avec priorite, il y pas beacoup de monde dans ta situation :)
Par contre ça serait plus simple que d'importer de XAseco, puisque les BD ce ressemble un peu plus.
Image
Developper for The next generation, Clean and Powerfull controller eXpansion for your SM & TM server . Working on eXpansion² with full MP4 support and many other awesome features...
Locked

Return to “eXpansion”

Who is online

Users browsing this forum: No registered users and 1 guest