How to use pick up items in your title packs

Discuss everything related to custom data creation.

Moderator: NADEO

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

Re: How to use pick up items in your title packs

Post by steeffeen »

i have no idea why it's happening but sometimes items stop working properly on a server
it happened on an ingame match and also on a dedicated server

after many hours of fine matches with the same pickup item all of sudden it stops working
http://www.pictures.esc-clan.net/upload ... Shot08.jpg

on server launch the item id is retrieved

Code: Select all

ItemId = ItemList_Add("Object.Item.gbx");
and on map begin there are the needed objects created with this ItemId

Code: Select all

ObjectDestroyAll();
for (Index, 1, 1) {
	declare Object = ObjectCreate(ItemId);
}
why is this happening? :(

(sorry for the rage on the screenshot xD)
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    User avatar
    TMarc
    Posts: 15255
    Joined: 05 Apr 2011, 19:10
    Location: Europe
    Contact:

    Re: How to use pick up items in your title packs

    Post by TMarc »

    Do you see any chance to reproduce it, perhaps to show the count of the items, or a history of the ItemId?
    Could it be some kind of stack (or memory allocation) overflow?
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2463
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: How to use pick up items in your title packs

    Post by steeffeen »

    well there is no history for ItemId because it never changes, it's retrieved on server start and that's it
    i can't really reproduce it because it seems to happen randomly :(
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      User avatar
      TMarc
      Posts: 15255
      Joined: 05 Apr 2011, 19:10
      Location: Europe
      Contact:

      Re: How to use pick up items in your title packs

      Post by TMarc »

      and what about the index?
      I presume the Index is increasing with every new item.
      How many items do you have on the map btw.?
      Anything related to usual known IT array boundaries?
      User avatar
      steeffeen
      Translator
      Translator
      Posts: 2463
      Joined: 14 Oct 2012, 16:22
      Location: Germany

      Re: How to use pick up items in your title packs

      Post by steeffeen »

      just happened again! log:

      Code: Select all

      [2013/08/21 20:26:51] Connection of a new spectator: steeffeen(5.56.237.120:2350)
      [2013/08/21 20:31:09] Loading map SpeedBall - Swamp_7013-1.Map.gbx (gDDTe4lgSD7P7jtfVDf6gJ4zOp4)...
      [2013/08/21 20:31:09] ...Load succeeds
      [2013/08/21 20:31:36] Runtime error: [359, 48] The procedure ObjectCreate failed to complete : 
      	Item is not a PickUp item
      Restarting the match....
      [2013/08/21 20:31:36] Script 'Mode:SpeedBall' halted: [359, 48] The procedure ObjectCreate failed to complete : 
      	Item is not a PickUp item
      @TMarc
      that's the syntax of a usual for loop in maniascript

      Code: Select all

      for (Index, 1, 1)
      just means it's only executed once (from 1 to 1)
      (one-time loop because there might be more items in the future while currently there is only max 1 object available all the time)
        Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

        ManiaControl, FancyManiaLinks
        User avatar
        phil13hebert
        Posts: 564
        Joined: 29 Oct 2011, 14:11
        Location: Québec

        Re: How to use pick up items in your title packs

        Post by phil13hebert »

        steeffeen wrote:just happened again! log:

        Code: Select all

        [2013/08/21 20:26:51] Connection of a new spectator: steeffeen(5.56.237.120:2350)
        [2013/08/21 20:31:09] Loading map SpeedBall - Swamp_7013-1.Map.gbx (gDDTe4lgSD7P7jtfVDf6gJ4zOp4)...
        [2013/08/21 20:31:09] ...Load succeeds
        [2013/08/21 20:31:36] Runtime error: [359, 48] The procedure ObjectCreate failed to complete : 
        	Item is not a PickUp item
        Restarting the match....
        [2013/08/21 20:31:36] Script 'Mode:SpeedBall' halted: [359, 48] The procedure ObjectCreate failed to complete : 
        	Item is not a PickUp item
        @TMarc
        that's the syntax of a usual for loop in maniascript

        Code: Select all

        for (Index, 1, 1)
        just means it's only executed once (from 1 to 1)
        (one-time loop because there might be more items in the future while currently there is only max 1 object available all the time)
        Btw, steeffeen, this is my map and I think that it's only happening on it :?
        OS: Windows 7 64 bit
        CPU: Intel Core i7 3770 @ 3.40Ghz
        RAM: 8GB DDR3 798MHz
        GPU: Nvidia GeForce GTX 660 1536MB
        Motherboard: Intel 0KM92T
        Sound: 7.1
        Peripherals: Logitech G510, SteelSeries sensei raw, Corsair vengeance 1500
        User avatar
        TMarc
        Posts: 15255
        Joined: 05 Apr 2011, 19:10
        Location: Europe
        Contact:

        Re: How to use pick up items in your title packs

        Post by TMarc »

        steeffeen wrote:that's the syntax of a usual for loop in maniascript

        Code: Select all

        for (Index, 1, 1)
        just means it's only executed once (from 1 to 1)
        (one-time loop because there might be more items in the future while currently there is only max 1 object available all the time)
        Ah, ok, I originally did not think it was that simple and that close to regular for loops like c or perl :lol:
        User avatar
        steeffeen
        Translator
        Translator
        Posts: 2463
        Joined: 14 Oct 2012, 16:22
        Location: Germany

        Re: How to use pick up items in your title packs

        Post by steeffeen »

        phil13hebert wrote:Btw, steeffeen, this is my map and I think that it's only happening on it :?
        nope, it also happens on other maps ^.^

        Code: Select all

        [2013/08/12 01:25:49] Loading map SpeedBall - Stadium_6564.Map.gbx (6cW4s4Wed_OxfimuHSofbOyQvyd)...
        [2013/08/12 01:25:49] ...Load succeeds
        [2013/08/12 01:26:42] Runtime error: [354, 41] The procedure ObjectCreate failed to complete : 
        	Item is not a PickUp item
        Restarting the match....
        [2013/08/12 01:26:42] Script 'Mode:SpeedBall' halted: [354, 41] The procedure ObjectCreate failed to complete : 
        	Item is not a PickUp item
          Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

          ManiaControl, FancyManiaLinks
          User avatar
          phil13hebert
          Posts: 564
          Joined: 29 Oct 2011, 14:11
          Location: Québec

          Re: How to use pick up items in your title packs

          Post by phil13hebert »

          steeffeen wrote:
          phil13hebert wrote:Btw, steeffeen, this is my map and I think that it's only happening on it :?
          nope, it also happens on other maps ^.^

          Code: Select all

          [2013/08/12 01:25:49] Loading map SpeedBall - Stadium_6564.Map.gbx (6cW4s4Wed_OxfimuHSofbOyQvyd)...
          [2013/08/12 01:25:49] ...Load succeeds
          [2013/08/12 01:26:42] Runtime error: [354, 41] The procedure ObjectCreate failed to complete : 
          	Item is not a PickUp item
          Restarting the match....
          [2013/08/12 01:26:42] Script 'Mode:SpeedBall' halted: [354, 41] The procedure ObjectCreate failed to complete : 
          	Item is not a PickUp item
          Okay :o
          OS: Windows 7 64 bit
          CPU: Intel Core i7 3770 @ 3.40Ghz
          RAM: 8GB DDR3 798MHz
          GPU: Nvidia GeForce GTX 660 1536MB
          Motherboard: Intel 0KM92T
          Sound: 7.1
          Peripherals: Logitech G510, SteelSeries sensei raw, Corsair vengeance 1500
          User avatar
          Mandark
          Posts: 1277
          Joined: 15 Jul 2010, 17:58
          Location: Romania

          Re: How to use pick up items in your title packs

          Post by Mandark »

          Eole wrote:To use items in a game mode you have to create a TitlePack with a custom mode script.
          First you must load the items you want to use at the beginning of your script.

          Code: Select all

          ItemList_Begin();
          declare ArmorId = ItemList_Add("SMCommon\\Pickups\\Armor.Item.gbx");
          declare RocketId = ItemList_Add("SMCommon\\Pickups\\Rocket.Item.gbx");
          declare LaserId = ItemList_Add("SMCommon\\Pickups\\Laser.Item.gbx");
          declare NucleusId = ItemList_Add("SMCommon\\Pickups\\Nucleus.Item.gbx");
          declare ArrowId = ItemList_Add("SMCommon\\Pickups\\Arrow.Item.gbx");
          ItemList_End();
          I did what it has been said in this quote, but whenever I try to open a server with my script I get this:
          http://oi42.tinypic.com/264mbm1.jpg
          Specs
          Motherboard: Asus ROG Maximus VII Formula
          CPU: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz (8 CPUs), ~4.0GHz
          GPU: Nvidia GeForce GTX 980 Ti
          RAM: 16GB
          Operating System: Windows 10 Pro
          Post Reply

          Return to “Title Pack & Custom Data Creation”

          Who is online

          Users browsing this forum: No registered users and 1 guest