15241
Modification Help / Re: miniGameCanDamage not being invoked + other stuff
« on: January 06, 2012, 11:54:04 AM »
I have tried this method for fixing miniGameCanDamage:
From this, I got an error somewhat like the following, and miniGameCanDamage also wasn't fixed:
ERROR: miniGameSO::addMember - object "something" is not a client. This method is for adding clients to the minigame only.
I have also tried with a gameConnection, which you indeed can manually create server-sided. This works fine, except the server crashes when it attempts to create a mini-game with the virtual client. I'm now going to try this method again, except this time I'll prevent network-related actions on this virtual client.
Code: [Select]
function fixMiniGameCanDamage()
{
%owner = new AIConnection()
{
name = "";
bl_id = -1;
};
%miniGame = createMiniGameSO( %owner, "Temporary Mini-Game", false, true );
%miniGame.endGame();
if ( isObject( %miniGame ) )
{
%miniGame.delete();
}
%owner.delete();
}
From this, I got an error somewhat like the following, and miniGameCanDamage also wasn't fixed:
ERROR: miniGameSO::addMember - object "something" is not a client. This method is for adding clients to the minigame only.
I have also tried with a gameConnection, which you indeed can manually create server-sided. This works fine, except the server crashes when it attempts to create a mini-game with the virtual client. I'm now going to try this method again, except this time I'll prevent network-related actions on this virtual client.