SRB2 Message Board  

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

Reply
 
Thread Tools
MMT (Many Minor Tweaks) -- v4.1 Details »»
MMT (Many Minor Tweaks) -- v4.1
Version: 4.1, by birbhorse (local eevee petter) birbhorse is offline
Developer Last Online: Apr 2020

Version: SRB2 Rating: (4 votes - 4.00 average)
Released: 12-25-2019 Last Update: 02-17-2020 Installs: 5
Scripts Re-Useable Content

Welcome to...
MMT (Many Minor Tweaks)!

This mod includes a whole bunch of minor tweaks that can be toggled via command line! Things including tailsball (which replaces tails' descent using spin to curl him up into a ball), superkey (which lets you change what key is used to turn super), and more! It also includes my previous lua script, Cancelable Super Form, now with the ability to change which key is used!

You can use "mmthelp" in-game to view what commands are available, and a brief description of what they do.
Do note that the list changes if you enter multiplayer, due to there being commands that work only in multiplayer, and ones that only work in singleplayer!

List of commands, taken from mmthelp:
Spoiler:

-- The Good Stuff --
  • mmthelp <num>: Lists all the available commands, by using the second argument as a page number.
  • superkey <value/off>: Changes key used to transform into character's super form. If disabled, all code relating to this is disabled.
    Options: off, weaponnext, weaponprev, attack/ringtoss, use/spin, camleft, camright, tossflag, firenormal/ringtossnormal, custom1, custom2, custom3
  • cancelsuper <value/off> : When the key set is pressed, the player is taken out of their super form.
    Options: off, weaponnext, weaponprev, attack/ringtoss, use/spin, camleft, camright, tossflag, firenormal/ringtossnormal, custom1, custom2, custom3
  • skincolor: <value/default>: Changes the player's skin color, used for single player modes.
  • supermusic <on/off>: Toggles the super form's music.
  • dropdash <on/off>: Enables the Drop Dash for Sonic. Notice: Disables superhover when turned on.
-- The Minor Tweaks --
  • recurl <on/off>: Allows the player to curl up into a ball after using a spring, tornado, etc.
  • supertrail <on/off>: Leaves behind a more noticeable trail when the player is in their super form.
  • totalrings <on/off>: Displays total amount of rings in level in the scoreboard hud.
  • supershield <on/off>: Allows shields to be shown when the player is in their super form.
  • tokentorings <on/off>: If all chaos emeralds are collected, player is granted 50 rings instead of a continue.
  • preserveshield <on/off>: Preserves shield upon completion of level, allowing you to keep the shield in the next map load.
  • musicfade <on/off>: Fades music out when crossing the goalpost.
  • infinitelives <on/off>: Allows for infinite lives in singleplayer. (singleplayer only, duh)
  • scorecontinues <on/off>: When enabled, after reaching above 25,000 points in a level, the player is granted a continue. (singleplayer only)
-- Other Tweaks --
  • tailsball <jump/spin/bop/off>: Tails turns into a ball instead of descending when using the spin key in flight.
  • everysuper <on/off/disable>: Allows every character to go super. If set to off, only vanilla super characters can go super. If disabled, nobody can go super.
  • instantrespawn <on/off>: Respawns the player instantly when they die, 0 wait time. (Co-op/singleplayer only)
  • classicsuper <on/off>: Jumping will automatically turn you super when the player is elligble to do so.
  • classicshields <on/off>: Changes all SRB2 Monitors to their S3K equivalents.
  • classicspecialstage <on/off>: Replaces emerald tokens with the ability to enter the special stage if the player clears w/ 50 rings.
  • superhover <on/off>: Toggles whether or not Super Sonic can use the hover ability.
-- Netplay, Admin, Misc. Stuff --
  • mmtdebugger <on/off>: enables various debugging tools, used for both MMT and for other developers to use.
    Extra options: enablehud, disablehud; enableprint, disableprint
    If using the HUD functionality, pressing Custom 2 will toggle debug information regarding player stuff, such as player.mo.state and player.pflags values.
  • banskin: <value>: Adds skin to a banlist, prohibiting players from selecting them.
  • unbanskin: <value/all>: removes skin from ban list, allowing usage of them again. Specify "all" to remove all from the banlist.
  • toggleafk <on/off>/<15-90/disabletimer>: sets the player into an AFK mode; alternate argument is used as an automatic timer to be put AFK.
    Options: options: on, off, disabletimer, exitdisable, exitenable, number between 10 and 90
  • charability <CA1> <CA2>: Changes the player's main ability, and secondary ability. (admins only)
    Options: fly, glide, homing, swim, doublejump, float, slowfall, telekinesis, fallswitch, jumpboost, airdrill, jumpthok, bounce, twinspin
    Secondary options: spindash, gunslinger, melee
  • mmtdefaults: changes everything related to MMT back to default variables.
  • orderpizza+: -size <value> -address <value> -toppings <value>: order a pizza!
-- ???????? --
  • orderpizza: -size <value> -address <value> -toppings <value>: order an ordinary pizza!

There will be many more features in the future, my current plans are listed out in the lua script itself if you're interested.

Don't be afraid to bug report in the replies, even if you find like, a hundred of them! Even with real bugs--actually don't, that's off-topic unfortunately. If you do bug report, please provide what other addons you had on, if you were in multiplayer, and provide each step you did so I can diagnose the problem easier. Saying "x does not work" and leaving it at that is not helpful.
I do also accept suggestions, however this does not mean I will include them for any number of reasons.

CHANGELOG:
Spoiler:

v4.1
  • Added 2.2.2 features; mainly R_GetColorByName and R_GetNameByColor. BE SURE TO UPDATE TO SRB2 v2.2.2!
  • Added pw_justlaunched, another 2.2.2 feature, to mmtdebugger's many list of variables.
  • totalrings will not show up in stages with 0 rings.
  • Removed notice when enabling superhover; this was a leftover from when older code was ued and it bugged things out.
  • Hopefully fixed bug where dropdash caused resynch issues.
v4.0
  • New functions that v2.2.1 introduced has been added in. If you haven't updated SRB2 to v2.2.1, be sure to do that, this script will NOT function in v2.2.0!
  • New tweak: supershield! This allows the shield to be rendered when the player goes super; I always found it off that the shield didn't render while super, so I made this.
  • The ordinary orderpizza command now responds to the size value. The bigger the pizza, the faster it is, you best watch out.
  • Gave Tailsball a unique sound effect.
  • Finally added closed captions to the sound effects.
  • Buffed dropdash's speed again. To counter-act this a bit, the momentum speed bonus for the drop dash has been nerfed.
  • New function used for stuff like skincolor and the button commands for superkey/cancelsuper; the code has been massively reduced, and will now accept any of the constant values SRB2 has; meaning if an SRB2 update adds any new skincolors or button commands, they'll be automatically accepted by this script.
  • superkey/cancelsuper works a bit better now, a new exception has been added to ensure you weren't holding the spin key while on the ground.
  • Removed debugging text that *might* have appeared when using super trail.
  • Huge rewrite to handling how multiplayer/singleplayer stuff is handled, it's now much more efficient in how things are handled and detected.
  • Fixed superhover not being disabled when turning it off in multiplayer.
  • Fixed charability not changing the names provided on command input if you changed skin mid-level.
  • Fixed recurl being able to be used on special stages; didn't cause any conflicts of note, but it did play the spin sfx when leaving a special stage while holding spin down.
  • Fixed scorecontinues erroring out when set to on in a special stage.
  • Fixed Metal Sonic being able to use recurl after using their float ability.
  • Fixed orderpizza being able to kill the player multiple times.
v3.1
  • Made compatible with SRB2 v2.2.1. In the future, this will no longer work with v2.2.0, so be sure to update when it's time!
    The reason for this is that the script will use the new "PlayerThink" feature. Why? Because yes.
  • Added special exception for tailsball and recurl to not work on the Eggpack character.
  • Fixed mmtdefaults not working on the latest two tweaks added recently.
  • Fixed tailsball being used on player bots (e.g. sonic & tails mode in singleplayer)
  • Fixed scorecontinues working in special stages, when that's not nessecary.
  • Finally fixed supertrail, now tails, metal sonic, and any other character with a follow item will now have the correct amount of ghosting effects in place.
  • Made recurl only work on characters that can spindash.
  • Of note: This is compatible with the previous verison of mmtsettings, there's no need to update it.
Unfortunately due to how lua scripting is set up, any changes made via command line can not be saved at the moment. If you wish to make the changes permanent, rename the file and make your changes to the variables found at the top of the document!

Known problems/bugs:
Spoiler:
  • Players in AFK mode can be carried around.
If you're a mod maker and you wish to detect if this mod is loaded...
You can check for the presence and value of "mmtVersion", for this is a value that's been put in _G. Do something like this:
Spoiler:
Code:
if mmtVersion
--your code here, ofc you can optionally do "else" for your own code
end

What is "mmt_settings.lua"?
Spoiler:
This is something that allows you to change MMT's settings before it's loaded! Due to constraints given to SRB2's Lua Scripting, it is not possible to save changes made to custom console variables.

However, using this script, it is possible to change the settings upon loading MMT! Just download the file, plop it into your text editor of choice, and read the instructions at the top. Make sure to keep it up to date with the latest version of MMT, otherwise it won't work!

Do note that you do not need to download this for MMT to function, it's just a supplemental file used for ease of life!
WARNING
This addon has not been tested when hosting a game via the in-game multiplayer menu. Previous versions have experienced errant issues, such as tailsball causing the host player to react when other players use it.
It is highly recommended that you a dedicated server by opening the program via -dedicated, so that scripting conflicts like this do not occur!

Download Now

File Type: pk3 VL_ManyMinorTweaks-v4.1.pk3 (149.3 KB, 444 views)
File Type: lua mmt_settings - v4.0.lua (6.7 KB, 204 views)

Screenshots

Click image for larger version

Name:	tailsball.gif
Views:	664
Size:	6.13 MB
ID:	24293   Click image for larger version

Name:	everysuper and cancelsuper.gif
Views:	541
Size:	7.25 MB
ID:	24294   Click image for larger version

Name:	preserveshield.gif
Views:	526
Size:	2.06 MB
ID:	24295   Click image for larger version

Name:	tokentorings.gif
Views:	439
Size:	1.70 MB
ID:	24829   Click image for larger version

Name:	tailsball bop.gif
Views:	362
Size:	6.55 MB
ID:	25095  

Click image for larger version

Name:	banskin.png
Views:	568
Size:	105.5 KB
ID:	25097   Click image for larger version

Name:	toggleafk.jpg
Views:	439
Size:	122.0 KB
ID:	25255   Click image for larger version

Name:	totalrings.png
Views:	408
Size:	651.7 KB
ID:	25682   Click image for larger version

Name:	supertrail.jpg
Views:	366
Size:	142.5 KB
ID:	26016   Click image for larger version

Name:	recurl.gif
Views:	274
Size:	4.91 MB
ID:	26124  

Click image for larger version

Name:	srb20093.gif
Views:	290
Size:	4.13 MB
ID:	26253  

Show Your Support

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

Comments
Old 02-10-2020   #122
birbhorse
local eevee petter
 
birbhorse's Avatar
Default

I've also updated this mod, woo!
This is mainly just a bugfix update, as such your previous version of mmt_settings will work just fine with this, no need to update that.

Most notable fix is that supertrail FINALLY works properly with characters that have a followitem (e.g. tails or metal sonic). Also tailsball no longer works on player bots, meaning Sonic & Tails in singleplayer can work once more.

Do note: The next version of MMT will only work in v2.2.1 of SRB2, whenever that comes out! This update was meant to coincide with it, buuuut I don't know when that's coming out now, so oh well!
__________________
--------------
raboot.jpeg
--------------
birbhorse is offline   Reply With Quote
Old 02-11-2020   #123
Frostiikin
Meme Queen Supreme
 
Frostiikin's Avatar
Default

As it is right now, the drop dash is entirely useless. It's no faster then your top running speed (or just slightly faster) so you're better off either just running or thokking... Since it's harder to use then the thok, i reccomend making it so that the dropdash has more power then the thok, to make it actually useful.
Frostiikin is offline   Reply With Quote
Old 02-14-2020   #124
carlrev
The living revolution
 
carlrev's Avatar
Default

There is an arithmetic error from the fix about not earning a free continue in NiGHTS stages.
__________________
Greetings from 2391!
carlrev is offline   Reply With Quote
Old 02-15-2020   #125
Wosh
Idiot
 
Wosh's Avatar
Default

This may be a bug, I'm not sure. When using recurl after hovering with Metal Sonic, he can't attack enemies or bosses and just takes a hit even while being in ball form. He also can't break monitors by doing this. I'm not sure if it's intentional but it's something I noticed. Knuckles can recurl after his glide to attack enemies and it works so I thought something might be up.


It works with Metal Sonic when recurling after a spring however and hits enemies just fine, it's only when it's used after hovering.



I tried this out on a fresh install of the game with MMT as the only addon loaded to make sure there was nothing affecting it and it yielded the same result.


Note: I tested this with the current version and the one just before it and it's the same.

Last edited by Wosh; 02-15-2020 at 09:19 AM.
Wosh is offline   Reply With Quote
Old 02-15-2020   #126
birbhorse
local eevee petter
 
birbhorse's Avatar
Default

Alright, just to set this all straight, the next update will be released when SRB2 v2.2.1 releases! With that...

All the problems below should be addressed in one way or another in the next update.

Quote:
Originally Posted by Frostiikin View Post
As it is right now, the drop dash is entirely useless ... Since it's harder to use then the thok, i reccomend making it so that the dropdash has more power then the thok, to make it actually useful.
Quote:
Originally Posted by carlrev View Post
There is an arithmetic error from the fix about not earning a free continue in NiGHTS stages.
Quote:
Originally Posted by Wosh View Post
When using recurl after hovering with Metal Sonic, he can't attack enemies or bosses and just takes a hit even while being in ball form.
__________________
--------------
raboot.jpeg
--------------
birbhorse is offline   Reply With Quote
Old 02-17-2020   #127
carlrev
The living revolution
 
carlrev's Avatar
Default

How did you know that v2.2.1 was coming out soon?
__________________
Greetings from 2391!
carlrev is offline   Reply With Quote
Old 02-17-2020   #128
birbhorse
local eevee petter
 
birbhorse's Avatar
Default

oh whoops i was asleep for when 2.2.1 released

But I'm awake now, so new update time! What was initially meant to be v3.1.1 turned into v4.0 because I added and fixed so much stuff. A new tweak is supershield, something that was surprisingly difficult to implement. All it does it create a fake shield object over the player for when they turn super/invincible, just becuz I always found it weird how that doesn't render over the player :p

Dropdash has been buffed once more, now being a tiiiny bit faster than thokking, orderpizza now responds to the size command (try xl for insta-death), tailsball has been given a unique sound effect, and a lot more, check the changelog for more info!
__________________
--------------
raboot.jpeg
--------------
birbhorse is offline   Reply With Quote
Old 02-19-2020   #129
carlrev
The living revolution
 
carlrev's Avatar
Default

Don't know if it's me, but there is an error when completing a level as any character in the Super form while you know that you have "superhover" disabled. It spawns another warning error.
__________________
Greetings from 2391!
carlrev is offline   Reply With Quote
Old 02-19-2020   #130
Zanda_Sama
Default

Drop Dash causes resynch issues :/
Zanda_Sama is offline   Reply With Quote
Old 02-23-2020   #131
birbhorse
local eevee petter
 
birbhorse's Avatar
Default

New update time, for SRB2 v2.2.2!
Not much changed here, but I did include two of the new features that v2.2.2 has, which...has gotta be more than a coincidence considering it's use case :p

Anyways, most important change is that I hopefully fixed the reported issue on drop dash causing resynch issues, have not been able to reproduce it myself tho.
__________________
--------------
raboot.jpeg
--------------

Last edited by birbhorse; 02-23-2020 at 12:37 AM.
birbhorse is offline   Reply With Quote
Old 02-23-2020   #132
Zanda_Sama
Default

I really like this mod, it is really good and has a bunch of stuff.
10/10
Thanks birb
Zanda_Sama is offline   Reply With Quote
Old 02-28-2020   #133
carlrev
The living revolution
 
carlrev's Avatar
Default

The scorecontinues command is still not fixed in 4.1. In fact, it results in the lack of earning a continue with score. With the command enabled, completing the level will display an error message and no continue is earned. Also (in present versions of this mod, not earlier ones), something conflicts with the flag "SF_SUPER". If you have it enabled for a character who originally couldn't go Super (like Tails, for example), it will no longer say "X can now become Super X" in the results screen, regardless if everysuper was enabled or not. I understand if you want to wait for another update of SRB2 (potentially v2.2.3) to fix these, but I'm just putting these out there to let you know.
__________________
Greetings from 2391!

Last edited by carlrev; 03-01-2020 at 06:23 AM.
carlrev is offline   Reply With Quote
Old 03-04-2020   #134
Zanda_Sama
Default

Suggestion: knuxball
Like tailsball, allows knuckles to recurl after a glide... even though this behavior is already possible by just using recurl after gliding.
Many people are unhappy with the crouch Knuckles does when gliding, and would prefer the Sonic Adventure 1 glide, where Knuckles goes into a ball when you stop gliding, there is no crouch, and you can re-glide after cancelling a glide as many times as you want to.
Frostkiin would especially like this addition.

It could maybe have multiple options like tailsball does.
limited for not being able to multiglide, manual to force the player to use a button. These are kinda lame options... uh... idk maybe something akin to tailsball options.

Last edited by Zanda_Sama; 03-04-2020 at 12:15 AM.
Zanda_Sama is offline   Reply With Quote
Old 03-07-2020   #135
SMSGARDIAN
The Super Mystic Guardian
 
SMSGARDIAN's Avatar
Default

Whenever someone joins my server, it keeps giving me an error, which also forces people to leave sometime. Why does this happen?
Attached Thumbnails
Click image for larger version

Name:	srb20073.jpg
Views:	44
Size:	148.0 KB
ID:	27753  
__________________
A person who tries to be cool all the time.
SMSGARDIAN is offline   Reply With Quote
Old 03-08-2020   #136
Professor Eevee
 
Professor Eevee's Avatar
Default

This is really an amazing mod that just tweaks stuff really nice
Professor Eevee is offline   Reply With Quote
Old 03-12-2020   #137
carlrev
The living revolution
 
carlrev's Avatar
Default

This script lags the game now (4.1).
__________________
Greetings from 2391!
carlrev is offline   Reply With Quote
Old 03-18-2020   #138
carlrev
The living revolution
 
carlrev's Avatar
Default

<toggleafk> is always on in multiplayer. It keeps saying to enter command <toggleafk off> to continue and it doesn't work (v4.1).
__________________
Greetings from 2391!
carlrev 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 01:47 PM.


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