Author Topic: Slayer_minigamePack  (Read 3460 times)

Slayer_minigamePack

SLAYER ONLY

Contains these child add-ons created by me.

  • Event - setMinigame - sets the clients minigame to the name of the minigame in the parameter.
  • Event - removeClientFromMini - removes the client from the minigame they are in.
  • Support - DisableMinigameButtons - Stops clients from creating (except host), leaving or joining a minigame through the GUI.
  • Support - Multi-Slayer - Allows you to create more than one slayer game. (by setting the owner ID to a number 2 - 99)

Multi-Slayer is used by typing "/createFakeMinigame", it will notify you if it has been done successfully, once done go onto the slayer GUI and make it so only the host or admins can modify it (don't want any pesky trolls to mess with it).

Requirements:

Slayer: http://forum.blockland.us/index.php?topic=169473.0




Download:

Slayer_minigamePack: http://s000.tinyupload.com/download.php?file_id=30724946629495398213&t=3072494662949539821341595

I can think of many things you could create with this, but I'm leaving it for you to decide  :cookieMonster:[/s]

A second version is being done up, since this one conflicted with a few datablocks.
« Last Edit: February 08, 2014, 04:20:57 AM by tetronaught »

How does it work with default mini? Say I'm making a minigame server. If I have 4 minigames, "Default," "A," and "B." Obviously Default is... default! I join the server and I'm thrown in the "Default" minigame. I use an event to join "A." Will I be thrown straight back into "Default?"

I really disapprove of "multi-slayer". I'll try to give a more detailed explanation in the morning when I'm not on mobile.

How does it work with default mini? Say I'm making a minigame server. If I have 4 minigames, "Default," "A," and "B." Obviously Default is... default! I join the server and I'm thrown in the "Default" minigame. I use an event to join "A." Will I be thrown straight back into "Default?"
Make it so anyone can leave, since the support DisableMinigameButton will stop you from leaving with the gui, so you will spawn in the default at first, and then you can change minigames by clicking buttons.




I really disapprove of "multi-slayer". I'll try to give a more detailed explanation in the morning when I'm not on mobile.
Also, the way it works is it creates a minigame on an unused id, each time you createFakeMinigame a variable will increment, and when you end a fake game it decrements.
« Last Edit: February 06, 2014, 02:14:33 AM by tetronaught »

There's a number of things wrong with that.

First of all, Slayer_MinigameHandlerSO::addMinigame(%this, %client, %configFile) does not even take a BLID.

Secondly, how will the server know which bricks, vehicles, etc. belong to which minigame? When a minigame resets, it will end up resetting things that other minigames are using.

There's a bunch more problems but I'm not going to go into detail. I appreciate your enthusiasm to help, but you should probably remove this.

I appreciate your enthusiasm to help, but you should probably remove this.

Thanks, and yes I will probably but I am still curious about this:

First of all, Slayer_MinigameHandlerSO::addMinigame(%this, %client, %configFile) does not even take a BLID.

Isn't client basically the BLID, therefore each minigame is in it's own "client" so it won't mess with the others?

Thanks, and yes I will probably but I am still curious about this:

Isn't client basically the BLID, therefore each minigame is in it's own "client" so it won't mess with the others?
No.
Client.bl_id is the BL_ID of the client. Client is an object while bl_id is just a variable.
You CAN create an AIConnection and use that for the minigame client, but I'm sure you'd have to fix things up a bit for that too.

No.
Client.bl_id is the BL_ID of the client. Client is an object while bl_id is just a variable.
You CAN create an AIConnection and use that for the minigame client, but I'm sure you'd have to fix things up a bit for that too.
Thanks, but what I will say is,
It does work, It's just got a %0.1 of conflicting with another client (it's giving it a random client, every add-on has some flaw right?)
I will be working on a second version for this though, thanks for the help  :cookieMonster:

Thanks, but what I will say is,
It does work, It's just got a %0.1 of conflicting with another client (it's giving it a random client, every add-on has some flaw right?)

That's still not acceptable. The BLID is used to determine what objects are in the minigame.

Anyway, it's not using a random client, it's using random objects; likely datablocks.