.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > JKBotti
JKBotti The new generation of Half-Life bots by ghost of evilspy HLDMOpposing Force

Reply
 
Thread Tools
JK-Botti 1.44-beta Src Code Unofficial WIP
Old
  (#1)
RoboCop
vBulletin Veteran
 
RoboCop's Avatar
 
Status: Offline
Posts: 217
Join Date: Feb 2013
Location: Dundee, Scotland
Default JK-Botti 1.44-beta Src Code Unofficial WIP - 11-09-2016

Hello I don't know if anyone who are reading this could maybe cooperate but I was hoping someone could maybe point out some errors or mistakes I made with this JK-Botti src code that I'm altering for supporting DMC.

I extracted some of the bot_start.cpp from HPB for allowing bots to start as JKB doesn't allow bots to use "_firstspawn" command as the DMC MOTD requires the bot to "click" [OK] on the MOTD caption, as HLDM and Op4DM doesn't require the for MOTD to clear for movement and to spawn for the bots.

I did some experimenting and added the entities and bot_weapons for DMC but I'm stuck on the bot_start.cpp part as I'm not a C/C++ professional. This current src code zip contains a GCC compile error from bot_start.cpp saying:

Code:
bot_start.cpp: In function ‘void BotStartGame()’:
bot_start.cpp:38:48: error: could not convert ‘(const char*)"_firstspawn"’ from ‘const char*’ to ‘edict_t {aka edict_s}’
     FakeClientCommand("_firstspawn", NULL, NULL);
I've tried nearly everything else I could solve this problem. I got the src code for JKB 1.44-beta WIP for those who like to adventure on recoding this source scripts.
Attached Files
File Type: zip jk_botti.zip (747.3 KB, 1298 views)





vBulletin Webmaster since 2001
  
Reply With Quote
Re: JK-Botti 1.44-beta Src Code Unofficial WIP
Old
  (#2)
jeefo
путинхуйлоебаное
 
jeefo's Avatar
 
Status: Offline
Posts: 453
Join Date: Nov 2005
Location: Saint-Petersburg
Default Re: JK-Botti 1.44-beta Src Code Unofficial WIP - 11-09-2016

hi.

is suppose FakeClientCommand takes pBot.pEdict pointer as first parameter.
  
Reply With Quote
Re: JK-Botti 1.44-beta Src Code Unofficial WIP
Old
  (#3)
RoboCop
vBulletin Veteran
 
RoboCop's Avatar
 
Status: Offline
Posts: 217
Join Date: Feb 2013
Location: Dundee, Scotland
Default Re: JK-Botti 1.44-beta Src Code Unofficial WIP - 14-09-2016

Alright so far I think I got that part fixed. But I need to look over on the mod_id compile error in bot_start.cpp:-

Code:
bot_start.cpp: In function ‘void BotStartGame()’:
bot_start.cpp:36:1: error: expected initializer before ‘if’
 if (mod_id == DMC_DLL)
 ^
bot_start.cpp:105:2: error: ‘else’ without a previous ‘if’
  else
  ^
bot_start.cpp:108:5: error: ‘pBot’ was not declared in this scope
     pBot->not_started = 0;





vBulletin Webmaster since 2001
  
Reply With Quote
Re: JK-Botti 1.44-beta Src Code Unofficial WIP
Old
  (#4)
tschumann
Moderator
 
tschumann's Avatar
 
Status: Offline
Posts: 277
Join Date: Apr 2011
Location: Australia
Default Re: JK-Botti 1.44-beta Src Code Unofficial WIP - 14-09-2016

Post the entire bit that you've changed - the error messages seem obvious enough but it would be easier to see what you've done for context.
  
Reply With Quote
Re: JK-Botti 1.44-beta Src Code Unofficial WIP
Old
  (#5)
RoboCop
vBulletin Veteran
 
RoboCop's Avatar
 
Status: Offline
Posts: 217
Join Date: Feb 2013
Location: Dundee, Scotland
Default Re: JK-Botti 1.44-beta Src Code Unofficial WIP - 14-09-2016

Well so far the compiler seems to work okay when I exclude bot_start.cpp and added in line 923 for bot.cpp:
Code:
* * * FakeClientCommand(BotEnt, "_firstspawn", NULL, NULL);
But when I loaded JKB on Metamod the logs gave me this error:-
Code:
L 09/14/2016 - 16:44:31: [META] WARNING: dll: Failed query plugin '<jk_botti_mm.so>'; Couldn't open file '/home/desktop/steamcmd/hlds/dmc/addons/jk_botti/dlls/jk_botti_mm.so': /home/apghlds/steamcmd/hlds/dmc/addons/jk_botti/dlls/jk_botti_mm.so: undefined symbol: waypoints
L 09/14/2016 - 16:44:31: [META] WARNING: dll: Skipping plugin '<jk_botti_mm.so>'; couldn't query
L 09/14/2016 - 16:44:31: [META] WARNING: dll: Failed to load plugin 'jk_botti_mm.so'
I had to add the DMC weapons in bot_weapons.cpp but I don't know that will cause that issue on the 'waypoint' error. Although the 'weapon_shotgun' entity that is used for both HLDM and DMC may of caused a conflicting issue but my Linux shell on using Make didn't display any warning messages.





vBulletin Webmaster since 2001
  
Reply With Quote
Re: JK-Botti 1.44-beta Src Code Unofficial WIP
Old
  (#6)
tschumann
Moderator
 
tschumann's Avatar
 
Status: Offline
Posts: 277
Join Date: Apr 2011
Location: Australia
Default Re: JK-Botti 1.44-beta Src Code Unofficial WIP - 16-09-2016

I think by default gcc won't complain about undefined variables - I think the -Wall parameter might help here.
Why did you exclude bot_start.cpp?
  
Reply With Quote
Re: JK-Botti 1.44-beta Src Code Unofficial WIP
Old
  (#7)
RoboCop
vBulletin Veteran
 
RoboCop's Avatar
 
Status: Offline
Posts: 217
Join Date: Feb 2013
Location: Dundee, Scotland
Default Re: JK-Botti 1.44-beta Src Code Unofficial WIP - 16-09-2016

Because I had to start from scratch by reflecting on some of the modifications I did to support DMC. I already knew on the "_firstspawn" was the key to allow JKB to spawn the bots properly in DMC, but I realised that bot.cpp can also use that command.





vBulletin Webmaster since 2001
  
Reply With Quote
Re: JK-Botti 1.44-beta Src Code Unofficial WIP
Old
  (#8)
RoboCop
vBulletin Veteran
 
RoboCop's Avatar
 
Status: Offline
Posts: 217
Join Date: Feb 2013
Location: Dundee, Scotland
Default Re: JK-Botti 1.44-beta Src Code Unofficial WIP - 17-09-2016

Well so far I've made some tweaks and added a bit more DMC support but I had to exclude some #define for the HLDM and Op4 declarations as the compiler cannot cope using too many initializers in bot_weapons.h. I've added in waypoints.cpp/h and engine.cpp for 4 of the DMC runes and 3 types of armour, as well added the DMC weapons and ammo in bot_weapons.

The bots do work well but they appear to only use the single-barreled shotgun mainly and they don't learn how to evade the lava pit to avoid suicide.

And as for the Makefile it appears the main /metamod folder in jk_botti src folder contains the Metamod SDK with the older Meta Interface 5:7 so I had to use Metamod-P37 src code to allow JKB to support.

I've recompiled JKB as jk_botti_dmc_mm.so v1.44 for you guys to maybe try out. I know the src code is kinda messed up and I didn't had time to neaten it up, but I had to test some ideas for JKB to work on DMC for practical experimental purposes.
Attached Files
File Type: zip jk_botti.zip (11.02 MB, 1235 views)





vBulletin Webmaster since 2001
  
Reply With Quote
Re: JK-Botti 1.44-beta Src Code Unofficial WIP
Old
  (#9)
sixcentgeorgefr
Member
 
sixcentgeorgefr's Avatar
 
Status: Offline
Posts: 44
Join Date: Aug 2009
Default Re: JK-Botti 1.44-beta Src Code Unofficial WIP - 02-12-2020

i emailed the author several times.. and beside i am french.. [ i mean it because i think he is from finland.. finland where france is building for them a nuclear reactor...that theypromised to pay 3 billions..its current cost for france is more around 30's billions../spoiler]... he never answered any email..
it was about metamod-p that he makes either
i also added this pluggin in my first mod using the opposing force dlls ..

my post has nothing to do with the above ;'] text..
i read the link : https://github.com/Bots-United/jk_botti
where the original author speaks about a 1.44 beta himself ..
as he "commit" change 6 month ago .. i wonder if you work on 1.44b or create a 1.45b ..

i try to not be "tricky" but the main good thing in opposing force , beside the grunts friends : torchman and medic + males black-ops and the new aliens ...
are the two giant aliens : with entities managed by the dlls : the eyes and the claws ..
as the code is still "private" even the svencoop is still not able to have them looking real ..in his "coop mod version "

i am asking if you or the original author are planing to use these monsters as "Bots" ??
[i would also take some in my dlls.. sorry i ll do imagine i do the saturday morning "market" ..buying fresh vegetables from around ..[lol] i can 't stop joking..]
  
Reply With Quote
Re: JK-Botti 1.44-beta Src Code Unofficial WIP
Old
  (#10)
RoboCop
vBulletin Veteran
 
RoboCop's Avatar
 
Status: Offline
Posts: 217
Join Date: Feb 2013
Location: Dundee, Scotland
Default Re: JK-Botti 1.44-beta Src Code Unofficial WIP - 03-12-2020

Quote:
Originally Posted by sixcentgeorgefr View Post
i emailed the author several times.. and beside i am french.. [ i mean it because i think he is from finland.. finland where france is building for them a nuclear reactor...that theypromised to pay 3 billions..its current cost for france is more around 30's billions../spoiler]... he never answered any email..
it was about metamod-p that he makes either
i also added this pluggin in my first mod using the opposing force dlls ..

my post has nothing to do with the above ;'] text..
i read the link : https://github.com/Bots-United/jk_botti
where the original author speaks about a 1.44 beta himself ..
as he "commit" change 6 month ago .. i wonder if you work on 1.44b or create a 1.45b ..

i try to not be "tricky" but the main good thing in opposing force , beside the grunts friends : torchman and medic + males black-ops and the new aliens ...
are the two giant aliens : with entities managed by the dlls : the eyes and the claws ..
as the code is still "private" even the svencoop is still not able to have them looking real ..in his "coop mod version "

i am asking if you or the original author are planing to use these monsters as "Bots" ??
[i would also take some in my dlls.. sorry i ll do imagine i do the saturday morning "market" ..buying fresh vegetables from around ..[lol] i can 't stop joking..]
JK Author kinda resigned being JKB project leader.





vBulletin Webmaster since 2001
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com