AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Mission and Weapons - Info Editor (1.25) [25-Oct-2023] (https://forums.alliedmods.net/showthread.php?t=310586)

Silvers 09-10-2018 22:22

[L4D & L4D2] Mission and Weapons - Info Editor (1.25) [25-Oct-2023]
 
34 Attachment(s)
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



Game Mode overrides:
  • The plugin will attempt to load "l4d_info_editor_weapons.versus.cfg" or other game mode named config. If that file does not exist it will load the default "l4d_info_editor_weapons.cfg" data config file.
  • When loading the default "l4d_info_editor_weapons.cfg" file, if it contains it's own "versus" or other game mode sections they will overwrite any duplicate data already read from the "all" or map specific sections, unless the map specific section is placed after the game mode specific section.
  • This also applies to the "l4d_info_editor_mission.cfg" data config.
  • Works for all game modes, any value the "mp_gamemode" cvar accepts.



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.
sm_info_melee               // (L4D2 only) Lists the maps current melee weapons allowed and report any issues. 



Thanks:
  • Lux
  • Dragokas
  • Crasher_3637
  • JKing
  • Iizuka07
  • Yabi
  • ProjectSky
  • Mi.Cura



Changes:
Code:

1.25 (07-Nov-2023)
    - Fixed missing "data/l4d_info_editor_mission.cfg" config in the archive. Thanks to "HarryPotter" for reporting.

1.25 (25-Oct-2023)
    - Test plugins will now throw an error if running, to notify server owners they should only be using for testing and as an example.

1.24 (19-Sep-2023)
    - Update for L4D2:
    - Fixed not precaching the Knife model. Thanks to "S.A.S" for reporting.
    - Fixed not loading melee weapons on some 3rd party maps that are missing the "meleeweapons" key value. Thanks to "Iizuka07" for reporting.

1.23 (10-Sep-2023)
    - Fixed mistake with the last update not reading the weapons config. Thanks to "ProjectSky" for reporting.

1.22 (10-Sep-2023)
    - Fixed not loading the map specific sections. Thanks to "KadabraZz" for reporting.
    - The config data load order slightly changed:
    - 1. Attempt to load "all" section.
    - 2. Attempt to load custom maps section.
    - 3. Attempt to load game mode specific configs.
    - 4. Attempt to load game mode specific sections within a config.
    - 5. Game mode specific sections can be overwritten by map specific sections when the map specific section is below the game mode specific section.

    - The default config files have been cleaned up, and example config files provided instead.

1.21 (09-Sep-2023)
    - Update for L4D2 to precache melee weapon models to prevent crashes. Wrongly was OnMapEnd instead of OnMapStart.

1.20 (05-Sep-2023)
    - Update for L4D2 to precache melee weapon models to prevent crashes. Thanks to "S.A.S" for reporting.

1.19 (16-Dec-2022)
    - Fixed not loading melee weapons on certain maps under certain conditions. Thanks to "Mi.Cura" for reporting.
    - Feature added: plugin can load mode specific sections that overwrite previous data loaded from the "l4d_info_editor_mission.cfg" config. Requested by "ProjectSky".
    - Feature added: plugin can load mode specific configs, e.g. "l4d_info_editor_mission.versus.cfg" or "l4d_info_editor_mission.mutation3.cfg" for "Versus" or "Bleedout" modes etc.
    - These features also apply to the "l4d_info_editor_weapons.cfg" data config.

1.18 (15-Dec-2022)
    - Fixed duplicating custom melee weapons in the mission keyvalue string. Thanks to "ProjectSky" for reporting.
    - Fixed not loading melee weapons if the "Info Editor" config is missing a "meleeweapons" key to use.

1.17 (12-Dec-2022)
    - Forgot to turn off debug printing values.

1.16 (11-Dec-2022)
    - Fixed error in command "sm_info_melee" causing it to not display everything correctly.

1.15 (11-Dec-2022)
    - L4D2: Now supports 3rd party melee weapons where the mission.txt file does not contain a "meleeweapons" key. Thanks to "Yabi" for reporting and testing.
    - L4D2: Added command "sm_info_melee" to list the maps currently allowed melee weapons and report any issues.
    - L4D2: GameData file has updated to support these changes.

1.14 (21-Oct-2022)
    - Fixed plugins not loading with the updated include file.
    - Include file updated.

1.13 (20-Oct-2022)
    - L4D2: Plugin now prevents setting over 16 melee weapons. Thanks to "gabuch2" for reporting.
    - Compiled .smx plugin is now compiled with SourceMod version 1.11.

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.)

