Tremulous Forum
Community => Servers => Topic started by: riderrocker on July 27, 2009, 05:12:33 am
-
I'm trying to make a server that I can add bots to and play on by myself. I'm not trying to get other players to connect to my server, so it shouldn't be all that complicated, right?
Clicking 'Play' and then 'Create' from the main menu gets me a private server, but how do I add bots to it?
Thanks
-
It's slightly more complicated than that. ::)
Try reading stickies and searching please.
-
yeah, i've been doing that for the last 3 hours. All the stickies and posts i've read are guides to creating a server other players can join.
I'm trying to make one I can practice on with bots.
I've found guides for using bots but i can't figure out how to give myself admin on the personal server
-
You could just set a password. This has the added benefit of allowing friends of yours to play with you also, while keeping out strangers.
-
It's probably easier to just start a private server than to try and get the client to run up-to-date qvm's.
-
yeah, i have a private server, i was just trying to figure out how to give myself admin on the private server so i can add bots
-
1. Set your rcon password in server.cfg (set rconPassword yourpasswordhere)
2. Go into the server, and open up console (~)
3. Type /rcon yourpasswordhere !setlevel yournamehere X
X = whatever the highest admin level is. By default it's 5. (You can add more in admin.dat)
-
where do i put server.cfg?
can i just create it with notepad?
-
server.cfg is created automatically in base/ when you run your tremded. Editing with notepad is a good idea.
-
i'm not using tremded to make a server, i'm just clicking the create server button from the menu.
i have a server.cfg that sets the rcon password, but what folder do i put it in so that it will work
-
Use a tremded. I'm pretty sure you'll have to in order to get a private server with bots that friends may also join.
Follow this (http://tremulous.net/forum/index.php?topic=3586.0) guide, but instead of TJW's QVM or Tremded, use something else.
For Tremded, try Mercenaries Guild Client (http://releases.mercenariesguild.net), or TremFusion (http://www.tremfusion.net). Personally, I like TremFusion.
For QVM, you'll need something that supports bots. I haven't really looked into it too much, but a couple of Google searches reveal some options:
PBot - http://xserverx.com/forum/viewtopic.php?f=38&t=1363
Invasion - http://tremulous.net/forum/index.php?topic=9058.0
Ambush - http://tremulous.net/forum/index.php?topic=8864.0
Amine's - http://tremulous.net/forum/index.php?topic=7601.0
Those should have plenty of info on setting up the server.
I think that setting "dedicated" to "1" instead of "2" would keep it off the master list, and allow friends to /connect to your IP.
You shouldn't have to stop your Tremded, just leave it up and connect (and let your friends connect) at will.
Good luck!
EDIT: Sorry. base/ is under your Tremulous data directory. It's where your maps are stored, your binds, etc. I'm not running Windows and therefore can't check, but your base folder should be:
C:\Documents and Settings\riderrocker\Local Settings\Application Data\Tremulous\base
-
i'm not trying to allow friends to join, i just wanna practice against the bots myself
and i figured out how to make myself admin, i just typed /set rconPassword "testing" into console and it worked
-
I was hoping to use the bot from here
http://tremulous.net/forum/index.php?topic=6163.0
how do I install the patch?
-
I was hoping to use the bot from here
http://tremulous.net/forum/index.php?topic=6163.0
how do I install the patch?
That is old, you would do better using something newer. And for your information, you will need to follow Baconizer's instructions. You can't just use create a server.
-
You can use the PBOT QVM. http://xserverx.com/forum/viewtopic.php?f=38&t=1363 (http://xserverx.com/forum/viewtopic.php?f=38&t=1363)
that has fairly good bots which combines amine's bot with the ambush mod. The PBOT QVM works with the TremFusion client from http://www.tremfusion.net/ (http://www.tremfusion.net/) and does not need a tremded.
the QVM goes in the vm folder in the base folder (base\vm).
The bots only work on ATCS unless you can find more paths for them.
You may have to make the server using /map atcs in the console
-
ok, I was just trying to find out if I could use bots by myself without going through all that port forwarding stuff.
And are you able to control what the PBOT does?
One of the things I wanted to do was have them stand still so I can get a feel for the range of goon chomps, etc.
-
ok, i got tremfusion running, and i'm going to sound like an idiot here, but how do you apply the patch downloaded with the pbot qvm?
and if you don't need a tremded with tremfusion, then how do you create a server?
-
ok, i got tremfusion running, and i'm going to sound like an idiot here, but how do you apply the patch downloaded with the pbot qvm?
the patch is for compiling, which you should not need to do. Just put the game.qvm in to the vm folder in your base (create one if there isn't already one there).
and if you don't need a tremded with tremfusion, then how do you create a server?
TremFusion does not have a create server button for some reason but you can create one by pressing the (~) key and typing /map atcs
into the console. The server will only work for private use and LAN of course.
Remember after the map is loaded type /sv_privateclients (the number of bots you want to add)
To add bots type !bot add [botname] [team]
!bot add ROBOCOP humans - adds ROBOCOP to human team
!bot add ALIENBOT aliens - adds ALIENBOT to alien team
!bot del [name-match]
!bot del ROBO - deletes every bot that contains 'ROBO' in their name
!bot del BOT - deletes every bot that contains 'BOT' in their name
Oh and the paths folder from the compressed file must also be added into base.
The information file included in the compressed file has some possibly useful commands in it.
And are you able to control what the PBOT does?
One of the things I wanted to do was have them stand still so I can get a feel for the range of goon chomps, etc.
Yes these commands should do something but not all of them work.
!botcmd [name-match] [command]
This will change the bot behavior.
!botcmd ROBOCOP idle <-- idle. don't shoot enemy, nothing.
!botcmd ROBOCOP standground <-- stand ground but kill enemy.
!botcmd ROBOCOP regular <-- chase enemy and kill (default behavior).
!botcmd ROBOCOP teamkill <-- consider teammates as enemies.
!botcmd ROBOCOP followattack <-- follow me until you see enemy, kill it, then follow me again!
!botcmd ROBOCOP followidle <-- follow me no matter what. Do not attack.
!botcmd ROBOCOP followprotect <-- not yet implemented.
!botcmd ROBOCOP defensive <-- not yet implemented.
!botcmd ROBOCOP attack <-- not yet implemented.
Any other !botcmd behavior will default to 'regular'
The commands are on this page http://tremulous.net/forum/index.php?topic=6163.0;wap2 (http://tremulous.net/forum/index.php?topic=6163.0;wap2) good luck.
-
Hey, thanks for your help. Everything works great, except for a slight GUI problem that i run into when i use /map atcs.
I fixed it by using the original tremulous mod with tremfusion. I'll attach some images.
Anyway, looks like my problems are solved, thank you for your help everyone. :D
-
Happy to help. :laugh:
I had that GUI problem too but i forgot about it. I managed to fix it by removing the tremfusion files from that base and just using the client on its own but it sounds like you already fixed it yourself by doing pretty much the same thing. ;D
-
I can't seem to be able to enable the bots. I got the PBOT game.qvm, placed it in base/vm/, also got the paths file. When I enter /map atcs I don't see any !bot commands in !help, and using !bot just broadcasts it as if I said it.
Do I need to do anything more? Some config magic? I don't think it's even being picked up, 'cause I don't see anything about the qvm file on console.
-
If you can, make a copy of vms-1.1.0.pk3 and move the copy to a safe place outside of the base.
Then go back into the base and open the other vms-1.1.0.pk3 with a .zip handling program and replace the game.qvm with the PBOT game.qvm.
That should now work, that is what i did.
Remember you also need a compatible client, I used TremFusion.
-
Editing the files that come with trem is a very bad idea and will just break everything should you ever try to play with anyone else.
Run the server, do "/fs_homepath" in the console (without quotes) and it should give you a path. Put the game.qvm in fs_homepath/pbot/vm and the start the server with +set fs_game pbot
-
OK, thanks David. That is better than what I said.
I have not yet had any problems with editing vms-1.1.0.pk3 though. :)
-
Thank you too. I would have never figured out in a million years that you have to place the game.qvm under .tremulous/pbot/vm/. All the instructions I've read said to put it under .tremulous/base/vm/, and that did nothing. And there was absolutely no peep about the /set fs_game pbot command either.
Well now it works.
And another piece of "magic", for other people who might need it: using tremfusion client, you can't start /devmap or /map. You have to select "base" from the Mods in the main menu, then /devmap or /map will work.
-
Thanks for figuring that out. putting it under .tremulous/pbot/vm/ then using +set fs_game pbot will run it as its own mod instead of replacing the default .qvm, that is a better method but I'm still gonna stick to mine ;D. I never had a problem with using /map and /devmap in tremfusion, then again that's just me. Now I know.
-
In the pbot game.qvm, when i type /map atcs into console the turrets do 20 damage instead of 4. Is there a way to fix this?
-
In the pbot game.qvm, when i type /map atcs into console the turrets do 20 damage instead of 4. Is there a way to fix this?
ahh the pbot qvm. I used that for a bit. I recompiled it changing the turret damage in tremulous.h... I'll look for my built qvm and see if I can find it. But the only way you can fix this is by recompialing the qvm. Right? But now that I think about it you might be able to set it in server.cfg? Can you? So before recompialing anything add to your server.cfg:
set mgturret_dmg 4
and
set mgturret_repeat 100
that might fix your turrets, but your telsas will also be messed up so add:
set teslagen_repeat 250
and
set teslagen_dmg 9
If you did that and it didn't fix you dmg settings(don't forget to restart your server) then ask me again, and I'll try to host my qvm on my website so you can download it..
-
does it matter where I put it in server.cfg? I just added 'set mgturret_dmg 4' at the bottom, and it didn't work.
I also wanted to make the spawning delay 10 seconds, would it be easier to just use your qvm?
-
But now that I think about it you might be able to set it in server.cfg? Can you? So before recompialing anything add to your server.cfg:
set mgturret_dmg 4
and
set mgturret_repeat 100
that might fix your turrets, but your telsas will also be messed up so add:
set teslagen_repeat 250
and
set teslagen_dmg 9
I tried adding this in my autogen, which will do the same thing right? All it did was create cvar's called "mgturret_dmg" etc that did not change how much damage the turrets did. To change the actual variable I believe it will need to be recompiled.
-
You have to put it to your qvm i think. Then compile it. Say if im wrong.
-
You have to put it to your qvm i think. Then compile it. Say if im wrong.
Sounds about right. Kiwi already made one.
-
As I understand it, server does not read autogen.cfg
autogen.cfg is client-side only.
-
You need to create a local server so.
You can use the bots only with a specific qvm.
You should use the Invasion qvm with the MG Client.
-
Ok, I uploaded my qvm to here (http://www.2shared.com/file/7017923/ea161817/game.html). But its for linux os. What operating system did you use? I hope it works. Let me know if it doesn't. ;)
-
QVMs are OS independent
-
QVMs are OS independent
:o I didn't know that. But now that I think about it, it does make sense. Thanks, good to know.
-
[wiki]Game.qvm[/wiki]
> Quake Virtual Machine
It's interpreted bytecode. You can build (faster) binary libraries, which I typically do, but a QVM can be distributed.
-
Yeah, it makes sense. Thanks! :D
-
Yeah, thanks, the qvm you uploaded fixed the turret damage and the spawning delay, but stuff still builds instantly. Maybe I just need to compile my own qvm.
-
Yeah, thanks, the qvm you uploaded fixed the turret damage and the spawning delay, but stuff still builds instantly. Maybe I just need to compile my own qvm.
Stuff still builds randomly sounds like marked deconen... aka ''e'' says when you build something new then decon this. So add
set g_markDeconstruct 0
to your server.cfg
I had this same problem with the pbot qvm. :D
-
I keep getting "permission denied" when trying to add bots. I use windows and do not know if the qvm that I am using for ambush bot is Linux or Windows or if that even makes a difference. Anyone know. I did put in the rcon password.
-
QVMs are OS independent
-
I keep getting "permission denied" when trying to add bots. I use windows and do not know if the qvm that I am using for ambush bot is Linux or Windows or if that even makes a difference. Anyone know. I did put in the rcon password.
It could be that you didn't give yourself permission to add bots in you admin.dat. Try:
/rcon [your rcon] !bot add bot aliens
If that works, then you need to add permissions in you admin.dat. To do that you should open you admin.dat and add z to the line that corresponds with your level. Here (http://www.tjw.org/tremulous/ADMIN.txt) is a quick explanation of an admin.dat and some default flags. You just need to add z to the levels you want to use !bot.
-
Now I get: "Bad corpseNum on corpse entity: -1" "RE- shutdown (0)" and throws me to the main menu.
I will take a look at your link below and see, in the meantime if you think of anything, it would be appreciated.
==========================================================================
It could be that you didn't give yourself permission to add bots in you admin.dat. Try:
Code:
/rcon [your rcon] !bot add bo1 aliens
If that works, then you need to add permissions in you admin.dat. To do that you should open you admin.dat and add z to the line that corresponds with your level. Here is a quick explanation of an admin.dat and some default flags. You just need to add z to the levels you want to use !bot.
-
Now I am able to add the bots, finally, thanks to you Kiwi! However, they do not do anything, just sit there. In the ambush map I know the aliens are there because it shows up on the screen, but they must be hiding up in the area you cannot see. So now....I thought they sort of ambushed you or attacked you. I am using the qvm and cfg file which I believe took care of that?
Sorry for the pain... :'(
-
Now I am able to add the bots, finally, thanks to you Kiwi! However, they do not do anything, just sit there. In the ambush map I know the aliens are there because it shows up on the screen, but they must be hiding up in the area you cannot see. So now....I thought they sort of ambushed you or attacked you. I am using the qvm and cfg file which I believe took care of that?
Sorry for the pain... :'(
Ok, to make the bots ''attack'' you, you need to add paths. Theres a great guide on creating paths found here (http://xserverx.com/forum/viewtopic.php?f=38&t=1363). But you could always test it first, because they released the paths for atcs in that link too. But then you could turn ambushed mode (http://tremulous.net/forum/index.php?topic=8864.0) on. Ambush mode uses the paths, but adds extra features, you should decide how far you would like to mod your server. And its no pain at all ;)
BTW: I just realised that I use double single quotes instead of one double quote for ''attack''. I've been playing tremulous too long :P