SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Releases > Lua

Reply
 
Thread Tools
Character Diceroll (xl_cdr_v2_0.lua) Details »»
Character Diceroll (xl_cdr_v2_0.lua)
Version: 2.0, by toaster (トースタちゃん) toaster is offline
Developer Last Online: Sep 2020

Version: SRB2 Rating: (1 votes - 3.40 average)
Released: 12-10-2019 Last Update: Never Favourites: 2
Scripts Re-Useable Content

Spoiler: Changelog

  • 2.0 - Ported to 2.2, and now supporting all the new skin properties that are available! Also added several admin commands for it; see below.
  • 1.2 - Now prevents mid-map skin changing!
  • 1.1 - Minor version lost to time/netgame testing.
  • 1.0 - First release.
Inspired by Let's Play Together SRB2 with combiring.lua "german", a YouTube series which I love so much even though I can't understand a word of it (and that's with 5 years of German classes...)

Randomly selects your character out of all the ones you have accessible, each time the level changes (no suicide to get you out of this unless the host wills it) to keep things fresh and interesting! Although it's intended for netgames, it does work in singleplayer as well (where it also changes your colour to the prefcolour). Plus, it's compatible with SRB2Kart!

Several admin options are now available starting with version 2.0.
Spoiler: Admin console variables

  • cdr_adminenable <On/Off> (default: On)
    Enable/disable Character Diceroll for all players in the server.
  • cdr_twiceinrow <On/Off> (default: Off)
    Permits all players in the server to roll the same character two times in a row. Please note this does not force any result, just allow for more chaos.
  • cdr_deathrerolls <Integer> (default: 0)
    Rerolls character on death, up to this many times per level (or not at all if 0). If set to a negative number, infinite death rerolls are allowed.

For best results, play with every character wad of reasonable quality on the mb - and if you're in a netgame, with combiring.lua! Once they're ported, I mean. Sorry for breaking all the old scripts and characters with 2.2 :V

Spoiler: Version 2.2 spoilers
And of course, the real reason I had to port this at all: the unlockable characters! They make this script extra relevant and fun going forward, I think, even without lots of non-vanilla characters added. Have you got them all? :D

Download Now

File Type: lua xl_cdr_v2_0.lua (7.6 KB, 532 views)

Show Your Support

  • The author of this addon has given explicit permission for its content to be re-used and/or reproduced.

Comments
Old 12-14-2019   #2
D00D64
Probably Responsible
Moderator
 
D00D64's Avatar
Default

Welcome to Releases!
D00D64 is offline   Reply With Quote
Old 12-15-2019   #3
MellowJacket
The unreliable judge
Judge
 
MellowJacket's Avatar
Default

Hey, sorry to be quite so picky about filenames after release. But in the name of getting our filenaming conventions completely uniform, could you rename your file to VL_cdr-v2.0? The prefix needing to be corrected and in capitals, and the suffix connected to the rest of the file with a hypen instead of an underscore.
__________________
Meanwhile in Aerial Garden Zone
MellowJacket is offline   Reply With Quote
Old 01-25-2020   #4
Lamibe
Default

Nice mod but quite unstable. It increase synch issue making stable netplay harder. When someone join it can cause synch failure to the one just joined and someone else including sometimes loopback/host. I don't think It's from my server because someone else tried it and worked even less and without it the game work better. Also hybrid : People getting a character but the game try to put another one but fails, finishing with a synch failure when the ability is used or jump for few chars.

Last edited by Lamibe; 01-25-2020 at 05:41 PM. Reason: After more testing it happens less often than my first tought
Lamibe is offline   Reply With Quote
Old 01-25-2020   #5
toaster
トースタちゃん
 
toaster's Avatar
Default

Strange, that wasn't found in testing. Can anyone help confirm/troubleshoot the above, because that description by itself isn't actionable information from my perspective...
__________________
Quote:
<fickle> giant robo-hood that rips the map apart with her bare hands
toaster is offline   Reply With Quote
Old 01-25-2020   #6
Icezer
 
Icezer's Avatar
Default

Quote:
Lamibe: Nice mod but quite unstable. It increase synch issue making stable netplay harder. When someone join it can cause synch failure to the one just joined and someone else including sometimes loopback/host. I don't think It's from my server because someone else tried it and worked even less and without it the game work better. Also hybrid : People getting a character but the game try to put another one but fails, finishing with a synch failure when the ability is used or jump for few chars.

Can confirm this issue exists. Was hosting earlier and had it happen in mass.
Just hosted a test server while in GIF mode and happened to catch it in action.
EDIT: Also another "bug" I found is that the diceroll only seems to get up to 2 added characters, any others are never landed on.
__________________
That guy who likes King Dedede.

Last edited by Icezer; 01-25-2020 at 06:26 PM. Reason: Forgotten Addendum
Icezer is online now   Reply With Quote
Old 01-25-2020   #7
Lamibe
Default

Seems this have a link with character hybrid. For some people it work well but some will not. Seems synch failure happens when moving, when standing nothing wrong happens. The fact about added character is that add character will break it which is not a big surprise : Did it and it gift only Blaze(the first added character) until I closed the server...
Lamibe is offline   Reply With Quote
Old 08-03-2020   #8
SonicX8000
Graphic & Sprite Modder.
Judge
 
SonicX8000's Avatar
Default

Just recently used this for a netgame. The resync issue occurs whenever a new player joins the game if they move unless maybe it lands on the same character for both the host & joiner, though this is only a guess. Say you see the new player appear as Knuckles due to the dice roll, however on their side they're a different character, let's just say Metal. If at this point they move or do anything... resyncs will occur and then they will get kicked out.

According to a user that I was talking to during the netgame... I had some custom characters loaded and on my screen he was Whirl but on his side he was Tails and he said it kept switching between the two as he moved around and then got sync failed & kicked.

Here's what occurs on my screen as well as what occurs on his screen in these gifs below. Note that these attempts were different from each other & Diceroll was the only addon added during these attempts.

Spoiler:

This is my screen. In this gif... when the user joined... he was Tails on my end but on his end he was Fang. If you look closely... you can see for one frame that his life icon & character changes to Amy before going back to Tails and then for one other frame he changes to Fang before going back to Tails. He then sync fails.

Spoiler:

This is on his side. In this gif... he resyncs while cycling between Sonic & Fang. Shortly after that he sync fails. He also told me that after he was kicked out due to the sync fail, he got a sigsev.

Hope this helps with the narrowing down the issue. As for the other bug related to diceroll picking custom characters... I had about 5+ custom characters added and diceroll was able to pick those characters without any issue, just have to hope that you get lucky with the selection.
__________________
Currently thinking of something to put here.

Last edited by SonicX8000; 08-03-2020 at 04:47 AM.
SonicX8000 is offline   Reply With Quote
Old 08-03-2020   #9
toaster
トースタちゃん
 
toaster's Avatar
Default

Thanks for the detailed bug report; this is way more of a lead than "oh no sync fail", and with any luck I'll have a fix soonish.
__________________
Quote:
<fickle> giant robo-hood that rips the map apart with her bare hands
toaster is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:09 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.