Xanaguy 09-11-2018 01:23

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.0) [10-Sep-2018]
 
I hope this blocks the special instant fail of c7m3_port. Because I need to get rid of that special trigger.

Psyk0tik 09-11-2018 02:13

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.0) [10-Sep-2018]
 
This will make adding support for custom melee weapons a lot easier! Nice one man! :D

Spirit_12 09-11-2018 07:40

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.0) [10-Sep-2018]
 
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.

disawar1 09-11-2018 10:21

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.0) [10-Sep-2018]
 
And as always, good job!

Spirit_12 09-11-2018 21:41

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.0) [10-Sep-2018]
 
Just found a little bug. I'm unable to shove with the pistol.

Silvers 09-12-2018 02:36

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.0) [10-Sep-2018]
 
Quote:

Originally Posted by Spirit_12 (Post 2614803)
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.

mikaelangelis 09-12-2018 09:39

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.0) [10-Sep-2018]
 
So i need to get rid of melee weapon spawn extension? or do i just leave it alone in folder and paste this zip?

Spirit_12 09-12-2018 11:02

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.0) [10-Sep-2018]
 
Quote:

Originally Posted by mikaelangelis (Post 2614877)
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.

sirphr 01-30-2019 21:46

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.0) [10-Sep-2018]
 
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)


cravenge 01-30-2019 22:08

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.0) [10-Sep-2018]
 
Quote:

Originally Posted by Surf3rDud3 (Post 2637367)
[...]

Here's the updated Windows signature for L4D2.
PHP Code:

"CTerrorGameRules::GetMissionInfo"
{
    
"library"        "server"
    "linux"            "@_ZN16CTerrorGameRules14GetMissionInfoEv"
    "windows"        "\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x8B\x01\x8B\x50\x28\x56\xFF\xD2\x8B\x10\x8B\xC8\x8B\x42"
    
/* ? ? ? ? ? ? ? ? ? ? 8B 01 8B 50 28 56 FF D2 8B 10 8B C8 8B 42 */



sirphr 01-30-2019 22:36

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.0) [10-Sep-2018]
 
1 Attachment(s)
Thank you good sir.

Edit: For those who are too lazy.

BlackSabbarh 03-22-2019 03:36

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.0) [10-Sep-2018]
 
I get this error in l4d1?



[SM] Blaming: l4d_info_editor.smx
[SM] Call stack trace:
[SM] [0] SMCParser.GetErrorString
[SM] [1] Line 310, l4d_info_editor.sp::ParseConfigFile
[SM] [2] Line 292, l4d_info_editor.sp::LoadConfig
[SM] [3] Line 133, l4d_info_editor.sp::OnPluginStart
[SM] Unable to load plugin "l4d_info_editor.smx": Error detected in plugin startup (see error logs)

Silvers 06-01-2019 18:04

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.1) [01-Jun-2019]
 
Finally the update is here, suggest updating to fix previous errors. Provides more functionality.

Quote:

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.

Xanaguy 06-01-2019 23:10

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.1) [01-Jun-2019]
 
For some odd reason, dhooks is not cooperating. Any way to remedy this?

Edit: Resolved. Nextmaps must be deleted.

huwong 07-29-2019 06:02

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.1.1) [09-Jun-2019]
 
