Raised This Month: $51 Target: $400
 12% 

[TF2] Roll The Dice Revamped (RTD) (v2.5.4, 2 Mar 2024)


Post New Thread Reply   
 
Thread Tools Display Modes
WintersSummer
New Member
Join Date: Aug 2022
Old 08-21-2022 , 16:35   Re: [TF2] Roll The Dice Revamped (RTD) (v2.3.3, 8 May 2021)
Reply With Quote #271

Quote:
Originally Posted by Phil25 View Post
[TF2] Roll The Dice Revamped v2.3.3
Rewrite of pheadxdll's Roll The Dice. Kudos to him for a great idea.


Description:
Roll The Dice mod for Team Fortress 2. It allows players to "roll the dice" for one of 74 random effects, some good, some bad. The effect will be applied for its custom time to the player and removed afterwards.
This plugin comes with many customization options (see "ConVars" or "Customizing Perks") and developer tools (see "For developers").
Roll The Dice (Revamped) is a rewrite of pheadxdll's Roll The Dice with numerous features added, most notable of which are listed here:
  • Requires SourceMod 1.10 or higher.
  • 39 new perks added, making up a total of 74 perks.
  • (for devs) An easy way of adding completely custom perks.
  • Fixed some overpowered/broken effects.
  • Highly customizable config, with different settings for nearly each effect.
  • Added sm_rtd command for rolling, bindable for players.
  • Added sm_removertd command to force remove perks from anyone.
  • Improved sm_forcertd to include custom time.
  • HUD-based perk timer display, with ConVar-adjustable position.
  • Limiting any perk to any class(es).
  • Setting custom initiation sound to any perk.
  • Setting custom time to any perk.
  • Possibility to interchange perks' call functions.
  • Built-in perk search-up, with custom output format option.
  • Improved perk addressing, with support for adding custom target strings.
  • The original version's Legacy mode can be limited to a number of players.
  • Setting how many times a perk is not allowed to repeat per player/globally.
  • Improved the rolling algorithm.
  • (for devs) More advanced and fixed include file.
  • (for devs) Written in the new syntax.
  • More flexible way of disabling perks.
  • Other plugins can add their own perks and handle their effect themselves.
  • Other plugins can override an effect of any perk.
  • Updater support.

Perk List
Commands
ConVars
Customizing Perks
‣ For developers:

Read me if updating from before version 2.0.0

Installation:
  1. Install TF2Attributes.
  2. Download rtd-X.X.X.zip and unload the contents to the tf/addons/sourcemod/ folder, preserving the directory structure.
  3. Now, either restart the server or type "sm plugins reload rtd" in the console.
  4. Run sm_reload_translations when
    • installing for the first time or
    • updating with different translation files.
  5. OPTIONAL: Install Updater to keep this plugin automatically up to date.
    • New perks will be added automatically,
    • New features will be added automatically,
    • All your custom configs will be preserved.



So ive everything i could into the server files, the only thing it would let me install is the .sh files in the script folders, im guessing those are the only files that are preventing me from actually installing the mod in the server? Im new to source magic but those are what im guessing are preventing me from getting it running on the server.
WintersSummer is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 12-09-2022 , 19:26   Re: [TF2] Roll The Dice Revamped (RTD) (v2.3.3, 8 May 2021)
Reply With Quote #272

Phil25... Can we get an update to this awesome plugin?

The recent TF2 update deprecated the property labeled 'm_iPlayerIndex" and replaced it with "m_hPlayer". As a result, it's throwing a property not found error m_iPlayerIndex within the stocks include file.

From Reddit after the update:
PHP Code:
    All weapon entity classes now have a m_nCustomViewmodelModelIndex networked property.

        
It appears that this is a direct replacement for the existing m_nViewmodelIndex
If 
you plan on creating custom weapons in VScriptyou will still need to spawn in a wearable 
viewmodel 
and attach it to the hands.

    
All player entity classes now have m_bForceLocalPlayerDraw and m_szScriptOverlayMaterial
 networked properties
.

The CTEPlayerAnimEvent tempent now has an m_hPlayer property instead
 of an m_iPlayerIndex
