SRB2 Message Board

SRB2 Message Board (https://mb.srb2.org/index.php)
-   Lua (https://mb.srb2.org/forumdisplay.php?f=121)
-   -   Character Randomizer [v3] (https://mb.srb2.org/showthread.php?t=47399)

Nightwolf 05-08-2020 04:31 PM

Character Randomizer [v3]
 
7 Attachment(s)
Character Randomizer

This mod randomizes characters during gameplay. The script puts all currently loaded characters into a skin table and then picks a random skin from it for every player. The skins will stay only for a limited time, after which a new one is chosen.

Commands
Spoiler:

cr_enable <0/1> - enable or disable this mod. (default: 1)
cr_time <1-3600> - set the time between skin changes in seconds. (default: 30)*
cr_skin list - print all currently loaded skins.
cr_skin add <skin name> - add a skin to the skin table.
cr_skin remove <skin name> - remove a skin from the skin table.
cr_skin reload - add all available characters to the skin table.
cr_ultimate <0/1> - enable or disable the ultimate skin randomization. (default: 0)* EPILEPSY WARNING
cr_timeoffset <0-900> - change the maximum difference between the time defined in cr_time command and skin time a player will get in seconds. (default: 0 - disabled)*
cr_shownextskin <0/1> - show the next skin you will get (default: 0 - off)*
cr_showtimer <0/1> - enable or disable the skin time clock (default: 1)*
cr_sa2random <0/1> - enable or disable skin changing only after map change. (default: 0)

* this command won't do anything when cr_sa2random is enabled.


Changelog
Spoiler:

Version 3
-Added cr_shownextskin command (request by Magnemania)
-Added cr_showtimer command (request by Solid SOAP)
-Fixed cr_sa2random not working properly with newly joined non-host players (glitch found by Apollyon Woman)

Version 2
-Added cr_sa2random command (request by Icarus)
-Added cr_timeoffset command
-Fixed record attack glitches (glitches found by cookiefonster)
-Fixed splitscreen timer HUD bug (glitch found by Eis-Kold)
-Disabled in-game demos using MainCfg

Version 1
-Initial release



Credits
Spoiler:

- GreffMASTER - beta testing
- people from #srb2-memery - some important ideas
- Icarus - cr_sa2random command idea
- Magnemania - cr_shownextskin command idea
- Solid SOAP - cr_showtimer command idea
- cookiefonster, Apollyon Woman and Eis-Kold - finding bugs in this mod


Have fun!

Zipper 05-11-2020 03:45 PM

This immediately turns into a clown fiesta as soon as any custom characters are added, which I assume was the intention all along.

Welcome to Releases!

Icarus 05-11-2020 04:04 PM

This would make the playthrough more interesting

Solid SOAP 05-11-2020 09:32 PM

Omfg this sounds like a blast. Will download.

Was just fooling around with it. Fun! However only the vanilla characters seem to work atm, unless I just have bad luck. Do I need to put them in myself via commands?

Icarus 05-11-2020 09:50 PM

By the way is there a way to randomize character per levels a la SA2 randomized? If no it's not a big problem, I would still play with it for fun.

Nightwolf 05-11-2020 10:34 PM

Quote:

Originally Posted by Solid SOAP (Post 822828)
Omfg this sounds like a blast. Will download.

Was just fooling around with it. Fun! However only the vanilla characters seem to work atm, unless I just have bad luck. Do I need to put them in myself via commands?


If you loaded custom character mods after this mod, you have to put "cr_skin reload" in the console to make them work.

---------- Post added at 12:34 AM ---------- Previous post was at 12:25 AM ----------

Quote:

Originally Posted by Icarus (Post 822830)
By the way is there a way to randomize character per levels a la SA2 randomized? If no it's not a big problem, I would still play with it for fun.


Currently it's not possible, but I may add this in a future version of this mod.

Eis-Kold 05-11-2020 11:56 PM

Small bug(?) report!

Currently, the mod functions awkwardly in split-screen. Both timers are on the top right part of the screen (overlapping each other), which normally isn't a problem - but if a player dies, that player's new timer will overlap the other, resulting in difficulty telling when the timers end. Technically isn't a bug if support was never intended, but is worth noting.

Magnemania 05-12-2020 12:25 AM

Turning on half the board's custom characters and setting the timer to 7 seconds has given me one of the most fun experiences I've had in a while.

Icarus 05-12-2020 06:30 AM

Quote:

Originally Posted by Nightwolf (Post 822836)
Currently it's not possible, but I may add this in a future version of this mod.

Thanks for your answer!

Turret 49 05-12-2020 10:25 AM

Quote:

Originally Posted by Icarus (Post 822830)
By the way is there a way to randomize character per levels a la SA2 randomized? If no it's not a big problem, I would still play with it for fun.

If you mean changing to a random character whenever you start a new map, toaster's "Character Diceroll" mod does that already, but this mod could still aim for that feature!

Gameobatts 05-12-2020 12:03 PM

Grabbing tons of characters from the MB and turning on "Identity Crisis Mode" is probably the best thing I've ever experienced.

PencilVoid 05-12-2020 12:26 PM

If only SRB2 had Kart's addon limit.

Magnemania 05-12-2020 02:14 PM

https://i.imgur.com/bAoi52x.gif

Tremendously fun.

Icarus 05-12-2020 02:43 PM

Quote:

Originally Posted by Turret 49 (Post 822905)
If you mean changing to a random character whenever you start a new map, toaster's "Character Diceroll" mod does that already, but this mod could still aim for that feature!

I suddenly feel stupid for forgetting that this LUA existed... Thanks for the reminder!

cookiefonster 05-12-2020 04:05 PM

This mod is a lot more fun than I expected! It kind of gives a similar vibe to Encore Mode in Sonic Mania, where all six playable characters are participating and taking turns except you don't get to decide who goes next.

One suggestion: I think the Fang and Metal Sonic bosses should always be gray clones in the mod, because there's a chance you could encounter regular Fang or Metal when playing as them and it would get confusing, and also make no sense.

I'd also love to see record attack fixed up a bit in this mod. Currently, with this mod and the Custom Gamedata SOC, record attack ghosts output texture errors to the top of the screen and show the wrong character, while record attack replays have the character remain the same color as whoever you started playing as.

Nightwolf 05-12-2020 09:35 PM

Version 2 of Character Randomizer has been released!
View the changelog for more information about the update.

Icarus 05-12-2020 09:48 PM

Quote:

Originally Posted by Nightwolf (Post 822989)
Version 2 of Character Randomizer has been released!
View the changelog for more information about the update.

Spoiler:
Version 2
-Added cr_sa2random command (request by Icarus)



Thank you a lot! I'll try this mod as soon as I have free access to my PC.

Magnemania 05-12-2020 09:49 PM

By chance, would it be possible to get a toggle that allows us to see the name of the next skin below the countdown? It would be nice to be able to plan around the incoming character.

Nightwolf 05-12-2020 10:06 PM

Quote:

Originally Posted by Magnemania (Post 822995)
By chance, would it be possible to get a toggle that allows us to see the name of the next skin below the countdown? It would be nice to be able to plan around the incoming character.


Yes, it is possible, but I will have to change how the skins are picked. Currently they are picked in real time, so the script doesn't have any information about the next skin.

Solid SOAP 05-12-2020 10:51 PM

Is there any way to obscure the timer? Or even randomize that in and of itself? I think it not existing would actually had a bit of fun to the mod.

On a semi unrelated note, a fun way to tinker with this may be to make the random character loop Modern/Neo Sonic and the Werehog. Kinda like a Sonic Unleashed mode but actually fun.

------

Might be a dumb question, but what ARE the names of each character skin???

I tried to remove Sonic, for example, and typed in "cr_skin remove <sonic>" and it did nothing.


All times are GMT. The time now is 07:55 PM.

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