After I use this plugin, my server will crash from time to time.
https://crash.limetech.org/lfqdv2hjv3ct
Quote:

server_srv.so!CTerrorWeaponInfo::Reload() + 0x3f
Setting:
Code:

"weapon_info"
{
        "all"
        {
        // Incapped Weapons
        // Uncomment the following to enable usage of weapons while incapped by changing "WeaponType" to "pistol"
                "weapon_chainsaw"
                {
                        "WeaponType"                        "pistol"
                }
                "weapon_melee"
                {
                        "WeaponType"                        "pistol"
                }
                "weapon_pistol"
                {
                        "WeaponType"                        "pistol"
                        "clip_size"                                "125"
                }
                "weapon_pistol_magnum"
                {
                        "WeaponType"                        "pistol"
                        "clip_size"                                "250"
                }
                "weapon_molotov"
                {
                        "WeaponType"                        "pistol"
                }
                "weapon_vomitjar"
                {
                        "WeaponType"                        "pistol"
                }
                "weapon_pipe_bomb"
                {
                        "WeaponType"                        "pistol"
                }
                "weapon_grenade_launcher"
                {
                        "WeaponType"                        "pistol"
                }
                "weapon_rifle"
                {
                        "WeaponType"                        "pistol"
                }
                "weapon_rifle_ak47"
                {
                        "WeaponType"                        "pistol"
                }
                "weapon_rifle_desert"
                {
                        "WeaponType"                        "pistol"
                }
                "weapon_rifle_m60"
                {
                        "WeaponType"                        "pistol"
                }
                "weapon_smg"
                {
                        "WeaponType"                        "pistol"
                }
                "weapon_smg_mp5"
                {
                        "WeaponType"                        "pistol"
                }
                "weapon_smg_silenced"
                {
                        "WeaponType"                        "pistol"
                }
                "weapon_rifle_sg552"
                {
                        "WeaponType"                        "pistol"
                }
                "weapon_autoshotgun"
                {
                        "WeaponType"                        "pistol"
                }
                "weapon_shotgun_spas"
                {
                        "WeaponType"                        "pistol"
                }
                "weapon_hunting_rifle"
                {
                        "WeaponType"                        "pistol"
                }
                "weapon_sniper_awp"
                {
                        "WeaponType"                        "pistol"
                }
                "weapon_sniper_military"
                {
                        "WeaponType"                        "pistol"
                }
                "weapon_sniper_scout"
                {
                        "WeaponType"                        "pistol"
                }
        }
}

"mission_info"
{
        // The "all" section must be above map specific sections. Any partial matching map names will overwrite duplicate data from the "all" section.
        "all"
        {
                // Allowed melee weapons for the map - Replaces: [EXTENSION] [L4D2] Melee Spawn Control https://forums.alliedmods.net/showthread.php?t=222535
                // WORKS
                "meleeweapons"                                                                "fireaxe;frying_pan;machete;baseball_bat;crowbar;cricket_bat;tonfa;katana;electric_guitar;knife;golfclub"

                // Can't have female Boomers because there's no audio support
                // WORKS
                "no_female_boomers"
        }
}


moekai 08-21-2019 18:52

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.1.1) [09-Jun-2019]
 
This is awesome. Thank you so much for this. Do you think you can add a command to get and set keyname values for the weapon info too?

Silvers 08-21-2019 19:07

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.1.1) [09-Jun-2019]
 
Quote:

Originally Posted by moekai (Post 2664146)
This is awesome. Thank you so much for this. Do you think you can add a command to get and set keyname values for the weapon info too?

Not possible, once the data is read its saved somewhere else and the addresses become invalid. I tried.

Spirit_12 08-23-2019 01:10

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.1.1) [09-Jun-2019]
 
Can you add the ability to read the data as well, at least for weapons. I know it is possible, because Downtown extension has that feature.

Silvers 08-23-2019 02:20

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.1.1) [09-Jun-2019]
 
