SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Kart Releases & Mods > Kart Miscellaneous

Reply
 
Thread Tools
[V8] HOSTMOD - Utilities for dedicated servers (+ SPB Attack) Details »»
[V8] HOSTMOD - Utilities for dedicated servers (+ SPB Attack)
Version: 6, by TyroneSama (now "Tyron") TyroneSama is offline
Developer Last Online: Jul 2020

Category: Version: SRB2 Kart Rating: (9 votes - 4.11 average)
Released: 06-24-2019 Last Update: 03-26-2020 Installs: 6
Scripts Re-Useable Content

You should probably read this.

Utilities for dedicated servers. Display information to players, improve stability, script random or scheduled events, allow command voting, check for custom button bindings, more visible admin messages...a bunch of stuff.

All features are off by default. You control what the script does.

Documentation moved to hyuu.cc/hostmod since everything about this forum bothers me. Check there for full features and configuration.

(SPB Attack is no longer included in HOSTMOD. It's being rewritten at the moment, but a legacy standalone download is provided for those interested. Relevant cvars are "spbatk", "spb_timeout", "spb_waitmsg", and "spb_plugmsg".)

Download Now

File Type: pk3 KL_SPBAttack_Legacy.pk3 (1.21 MB, 79 views)
File Type: pk3 KL_HOSTMOD_V8.pk3 (60.0 KB, 50 views)

Screenshots

Click image for larger version

Name:	mb_please_take_my_image.png
Views:	536
Size:	254.2 KB
ID:	20361  

Supporters / CoAuthors

Show Your Support

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

Comments
Old 06-25-2019   #2
D00D64
Probably Responsible
Moderator
 
D00D64's Avatar
Default

Although I have not been able to fully test this myself, I feel confident in letting this into releases after seeing your server at work. My only question; is this Kart only? I put it in Kart releases for now, but if it is compatable with Vanilla SRB2, I'd like to put it int hat section instead. It seems only Encore Mode options are Kart specific?
D00D64 is offline   Reply With Quote
Old 06-26-2019   #3
TyroneSama
now "Tyron"
Default

I marked it as Kart because I can't guarantee it wouldn't blow up in vanilla SRB2, but as long as p.cmd.latency is exposed and exit conditions work the same, it could potentially work there as well? Encore mode stuff shouldn't even visibly error, since it just attempts to set the cvar as server. Might test at a later date, though it's not a priority for me right now. If anyone else feels like giving it a run, report back?

Update: IntermissionThinkers make most of these scripts vanilla-incompatible, and p.cmd.latency isn't exposed in vanilla SRB2. Unlucky.

Last edited by TyroneSama; 06-26-2019 at 12:33 AM.
TyroneSama is offline   Reply With Quote
Old 06-26-2019   #4
ThatAzazelFire
The Ghost
 
ThatAzazelFire's Avatar
Default

seems really neat. i like it. good job.
__________________
Just the funny Plant Person

My Twitter Account
ThatAzazelFire is offline   Reply With Quote
Old 07-01-2019   #5
KashiKakes
Default

Thanks so much for this, these commands are a godsend!
KashiKakes is offline   Reply With Quote
Old 08-03-2019   #6
TyroneSama
now "Tyron"
Default

V2 is out, adds some configuration options for the joinbug handler. GANBARE, RACE DX
TyroneSama is offline   Reply With Quote
Old 01-12-2020   #7
TyroneSama
now "Tyron"
Default

V3 is out. Details in OP. Enjoy frontrunning hell.
TyroneSama is offline   Reply With Quote
Old 01-21-2020   #8
TyroneSama
now "Tyron"
Default

V4 is out, includes a few minor fixes. The nature of Joinguard makes it impossible to preemptively prevent all abuse, but this should significantly mitigate it, so normal play can continue without the host intervening.

(I really should have seen this coming.)
TyroneSama is offline   Reply With Quote
Old 02-07-2020   #9
TyroneSama
now "Tyron"
Default

V5 is out, includes two features intended for Race+Battle servers and some SPB Attack changes:

- You can now cancel SPB Attack and return to freeplay by holding Brake during the countdown.
- Distance tracking now takes the SPB's physical extent into account.
- Various HUD alignment fixes.
- Closest Call "blue star" threshold made more lenient—it was previously impossible on a large number of courses.
- Peril "blue star" and "red star" thresholds made significantly more lenient—they were previously impossible almost everywhere and unnecessarily annoying, respectively.
TyroneSama is offline   Reply With Quote
Old 02-24-2020   #10
Cramoisi
Default

Hello, i am currently mad at this mod, because the cancel method isn't working anymore, In fact, the message for how to do it dosen't show up anymore, either.
Cramoisi is offline   Reply With Quote
Old 03-04-2020   #11
TyroneSama
now "Tyron"
Default

Quote:
Originally Posted by Cramoisi View Post
Hello, i am currently mad at this mod, because the cancel method isn't working anymore, In fact, the message for how to do it dosen't show up anymore, either.
Cannot reproduce. Check which version you're running?
TyroneSama is offline   Reply With Quote
Old 03-26-2020   #12
TyroneSama
now "Tyron"
Default

V6 released. Includes MOTD Banner, Alternate Powerup Warnings and Restat. Also includes SPB Attack bug fixes and Expert Mode nerfs on high lapcounts.



Restat is probably the weirdest addition here—inspired by Lucario's Engine Swap, but designed according to my personal neuroses, it's a bit of a stretch to call it "QoL for dedicated servers". However, I see this hosted enough on highly modded servers (most of which use HOSTMOD) that I figured my own implementation could give them back a file slot—Lucario's implementation is marked as non-reusable and forbidden in repacks, plus repacks suck anyway. I also just really like the concept and wanted to try my own take.

There's enough of a difference between the two that neither replaces the other; Engine Swap has extremely in-depth help text, a different stat input format, and allows hosts to unlock the stat range to set "impossible" stats. Restat doesn't have any of these things—it's very lean, so if you're already comfortable with Engine Swap you can leave it off and let Engine Swap do its thing. Its primary gains are full replay support and slightly better conveyance for stat changes, since by default the server is notified when you switch stats—this isn't a perfect solution, but should marginally reduce the number of times you get power-bombed by a 9/9 Tails.

This is a bunch of new stuff, and while it's been tested a lot, it's only been tested inhouse. Let me know if you run into issues, and thanks for reading.

Last edited by TyroneSama; 03-26-2020 at 08:58 AM.
TyroneSama is offline   Reply With Quote
Old 03-26-2020   #13
ThatAzazelFire
The Ghost
 
ThatAzazelFire's Avatar
Default

Seems Pretty interesting and well made

maybe I'll use it when i host a server again.
__________________
Just the funny Plant Person

My Twitter Account
ThatAzazelFire is offline   Reply With Quote
Old 03-26-2020   #14
Callmore
Default

When loading HOSTMOD from either the main menu (through the console) or through the addons menu, the game will throw a warning that the file has errors. After checking console it shows a warning saying:
Code:
WARNING: ./DOWNLOAD/KL_HOSTMOD_V6.pk3|lua/neomotd.lua:74: attempt to index global 'server' (a nil value)
Starting a server after this error occurs seems to run HOSTMOD like normal but the MOTD will not display (even after turning on hostmod_motddebug and changing map)
Here the window on the left is the server, while the window on the right is connected though localhost. The MOTD does not display on the server but is displayed on the client.

In this image, i have loaded HOSTMOD while inside the server instead of on the main menu, the MOTD displays like normal.
Callmore is offline   Reply With Quote
Old 03-26-2020   #15
TyroneSama
now "Tyron"
Default

Thanks for this, didn't test under those conditions because I'm always hosting dedicated. Uploaded a quick hotfix.

E: "KL_HOSTMOD_V6-dumbidiotfix.pk3" contained an extremely unfinished feature that wasn't intended to be in release—this is what happens when you update right before bed. My apologies to Super and anyone else who had it misfire on them—that will be coming back later, when I've actually finished programming more than a quarter of it. "KL_HOSTMOD_V6-superiscoolactually.pk3" is the fixed version, linked above.

Last edited by TyroneSama; 03-27-2020 at 02:39 AM.
TyroneSama is offline   Reply With Quote
Old 03-27-2020   #16
Callmore
Default

HOSTMOD seems to conflict with elimination. When either is loaded after the other the game crashes with this error:
Attached Thumbnails
Click image for larger version

Name:	Elim+HOSTMOD.png
Views:	2604
Size:	7.0 KB
ID:	28881  
Callmore is offline   Reply With Quote
Old 04-03-2020   #17
TyroneSama
now "Tyron"
Default

This is a base game bug. It could be temporarily patched over if either variable were renamed, but it's not an actual fix, and I'm sort of conceptually against playing wack-a-mole with this type of thing—another conflict will eventually show up regardless, and it puts me on the hook for resolving every conflict of this nature with every mod that is ever created.

I think there's a workaround I can employ without breaking configs, but man is it ugly. I'll decide what to do about this by next release.

Last edited by TyroneSama; 04-03-2020 at 03:08 PM.
TyroneSama is offline   Reply With Quote
Old 04-27-2020   #18
GoldenGamerFox7272
test
 
GoldenGamerFox7272's Avatar
Default

Well this glitch isnt something you would see everyday (btw im using V5)
Attached Thumbnails
Click image for larger version

Name:	kart0000.gif
Views:	57
Size:	2.86 MB
ID:	30205  
__________________
Hi, if your interested, you can check out my YT channel: https://www.youtube.com/channel/UClC...fJXzIsw/videos

Also, my space bar can glitch an d can add 2 space bars or put spac e bars between a word
GoldenGamerFox7272 is offline   Reply With Quote
Old 04-29-2020   #19
Helen Keller
Default

Dumb question, but what are \123 format color codes?
Helen Keller is offline   Reply With Quote
Old 05-02-2020   #20
TyroneSama
now "Tyron"
Default

Quote:
Originally Posted by Helen Keller View Post
Dumb question, but what are \123 format color codes?
https://wiki.srb2.org/wiki/Lua#Text_colors

Quote:
Originally Posted by GoldenGamerFox7272 View Post
Well this glitch isnt something you would see everyday (btw im using V5)
I don't accept bug reports for older versions. I also don't care about SPB Attack compatibility with other gameplay-altering mods—this is covered in SPB Attack's configuration guide already. Use hostmod_spba Off.

Last edited by TyroneSama; 05-02-2020 at 10:43 PM.
TyroneSama 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 Off
[IMG] code is On
HTML code is Off

Forum Jump


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


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