It is currently Wed 22. May 2013, 21:41

All times are UTC + 1 hour




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Custom BOT configuration
PostPosted: Fri 9. Mar 2012, 17:33 
Offline
NewPaddy
NewPaddy

Joined: Thu 26. Jan 2012, 09:15
Posts: 9
Hello, I'm new to the forums.

I have been playing World of Padman since 2010 and I'm now running the server "Dungeons N Donuts".
It seems that bots with paddy in the name (e.g paddybee) do not shoot when set to lower difficulty level. Is it possible to exclude the paddy bots from the server and keep the other bots?

Thank you.


Top
 Profile  
 
PostPosted: Sat 10. Mar 2012, 12:43 
Offline
PadMember
PadMember
User avatar

Joined: Thu 10. May 2007, 17:00
Posts: 3078
Images: 30
Location: /dev/sda1
I assume you are using bot_minplayers here?

There is no official way to prevent some of the bots from being added automatically.
Luckily there is a workaround;
You could
  • extract scripts/wop_playermodels.bot from wop/wop_006.pk3
  • remove the paddy bot entries at the end of the file
  • save your edited file as wop/scripts/wop_playermodels.bot
  • launch your server as usual

It quite sounds like a bug, bots should still be shooting from time to time, no matter how low you set their skill.
Does this only happen with the paddy bots? At which skill level, gametype, map?

_________________
Image


Top
 Profile Personal album  
 
PostPosted: Tue 13. Mar 2012, 21:47 
Offline
NewPaddy
NewPaddy

Joined: Thu 26. Jan 2012, 09:15
Posts: 9
I can continuously walk ahead of enemy bot without getting shot.
It does not seem to only happen with paddy bots.
I have seen it happen in Pad Asia, Padcloister, The train map and colorstage, all CTL and set with instapad.

Yes I'm using bot_minPlayers "2"
Bots are set to g_spSkill "1"

Thank you!


Top
 Profile  
 
PostPosted: Tue 8. May 2012, 05:03 
Offline
NewPaddy
NewPaddy

Joined: Thu 26. Jan 2012, 09:15
Posts: 9
OK. I edited that file and left only bots that had the following line.
aifile bots/padman_c.c

I don't know why it works but it seems to work. All bots shoot.

I'm now having a problem with people having to download the wop/wop_006.pk3 file.

Should I make the file available for download? its around 100mb and it might be too much for some people do download before play. What would be the best way to fix this? I prefer not have to disable sv_pure.


Top
 Profile  
 
PostPosted: Tue 8. May 2012, 20:51 
Offline
PadMember
PadMember
User avatar

Joined: Mon 5. Sep 2005, 16:17
Posts: 1946
Images: 0
Location: Stuttgart, Germany
Never change existing original files in the wop directory!!! This will cause trouble and won't solve your problem, it will cause even more trouble. There is no need to release a modified wop_006.pk3.

If you want to change files in the manner you like, please create your own mod by releasing your pk3 file with a unique file name containing only edited files. Therefore you need to create an extra folder in the directory where the wop subdirectory exists.

_________________
Image


Top
 Profile  
 
PostPosted: Tue 8. May 2012, 22:50 
Offline
NewPaddy
NewPaddy

Joined: Thu 26. Jan 2012, 09:15
Posts: 9
Excellent.

Just to clarify...
If I was to make a shooting_bots.pk3 file available for download with only the scripts/wop_playermodels.bot file included. Will it overwrite the bot settings included in wop_006.pk3? Is making a file available for download a requirement in this case?

Do you know of any howto/documentation on creating this type of mods?
I found some info on making mods online but was not able to find specific answers.

I appreciate your replies and patience.
Thank you.

EDIT: I guess my questions are more for "WoP Editing" forum then regular Wop forum. I just notice that forum. I will be looking for more info there too...

EDIT: I'm making progress. Looks like placing the shooting_bots.pk3 in ~/.padman/wop is overwriting the settings in wop_006.pk3 . Cool!


Top
 Profile  
 
PostPosted: Sat 12. May 2012, 15:48 
Offline
PadMember
PadMember
User avatar

Joined: Thu 10. May 2007, 17:00
Posts: 3078
Images: 30
Location: /dev/sda1
I can't test this right now, but you should not need to create a new pk3 file and neither need to distribute it for autodownload*.
".bot" files are handled in a special way by the engine (see code/qcommon/files.c FS_FOpenFileReadDir() ). Unfortunately there is no documentation about this. Most "mod tutorials" are about how to create modified game logic (cgame, game, ui) and how to pack the .qvm files into a .pk3.

Like I said in my first post, just extract the file, edit it and save it as a plain new file on your hard disk (i.e. ~/.padman/wop/scripts/wop_playermodels.bot).

*In fact it would be bad to distribute such a hack/hotfix to the players, since it'll be loaded when they play local games or create servers as well.

_________________
Image


Top
 Profile Personal album  
 
PostPosted: Thu 7. Jun 2012, 23:21 
Offline
NewPaddy
NewPaddy

Joined: Thu 26. Jan 2012, 09:15
Posts: 9
Thank you for your reply.

IIRC, I edited that file and only left some padman bots. The way the server is setup now, it does not require players to download anything.
The bot skill does not seem to be even across but the bots I selected shoot.
It also seems that some bots are able to get the enemy flag from enemy flag place and some are able to score a flag point. I'm not sure but it may have something to do with the path that the bots walk on the map. I could be wrong but I think there is a difference of walking path depending on the team.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group