As above, its not possible the way this plugin works.

Use the natives to write a plugin which reads the data. Use the sm_info_reload command to force it to reload and read the data when you want.


Example to get and set value via natives/forwards:

PHP Code:

#pragma semicolon 1
#pragma newdecls required

#include <sourcemod>
#include <l4d_info_editor>

#define MAX_STRING_LENGTH        4096

public void OnPluginStart()
{
    
RegAdminCmd("sm_info_weapon",    CmdInfoWeaponADMFLAG_ROOT"Get or set a weapon keyname value. Usage: sm_info_weapon <weapon classname> <keyname> [value]");
    
RegAdminCmd("sm_iw",             CmdInfoWeaponTestADMFLAG_ROOT"Tests: sm_info_weapon weapon_rifle clip_size");
}

bool g_bDone;
char g_sClass[MAX_STRING_LENGTH];
char g_sKey[MAX_STRING_LENGTH];
char g_sSet[MAX_STRING_LENGTH];

public 
Action CmdInfoWeaponTest(int clientint args)
{
    
ServerCommand("sm_info_weapon weapon_rifle clip_size");
    
// ServerCommand("sm_info_weapon weapon_rifle clip_size 25"); // Set value of 25.
}

public 
Action CmdInfoWeapon(int clientint args)
{
    if( 
args )
    {
        
ReplyToCommand(client"Usage: sm_info_weapon <weapon classname> <key>");
        return 
Plugin_Handled;
    }

    
GetCmdArg(1g_sClasssizeof g_sClass);
    
GetCmdArg(2g_sKeysizeof g_sKey);

    if( 
args == )
        
GetCmdArg(3g_sSetsizeof g_sSet);
    else
        
g_sSet[0] = '\x0';

    
g_bDone false;
    
ServerCommand("sm_info_reload");

    return 
Plugin_Handled;
}

public 
void OnGetWeaponsInfo(int pThis, const char[] classname)
{
    if( !
g_bDone )
    {
        if( 
strcmp(classnameg_sClass) == )
        {
            if( 
strlen(g_sSet) > )
            {
                
InfoEditor_SetString(pThisg_sKeyg_sSet);
                
PrintToServer("Info_Weapon: Set: %s/%s == %s"g_sClassg_sKeyg_sSet);
            }

            
char sResult[MAX_STRING_LENGTH];
            
InfoEditor_GetString(pThisg_sKeysResultsizeof sResult);
            
PrintToServer("Info_Weapon: %s/%s == %s"g_sClassg_sKeysResult);

            
g_bDone true;
        }
    }



moekai 08-23-2019 10:56

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.1.1) [09-Jun-2019]
 
Quote:

Originally Posted by Silvers (Post 2664313)
...

Thank you this is exactly what I was looking for.

Silvers 08-23-2019 15:49

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.1.1) [09-Jun-2019]
 
Quote:

Originally Posted by GoGetSomeSleep (Post 2664367)
Is there an incap weapons only version?
It would be nice if you could.

Quote:

// Incapped Weapons
// Uncomment the following to enable usage of weapons while incapped by changing "WeaponType" to "pistol"
"weapon_chainsaw"
{
"WeaponType" "pistol"
}
... etc
It's already provided, change the weapon classname, delete the rest of the config etc. You'll have to make the changes yourself, it's not hard and I don't have time. I have no idea what else this affects. This plugin is provided as is, you'll have to configure and the test.

Silvers 08-25-2019 02:29

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.1.1) [09-Jun-2019]
 
Conflicts:
  • [EXTENSION] Melee Spawn Control is replaced by this plugin.
  • For maps with custom melee weapons, add a section for that map and add "meleeweapons" with the custom melee weapon classnames. See "helms_deep" for example.
  • Please provide map sections with custom "meleeweapons" and I will update the config to include.

Added this to the first post. If other maps have custom melee please send me the data and I will add so they're not blocked for everyone else.