.

        
This also applies to CTFRagdoll.

    
The gamerules entity now has m_nForceUpgrades (forces MvM mode) and 
_nForceEscortPushLogic (payload).

    
CTFPlayerShared has replaced the m_iDisguiseTargetIndex property 
(identifying the disguise target with a player indexwith the m_hDisguiseTarget property 
(identifying with an entity handle instead — this performs additional validations that the 
player is the one that was initially assigned
instead of one that may or may not exist 
at the same index in the future
).

    
A SavedConvar usermessage was added
PC Gamer is offline
Phil25
AlliedModders Donor
Join Date: Feb 2015
Old 12-09-2022 , 20:26   Re: [TF2] Roll The Dice Revamped (RTD) (v2.3.3, 8 May 2021)
Reply With Quote #273

Quote:
Originally Posted by PC Gamer View Post
Phil25... Can we get an update to this awesome plugin?

The recent TF2 update deprecated the property labeled 'm_iPlayerIndex" and replaced it with "m_hPlayer". As a result, it's throwing a property not found error m_iPlayerIndex within the stocks include file.

From Reddit after the update:
~snip~
Hey, thanks for the report. Unfortunately, it seems like the issue runs a bit deeper than just the property name. For the time being, I recommend disabling the perks that use it: Frozen and Mercs Die Twice.

My Source investigative knowledge has faded quite a bit now but I'll try to post updates to this PR: https://github.com/Phil25/RTD/pull/52
Phil25 is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 12-09-2022 , 22:56   Re: [TF2] Roll The Dice Revamped (RTD) (v2.3.3, 8 May 2021)
Reply With Quote #274

For other plugins like the '[TF2] Special Ragdolls' plugin by Nanochip I was able to change the ragdoll code from: 'SetEntProp(ragdoll, Prop_Send, "m_iPlayerIndex", client);' to 'SetEntPropEnt(ragdoll, Prop_Send, "m_hPlayer", client);' and it worked. I tried that with your plugin but learned it would take a bit more effort to bring it up to the SM 1.11 standard.

I'm hoping you'll take the time to apply your magic to this very popular plugin.
PC Gamer is offline
Phil25
AlliedModders Donor
Join Date: Feb 2015
Old 12-10-2022 , 08:47   Re: [TF2] Roll The Dice Revamped (RTD) (v2.3.4, 8 May 2021)
Reply With Quote #275

Version 2.3.4 released

[ Download ZIP ] [ Changelog ]
  • Recompiled in SourceMod compiler 1.11.
  • Thanks Batfoxkid for fixing RTD to work with Dec 2022 update.
  • Fixed compilation error and warnings for SourceMod 1.11.

Rant:

Read me if updating from before version 2.0.0
For bug reports and feature requests, use GitHub's Issue Tracker.
For general discussion or questions, ask away here!
Phil25 is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 12-10-2022 , 19:32   Re: [TF2] Roll The Dice Revamped (RTD) (v2.3.4, 8 May 2021)
Reply With Quote #276

Thanks for the update! Unfortunately getting this error on map change on my Windows dedicated server:

PHP Code:
L 12/11/2022 03:17:25: [SMException reportedNot enough space on the stack
L 12
/11/2022 03:17:25: [SMBlamingrtd.smx
L 12
/11/2022 03:17:25: [SMCall stack trace:
L 12/11/2022 03:17:25: [SM]   [1Line 1631i:\RTD\scripting\rtd.sp::PerkList.Get
L 12
/11/2022 03:17:25: [SM]   [2Line 31rtd\classes\containers.sp::PerkList.Get
L 12
/11/2022 03:17:25: [SM]   [3Line 31rtd\classes\containers.sp::PerkList.Get
L 12
/11/2022 03:17:25: [SM]   [4Line 31rtd\classes\containers.sp::PerkList.Get
L 12
/11/2022 03:17:25: [SM]   [5Line 31rtd\classes\containers.sp::PerkList.Get
L 12
/11/2022 03:17:25: [SM]   [6Line 31rtd\classes\containers.sp::PerkList.Get
...
...
L 12/11/2022 03:21:51: [SM]   [839Line 31rtd\classes\containers.sp::PerkList.Get
L 12
/11/2022 03:21:51: [SM]   [840Line 31rtd\classes\containers.sp::PerkList.Get
L 12
/11/2022 03:21:51: [SM]   [841Line 31rtd\classes\containers.sp::PerkList.Get
L 12
/11/2022 03:21:51: [SM]   [842Line 963i:\RTD\scripting\rtd.sp::ParseDisabledPerks
L 12
/11/2022 03:21:51: [SM]   [843Line 688i:\RTD\scripting\rtd.sp::ConVarChange_Perks 

Last edited by PC Gamer; 12-11-2022 at 06:26.
PC Gamer is offline
Phil25
AlliedModders Donor
Join Date: Feb 2015
Old 12-11-2022 , 07:58   Re: [TF2] Roll The Dice Revamped (RTD) (v2.3.4, 8 May 2021)
Reply With Quote #277

Quote:
Originally Posted by PC Gamer View Post
Thanks for the update! Unfortunately getting this error on map change on my Windows dedicated server:
~snip~
Hey sorry about that. It should be working with the latest version.

Version 2.3.5 released

[ Download ZIP ] [ Changelog ]
  • Fixed infinite recursion in PerkList (thanks KoNLiG for the help).

Rant:

Read me if updating from before version 2.0.0
For bug reports and feature requests, use GitHub's Issue Tracker.
For general discussion or questions, ask away here!

Last edited by Phil25; 12-11-2022 at 08:20.
Phil25 is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 12-11-2022 , 08:29   Re: [TF2] Roll The Dice Revamped (RTD) (v2.3.5, 8 May 2021)
Reply With Quote #278

Version 2.3.5 tested and confirmed working. Thanks for the update!
PC Gamer is offline
Swooshy
New Member
Join Date: Dec 2022
Location: The Netherlands
Old 12-24-2022 , 09:21   Re: [TF2] Roll The Dice Revamped (RTD) (v2.3.5, 8 May 2021)
Reply With Quote #279

Hello!

I've been trying to setup RTD for my server.

All is fine until i want to enable rtd2 chat descriptions to be shown when rolled.

For some reason, this pops up in my console:

Dec 24 13:52:04: [SM] Changed cvar "sm_rtd2_show_description" to "1".
Dec 24 13:52:04: L 12/24/2022 - 13:52:04: [basecommands.smx] "Console<0><Console><Console>" changed cvar (cvar "sm_rtd2_show_description") (value "1")
Dec 24 13:52:04: L 12/24/2022 - 13:52:04: server_cvar: "sm_rtd2_show_description" "1"
Dec 24 13:52:04: 'mario_kart.cfg' not present; not executing.
Dec 24 13:52:04: L 12/24/2022 - 13:52:04: server_cvar: "sm_rtd2_show_description" "0"

I have added a line in server.cfg:

sm_cvar sm_rtd2_show_description 1

Am i doing something wrong that it somehow automatically puts it back to 0 again?

I have changed map and restarted my server several times + reloaded the plugin.

Hope to see a solution ^^

EDIT: found the problem: apparently there was a overriding cfg file called "plugin.rtd.cfg" in tf\cfg\sourcemod which was still set on 0

Fixed.

Last edited by Swooshy; 12-24-2022 at 11:33.
Swooshy is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 01-08-2023 , 16:33   Re: [TF2] Roll The Dice Revamped (RTD) (v2.3.5, 8 May 2021)
Reply With Quote #280

Plugin works well but I sometimes receive this error in log after updated to your latest version:
PHP Code:
L 01/08/2023 09:24:35SourceMod error session started
L 01
/08/2023 09:24:35Info (map "koth_harvest") (file "c:\TF2Server\tf\addons\sourcemod\logs\errors_20230108.log")
L 01/08/2023 09:24:35: [SMException reportedInvalid forward handle 0 (error 4)
L 01/08/2023 09:24:35: [SMBlamingrtd.smx
L 01
/08/2023 09:24:35: [SMCall stack trace:
L 01/08/2023 09:24:35: [SM]   [0Call_StartForward
L 01
/08/2023 09:24:35: [SM]   [1Line 222i:\RTD\scripting\rtd\classes\perk.sp::Perk.Call
L 01
/08/2023 09:24:35: [SM]   [2Line 34i:\RTD\scripting\rtd\manager.sp::ManagePerk
L 01
/08/2023 09:24:35: [SM]   [3Line 1166i:\RTD\scripting\rtd.sp::ApplyPerk
L 01
/08/2023 09:24:35: [SM]   [4Line 1066i:\RTD\scripting\rtd.sp::RollPerkForClient
L 01
/08/2023 09:24:35: [SM]   [5Line 640i:\RTD\scripting\rtd.sp::Listener_Say
L 01
/08/2023 10:01:45Error log file session closed
The error only occurs a few times each day and I don't know what triggers it.
PC Gamer is offline
Reply



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 -4. The time now is 10:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode