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

RPGx [Version: 1.1.3]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
sumguy14
Senior Member
Join Date: Apr 2006
Plugin ID:
36
Plugin Version:
1.1.3
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows players to purchase "upgrades" that will give them an advantage over other players
    Unapprover:
    Reason for Unapproving:
    Requires outdated extension. Replaced by http://forums.alliedmods.net/showthread.php?t=123596
    Old 06-23-2007 , 01:19   RPGx [Version: 1.1.3]
    Reply With Quote #1

    RPGx Version 1.1.3
    • Looking for Translators:
    • People who translated earlier versions, can you update the translations please, I added more
    • French
    • Norwegian
    • Swedish
    • Turkish
    • Got some more phrases in rpgx.chat.phrases.txt
    _________________________________________
    • Requirements:
    _________________________________________
    _________________________________________
    • Credits:
      • SeLfkiLL: Original author of CSS:RPG, most concepts/ideas came from him
      • BAILOPAN: Helped me with some things, coded one of my requests, thanks!
      • PimpinJuice: He pretty much taught me SourceMod, he let me look at War3Source's source code to help me with RPGx. He also made one of the
        upgrades, thanks, couldn't have done it without you
      • dalto: Gave me the rank retrival code, thanks, ranking would have sucked without that
      • Everyone in IRC who helped out: Thanks for helpin out the noob
      • Anyone that translated anything for the mod
    _________________________________________
    _________________________________________
    • Todo:
      • Optimization
      • Make more upgrades
      • Look up other player's ranks
    _________________________________________
    • Installation:
      • Extract RPGx.zip to your server's root directory
      • Configure the settings located in "configs/rpgx.ini"
      • Go ahead and modify the phrases for your language in "translations/rpgx.*.phrases.txt"
    _________________________________________
    • Admin Commands:
      • rpgx_xp <set/=/add/+/take/-> <@t/ct/userid> <amount>
      • rpgx_level <set/=/add/+/take/-> <@t/ct/userid> <level>
      • rpgx_credits <set/=/add/+/take/-> <@t/ct/userid> <amount>
      • rpgx_forcepurchase <@t/ct/userid> <upgrade>
      • rpgx_forcesell <@t/ct/userid> <upgrade>
    _________________________________________
    • Configuration:
      • configs/RPGx/RPGx.ini
        Code:
        // File: RPGx.ini
        // Author: SumGuy14 (Aka SoccerDude)
        // Description: Here you can configure RPGx
        
        "RPGxConfig"
        {
          "mysql"
          {
            "savetype" "mysql" // Options: mysql - sqlite
            // Options below should only be set if the above setting is mysql
        	  "host" ""
            "user" ""
            "pass" ""
            "database" ""
            "port" "" // Leave blank for default
          }
          "sounds"
          {
            "levelup" "buttons/blip2.wav" // Sound played when leveling up
            "reset_stats" "buttons/button5.wav" // Sound played when resetting stats
            "upgrade_purchase" "weapons/physcannon/physcannon_drop.wav" // Sound played when purchasing an upgrade
            "upgrade_sell" "buttons/combine_button1.wav" // Sound played when selling an upgrade
            "upgrade_error" "buttons/combine_button2.wav" // Sound played when selling an upgrade
            "menu_select" "buttons/button9.wav" // Sound played when selecting something in a menu
            "menu_exit" "buttons/button19.wav" // Sound played when closing a menu
          }
          "general"
          {
            "ENABLE" "1"  // When 0, the plugin will stop updating, players wont gain XP, upgrades will stop working, to reenable, change this to 1 and change map
            "BOT_ENABLE" "1"  // Allows bots to earn upgrades
            "SAVE_DATA" "1"  // If enabled, the databases will be saved/updated
            "ANNOUNCE_CHANGELVL" "1"  // Enables global announcement of a change in a player's level
            "BOT_CONTROL" "1"  // Stops bots from leveling when no humans are present
            "BOT_MAXLEVEL" "200"  // Maximum level of a bot until his stats are reset (0 = Infinite)
          }
          "rank"
          {
            "RANK_ENABLE" "1"  // Enables ranking for RPGx
            "RANK_GLOBAL" "1"  // Displays rank to all players
          }
          "xp"
          {
            "EXP_NOTICE" "1"  //Notifies player when gaining XP
            "EXP_MAX" "50000"  // Required XP stops rising when getting to this point
            "EXP_START" "250"  // Initial required XP
            "EXP_INC" "75"  // How much to increment required XP by after leveling up
            "EXP_KILL" "15"// XP for a kill multiplied by the victim's level
            "EXP_HEADSHOT" "50"// XP extra for a headshot
            "EXP_DAMAGE" "1.0"  // XP for hurting an enemy multiplied by the damage done
            "EXP_KNIFEDMG" "8.0"  // XP for knifing an enemy multiplied by the damage done (must be higher than exp_damage)
            "EXP_TEAMWIN" "0.15"  // XP multipled by the XP required and the team ratio given to a team for completing the objective
            "EXP_BOMBPLANTED" "0.15"  // XP multipled by the XP required and the team ratio given for planting the bomb
            "EXP_BOMBDEFUSED" "0.30"  // XP multipled by the XP required and the team ratio given for defusing the bomb
            "EXP_BOMBEXPLODED" "0.20"  // XP multipled by the XP required and the team ratio given to the bomb planter when it explodes
            "EXP_HOSTAGE" "0.10"  // XP multipled by the XP required and the team ratio for rescuing a hostage
          }
          "credits"
          {
            "CREDITS_INC" "5"  // How many credits earned for each time a player levels up
            "CREDITS_START" "5"  // How many credits a player starts with
            "SAVE_PERCENT" "0.75"  // Percentage of credits a player gets for selling an item
          }
        }
      • MOTD Template for upgrade help
        Code:
        <html>
        <head>
        <title>RPGx Upgrade: [UPGRADENAME]</title>
        <style type="text/css">
        body { 
        	background: black;
        	color: #666666;
        	margin: 10px;
        	font-family:Verdana, Tahoma;
        	text-align: center;
        	font-size:12px;
        }
        .holder {
        	width: 100%;
        	background: black;
        	border: 5px ridge white;
        	text-align: center;
        }
        .info {
        	width: 75%;
        	background: #333333;
        	border: 10 outset #333333;
        	text-align: center;
        }
        img {
        	margin: 5px;
        }
        ul {
        	margin: 0px;
        	margin-bottom: 20px;
        }
        </style>
        </head>
        <body>
        <div class="holder">
        <div class="info" style="margin-top:10px;">
        <h2><font color=white>RPGx Upgrade:</font></h2>
        <h3>[UPGRADENAME]</h5>
        </div>
        <div class="info" style="margin-top:10px;">
        <h3><font color=white>Description:</font></h3>
        <h6><font color=red>By Default</font></h6>
        <h4>This upgrade gives you the ability to ... [DESCRIPTION]</h4>
        <p align=left>
        <h3>
        <ul>
        	<li>Level 1: Level 1 description here</li>
        	<li>Level 2: Level 2 description here</li>
        	<li>Level 3: Level 3 description here</li>
          <li>Etc...</li>
        </ul>
        </h3>
        </p>
        </div>
        <div class="info" style="margin-top:10px;">
        <h3><font color=white>Screenshots:</font></h3>
        <p>
          <img src="http://screenshot1" height="250" />
          <img src="http://screenshot2" height="250" />
          <img src="http://screenshot3" height="250" />
          <!--<h4>(None)</h4>-->
        </p>
        </div>
        </div>
        </body>
        </html>
    • Changelog:
      • 6/22/07
        • Released
      • 6/23/07
        • Added Language: German
        • Added Language: French
        • Added Language: Swedish
        • Languages are now separate files
        • Added LAN support
      • 6/25/07
        • Added upgrade: PoisonSmoke
        • Added upgrade: Medic
        • Disabling a default upgrade won't screw things up anymore
        • Added native: RPGx_UpgradeExists (Check RPGx_Interface for more info)
        • Fixed errors that happened when a player disconnects while regenerating HP
        • Added effects!
        • Bots now buy upgrades
        • Warning: Planning an extensive recoding of this plugin in certain areas, might break backwards compatibility a little
      • 7/11/07
        • Plugin has been recoded from scratch
        • There is so much new stuff I don't know if I can remember it all
        • Added sounds, look in configs/rpgx.ini to change them
        • Now uses SQL instead of a KeyValue's file (SQL is a lot faster) of course the down side is you need an SQL db to run this mod (for now)
        • Fixed any problems with upgrades, moved them to separate files
        • Added a bunch of new natives that make creating upgrades easier
        • New spawn health system will automatically set the player's health on spawn, and upgrades such as Regeneration can get this value to stop when their maximum health has been reached
        • Now takes advantage of SourceMod's built-in translation system
        • New effect library to make effect creation easier
        • Added cool effects such as player's appear to be inside a block of ice when icestabbed, frostpistol created ice pillars around the player, trapping them, and much more
        • Revamped the help system, it is now based off MOTD windows, if you have an upgrade submission use the motd template in this post to construct an MOTD window for your upgrade, I will add it to the website I am using to host the webpages
        • Screenshots are now included in the help windows, (Example) more and more screenshots will be added as time goes on
        • Added admin cmds, see documentation for info
        • The "ENABLE" option actually does something now
        • Removed upgrade Damage+ (Wasn't a good idea anyway)
        • Added Gravity-, lowers your gravity enabling you to jump longer distances (LongJump works good with this)
        • That's all I can think of..
      • 7/11/07
        • Will now automatically call RPGx_OnUpgradeSell for all upgrades with a level of 0 when a player resets their stats
        • Health+ properly sets the player's max health when player resets stats
        • Transfers player's data to the database more often to ensure the changes were kept
      • 7/30/07
        • Fixed bug where firenade wouldn't fully disable if ENABLE is 0
        • Renamed public cvar to 'rpgx_version'
        • Removed my hack, now using GetServerLanguage()
        • Will not load if unsupported language is being used
        • Tells you what language was detected, which is what will be used
        • Supports mysqlite (yay!)
        • Updated to use new translation file standard (xx.phrases.txt)
        • 0 for BOT_MAXLEVEL allows unlimitted leveling
      • 8/23/07
        • Config file more user-friendly
        • Added ranking system
        • Fixed data still saving even if it is disabled
        • Cleaned a little code up
        • Removed slay function, now using SM's built in one
      • 11/10/07
        • LAN now uses usernames instead of IP address
        • Fixed your required XP not being incremented when adding levels via cmd
    Attached Files
    File Type: zip RPGx.zip (73.1 KB, 9221 views)
    File Type: zip RPGx_Source.zip (45.2 KB, 6335 views)
    File Type: txt rpgx.chat.phrases.txt (11.2 KB, 4937 views)
    File Type: txt rpgx.menu.phrases.txt (5.0 KB, 4859 views)

    Last edited by sumguy14; 11-12-2007 at 15:28.
    sumguy14 is offline
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 06-23-2007 , 01:28   Re: [PLUGIN] RPGx
    Reply With Quote #2

    Well hell...you've been busy...great job.
    __________________
    Please do NOT PM for support.

    Only ask for support in plugin threads.

    TunedChaos.com - Precision Tuned Game Servers
    FlyingMongoose is offline
    API
    Veteran Member
    Join Date: May 2006
    Old 06-23-2007 , 02:07   Re: [PLUGIN] RPGx
    Reply With Quote #3

    Great job :]
    __________________
    API is offline
    Send a message via AIM to API
    yester64
    Senior Member
    Join Date: May 2007
    Old 06-23-2007 , 02:49   Re: [PLUGIN] RPGx
    Reply With Quote #4

    i do not want to spoil everything, but i get some error messages..

    L 06/22/2007 - 23:261: [SM] Unable to load plugin "rpgx.smx": Native "SetMenuExitBackButton" was not found.
    L 06/22/2007 - 230:23: SourceMod error session started
    L 06/22/2007 - 230:23: Info (map "fy_iceworld") (file "errors_20070622.log")
    L 06/22/2007 - 230:23: [SM] Fatal error encountered parsing translation file "plugin.mapchooser.cfg"
    L 06/22/2007 - 230:23: [SM] Error (line 30, column 5): Line contained too many invalid tokens
    L 06/22/2007 - 230:23: [SM] Fatal error encountered parsing translation file "plugin.nextmap.cfg"
    L 06/22/2007 - 230:23: [SM] Error (line 27, column 4): Line contained too many invalid tokens
    L 06/22/2007 - 230:23: [SM] Unable to load plugin "rpgx.smx": Native "SetMenuExitBackButton" was not found.
    L 06/22/2007 - 231:03: [SM] Native "RPGx_GetUpgradeLevel" reported: Plugin owning this native is currently paused.
    L 06/22/2007 - 231:03: [SM] Debug mode is not enabled for this plugin.
    L 06/22/2007 - 231:03: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 6 on
    L 06/22/2007 - 231:07: [SM] Native "RPGx_GetUpgradeLevel" reported: Plugin owning this native is currently paused.

    i copied everything to the appropiate location and upgrades sourcemod (1013).
    yester64 is offline
    ^BuGs^
    Senior Member
    Join Date: May 2007
    Old 06-23-2007 , 02:51   Re: [PLUGIN] RPGx
    Reply With Quote #5

    Nice job!
    ^BuGs^ is offline
    benkoren
    Junior Member
    Join Date: Jun 2007
    Old 06-23-2007 , 03:23   Re: [PLUGIN] RPGx
    Reply With Quote #6

    Great work! I've been playing with this on my linux server for a bit now and have not a single good complaint. Keep it up!
    benkoren is offline
    magicyan
    Member
    Join Date: Nov 2005
    Old 06-23-2007 , 07:21   Re: [PLUGIN] RPGx
    Reply With Quote #7

    Hello,

    Great job

    I add french language ;)

    Bye
    Attached Files
    File Type: txt Messages.txt (9.4 KB, 1114 views)
    __________________
    Serveur Test SourceMod => 77.111.201.216:27015

    Tuto 'SourceMod' in french
    http://www.support-cssource.info/viewtopic.php?t=184
    magicyan is offline
    Isias
    Senior Member
    Join Date: Apr 2006
    Old 06-23-2007 , 09:45   Re: [PLUGIN] RPGx
    Reply With Quote #8

    German Translation:
    Code:
      "Deutsch"
      {
        "chatmessages"
        {
          // Chat Messages
          // The color of the last word should be colored @default
          // %s = String
          // %d = Integer
          
          "levelup_announce" "@green[RPGx] @lightgreen%s @defaultist jetzt Level @green%d@default"
          
          "levelup_tell" "@green[RPGx] @defaultDu bist jetzt Level @green%d@default"
          
          "levelup_notification" "@green[RPGx] @defaultDu hast jetzt @green(%d @defaulttotal@green). @defaultType \"@greenrpgmenu@default\" Credits um Upgrades zu erwerben"
          
          "reset_stats" "@green[RPGx] @defaultDeine Stats wurden erfolgreich zurückgesetzt"
          
          "bot_reset_stats" "@green[RPGx] @defaultBOT: @lightgreen%s's @defaultstats wurden zurückgesetzt da das höchste Level erreicht wurde: @green%d@default"
          
          "language_change" "@green[RPGx] @defaultDie Sprache wurde gesetzt auf: @green%s@default"
          
          "purchase_upgrade" "@green[RPGx] %s @defaultlevel @green%d @defaultwurde erfolgreich erworben"
          
          "purchase_insufficient" "@green[RPGx] @defaultDu hast nicht genügend Credits um @green%s @default(Cost: @green%d @defaultCredits) zu erwerben"
          
          "sell_upgrade" "@green[RPGx] %s @defaultwurde erfolgreich für %d Credits verkauft"
        }
        "hudhints"
        {
          // HudHints
          // (1)%d = Amount the XP was set to, or how much was lost/gained
          // (2)%d = Current XP
          // (3)%d = Required XP for next level
          
          "xp_set" "XP gesetzt auf: %d\nXP Quota: %d/%d"
          
          "xp_give" "XP gewonnen: %d+\nXP Quota: %d/%d"
          
          "xp_take" "XP genommen: %d-\nXP Quota: %d/%d"
        }
        "menu"
        {
          // Menus
          // 0 = Title of menu
          // 1 = 1st line
          // 2 = 2nd line
          // 3 = etc...
          // %l = Level
          // %x = XP
          // %r = Required XP
          // %c = Credits
          // %a = Language
          
          "main"
          {
            "0" "RPGx Menu[Haupt]:\n "
            "1" "Upgrades"
            "2" "Verkaufen"
            "3" "Stats"
            "4" "Sprache (%a)"
            "5" "Hilfe"
          }
          "upgrades"
          {
            "0" "RPGx Menu[Upgrades]: Credits %c\n "
          }
          "sell"
          {
            "0" "RPGx Menu[Verkaufen]: Credits %c\n "
          }
          "stats"
          {
            "0" "RPGx Menu[Stats]:\n "
            "1" "Stats zurücksetzen"
            "2" "Level: %l"
            "3" "XP: %x/%r"
            "4" "Credits: %c"
          }
          "settings"
          {
            "0" "RPGx Menu[Einstellungen]:\n "
            "1" "Sprache"
            "2" "Stats zurücksetzen"
          }
          "resetstats"
          {
            "0" "[WARNUNG] Das zurücksetzen der Stats löscht alle gewonnen XP, Levels, Credits, und Upgrades\nMöchtest du deine Stats zurücksetzen?\n "
            "1" "Ja"
            "2" "Nein"
          }
          "language"
          {
            "0" "RPGx Menu[Sprache]: Aktuelle Sprache: %a\n "
          }
          "help"
          {
            "0" "RPGx Menu[Hilfe]:\nBitte wähle ein Upgrade um Informationen darüber anzeigen zu lassen\n "
          }
          "helppanel"
          {
            // %u = Upgrade the help is about
            
            "0" "RPGx Menu[Hilfe] Upgrade: %u\n "
          }
        }
    I noticed there was a "german" translation, but Warinng was translated as Notfall, meaing Emergency in German and Reset Stats has been translated as "Notfall zurücksetzen", meaning "reset Emergency"? The .txt needs to be saved as UTF-8 in order to make the special charset like ä,ö,ü etc. work. Nice work so far, good to see Sourcemod is growing rapidly.

    Last edited by Isias; 06-23-2007 at 09:53.
    Isias is offline
    sumguy14
    Senior Member
    Join Date: Apr 2006
    Old 06-23-2007 , 11:58   Re: [PLUGIN] RPGx
    Reply With Quote #9

    @Everyone, Wow, thanks everyone

    @yester64,are you sure you have the latest rev? Maybe I listed the wrong one. Those native errors tell me you don't have the version this requires, I'll check that and update the requirements

    @Isias, didn't realize I left my own little german translation in there hehe. I thought I deleted that when I released, I just used a translator for testing. Thanks for the translation! I'll add it to the release.

    @magicyan, Thank you very much for the french translations. I'll also add that.
    sumguy14 is offline
    sumguy14
    Senior Member
    Join Date: Apr 2006
    Old 06-23-2007 , 23:40   Re: [PLUGIN] RPGx
    Reply With Quote #10

    Update:

    -Added Language: German
    -Added Language: French
    -Added Language: Swedish
    -Languages are now separate files
    -Added LAN support

    @Yester64, It looks like you didn't update fully, your translation files might be out of date (Those need to be updated in rec 1013)
    sumguy14 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 17:27.


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