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

[L4D2] Bots Weapon Preferences Editor (UPDATED 09-11-2017)


Post New Thread Reply   
 
Thread Tools Display Modes
DeathChaos25
Senior Member
Join Date: Jan 2014
Location: Puerto Rico
Old 06-19-2015 , 13:17   Re: [L4D2] Bots Weapon Preferences Editor
Reply With Quote #11

Quote:
Originally Posted by eric0279 View Post
// G:\addons\sourcemod\scripting\[L4D2] Bots Weap
on Preference Manipulation.sp(116) : error 001: expected token: ";", but found "
-identifier-"
// G:\addons\sourcemod\scripting\[L4D2] Bots Weap
on Preference Manipulation.sp(123) : error 010: invalid function or declaration
//
// 2 Errors.

This compile error is entirely your fault.

All of my work compiles 100% without any compile time errors, as is the standard for any plugins submitted to AlliedModders, I even went and downloaded the one on the main post (which is what everyone has) and compile it again just in case and encountered no errors whatsoever.

What edits did you make for the compile to fail?



The error should not happen, it states that a semicolon is missing, when said line reads this;
PHP Code:
static const String:MODEL_LOUIS[] = "models/survivors/survivor_manager.mdl"
As you can see, it contains the semicolon which your error says is missing, what exactly did you edit and why was it necessary?

Post it here and maybe I can help you out.

This plugin was also made and compiled with the latest official SM release (1.7).
__________________

Last edited by DeathChaos25; 06-19-2015 at 13:22.
DeathChaos25 is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 06-19-2015 , 14:02   Re: [L4D2] Bots Weapon Preferences Editor
Reply With Quote #12

I don't edit script, need 1.7? I delete ^^
eric0279 is offline
DeathChaos25
Senior Member
Join Date: Jan 2014
Location: Puerto Rico
Old 06-19-2015 , 15:43   Re: [L4D2] Bots Weapon Preferences Editor
Reply With Quote #13

Quote:
Originally Posted by eric0279 View Post
I don't edit script, need 1.7? I delete ^^
this line
PHP Code:
public Plugin myinfo 
Change it to;
PHP Code:
public Plugin:myinfo 
__________________
DeathChaos25 is offline
KillerBudgie
Junior Member
Join Date: Apr 2015
Location: United Kingdom
Old 06-24-2015 , 09:27   Re: [L4D2] Bots Weapon Preferences Editor
Reply With Quote #14

Maybe now you'll be able to make the L4D1 Survivor bots have their original weapon preferences. Or are you going to write a plugin that enforces that behaviour?
KillerBudgie is offline
DeathChaos25
Senior Member
Join Date: Jan 2014
Location: Puerto Rico
Old 06-24-2015 , 13:27   Re: [L4D2] Bots Weapon Preferences Editor
Reply With Quote #15

Quote:
Originally Posted by KillerBudgie View Post
Maybe now you'll be able to make the L4D1 Survivor bots have their original weapon preferences. Or are you going to write a plugin that enforces that behaviour?
You can already accomplish this somewhat with this plugin.

This plugin also spawns the ORIGINAL L4D bots complete with their correct weapon preferences.
__________________
DeathChaos25 is offline
bazrael
Senior Member
Join Date: Jan 2010
Location: Where Lucy became superw
Old 07-25-2015 , 19:15   Re: [L4D2] Bots Weapon Preferences Editor
Reply With Quote #16