Spirit_12 08-25-2019 14:26

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.1.1) [09-Jun-2019]
 
Plugin is causing segment fault issues for me. It was on Dark Carnival Remix and Haunted Forest.

https://crash.limetech.org/v3jrgl4b7rtm

Crash ID: V3JR-GL4B-7RTM

Silvers 08-27-2019 07:41

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.1.1) [09-Jun-2019]
 
Quote:

Originally Posted by Spirit_12 (Post 2664704)
Plugin is causing segment fault issues for me. It was on Dark Carnival Remix and Haunted Forest.

Could you upload or PM me the config (if you want to keep private) you're using please.

I have no idea why this would segfault, only thing I could think would be bad config data, something the games not liking.

Spirit_12 08-28-2019 02:13

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.1.1) [09-Jun-2019]
 
I know this for a fact that some of the map have bad mission files so that could be the prime culprit. Let me do some tests and I'll get back to you.

hoanganh81097 08-31-2019 03:48

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.1.1) [09-Jun-2019]
 
i cant use another weapon when incapped

Silvers 09-17-2019 12:32

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.1.1) [09-Jun-2019]
 
Quote:

Originally Posted by hoanganh81097 (Post 2665349)
i cant use another weapon when incapped

PHP Code:

// Incapped Weapons
// Uncomment the following to enable usage of weapons while incapped by changing "WeaponType" to "pistol"
/* 

Find this section and remove the /* to uncomment the lines enabling the function. It works for me.



Updated fixing a mistake left since testing.

Spirit_12 09-17-2019 17:02

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.2) [17-Sep-2019]
 
I done some tests and it seems that bad mission files were indeed the problem. I stripped the weapons function from the plugin and removed mission related code. It works as intended now and saved me a lot of time editing 100+ mission files.

Maybe split the plugin into two separate plugins wouldn't be a bad idea?

Silvers 09-17-2019 17:14

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.2) [17-Sep-2019]
 
Quote:

Originally Posted by Spirit_12 (Post 2667343)
Maybe split the plugin into two separate plugins wouldn't be a bad idea?

Why? Both similar using similar functions. Would make lots of duped code etc. If it's the detour you're trying to optimize simply because you don't use it, well they only fire at round start so it's pointless removing. No.

Spirit_12 09-18-2019 03:05

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.2) [17-Sep-2019]
 
Plugin reads up the mission files and I run a lot of custom maps. Result is segment fault errors, so I removed the mission files functions as I only needed to change weapon attributes.

Silvers 09-18-2019 11:41

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.2) [17-Sep-2019]
 
Quote:

Originally Posted by Spirit_12 (Post 2667380)
Plugin reads up the mission files and I run a lot of custom maps. Result is segment fault errors, so I removed the mission files functions as I only needed to change weapon attributes.

Just to be clear it only reads the current maps mission txt on map load, not all of them at the same time. I don't know why this would cause a segfault, but I'm also not going to download tons of maps to test. I still think the error would occur with bad changes to a maps config via this plugin, but not from the map(s) itself.

Spirit_12 09-18-2019 12:33

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.2) [17-Sep-2019]
 
I didn’t make any config changes between the tests. The only difference is the mission files. Map crashes on the load up, I will send you the config later in the day, but don’t recall making any specific changes.

Silvers 09-18-2019 13:12

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.2) [17-Sep-2019]
 
Quote:

Originally Posted by Spirit_12 (Post 2667460)
I didn’t make any config changes between the tests. The only difference is the mission files. Map crashes on the load up, I will send you the config later in the day, but don’t recall making any specific changes.

Must be a specific map? Which?

Sev 09-18-2019 16:46

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.2) [17-Sep-2019]
 
So maybe I'm doing something wrong or just don't know the values needed to adjust.

When I'm incapped, I find whatever primary weapon I have is set to single shot like the pistol. I suppose this can't be avoided unless I'm missing the value needed to tweak in the weapon editor while incapped.

The other issue I find (maybe just me) is I can't cycle through the weapons when I'm incapped. I can only use the weapon I'm incapped with. Unless I have a throwable, then it will switch me to the primary weapon after I use the throwable.

Are these just issues on my end or am I missing something?

xZk 09-18-2019 17:41

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.2) [17-Sep-2019]
 
Quote:

Originally Posted by Sev (Post 2667489)
The other issue I find (maybe just me) is I can't cycle through the weapons when I'm incapped. I can only use the weapon I'm incapped with. Unless I have a throwable, then it will switch me to the primary weapon after I use the throwable.

Are these just issues on my end or am I missing something?

That issue you can solve configuring the others slots weapons(grenades, kits, pils) with:
Code:

"WeaponType" "pistol"
.
But this will cause bug in the weapons spawn in map(Stripper), of the kits, defibs, and sometimes weapon primaries or secondaries, where these will not spawn :/

BlackSabbarh 09-19-2019 14:32

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.2) [17-Sep-2019]
 
Has anyone changed the refill speed with the shotguns? Can I change the reload speed in l4d1 but not in l4d2, has anyone tried?
I can change all other things like clip, range, bullets, but increasing the reload speed doesn't work, it keeps recharging normally, but in l4d1 it does.

Silvers 09-19-2019 17:06

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.2) [17-Sep-2019]
 
Quote:

Originally Posted by Sev (Post 2667489)
When I'm incapped, I find whatever primary weapon I have is set to single shot like the pistol. I suppose this can't be avoided unless I'm missing the value needed to tweak in the weapon editor while incapped.

Hmm when I tried gun was full auto but shooting slower than normal.

Quote:

Originally Posted by Sev (Post 2667489)
The other issue I find (maybe just me) is I can't cycle through the weapons when I'm incapped. I can only use the weapon I'm incapped with. Unless I have a throwable, then it will switch me to the primary weapon after I use the throwable.

I have this problem too.

A secondary plugin would have to be written to maybe fix these issues, although I'm not sure if that's possible.. detecting weapon change when it's not actively changing is a problem. Theres no OnPlayerRunCmd detection for changing weapons.

Edit: "xZk" has released an Incapped Weapons plugin.



Quote:

Originally Posted by BlackSabbarh (Post 2667584)
Has anyone changed the refill speed with the shotguns? Can I change the reload speed in l4d1 but not in l4d2, has anyone tried?
I can change all other things like clip, range, bullets, but increasing the reload speed doesn't work, it keeps recharging normally, but in l4d1 it does.

I've not tried. Sounds like they changed something in L4D2, would probably need another method to modify. Haven't I seen some plugins which control reload speed and fire rate?

Edit: "Lux" has released a WeaponHandling_API plugin.

BlackSabbarh 09-19-2019 20:24

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.2) [17-Sep-2019]
 
Quote:

Originally Posted by Silvers (Post 2667623)
Hmm when I tried gun was full auto but shooting slower than normal.


I have this problem too.

A secondary plugin would have to be written to maybe fix these issues, although I'm not sure if that's possible.. detecting weapon change when it's not actively changing is a problem. Theres no OnPlayerRunCmd detection for changing weapons.




I've not tried. Sounds like they changed something in L4D2, would probably need another method to modify. Haven't I seen some plugins which control reload speed and fire rate?



The fire rate can be modified without problems with all weapons, but it does not work on shotguns, both the fire rate and rapid reload do not work on shotguns

BlackSabbarh 09-19-2019 20:37

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.2) [17-Sep-2019]
 
Quote:

Originally Posted by BlackSabbarh (Post 2667640)
The fire rate can be modified without problems with all weapons, but it does not work on shotguns, both the fire rate and rapid reload do not work on shotguns




Only the fire speed and the fast reload do not work for me in the shotguns of l4d2, all the other weapons work well, in l4d1 the same everything works well with all the weapons.


All times are GMT -4. The time now is 10:11.

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