Dedicated Server and CSmModeEvent::EType::OnPlayerRemoved ??

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
Kyb
Posts: 383
Joined: 18 Aug 2011, 20:50

Dedicated Server and CSmModeEvent::EType::OnPlayerRemoved ??

Post by Kyb » 03 Jun 2013, 21:41

Hi,

I'm currently working on a gamemode and I noticed a stange bug with CSmModeEvent::EType::OnPlayerRemoved.

When i tested the script on a server created from the game, it works perfectly. But when i'm trying it on my dedicated server (hosted by Verygames), the server seem to not works, he don't appears on the server list.

When i removed CSmModeEvent::EType::OnPlayerRemoved from my script, the dedicated server works.

Any idea ?

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

Re: Dedicated Server and CSmModeEvent::EType::OnPlayerRemove

Post by steeffeen » 03 Jun 2013, 21:43

is the server running properly or are there any errors in the log?
maybe your server software isn't up-to-date and it doesn't support this feature yet (it was added recently)
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks

    User avatar
    Kyb
    Posts: 383
    Joined: 18 Aug 2011, 20:50

    Re: Dedicated Server and CSmModeEvent::EType::OnPlayerRemove

    Post by Kyb » 03 Jun 2013, 22:10

    It works properly without any errors when i'm hosting the server on my computer.

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

    Re: Dedicated Server and CSmModeEvent::EType::OnPlayerRemove

    Post by steeffeen » 03 Jun 2013, 22:45

    probably because your server software is up-to-date
    could you please check the version of your rented server?
    in case there aren't any possibilities on the website you could start the server with a working game mode and type "/version" ingame, this will show you the server version (and script name + script version)

    and do you have access to the log files of the rented server? they are placed in /UserData/Logs
    in case there are errors because of the OnPlayerRemoved event type these will be written in the logs
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks

      User avatar
      Kyb
      Posts: 383
      Joined: 18 Aug 2011, 20:50

      Re: Dedicated Server and CSmModeEvent::EType::OnPlayerRemove

      Post by Kyb » 03 Jun 2013, 23:14

      Ok, the server is effectively up to date :/
      [2013/06/03 21:13:04] Script compilation failed: ERROR[291, 45] Unknown enum CSmModeEvent::EType::OnPlayerRemoved
      ERROR[291, 45] switch case value has a different type
      Script compilation failed.
      Thx for your help

      Post Reply

      Return to “ManiaScript”

      Who is online

      Users browsing this forum: No registered users and 1 guest