Author Topic: Unable to pick up items in gamemode  (Read 402 times)

I'm working on a gamemode which will have several item pickups.
I had a build which was Public that I then saved with ownership and tried using in a game-mode.

The result was getting the message "This item is not a part of the mini-game." when trying to pick up an item while having this error fill up the console:

base/server/scripts/allGameScripts.cs (28633): Unable to find object: '0' attempting to call function 'getBLID'
BackTrace: ->[GrenadeBagPackage]Armor::onCollision->[BigAmmoDropPackage]Armor::onCollision->[AmmoStaticPackage10]Armor::onCollision->[AmmoStaticPackage9]Armor::onCollision->[AmmoStaticPackage8]Armor::onCollision->[AmmoStaticPackage7]Armor::onCollision->[AmmoStaticPackage6]Armor::onCollision->[AmmoStaticPackage5]Armor::onCollision->[AmmoStaticPackage4]Armor::onCollision->[AmmoStaticPackage3]Armor::onCollision->[AmmoStaticPackage2]Armor::onCollision->[AmmoStaticPackage]Armor::onCollision->Armor::onCollision->[AmmoGuns2]Player::pickup->ShapeBase::pickup->Weapon::onPickup->ItemData::onPickup->miniGameCstar fishe


I have also tried to save the Public bricks without ownership, however that did not fix it.
A strange thing is though that this works perfectly when used on a non-dedicated server. The problem only occurs on dedicated servers.
Tested again, this occurs on every type of server.

And for those who are curious about gamemode.txt:

$MiniGame::IncludeAllPlayersBricks is defined as 0
$MiniGame::PlayersUseOwnBricks is defined as 0
$GameMode::BrickOwnership is not defined (default to Public)
« Last Edit: February 15, 2013, 07:14:51 AM by Port »

Wow. I was expecting default gamemode mini-games to automatically use the public brick group, but it turns out I still need $MiniGame::IncludeAllPlayersBricks to be true.

Use Slayer and it will work fine  :cookieMonster: