Page 14 of 17
Re: How to use pick up items in your title packs
Posted: 21 Aug 2013, 19:38
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)
Re: How to use pick up items in your title packs
Posted: 21 Aug 2013, 20:12
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?
Re: How to use pick up items in your title packs
Posted: 21 Aug 2013, 20:13
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

Re: How to use pick up items in your title packs
Posted: 21 Aug 2013, 20:38
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?
Re: How to use pick up items in your title packs
Posted: 21 Aug 2013, 20:48
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
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)
Re: How to use pick up items in your title packs
Posted: 21 Aug 2013, 20:51
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
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

Re: How to use pick up items in your title packs
Posted: 21 Aug 2013, 20:57
by TMarc
steeffeen wrote:that's the syntax of a usual for loop in maniascript
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

Re: How to use pick up items in your title packs
Posted: 21 Aug 2013, 21:01
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
Re: How to use pick up items in your title packs
Posted: 21 Aug 2013, 21:07
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

Re: How to use pick up items in your title packs
Posted: 27 Aug 2013, 16:46
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