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

[L4D2] RPG v3


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Skyy
AlliedModders Donor
Join Date: Jan 2010
Location: Toronto, Canada
Old 10-31-2016 , 17:39   [L4D2] RPG v3
Reply With Quote #1

Plugin Information (Must Read!!!)

This is not the version of RPG that I am currently developing. Many years ago, I developed a version of RPG for a community, and a few months a go, I rewrote that version from the ground up to correct a huge list of bugs. Unfortunately, this version of RPG requires the older ready up plugin, which I have also rewritten and included in this release. Ready Up Reloaded is not compatible with this version of RPG, please use the ready up version that is included. All source files are in the archive.

I have been asked to release this version publicly, as I still have not completed development of the new RPG. This version will be maintained until the new RPG is released.

Signatures are not up-to-date for Windows servers; I don't know how to find/update/etc. signatures. If you know how to do this, it would be appreciated. Otherwise, please use a Linux server!
EDIT: Working on integrating the changes via @Peace-Maker's post. Will respond to the thread and update this section when those changes have been added! Thanks for the signature update!


Installation

Installing this version of RPG has a pretty extensive installation.

Readyup Classic is required for this version of RPG.
Inside the archive is a folder named READYUP (Required, Old) which you'll need to open.
1. Place the contents of the configs folder in /sourcemod/configs/
2. Place the contents of the translations folder in /sourcemod/translations/
3. Place the plugin, readyup.smx in /sourcemod/plugins/

Now that Readyup is installed, you're ready to install RPG.
1. First and foremost, you must have access to a database server as RPG requires one. It simply won't function without it. It's up to you to make sure you have one and that it is operational. RPG will throw numerous errors if you don't have one & it isn't properly setup. If it does, you've done something wrong... Please do not make posts pasting the error spam! Send a DM.

2. Enter the following information into the databases.cfg located in /sourcemod/configs/
PHP Code:
"rum_rpg"
{
    
"driver"            "default"
    "host"                "127.0.0.1"
    "database"            "thedatabase"
    "user"                "your.db.username"
    "pass"                "your.db.password"
    "port"                "3306"

3. Place rum_rpg.txt in your sourcemod/gamedata/ folder.
4. Place rum_rpg.phrases in your sourcemod/translations/ folder.
5. In the archive, there's a folder /configs/readyup/rpg , place the RPG folder in your /sourcemod/configs/readyup folder. If the ready up, etc. folders do not exist, create them. RPG requires this.
6.Place rum_rpg.smx in your /sourcemod/plugins folder


Explanation of the RPG Configs

Now that you've extracted all your files and are ready to setup the actual plugin, you've probably noticed an overwhelming number of config files. So... so, what exactly do they do? Fortunately, these aren't the files I forgot to comment on!

All configs we're talking about are found in /configs/readyup/rpg

1. Config.cfg
This config houses all of the important variables for RPG, like the !rpg command, and other things like starting player stats, damage values, etc. you probably want to edit this.
2. Talentmenu.cfg
This config houses all of the talents available to both teams. It's extremely detailed, so you shouldn't have any issues following along. You can edit existing talents, delete them, create new ones, or just leave them.
3. rpg_events.cfg
This config houses all of the L4D2 events that are used by the plugin. If you need to add an event, this is where it goes.
4. store.cfg
This config is for the, well, store offerings. Depending on your server needs, you may want to edit this file; in the default version, store-purchased items can drop for anyone.
5. points.cfg
This config handles RPG's points module. Edit it as desired.
6. mainmenu.cfg
This config handles what players see when they type the !rpg command. You can modify this.


Other Information

I'll add additional information here, if/when needed. Anything that I may have forgotten.
Attached Files
File Type: smx readyup.smx (27.1 KB, 500 views)
File Type: smx rum_rpg.smx (124.1 KB, 547 views)
File Type: zip rpg302.zip (239.4 KB, 760 views)

Last edited by Skyy; 11-02-2016 at 00:55. Reason: updating :)
Skyy is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 10-31-2016 , 20:25   Re: [L4D2] RPG v3
Reply With Quote #2

Here's updated windows gamedata. Some of the functions used are virtual, so I've switched them to use offsets. You have to change the SDKFuncConfSource in the respective PrepSDKCall_SetFromConf calls from SDKConf_Signature to SDKConf_Virtual in your plugin.
Code:
"Games"
{
    "left4dead2"
    {
        "Offsets"
        {
            "oAbility"
            {
                "windows"    "928"
                "linux"        "948"
            }
            "SetClass"
            {
                "windows"    "580"
                "linux"   "582"
            }
            "RoundRespawn"
            {
                "windows"    "513"
                "linux"        "514"
            }
            /*
             *   CTerrorPlayer::OnRevived(void) - used by the game to revive Survivors
             */
            "CTerrorPlayer_OnRevived"
            {
                "windows" "582"
                "linux"        "584"
            }
            "CSpitterProjectile_Detonate"
            {
                "windows" "345"
                "linux"        "346"
            }
        }

        "Signatures"
        {
            "CreateAbility"
            {
                "library"    "server"
                "windows"    "\x55\x8B\xEC\x83\xEC\x0C\x56\x8B\x75\x08\x85\xF6\x0F\x84\x2A\x2A\x2A\x2A"
                "linux"         "@_ZN12CBaseAbility15CreateForPlayerEP13CTerrorPlayer"
            }
            
            "CTerrorPlayer_OnAdrenalineUsed"
            {
                "library"    "server"
                "linux"        "@_ZN13CTerrorPlayer16OnAdrenalineUsedEf"
                "windows" "\x55\x8B\xEC\x51\x53\x56\x8B\xF1\x8D\x9E\xA0\x32\x00\x00"
            }
            
            "CTerrorPlayer_OnVomitedUpon"
            {
                "library"    "server"
                "linux"    "@_ZN13CTerrorPlayer13OnVomitedUponEPS_b"
                "windows" "\x55\x8B\xEC\x83\xEC\x10\x53\x56\x57\x8B\xF1"
            }
            "SetHumanSpec"
            {
                "library"    "server"
                "linux" "@_ZN11SurvivorBot17SetHumanSpectatorEP13CTerrorPlayer"
                "windows" "\x55\x8B\xEC\x56\x8B\xF1\x83\xBE\x44\x43\x00\x00\x00\x7E\x2A\x32\xC0\x5E\x5D\xC2\x04\x00"
            }
            "TakeOverBot"
            {
                "library"    "server"
                "linux"    "@_ZN13CTerrorPlayer11TakeOverBotEb"
                "windows" "\x55\x8B\xEC\x81\xEC\x4C\x03\x00\x00"
            }
        }
    }
}
__________________
Peace-Maker is offline
Dtor
Member
Join Date: Nov 2015
Old 12-01-2017 , 11:08   Re: [L4D2] RPG v3
Reply With Quote #3

Great to have you back sky , I was trying so hard to reach you out after you're banned since 2014 Love your plugins alot and thanks for your work
Dtor 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 16:36.


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