Raised This Month: $105 Target: $400
 26% 

[L4D2] Survivor Bot AI Improver


Post New Thread Reply   
 
Thread Tools Display Modes
kmah
Junior Member
Join Date: Oct 2019
Old 09-07-2024 , 16:05   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #141

Quote:
Originally Posted by Mystik Spiral View Post
@kmah

Make sure you downloaded VScript from:
https://github.com/FortyTwoFortyTwo/...ns/10649893782
(Note: You must be logged into your GitHub account to download)

Make sure you copied:

vscript.inc to the addons/sourcemod/scripting/include directory
vscript.txt to the addons/sourcemod/gamedata directory

Extract those files from VScript-1.8.6.81.zip if you are not sure and copy them again.
Thanks for the reply! Yes, I downloaded VScript from the link you provided, but I still couldn't get it working. I copied all the files to the correct directories (vscript.inc to addons/sourcemod/scripting/include and vscript.txt to addons/sourcemod/gamedata).

I've attached some screenshots, am I missing something?
Attached Thumbnails
Click image for larger version

Name:	vscrpt.png
Views:	45
Size:	12.0 KB
ID:	205628   Click image for larger version

Name:	vscrpt-txt.png
Views:	35
Size:	18.9 KB
ID:	205629  
kmah is offline
liquidplasma
Member
Join Date: May 2023
Old 09-07-2024 , 16:57   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #142

Quote:
Originally Posted by Mystik Spiral View Post
I do not know what was causing your crashes or mine. What I do know... on my Windows 10 Intel Xeon E3-1245 V5 server this plugin was unstable and constantly generated errors/crashes, and on my Ubuntu 22.04 AMD Ryzen 9 7950X3D server this plugin is very stable and does not produce a single error/crash.
Did your windows crashes looked like this one?
https://crash.limetech.org/7fdl4wryz6aw
liquidplasma is offline
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 09-07-2024 , 17:28   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #143

@kmah

See post 87 and especially post 88 of this thread. To compile, you must comment the "enum fieldtype_t" section of scripting/include/left4dhooks.inc, not vscript.inc. Compile survivor_bot_ai_improver, then put left4dhooks.inc back to original.

However, I did something different that is effectively the same thing but works better for me...

I created a copy of left4dhooks.inc and named it left4dhooks_vscript.inc, so I have files named left4dhooks.inc and left4dhooks_vscript.inc.

I modified left4dhooks_vscript.inc like this:

PHP Code:
// These are used for the "L4D2_OnGetScriptValueVoid" forward, and interally for the other "L4D2_OnGetScriptValue*" forwards:
//enum fieldtype_t
//{
//    FIELD_VOID = 0,                // No type or value
//    FIELD_FLOAT = 1,            // Any floating point value
//    FIELD_VECTOR = 3,            // Any vector, QAngle, or AngularImpulse
//    FIELD_INTEGER = 5,            // Any integer or enum
//    FIELD_BOOLEAN = 6,            // boolean, implemented as an int, I may use this as a hint for compression
//    FIELD_CHARACTER = 8,        // a byte
//    FIELD_CSTRING = 31,
//    FIELD_UNSIGNED = 38,
//    FIELD_QANGLE = 40
//}; 
I modified the "<left4dhooks>" include in l4d2_survivor_bot_ai_improver.sp like this:

PHP Code:
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
#include <dhooks>
#include <left4dhooks_vscript>
#include <profiler>
#include <adt_trie>
#include <vscript> //https://github.com/FortyTwoFortyTwo/VScript 
__________________
Mystik Spiral is offline
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 09-07-2024 , 17:36   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #144

@liquidplasma

I do not remember and no longer have access to anything related to the old system, sorry. However, I do remember that there were many different errors, and I used to get a bunch of "ran long" messages in the console and I do not get those anymore.
__________________
Mystik Spiral is offline
liquidplasma
Member
Join Date: May 2023
Old 09-08-2024 , 22:50   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #145

Quote:
Originally Posted by Mystik Spiral View Post
@liquidplasma

I do not remember and no longer have access to anything related to the old system, sorry. However, I do remember that there were many different errors, and I used to get a bunch of "ran long" messages in the console and I do not get those anymore.
Unfortunate, I keep crashing in SurvivorBot * Action<>::InvokeUpdate(SurvivorBot *param_1,Behavior *param_2,float param_3), it's almost impossible to debug on the update method
liquidplasma is offline
kmah
Junior Member
Join Date: Oct 2019
Old 09-13-2024 , 18:13   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #146

