Raised This Month: $9 Target: $400
 2% 

[L4D & L4D2] Mission and Weapons - Info Editor (1.12) [01-Oct-2020]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6253
Plugin Version:
1.12
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    361 
    Plugin Description:
    Modify gamemodes.txt and weapons.txt values by config instead of conflicting VPK files.
    Old 09-10-2018 , 23:22   [L4D & L4D2] Mission and Weapons - Info Editor (1.12) [01-Oct-2020]
    Reply With Quote #1

    About:
    • This plugin provides 2 configs to modify mission info and weapon info data.
    • There are lots of possibilities, search the internet for guides.
    • Yee15467982314 posted on Gamebanana various weapon configs.
    • Here is a guide on SteamCommunity with details on modifying weapons, you only need to copy the key values to this plugins config.
    • Valve wiki has information on L4D2 Mission Files.
    • Info .txt scripts can be found in your games \left4dead2\pak01_dir.vpk, navigate to /missions/, /scripts/ and /scripts/melee/ folders.
    • Weapon Info examples can be found in the "weapon_*" .txt files in the /scripts/ folder.
    • The provided configs do not show all possible key values to edit, you'll have to search the internet.
    • Some key values will have no affect since they are client side.
    • Plugin version convar l4d_info_editor_version.
    • Please share your changes or configs with others.



    Mission Info: Features: (saved to \sourcemod\data\l4d_info_editor_mission.cfg)
    • Add female Boomers
    • Change tank model
    • Boss spawning chance per chapter
    • Specify melee weapons allowed (replaces Melee Spawn Control extension)
    • Automatically adds 3rd party melee weapons on maps that provide.
    • + more

    Weapon Info: Features: (saved to \sourcemod\data\l4d_info_editor_weapons.cfg)
    • Change shooting sounds and first person view models
    • Change damage,damage type, reload time and various values for each weapon
    • Possibly replace infected team claws with guns and vice versa?
    • Possibly allow bots to pickup and use chainsaws (currently untested)
      (requires extra vscripts not provided here, search for the Chainsaw Bots VPK addon)
    • + more

    Natives and Forwards for developers:
    Spoiler




    Admin Commands: (requires "z" flag)

    PHP Code:
    sm_info_weapons_list        // Show weapons config tree of modified data for this map.
    sm_info_mission_list        // Show mission config tree of modified data for this map.
    sm_info_mission             // Get or set the value of a mission keyname. Usage: sm_info_mission <keyname> [value].
    sm_info_reload              // Reloads the mission and weapons configs. Weapons info data is re-parsed allowing changes to be made live without changing level. 


    Thanks:
    • Lux
    • Dragokas
    • Crasher_3637
    • JKing
    • Iizuka07



    Changes:
    Code:
    1.12 (01-Oct-2020)
        - Fixed not properly adding both melee weapons causing potential issues.
    
    1.11 (24-Sep-2020)
        - Compatibility update for L4D2's "The Last Stand" update.
        - Added support for the 2 new melee weapons.
        - GameData .txt file updated.
    
    1.10 (02-Jul-2020)
        - Fixed not always loading the correct map section data in the config for the current map.
        - Fixed not adding 3rd party melee weapons on all 3rd party maps. Thanks to "Shao" for reporting.
    
    1.9 (10-May-2020)
        - Added better error log message when gamedata file is missing.
        - Now supports setting strings to "" when using the "InfoEditor_SetString" native.
        - Various changes to tidy up code.
        - Various optimizations and fixes.
    
    1.8 (29-Apr-2020)
        - Changed "InfoEditor_GetString" and "InfoEditor_SetString" natives to not require the mission pointer.
        - Specifying 0 when calling will make Info Editor use the last known mission pointer value.
        - A valid pointer will still be required to read weapons data.
    
    1.7 (12-Apr-2020)
        - Fixed breaking some melee entries when adding 3rd party melee names containing similar classnames.
        - Thanks to "Marttt" for reporting.
    
    1.6 (10-Apr-2020)
        - Added support to match multiple map names using comma separation in the data configs, as requested by "Lux".
        - Added "clip_size", "ReloadDuration", "CycleTime", "Damage", "Range" and "RangeModifier" to "l4d_info_editor_weapons.cfg" config.
        - Values shown are default from L4D2 weapon scripts.
        - Fixed not creating keys for weapons and accidentally creating them on the mission file instead.
    
    1.5 (01-Apr-2020)
        - Changed command block to allow listen servers to operate the reload command.
        - Changed .inc file to remove args from copy paste error of "InfoEditor_ReloadData" native.
    
    1.4 (18-Mar-2020)
        - Added native "InfoEditor_ReloadData" for external plugins to reload the mission and weapon configs.
        - Fixed crashing with "CTerrorWeaponInfo::Reload" error. Finally!
    
    1.3 (25-Feb-2020)
        - Now dynamically generates "meleeweapons" string for any map using custom melee weapons.
        - Set the string to the default game weapons you want to include, and the custom ones will be added.
        - Mission config "l4d_info_editor_mission.cfg" updated with changes for "Helms Deep" map.
    
    1.2 (17-Sep-2019)
        - No longer removing cheat flags from "sb_all_bot_game" command, was never deleted from testing.
    
    1.1.1a (25-Aug-2019) re-upload
        - Added "helms_deep" section in the mission config to enable all melee weapons on that map.
    
    1.1.1 (09-Jun-2019)
        - Added FORCE_VALUES define to force create missing keys.
        - Slightly optimized fixing single line mistake.
        - Slight code cleaning.
    
    1.1 (01-Jun-2019)
        - Fixed reading incorrect data for map specific sections.
        - Added support to load map specific weapon and melee data.
        - Added commands to display mission and weapon changes applied to the current map.
        - Added a command to get and set keyname values from the mission info.
        - Added a command to reload the mission and weapons configs. Live changes can be made!
        - Added natives to read and write mission and weapon data from third party plugins.
        - Added test plugin to demonstrate natives and forwards for developers.
        - Gamedata .txt changed.
    
    1.0 (10-Sep-2018)
        - Initial release.


    Conflicts:
    • [EXTENSION] Melee Spawn Control is replaced by this plugin.
    • Custom melee weapons are automatically added on top of your "meleeweapons" string from the "all" or map section.
    • Maximum 16 melee weapons so create a section for that map and omit some default melee weapons if the maps custom + default melee weapons exceed the limit.

    Requirements:
    Installation:
    • Download the .zip and extract the files to their respective folders in your servers \addons\sourcemod\ folder.
    • (Included are two example scripts l4d_info_test and l4d_info_editor_weapons for developers, not required to operate the plugin.)
    Attached Files
    File Type: zip l4d_info_editor.zip (31.1 KB, 1875 views)
    __________________

    Last edited by Silvers; 09-30-2020 at 23:23.
    Silvers is offline
    Xanaguy
    Senior Member
    Join Date: Jan 2017
    Old 09-11-2018 , 02:23   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.0) [10-Sep-2018]
    Reply With Quote #2

    I hope this blocks the special instant fail of c7m3_port. Because I need to get rid of that special trigger.
    Xanaguy is offline
    Psyk0tik
    AlliedModders Donor
    Join Date: May 2012
    Location: Homeless
    Old 09-11-2018 , 03:13   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.0) [10-Sep-2018]
    Reply With Quote #3

    This will make adding support for custom melee weapons a lot easier! Nice one man!
    __________________
    AFK like JFK
    --
    Donate to Motivate
    --
    Get latest L4D/L4D2 gamedata signatures here.
    --
    PM me if you need help with finding signatures and/or offsets in the following games: L4D1&2/CSGO/TF2/NMRIH/INS/DODS/CSS/HL2DM
    Psyk0tik is offline
    Spirit_12
    Veteran Member
    Join Date: Dec 2012
    Location: Toronto, CA
    Old 09-11-2018 , 08:40   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.0) [10-Sep-2018]
    Reply With Quote #4

    As I stated earlier I needed something to alter weapon attributes without using Downtown2. This one should do nicely.

    Great value! I wonder if this can make campaign only maps run versus on them.
    __________________
    Spirit_12 is offline
    disawar1
    AlliedModders Donor
    Join Date: Aug 2011
    Location: Russian
    Old 09-11-2018 , 11:21   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.0) [10-Sep-2018]
    Reply With Quote #5

    And as always, good job!
    __________________
    disawar1 is offline
    Spirit_12
    Veteran Member
    Join Date: Dec 2012
    Location: Toronto, CA
    Old 09-11-2018 , 22:41   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.0) [10-Sep-2018]
    Reply With Quote #6

    Just found a little bug. I'm unable to shove with the pistol.
    __________________
    Spirit_12 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 09-12-2018 , 03:36   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.0) [10-Sep-2018]
    Reply With Quote #7

    Quote:
    Originally Posted by Spirit_12 View Post
    Just found a little bug. I'm unable to shove with the pistol.
    Many things can break by setting bad values. By default this is not an issue.
    __________________
    Silvers is offline
    mikaelangelis
    Senior Member
    Join Date: Oct 2017
    Old 09-12-2018 , 10:39   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.0) [10-Sep-2018]
    Reply With Quote #8

    So i need to get rid of melee weapon spawn extension? or do i just leave it alone in folder and paste this zip?
    mikaelangelis is offline
    Spirit_12
    Veteran Member
    Join Date: Dec 2012
    Location: Toronto, CA
    Old 09-12-2018 , 12:02   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.0) [10-Sep-2018]
    Reply With Quote #9

    Quote:
    Originally Posted by mikaelangelis View Post
    So i need to get rid of melee weapon spawn extension? or do i just leave it alone in folder and paste this zip?
    Both plugin and the extension do the same job. There is no reason to keep them both.
    __________________
    Spirit_12 is offline
    Surf3rDud3
    Member
    Join Date: Jun 2010
    Location: Daytona Beach, Fl
    Old 01-30-2019 , 22:46   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.0) [10-Sep-2018]
    Reply With Quote #10

    Code:
    L 01/30/2019 - 21:44:04: [SM] Exception reported: Failed to find "CTerrorGameRules::GetMissionInfo" signature.
    L 01/30/2019 - 21:44:04: [SM] Blaming: l4d_info_editor.smx
    L 01/30/2019 - 21:44:04: [SM] Call stack trace:
    L 01/30/2019 - 21:44:04: [SM]   [0] SetFailState
    L 01/30/2019 - 21:44:04: [SM]   [1] Line 109, C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\l4d_info_editor.sp::OnPluginStart
    L 01/30/2019 - 21:44:04: [SM] Unable to load plugin "l4d_info_editor.smx": Error detected in plugin startup (see error logs)
    __________________

    Surf3rDud3 is offline
    Send a message via Skype™ to Surf3rDud3
    Reply


    Thread Tools
    Display Modes

    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:21.


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