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.26) [15-May-2024] (https://forums.alliedmods.net/showthread.php?t=310586)

dmna000000000012 09-09-2023 08:21

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.20) [05-Sep-2023]
 
Quote:

Originally Posted by HarryPotter (Post 2809888)

I'll try it I tried it before it didn't work but I think I installed it wrong do u know how I can add custom melee weapons

Silvers 09-09-2023 11:26

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.21) [09-Sep-2023]
 
Quote:

Originally Posted by S.A.S (Post 2809742)
Code:

92/InstanceAuto65-cratespawn_double_melee&0043 - weapon_melee_spawn: UTIL_SetModel: not precached: models/weapons/melee/w_crowbar.mdl
92/InstanceAuto65-cratespawn_double_melee&0043 - weapon_melee_spawn: UTIL_SetModel: not precached: models/weapons/melee/w_crowbar.mdl

92/InstanceAuto65-cratespawn_double_melee&0043 - weapon_melee_spawn: UTIL_SetModel: not precached: models/weapons/melee/w_crowbar.mdl

./srcds_run: line 312: 2120094 Error - Segmentation fault (core dumped) $HL_CMD
cat: hlds.2120046.pid: No such file or directory
email debug.log to [email protected]
Tue Sep 5 10:32:13 PM UTC 2023: Server Quit


Code:

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


S.A.S 09-09-2023 13:47

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.21) [09-Sep-2023]
 
Quote:

Originally Posted by Silvers (Post 2809895)
Code:

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


Good job
Works great

KadabraZz 09-09-2023 16:10

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.21) [09-Sep-2023]
 
For some reason the current versions are not working with the map filter. I need to put it on all or else it won't work even if I remove the melees already present. Maybe something has changed and I'm not doing it the right way, I'm open to your opinion.

Here is the way I already tried

Code:

"all"
{
      "meleeweapons"                "fireaxe;frying_pan;machete;baseball_bat;crowbar;cricket_bat;tonfa;katana;electric_guitar;knife;golfclub;pitchfork;shovel" //IF I ADD THE CUSTOM MELEE HERE IT WORK BUT ITS NOT WHAT WE WANT RIGHT
}
"dw_complex,dw_final,dw_otherworld,dw_underground,dw_woods"
{
      "meleeweapons"                "fireaxe;frying_pan;machete;baseball_bat;crowbar;cricket_bat;tonfa;katana;electric_guitar;knife;golfclub" //EVEN IF I TRIED TO ADD CUSTOM MELEE HERE DOES NOT WORK
}

I removed "pitchfork;shovel" since the example says that custom melees are added automatically and it is necessary to remove some to avoid the 16 melee limit. Does not work.
I load the map using !map !changelevel and it still doesn't work with the current version of the plugin.

In version 1.12 I do it this way and it works

Code:

"all"
{
      "meleeweapons"                "fireaxe;frying_pan;machete;baseball_bat;crowbar;cricket_bat;tonfa;katana;electric_guitar;knife;golfclub;pitchfork;shovel"
}
"dw_complex,dw_final,dw_otherworld,dw_underground,dw_woods"
{
      "meleeweapons"          "fireaxe;frying_pan;machete;baseball_bat;crowbar;cricket_bat;tonfa;katana;electric_guitar;knife;golfclub;weapon_morgenstern;weapon_shadowhand;weapon_chalice;weapon_sof"
}

For now I will continue with version 1.12 but I would like to take advantage of the benefits of the current versions. If anyone can help, maybe I'm just not doing it the right way.

Silvers 09-10-2023 13:01

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.21) [09-Sep-2023]
 
Quote:

Originally Posted by KadabraZz (Post 2809911)
For some reason the current versions are not working with the map filter. I need to put it on all or else it won't work even if I remove the melees already present. Maybe something has changed and I'm not doing it the right way, I'm open to your opinion.

Really nice catch, thank you.

Code:

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.


ProjectSky 09-10-2023 13:42

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.22) [10-Sep-2023]
 
PHP Code:

// Weapons config
BuildPath(Path_SMg_sConfigWeaponssizeof(g_sConfigWeapons), CONFIG_WEAPONS);
if( 
FileExists(g_sConfigWeapons) )
{
    
g_bGameMode false;
    
ParseConfigFile(g_sConfigMission); // it should be g_sConfigWeapons

    
g_bGameMode true;
    
ParseConfigFile(g_sConfigMission); // it should be g_sConfigWeapons

    
g_bGameMode false;



Silvers 09-10-2023 16:10

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.23) [10-Sep-2023]
 
Thanks, fixed.

king kong 09-11-2023 04:17

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.21) [09-Sep-2023]
 
Quote:

Originally Posted by S.A.S (Post 2809950)
Code:

540/ - weapon_melee_spawn: UTIL_SetModel: not precached: models/w_models/weapons/w_knife_t.mdl
540/ - weapon_melee_spawn: UTIL_SetModel: not precached: models/w_models/weapons/w_knife_t.mdl

540/ - weapon_melee_spawn: UTIL_SetModel: not precached: models/w_models/weapons/w_knife_t.mdl

./srcds_run: line 312: 3297628 Error - Segmentation fault (core dumped) $HL_CMD
cat: hlds.3297588.pid: No such file or directory
email debug.log to [email protected]
Sun Sep 10 11:26:17 PM UTC 2023: Server Quit


you can try
https://forums.alliedmods.net/showthread.php?p=2776517

kochiurun119 09-19-2023 12:34

Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.23) [10-Sep-2023]
 
how can i edit in map have all meleeweapon and gunweapon in file data cfg? thanks

Silvers 09-19-2023 13:32

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

Originally Posted by kochiurun119 (Post 2810254)
how can i edit in map have all meleeweapon and gunweapon in file data cfg? thanks

The default config already has this. The example weapons config shows some of the things that are possible to edit. Copy what you need to the weapons config.


Code:

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.



All times are GMT -4. The time now is 05:21.

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