[SM GameMode] InstaDM

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

User avatar
PiGmY
Posts: 18
Joined: 13 Apr 2013, 17:50
Contact:

Re: [SM GameMode] InstaDM

Post by PiGmY »

Working now, thanks a lot for this, script is awesome! :thumbsup:
User avatar
.Seki13
Posts: 347
Joined: 30 Apr 2011, 21:31

Re: [SM GameMode] InstaDM

Post by .Seki13 »

I am still encountering the same problem with no solution, the bots are stuck at spawn.

This problem happened the first time after the update on May 16th.
In a local server, the bots can shoot but they can't move.
I want to know if this is only happening with my game or with others. :|

EDIT:
kak0 wrote:Update 16/05/2013
Script API :
  • Before, when you wanted to respawn a bot, you had to destroy it and create it back. You can now respawn a bot like you would respawn a human player, with the function SpawnBotPlayer. This function takes the same arguments as SpawnPlayer, except that the Player has to be a bot and the spawn location doesn't have to be a CSmBlockSpawn, it can be any CSmScriptLandmark (including CSmScriptBotPath). Please note that you still have to call CreateBotPlayer for the first spawn, and you still need to destroy a bot when you don't use it anymore.
  • Fixed some issues that could occure while changing the Behaviour of the bot.
  • Fixed the bug that made rockets disappear when the bot who shot them was destroyed (should fix the bug of the non-appearing +1 as well)
  • Fixed some issues that could occure when a bot was in Patrol mode and was returning to its Path
  • New variable Path in CSmScriptBotPath, to access the points defined in the map editor (read-only)
  • New variable IsStuck in the Driver, to know if the bot can't move (this variable is True when the bot didn't move for 1 sec or more, when he is supposed to move)
  • New API to control the bot entirely with the script. The corresponding Behaviour enum is called Scripted. Here's the list of available functions:
    • ScriptedBot_Move(CSmPlayer Bot, Vec3 Position) : Moves the bot to the given position
    • ScriptedBot_MoveDelta(CSmPlayer Bot, Vec3 Delta) : Same as the previous function, but with a position depending on the current position
    • ScriptedBot_Aim(CSmPlayer Bot, Vec3 Position) : Aims at the given position
    • ScriptedBot_AimDelta(CSmPlayer Bot, Real DYaw, Real DPitch) : Turns the bot's aim with the given angles
    • ScriptedBot_MoveAndAim(CSmPlayer Bot, Vec3 Position) : Same as calling ScriptedBot_Move followed by ScriptedBot_Aim
    • ScriptedBot_RequestAction(CSmPlayer Bot) : Makes the bot use its current action (right click)
    • ScriptedBot_RequestGunTrigger(CSmPlayer Bot) : Makes the bot fire
    • Boolean variable ScriptedBot_ForceAimInMoveDir in the Driver : Forces the bot to aim in the direction he is moving (just as he does when he is in a predefined mode). False by default.
User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: [SM GameMode] InstaDM

Post by steeffeen »

.Seki13 wrote:I am still encountering the same problem with no solution, the bots are stuck at spawn.
This problem happened the first time after the update on May 16th.
In a local server, the bots can shoot but they can't move.
I want to know if this is only happening with my game or with others. :|
i'm still searching for a fix of the issue, it's caused by the update on May 16th, the servers just haven't been updated i guess (i just created one and it didn't work as well)
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2463
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: [SM GameMode] InstaDM

    Post by steeffeen »

    regarding the bot problem: just to let you know, i can't do much now, we will have to wait for the next update because the bot API has an issue
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      User avatar
      .Seki13
      Posts: 347
      Joined: 30 Apr 2011, 21:31

      Re: [SM GameMode] InstaDM

      Post by .Seki13 »

      Alright thanks. :D
      Hope it comes back even better.
      User avatar
      steeffeen
      Translator
      Translator
      Posts: 2463
      Joined: 14 Oct 2012, 16:22
      Location: Germany

      Re: [SM GameMode] InstaDM

      Post by steeffeen »

      just a quick note for server owners: we have downgraded the server version of the Paragon-InstaDM server to the version of May 16th because the bots are working fine with this version
      you may want to do that as well in order to get bots working again
      (that's not possible for clients of course :?)

      current script version: 1.0.8
        Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

        ManiaControl, FancyManiaLinks
        User avatar
        steeffeen
        Translator
        Translator
        Posts: 2463
        Joined: 14 Oct 2012, 16:22
        Location: Germany

        Re: [SM GameMode] InstaDM

        Post by steeffeen »

        Version 1.0.9 Released!
        - added setting for Beta2 (enables Beta2Gameplay and disables AmmoBonusOnHit+LaserSkewering(multihit))

        download at http://team-devota.com/steeffeen/ or steeffeen
          Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

          ManiaControl, FancyManiaLinks
          User avatar
          roguesergeant
          Posts: 74
          Joined: 17 Apr 2013, 05:32
          Location: Canada
          Contact:

          Re: [SM GameMode] InstaDM

          Post by roguesergeant »

          Nice update
          tamura
          Posts: 9
          Joined: 21 Aug 2013, 15:53

          Re: [SM GameMode] InstaDM

          Post by tamura »

          Hello,
          How can active bot ? I want to use you're script for do a meleev2.script.txt.
          I test for active bots in local editor before upload to my server but it don't work.

          Can you explain me in simple langage beacause i am french.
          If it's possible an example of the script modificated with for exemple 2 bots spaw ever, it's more simple for explain me.

          Bets regards ;)

          And thx for this beautiful script for newbies in scripting like me.
          User avatar
          TMarc
          Posts: 15255
          Joined: 05 Apr 2011, 19:10
          Location: Europe
          Contact:

          Re: [SM GameMode] InstaDM

          Post by TMarc »

          Look at this... surprisingly you did not find it, although it was very recent? ;)
          [SERVEUR] Bot immobile
          Post Reply

          Return to “ManiaScript”

          Who is online

          Users browsing this forum: No registered users and 1 guest