PHP Code:
L 07/26/2015 01:29:37SourceMod error session started
L 07
/26/2015 01:29:37Info (map "credits") (file "errors_20150726.log")
L 07/26/2015 01:29:37: [SMNative "CloseHandle" reportedHandle 0 is invalid (error 4)
L 07/26/2015 01:29:37: [SMDisplaying call stack trace for plugin "l4d2_Bots Weapon Preference Manipulation.smx":
L 07/26/2015 01:29:37: [SM]   [0]  Line 155C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2Bots Weapon Preference Manipulation.sp::OnMapEnd()
L 07/26/2015 01:29:38Error log file session closed.
L 07/26/2015 01:29:40SourceMod error session started
L 07
/26/2015 01:29:40Info (map "credits") (file "errors_20150726.log")
L 07/26/2015 01:29:40: [SMNative "GetArraySize" reportedInvalid Handle 2ee02e1 (error3)
L 07/26/2015 01:29:40: [SMDisplaying call stack trace for plugin "l4d2_Bots Weapon Preference Manipulation.smx":
L 07/26/2015 01:29:40: [SM]   [0]  Line 507C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2Bots Weapon Preference Manipulation.sp::OnEntityDestroyed()
L 07/26/2015 01:29:40: [SMNative "GetArraySize" reportedInvalid Handle 2f102e4 (error1)
L 07/26/2015 01:29:40: [SMDisplaying call stack trace for plugin "l4d2_Bots Weapon Preference Manipulation.smx":
L 07/26/2015 01:29:40: [SM]   [0]  Line 520C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2Bots Weapon Preference Manipulation.sp::OnEntityDestroyed()
L 07/26/2015 01:29:40: [SMNative "GetArraySize" reportedInvalid Handle 2f102e4 (error1)
L 07/26/2015 01:29:40: [SMDisplaying call stack trace for plugin "l4d2_Bots Weapon Preference Manipulation.smx":
L 07/26/2015 01:29:40: [SM]   [0]  Line 520C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2Bots Weapon Preference Manipulation.sp::OnEntityDestroyed()
L 07/26/2015 01:29:40: [SMNative "GetArraySize" reportedInvalid Handle 2f102e4 (error1)
L 07/26/2015 01:29:40: [SMDisplaying call stack trace for plugin "l4d2_Bots Weapon Preference Manipulation.smx":
L 07/26/2015 01:29:40: [SM]   [0]  Line 520C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2Bots Weapon Preference Manipulation.sp::OnEntityDestroyed() 
I've installed Left 4 Downtown 2 before and my server path: "D:\Steam\SteamApps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod"
bazrael is offline
DeathChaos25
Senior Member
Join Date: Jan 2014
Location: Puerto Rico
Old 07-25-2015 , 19:59   Re: [L4D2] Bots Weapon Preferences Editor
Reply With Quote #17

Quote:
Originally Posted by bazrael View Post
PHP Code:
L 07/26/2015 01:29:37SourceMod error session started
L 07
/26/2015 01:29:37Info (map "credits") (file "errors_20150726.log")
L 07/26/2015 01:29:37: [SMNative "CloseHandle" reportedHandle 0 is invalid (error 4)
L 07/26/2015 01:29:37: [SMDisplaying call stack trace for plugin "l4d2_Bots Weapon Preference Manipulation.smx":
L 07/26/2015 01:29:37: [SM]   [0]  Line 155C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2Bots Weapon Preference Manipulation.sp::OnMapEnd()
L 07/26/2015 01:29:38Error log file session closed.
L 07/26/2015 01:29:40SourceMod error session started
L 07
/26/2015 01:29:40Info (map "credits") (file "errors_20150726.log")
L 07/26/2015 01:29:40: [SMNative "GetArraySize" reportedInvalid Handle 2ee02e1 (error3)
L 07/26/2015 01:29:40: [SMDisplaying call stack trace for plugin "l4d2_Bots Weapon Preference Manipulation.smx":
L 07/26/2015 01:29:40: [SM]   [0]  Line 507C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2Bots Weapon Preference Manipulation.sp::OnEntityDestroyed()
L 07/26/2015 01:29:40: [SMNative "GetArraySize" reportedInvalid Handle 2f102e4 (error1)
L 07/26/2015 01:29:40: [SMDisplaying call stack trace for plugin "l4d2_Bots Weapon Preference Manipulation.smx":
L 07/26/2015 01:29:40: [SM]   [0]  Line 520C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2Bots Weapon Preference Manipulation.sp::OnEntityDestroyed()
L 07/26/2015 01:29:40: [SMNative "GetArraySize" reportedInvalid Handle 2f102e4 (error1)
L 07/26/2015 01:29:40: [SMDisplaying call stack trace for plugin "l4d2_Bots Weapon Preference Manipulation.smx":
L 07/26/2015 01:29:40: [SM]   [0]  Line 520C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2Bots Weapon Preference Manipulation.sp::OnEntityDestroyed()
L 07/26/2015 01:29:40: [SMNative "GetArraySize" reportedInvalid Handle 2f102e4 (error1)
L 07/26/2015 01:29:40: [SMDisplaying call stack trace for plugin "l4d2_Bots Weapon Preference Manipulation.smx":
L 07/26/2015 01:29:40: [SM]   [0]  Line 520C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2Bots Weapon Preference Manipulation.sp::OnEntityDestroyed() 
I've installed Left 4 Downtown 2 before and my server path: "D:\Steam\SteamApps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod"
This error only happens when you use Sourcemod in Single Player, and does not affect the plugin functionality at all, updating Downtown also eliminated a lot of errors that this plugin was bringing, try redownloading the plugin from the main post too just in case.
__________________
DeathChaos25 is offline
bazrael
Senior Member
Join Date: Jan 2010
Location: Where Lucy became superw
Old 07-26-2015 , 21:15   Re: [L4D2] Bots Weapon Preferences Editor
Reply With Quote #18

Quote:
Originally Posted by DeathChaos25 View Post
This error only happens when you use Sourcemod in Single Player, and does not affect the plugin functionality at all, updating Downtown also eliminated a lot of errors that this plugin was bringing, try redownloading the plugin from the main post too just in case.
I did host my "LOCAL" dedicated server in the same computer which also plays L4D2.
bazrael is offline
uriel18
Senior Member
Join Date: Apr 2009
Old 08-11-2015 , 10:12   Re: [L4D2] Bots Weapon Preferences Editor
Reply With Quote #19

Preference Manipulation.sp::OnEntityDestroyed()
L 08/11/2015 - 16:07:20: [SM] Native "GetArraySize" reported: Invalid Handle b710b69 (error: 3)
L 08/11/2015 - 16:07:20: [SM] Displaying call stack trace for plugin "[L4D2] Bots Weapon Preference Manipulation.smx":
L 08/11/2015 - 16:07:20: [SM] [0] Line 520, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2] Bots Weapon Preference Manipulation.sp::OnEntityDestroyed()
L 08/11/2015 - 16:07:20: [SM] Native "GetArraySize" reported: Invalid Handle b700b68 (error: 3)
L 08/11/2015 - 16:07:20: [SM] Displaying call stack trace for plugin "[L4D2] Bots Weapon Preference Manipulation.smx":
L 08/11/2015 - 16:07:20: [SM] [0] Line 494, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2] Bots Weapon Preference Manipulation.sp::OnEntityDestroyed()
L 08/11/2015 - 16:07:20: [SM] Native "GetArraySize" reported: Invalid Handle b730b6b (error: 3)
L 08/11/2015 - 16:07:20: [SM] Displaying call stack trace for plugin "[L4D2] Bots Weapon Preference Manipulation.smx":
L 08/11/2015 - 16:07:20: [SM] [0] Line 455, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2] Bots Weapon Preference Manipulation.sp::OnEntityDestroyed()
L 08/11/2015 - 16:07:20: [SM] Native "GetArraySize" reported: Invalid Handle b740b6c (error: 3)
L 08/11/2015 - 16:07:20: [SM] Displaying call stack trace for plugin "[L4D2] Bots Weapon Preference Manipulation.smx":
L 08/11/2015 - 16:07:20: [SM] [0] Line 468, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2] Bots Weapon Preference Manipulation.sp::OnEntityDestroyed()
L 08/11/2015 - 16:07:20: [SM] Native "GetArraySize" reported: Invalid Handle b740b6c (error: 3)
L 08/11/2015 - 16:07:20: [SM] Displaying call stack trace for plugin "[L4D2] Bots Weapon Preference Manipulation.smx":
L 08/11/2015 - 16:07:20: [SM] [0] Line 468, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2] Bots Weapon Preference Manipulation.sp::OnEntityDestroyed()
L 08/11/2015 - 16:07:20: [SM] Native "GetArraySize" reported: Invalid Handle b730b6b (error: 3)
L 08/11/2015 - 16:07:20: [SM] Displaying call stack trace for plugin "[L4D2] Bots Weapon Preference Manipulation.smx":
L 08/11/2015 - 16:07:20: [SM] [0] Line 455, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2] Bots Weapon Preference Manipulation.sp::OnEntityDestroyed()
L 08/11/2015 - 16:07:20: [SM] Native "GetArraySize" reported: Invalid Handle b730b6b (error: 3)
L 08/11/2015 - 16:07:20: [SM] Displaying call stack trace for plugin "[L4D2] Bots Weapon Preference Manipulation.smx":


It gives me this error in the console around 60 times (I only copied some), and survivors take wrong weapons.

Singleplayer, and localhost.

P.D.:Te lo iba a decir en español que es mi idioma nativo y asumo que también el tuyo, pero así la información es más útil por si le pasa a más gente ^^
__________________
uriel18 is offline
DeathChaos25
Senior Member
Join Date: Jan 2014
Location: Puerto Rico
Old 08-11-2015 , 19:38   Re: [L4D2] Bots Weapon Preferences Editor
Reply With Quote #20

Quote:
Originally Posted by uriel18 View Post
Preference Manipulation.sp::OnEntityDestroyed()
L 08/11/2015 - 16:07:20: [SM] Native "GetArraySize" reported: Invalid Handle b710b69 (error: 3)
L 08/11/2015 - 16:07:20: [SM] Displaying call stack trace for plugin "[L4D2] Bots Weapon Preference Manipulation.smx":
L 08/11/2015 - 16:07:20: [SM] [0] Line 520, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2] Bots Weapon Preference Manipulation.sp::OnEntityDestroyed()
L 08/11/2015 - 16:07:20: [SM] Native "GetArraySize" reported: Invalid Handle b700b68 (error: 3)
L 08/11/2015 - 16:07:20: [SM] Displaying call stack trace for plugin "[L4D2] Bots Weapon Preference Manipulation.smx":
L 08/11/2015 - 16:07:20: [SM] [0] Line 494, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2] Bots Weapon Preference Manipulation.sp::OnEntityDestroyed()
L 08/11/2015 - 16:07:20: [SM] Native "GetArraySize" reported: Invalid Handle b730b6b (error: 3)
L 08/11/2015 - 16:07:20: [SM] Displaying call stack trace for plugin "[L4D2] Bots Weapon Preference Manipulation.smx":
L 08/11/2015 - 16:07:20: [SM] [0] Line 455, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2] Bots Weapon Preference Manipulation.sp::OnEntityDestroyed()
L 08/11/2015 - 16:07:20: [SM] Native "GetArraySize" reported: Invalid Handle b740b6c (error: 3)
L 08/11/2015 - 16:07:20: [SM] Displaying call stack trace for plugin "[L4D2] Bots Weapon Preference Manipulation.smx":
L 08/11/2015 - 16:07:20: [SM] [0] Line 468, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2] Bots Weapon Preference Manipulation.sp::OnEntityDestroyed()
L 08/11/2015 - 16:07:20: [SM] Native "GetArraySize" reported: Invalid Handle b740b6c (error: 3)
L 08/11/2015 - 16:07:20: [SM] Displaying call stack trace for plugin "[L4D2] Bots Weapon Preference Manipulation.smx":
L 08/11/2015 - 16:07:20: [SM] [0] Line 468, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2] Bots Weapon Preference Manipulation.sp::OnEntityDestroyed()
L 08/11/2015 - 16:07:20: [SM] Native "GetArraySize" reported: Invalid Handle b730b6b (error: 3)
L 08/11/2015 - 16:07:20: [SM] Displaying call stack trace for plugin "[L4D2] Bots Weapon Preference Manipulation.smx":
L 08/11/2015 - 16:07:20: [SM] [0] Line 455, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\[L4D2] Bots Weapon Preference Manipulation.sp::OnEntityDestroyed()
L 08/11/2015 - 16:07:20: [SM] Native "GetArraySize" reported: Invalid Handle b730b6b (error: 3)
L 08/11/2015 - 16:07:20: [SM] Displaying call stack trace for plugin "[L4D2] Bots Weapon Preference Manipulation.smx":


It gives me this error in the console around 60 times (I only copied some), and survivors take wrong weapons.

Singleplayer, and localhost.

P.D.:Te lo iba a decir en español que es mi idioma nativo y asumo que también el tuyo, pero así la información es más útil por si le pasa a más gente ^^
Updated, this should no longer happen now.

P.D.: He creado un pequeño pack con mis plugins, lo cual facilita mucho el proceso para obtener a los 8 sobrevivientes, sin tener que utilizar el plugin de super versus (tambien incluye la version más reciente de todos mis plugins incluyendo este), compartelo y que se diviertan con este pack (requiere Sourcemod version 1.7 o más actual)
__________________

Last edited by DeathChaos25; 08-11-2015 at 19:38.
DeathChaos25 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 14:50.


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