Poll

?

.
84 (71.2%)
,
34 (28.8%)

Total Members Voted: 116

Author Topic: Slayer  (Read 233228 times)

Here's a bug report:
When using slayer as the default minigame for a gamemode, leaving the minigame somehow breaks stuff. Like, If the minigame has lives, you still have lives. You still get the tools from the minigame. You can kill people and they can kill you. You can't respawn with F7 either. You can't join the minigame, it will say that you're already in.

To reproduce simply use slayer as the default minigame for a gamemode, seems to happen in every server.

I couldn't find your bug report page so I have no idea whether you're already working on this

Yeah, I fixed that one already. Thanks for reporting it.

Gah, Greek, I warned you about this a while back. Just updated Slayer on Pecon's Boss Battles. The most noticable change soon after I started was the 10 seconds of lag it took to reset the minigame. To fix it, change this in Slayer_MinigameSO::resetBricks:

if(!%isPublic)
   %br.onMiniGameReset();


to this:

if(%br.numEvents > 0 && !%isPublic)
   %br.onMiniGameReset();


It cut the lag down to less than half a second.

I already changed that, I just haven't had time to finish and release the update.

I already changed that, I just haven't had time to finish and release the update.
Sorry, didn't see it in the source on Bitbucket. Thought that was the most recent code.

Regarding the documentation in the OP, I still can't access it. Only able to view the cached version. It's outdated, but still useful. Is there a mirror for it somewhere?

Can you add a option to make all teams have the same loadout?
I don't like having to go back in each team and change them all manually.

Maybe make it copy the general minigame loadout?

also i donated 5 bucks because i can

Sorry, didn't see it in the source on Bitbucket. Thought that was the most recent code.

Regarding the documentation in the OP, I still can't access it. Only able to view the cached version. It's outdated, but still useful. Is there a mirror for it somewhere?

No problem. For some reason my website is down. Here's a mirror for now: http://www.filedropper.com/documentation_2

Can you add a option to make all teams have the same loadout?
I don't like having to go back in each team and change them all manually.

Maybe make it copy the general minigame loadout?

also i donated 5 bucks because i can

Sure, I can add a button next to the main loadout to update all teams, or maybe a checkbox to keep them all in sync. What do you think? Also, thank you, I appreciate it! :)
« Last Edit: November 22, 2013, 08:14:08 PM by Greek2me »

No problem. For some reason my website is down. Here's a mirror for now: http://www.filedropper.com/showdownload.php/documentation_2
Think that's the "File successfully uploaded, here's the link to give it to other people" page, but thanks. It'll be useful when I'm editing the gamemode.

Sure, I can add a button next to the main loadout to update all teams, or maybe a checkbox to keep them all in sync. What do you think? Also, thank you, I appreciate it! :)
Would it be possible to add a "Default" option to the items and datablock dropdowns on the GUI? Then whatever is in that slot uses the default minigame settings. Could probably use the concept with a lot of team options.

Bots now have the ability to capture CPs and meet at rally nodes. :D

Would it be possible to add a "Default" option to the items and datablock dropdowns on the GUI? Then whatever is in that slot uses the default minigame settings. Could probably use the concept with a lot of team options.
Not a bad idea.
« Last Edit: November 24, 2013, 05:36:50 PM by Greek2me »

Is there any way to make default bots included in my minigame when I leave the mini/server? I know it's not really because of slayer but I'm curious if you know of a way. Currently as is if I leave the minigame/server they can't take damage/deal it/react with players as normal and it's somewhat annoying.

I think if you make the bot holes out of public bricks, they will persist. I'm pretty sure that's how the bots work in the speedkart gamemode.

You can either, A) make them out of public bricks, or B) select the "Keep Bot" option in the wrench menu.

Also, make sure your minigame includes all players' bricks.

Slayer Error (Server): Slayer_MinigameSO::Reset: Minigame being reset too quickly!
BackTrace: ->serverCmdSlayer_getPrefs_End->[Slayer_Dependencies_Minigames]Slayer_MinigameSO::reset->Slayer_Support::error

this is coming up whenever i start a minigame and it's lagging my server existentially.

what's going on?

It just means that I messed up slightly, but it's not a problem really.

Are you having lag problems when resetting? That's something else and I've hopefully fixed it now.

edit:
http://forum.blockland.us/index.php?topic=245959.msg7072627#msg7072627
Quote
dude that's the RTB server's console.

Slayer Error (Server): Slayer_MinigameSO::Reset: Minigame being reset too quickly!
BackTrace: ->serverCmdSlayer_getPrefs_End->[Slayer_Dependencies_Minigames]Slayer_MinigameSO::reset->Slayer_Support::error

this is in server console whenever i start a slayer minigame, it's got to be slayer.

No, it's not Slayer.
« Last Edit: November 26, 2013, 11:47:39 PM by Greek2me »

Quote
if(!(%mini.isResetting() && !%mini.clearScores && %this.points <= 0))
Is that last one supposed to be %mini.points? That if statement is confusing as hell to read. Regardless, this fix to keep the minigame reset from clearing peoples' points has caused us problems when a client spawns, our script tries to load their score, then Slayer blocks it because they were unlucky enough to spawn in the brief window of time when the minigame was resetting.

My fix was to move your fix's functionality to the reset function itself, by saving everyone's scores before calling the parent and restoring them after.