This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[L4D & L4D2] Mission and Weapons - Info Editor (1.26) [15-May-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
dmna000000000012
Junior Member
Join Date: Jul 2023
Old 09-09-2023 , 08:21   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.20) [05-Sep-2023]
Reply With Quote #261

Quote:
Originally Posted by HarryPotter View Post
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
dmna000000000012 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-09-2023 , 11:26   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.21) [09-Sep-2023]
Reply With Quote #262

Quote:
Originally Posted by S.A.S View Post
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.
__________________
Silvers is offline
S.A.S
Member
Join Date: Jul 2023
Old 09-09-2023 , 13:47   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.21) [09-Sep-2023]
Reply With Quote #263

Quote:
Originally Posted by Silvers View Post
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
S.A.S is offline
KadabraZz
Senior Member
Join Date: May 2020
Old 09-09-2023 , 16:10   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.21) [09-Sep-2023]
Reply With Quote #264

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.
KadabraZz is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-10-2023 , 13:01   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.21) [09-Sep-2023]
Reply With Quote #265

Quote:
Originally Posted by KadabraZz View Post
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.
__________________
Silvers is offline
ProjectSky
AlliedModders Donor
Join Date: Aug 2020
Old 09-10-2023 , 13:42   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.22) [10-Sep-2023]
Reply With Quote #266

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;

ProjectSky is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-10-2023 , 16:10   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.23) [10-Sep-2023]
Reply With Quote #267

Thanks, fixed.
__________________
Silvers is offline
king kong
Member
Join Date: Oct 2021
Old 09-11-2023 , 04:17   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.21) [09-Sep-2023]
Reply With Quote #268

Quote:
Originally Posted by S.A.S View Post
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
king kong is offline
kochiurun119
BANNED
Join Date: Sep 2014
Location: GB
Old 09-19-2023 , 12:34   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.23) [10-Sep-2023]
Reply With Quote #269

how can i edit in map have all meleeweapon and gunweapon in file data cfg? thanks
kochiurun119 is offline
Send a message via ICQ to kochiurun119 Send a message via AIM to kochiurun119 Send a message via Yahoo to kochiurun119 Send a message via Skype™ to kochiurun119
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-19-2023 , 13:32   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.23) [10-Sep-2023]
Reply With Quote #270

Quote:
Originally Posted by kochiurun119 View Post
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.
__________________
Silvers 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 21:42.


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