Quote:
Originally Posted by Mystik Spiral View Post
@kmah

See post 87 and especially post 88 of this thread. To compile, you must comment the "enum fieldtype_t" section of scripting/include/left4dhooks.inc, not vscript.inc. Compile survivor_bot_ai_improver, then put left4dhooks.inc back to original.

However, I did something different that is effectively the same thing but works better for me...

I created a copy of left4dhooks.inc and named it left4dhooks_vscript.inc, so I have files named left4dhooks.inc and left4dhooks_vscript.inc.

I modified left4dhooks_vscript.inc like this:

PHP Code:
// These are used for the "L4D2_OnGetScriptValueVoid" forward, and interally for the other "L4D2_OnGetScriptValue*" forwards:
//enum fieldtype_t
//{
//    FIELD_VOID = 0,                // No type or value
//    FIELD_FLOAT = 1,            // Any floating point value
//    FIELD_VECTOR = 3,            // Any vector, QAngle, or AngularImpulse
//    FIELD_INTEGER = 5,            // Any integer or enum
//    FIELD_BOOLEAN = 6,            // boolean, implemented as an int, I may use this as a hint for compression
//    FIELD_CHARACTER = 8,        // a byte
//    FIELD_CSTRING = 31,
//    FIELD_UNSIGNED = 38,
//    FIELD_QANGLE = 40
//}; 
I modified the "<left4dhooks>" include in l4d2_survivor_bot_ai_improver.sp like this:

PHP Code:
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
#include <dhooks>
#include <left4dhooks_vscript>
#include <profiler>
#include <adt_trie>
#include <vscript> //https://github.com/FortyTwoFortyTwo/VScript 
can you please share yours if they're working? No matter what I try i can't get the vscript.smx to work
kmah is offline
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 09-14-2024 , 09:58   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #147

@kmah

My previous post was about compiling l4d2_survivor_bot_ai_improver.sp, not vscript.sp, but I see what you mean now, though my error is a little different than yours.

I do not have any problems compiling the latest 1.8.6 version of vscript.smx, but it fails to load. I posted about it on the author's page here. When I used the 1.8.5 version of vscript.smx from Kerouha it works fine.

Update: I also posted to the author's GitHub page in the Issues section.
__________________

Last edited by Mystik Spiral; 09-14-2024 at 10:36.
Mystik Spiral is offline
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 09-15-2024 , 11:39   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #148

@kmah

The VScript issue has been resolved. It was a compatibility issue with VScript 1.8.6 and SourceScramble 0.8.0. I completely replaced SourceScramble 0.8.0 with 0.7.1.4 and then I was able to compile and run VScript 1.8.6 with no errors or problems.
__________________
Mystik Spiral is offline
Kerouha
Member
Join Date: Jul 2015
Location: Russian Federation
Old 09-15-2024 , 17:40   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #149

Quote:
Originally Posted by jimmycm123 View Post
... prioritizing the best melee weapons like axes over pitchforks ...
Had this idea on my mind for a while as well. Added basic preference for melee. Can be adjusted through "melee_preference" section of ib_data.cfg. Should support additional melee weapons in theory, if you add their models in according sections.

Making bots prefer T3/chainsaw less looks like too much effort for too litte use now.

Quote:
Originally Posted by Mystik Spiral View Post
PHP Code:
hResult.type DONE;
hResult.action INVALID_ACTION;
return 
Plugin_Changed
Implemented the change. Wondering if it's gonna resolve random crashes like this.
Attached Files
File Type: zip l4d2_sb_ai_improver.zip (183.5 KB, 69 views)
__________________
L4D2 Survivor Bot AI Improver [fork at GitHub]
Kerouha is offline
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 09-15-2024 , 18:53   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #150

@Kerouha

Thanks!

A few days ago I created a pull request on your GitHub page that has the Actions fix and a fix for the duplicate symbols / conflict between vscript and left4dhooks include files (allows you to compile l4d2_survivor_bot_ai_improver.sp without making any changes).
__________________
Mystik Spiral is offline
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 23:12.


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