[MPAseco] [v0.75] Report bugs here!

MPAseco is a server controller for Shootmania, which provides you with a framework and some standard plugins.

Moderators: kremsy, NADEO

kremsy
Posts: 1665
Joined: 21 Jul 2011, 09:51

Re: [MPAseco] [v0.75] Report bugs here!

Post by kremsy » 17 Jul 2013, 10:08

The problem is that your Script is not extending the ModeBaseScript, where nadeo put the Callbacks for the Server-controller in, there are some different ways now.

The easiest way is to add the callbacks yourself like this:
http://forum.maniaplanet.com/viewtopic. ... 97#p145143

Maybe steff has better ideas, he is the Script King ;).
Lukas alias Kremsy, Developer of:
ManiaControl: http://www.maniacontrol.com
ParagonLeague: http://league.paragon-esports.com
MPAseco: http://mpaseco.org
ManiaViewer: http://www.maniaviewer.com

User avatar
franck70
Posts: 228
Joined: 10 Jan 2011, 18:15
Location: France/Rhone-Alpes/Isère

Re: [MPAseco] [v0.75] Report bugs here!

Post by franck70 » 17 Jul 2013, 11:23

kremsy wrote:The problem is that your Script is not extending the ModeBaseScript, where nadeo put the Callbacks for the Server-controller in, there are some different ways now.

The easiest way is to add the callbacks yourself like this:
http://forum.maniaplanet.com/viewtopic. ... 97#p145143

Maybe steff has better ideas, he is the Script King ;).
I hope that Steff has a better idea, cause add callbacks in the script is like the martian language for me :D
Image

kremsy
Posts: 1665
Joined: 21 Jul 2011, 09:51

Re: [MPAseco] [v0.75] Report bugs here!

Post by kremsy » 17 Jul 2013, 11:31

franck70 wrote:
kremsy wrote:The problem is that your Script is not extending the ModeBaseScript, where nadeo put the Callbacks for the Server-controller in, there are some different ways now.

The easiest way is to add the callbacks yourself like this:
http://forum.maniaplanet.com/viewtopic. ... 97#p145143

Maybe steff has better ideas, he is the Script King ;).
I hope that Steff has a better idea, cause add callbacks in the script is like the martian language for me :D
Its just the lines I posted in that topic, so it's not a big deal if you made the script yourself :).
Lukas alias Kremsy, Developer of:
ManiaControl: http://www.maniacontrol.com
ParagonLeague: http://league.paragon-esports.com
MPAseco: http://mpaseco.org
ManiaViewer: http://www.maniaviewer.com

User avatar
franck70
Posts: 228
Joined: 10 Jan 2011, 18:15
Location: France/Rhone-Alpes/Isère

Re: [MPAseco] [v0.75] Report bugs here!

Post by franck70 » 17 Jul 2013, 11:42

I don't made this script ,just download Kremsy :)
Image

kremsy
Posts: 1665
Joined: 21 Jul 2011, 09:51

Re: [MPAseco] [v0.75] Report bugs here!

Post by kremsy » 17 Jul 2013, 12:05

franck70 wrote:I don't made this script ,just download Kremsy :)
Open mpaseco.php.

Try to remove /* on line 1055 and */ on line 1062.
And /* on line 1079 and */ on 1086, than the basic stuff will work.
Lukas alias Kremsy, Developer of:
ManiaControl: http://www.maniacontrol.com
ParagonLeague: http://league.paragon-esports.com
MPAseco: http://mpaseco.org
ManiaViewer: http://www.maniaviewer.com

User avatar
steeffeen
Translator
Translator
Posts: 2457
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: [MPAseco] [v0.75] Report bugs here!

Post by steeffeen » 17 Jul 2013, 12:07

i've posted the need of callbacks in the linked thread on maniapark and the author of the game mode said that he might fix it but probably not in the near future..
http://www.maniapark.com/forum/viewtopi ... 70#p190170

it wouldn't take long to insert them manually for now, but before i do that you could maybe message him too
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks

    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2457
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: [MPAseco] [v0.75] Report bugs here!

    Post by steeffeen » 17 Jul 2013, 19:16

    i've quickly made a version with the needed callbacks
    please use it for now: http://files.team-devota.com/CaptureTheFlag.Script.txt

    the actual script author (mewin) will update the official script as soon as he has time to do that so i would like to ask everyone to use his version as soon as it's available :thumbsup:
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks

      User avatar
      franck70
      Posts: 228
      Joined: 10 Jan 2011, 18:15
      Location: France/Rhone-Alpes/Isère

      Re: [MPAseco] [v0.75] Report bugs here!

      Post by franck70 » 17 Jul 2013, 20:36

      Big thanks Steeffen for this temporary solution until the official script. :pop:
      And thanks Kremsy for his help. :thx:

      PS: I send a message to Mewin ;)
      Image

      User avatar
      franck70
      Posts: 228
      Joined: 10 Jan 2011, 18:15
      Location: France/Rhone-Alpes/Isère

      Re: [MPAseco] [v0.75] Report bugs here!

      Post by franck70 » 18 Jul 2013, 07:13

      @Steeffen :
      the script still does not work, still the same problem :?

      @Kremsy

      I try to modify the file mpaseco.php it doesn't work too :cry:

      Code: Select all

        case 'ManiaPlanet.EndRound':  // none       new
                  $this->endRound();
                  break;       
      
                case 'ManiaPlanet.StatusChanged':  // [0]=StatusCode, [1]=StateName
                  // update status changes
                  $this->prevstatus = $this->currstatus;
                  $this->currstatus = $call[1][0];
                  // check WarmUp state
                  if ($this->currstatus == 3 || $this->currstatus == 5) {  */
                    $this->client->query('GetWarmUp');
                    $this->warmup_phase = $this->client->getResponse();
                  }
                  if ($this->currstatus == 4) {  // Running - Play
                    $this->runningPlay();
                  }
                  $this->releaseEvent('onStatusChangeTo' . $this->currstatus, $call[1]);
                  break;
      
               /* case 'ManiaPlanet.BeginMap':  // [0]=Challenge
                  $this->beginMap($call[1]);
                  break;
      
                case 'ManiaPlanet.EndMap':  // [0]=Challenge
                  if($this->endmapvar==0)
                    $this->endMap($call[1]);
                  break; 
      
                case 'ManiaPlanet.PlayerManialinkPageAnswer':  // [0]=PlayerUid, [1]=Login, [2]=Answer, [3]=Entries
                  $this->releaseEvent('onPlayerManialinkPageAnswer', $call[1]);
                  break;
      
                case 'ManiaPlanet.BillUpdated':  // [0]=BillId, [1]=State, [2]=StateName, [3]=TransactionId
                  $this->releaseEvent('onBillUpdated', $call[1]);  */
                  break;
      sorry for the inconvenience
      Image

      User avatar
      steeffeen
      Translator
      Translator
      Posts: 2457
      Joined: 14 Oct 2012, 16:22
      Location: Germany

      Re: [MPAseco] [v0.75] Report bugs here!

      Post by steeffeen » 18 Jul 2013, 08:26

      are you really running v0.75? ^.^
      i will try it myself this evening
      (sorry in case it doesn't work)
        Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

        ManiaControl, FancyManiaLinks

        Post Reply

        Return to “MPAseco”

        Who is online

        Users browsing this forum: No registered users and 2 guests