Author Topic: RENAMED:: How to execute commands on map start  (Read 9045 times)

blackwolf-dave

  • Posts: 12
  • Turrets: +4/-0
RENAMED:: How to execute commands on map start
« on: April 30, 2008, 11:24:18 pm »
    Hello, I am new to the forums but have been playing tremulous for some time now. I recently decided, upon hearing about bots being released for tremulous that it would be a great idea to make my own dedicated server. I have succeded in doing this thanks to many wonderful guides and topics and most everything is working (including the bots and people can connect). BUT I have an issue which I was unable to find any discussion on in the forums and so here I am posting. (If it is somewhere im sorry but believe me I searched for like 20 min).

 >:( As previously stated Amine's trembots game.qvm is working flawlessly, except that no matter what I try, I can't seem to find a way to get them to automatically spawn when the server changes to a new map. (example: Humans win... *new map opens* and I have to add all of the bots manually again through commands). I want them to spawn by themselves because then people will be able to use my server when I am gone.

List of things I have tried::

- I added the "!bot add 1 aliens" command 10 times at the end of my server.cfg... This worked in the initial map when the server first starts. But when the map changes bot still need to be automatically spawned.

- I added the same command to my maprotation.cfg under all of the maps (like with set humansbp 200) This did literally nothing. Nothing shows up in console either.

The following are some other things I am having some trouble with but is less important: Is there a way to have all maps start with humans+aliens at stage3? // Is there a way to have all maps start with more than the default amount of BP?

Please if you give any suggestions involving the switching of my game.qvm file know that I am still somewhat of a "noob" in this area so if it isnt too much trouble please also explain how I can KEEP my bot QVM while doing this? (like through patching and no I have no idea how patching works in this game but I do have access to the patch version of the bots if that helps.)

Whoah that was a mouthful... Thanks in advance to anyone willing to give me a hand on any of these issues.  :)

« Last Edit: May 06, 2008, 01:05:23 am by blackwolf-dave »

Amtie

  • Posts: 430
  • Turrets: +19/-20
    • <(*) Homepage / Forumz
Re: Humbly request help with my new server
« Reply #1 on: May 02, 2008, 12:41:24 am »
You should be able to set the stuff in the maprotation.cfg file. Make sure its in the right directory.

Also you can do:

1. Create a .cfg file with any name.

2. Open up yer maprotation.cfg, assuming you know how to edit it without error, add "exec [filename].cfg" where filename is the name of the .cfg file

3. Open up the filename.cfg file, and fill it with the stuff you want, e.g. g_humanstage 2 (for humans stage 3), g_humanbuildpoints 1000, etc.

That should work. I haven't tried it, but i've read around stuff like this. Anyone want to elaborate on this?
Meow.

Can an admin set my name to Amtie please?

blackwolf-dave

  • Posts: 12
  • Turrets: +4/-0
Re: Humbly request help with my new server
« Reply #2 on: May 02, 2008, 02:24:17 am »
I will give this a try.. Thank you for the input.

blackwolf-dave

  • Posts: 12
  • Turrets: +4/-0
Re: Humbly request help with my new server
« Reply #3 on: May 02, 2008, 02:34:53 am »
This did nothing, but I have only tried with that config file in the same folder as my "maprotation.cfg". Should I have my created .cfg in my main directory or user directory?

eg: c:/program files/tremulous/base ...or... c:/documents and settings/user/ blahblahblah?


---edit--- I tried both locations, this does not work, unless im doing something wrong.

Details: I created a .cfg file called "maps" and the rest is above for this subject.. This is exactly what I have in there so if I am forgetting something plz let me know.

------------------------------------------------------------------

set g_humanstage 2

set g_humanbuildpoints 400

set g_alienbuildpoints 400

set g_alienstage 2

!bot add 1 aliens

!bot add 1 aliens

!bot add 1 aliens

!bot add 1 aliens

!bot add 1 aliens

!bot add 1 aliens

!bot add 1 aliens

!bot add 1 aliens

!bot add 1 aliens

!bot add 1 aliens

!bot add 1 aliens

!bot add 1 aliens

!bot add 1 aliens

!lock aliens


---------------------------------------------------------------------------


This is getting to be a real pain.. Even when I change most settings in the actual server.cfg it does nothing. But it is also wierd because sometimes it does work... sometimes it does not.. and for some commands it just dosent change anything at all.. ever. Any further help would be appreciated. But please don't tell me to clear out my server and do it over again.. because i've done that twice now.




« Last Edit: May 02, 2008, 02:46:20 am by blackwolf-dave »

Amtie

  • Posts: 430
  • Turrets: +19/-20
    • <(*) Homepage / Forumz
Re: Humbly request help with my new server
« Reply #4 on: May 02, 2008, 11:45:38 am »
http://soubok.googlepages.com/tremulous_editing_tips

Here is a link to where i got my info from. And yes, you have to have your new.cfg file in the same directory as maprotation.cfg. Try copying and pasting both files in every directory you have tremulous in.

E.g. In my computer (Vista), i have ~ 3 tremulous directories:

1. programfiles/trem/base
2. [username]/local/programfiles/trem/base
3. local/virtualstore/trem/base

Sometimes 'cos im too lazy to work out which works, i just copy and paste my .cfgs into all three directories.
Meow.

Can an admin set my name to Amtie please?

blood2.0

  • Guest
Re: Humbly request help with my new server
« Reply #5 on: May 03, 2008, 06:44:34 am »
ok i have tryed to add bots by putting the command in my maprotation like this and it doen't work why?
Code: [Select]
rotation1
{
  arachnid2
{
set g_humanBuildPoints 9999
set g_alienBuildPoints 9999
}
  atcs
{
set g_humanBuildPoints 9999
set g_alienBuildPoints 9999
}
  atcs
{
set g_humanBuildPoints 9999
set g_alienBuildPoints 9999
seta g_newbienameprefix Bot
seta g_newbienumbering 1
!bot add aliens bot
!bot add aliens bot
!bot add aliens bot
!bot add aliens bot
!bot add aliens bot
!bot add aliens bot
!bot add aliens bot
!bot add aliens bot
!bot add aliens bot
!bot add aliens bot
!bot add aliens bot
!bot add aliens bot
!bot add aliens bot
!bot add aliens bot
}
  karith
{
set g_humanBuildPoints 999999
set g_alienBuildPoints 999999
}
  nexus6
{
set g_humanBuildPoints 9999
set g_alienBuildPoints 9999
}
  niveus
{
set g_humanBuildPoints 9999
set g_alienBuildPoints 9999
}
  transit
{
set g_humanBuildPoints 9999
set g_alienBuildPoints 9999
}
  tremor
{
set g_humanBuildPoints 9999
set g_alienBuildPoints 9999
}
  uncreation
{
set g_humanBuildPoints 9999
set g_alienBuildPoints 9999
}
}

blackwolf-dave

  • Posts: 12
  • Turrets: +4/-0
Re: Humbly request help with my new server
« Reply #6 on: May 04, 2008, 12:48:03 am »
I fixed it myself...

But I will give details here on how I solved the problem. (Dont you HATE it when you find a resolved question that happens to be the same as yours but all it says is "THANKS FOR THE HELP!!" *lock*

What you have to do is this:

1. In your C:/Program Files/Tremulous/base folder, You must create a folder named "mapconfigs"

2.In this folder create a .cfg file named default (default.cfg)

3. Add whatever commands you wish the server to execute when a new map starts.

for example:

set g_humanbuildpoints 999

set g_humanstage 2 (s3)

!add bot [name] [team]

ecetera...

4. Open your server.cfg and add the command ->    set g_mapconfigs "mapconfigs"
this can be added anywhere as long as it is on its own line.. (eg. don't add it BESIDE other commands, only under them.)

This works on my server.. The only problem I am having is after a match is over, the bots dont say ready--my solution = admin does !allready but then all the !addbot commands flood the server and it kicks everyone and freezes... :S
« Last Edit: May 04, 2008, 05:03:09 am by blackwolf-dave »

_-+|[A]|+-_

  • Posts: 51
  • Turrets: +3/-8
Re: Humbly request help with my new server
« Reply #7 on: May 04, 2008, 07:55:16 pm »
I fixed it myself...

But I will give details here on how I solved the problem. (Dont you HATE it when you find a resolved question that happens to be the same as yours but all it says is "THANKS FOR THE HELP!!" *lock*

What you have to do is this:

1. In your C:/Program Files/Tremulous/base folder, You must create a folder named "mapconfigs"

2.In this folder create a .cfg file named default (default.cfg)

3. Add whatever commands you wish the server to execute when a new map starts.

for example:

set g_humanbuildpoints 999

set g_humanstage 2 (s3)

!add bot [name] [team]

ecetera...

4. Open your server.cfg and add the command ->    set g_mapconfigs "mapconfigs"
this can be added anywhere as long as it is on its own line.. (eg. don't add it BESIDE other commands, only under them.)

This works on my server.. The only problem I am having is after a match is over, the bots dont say ready--my solution = admin does !allready but then all the !addbot commands flood the server and it kicks everyone and freezes... :S


There are some bots that automaticly click when the game ends
People tell me to use the search button, why should i. When i type in Titty's some random stuff about entitty's come up >_>

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Re: Humbly request help with my new server
« Reply #8 on: May 04, 2008, 09:49:31 pm »
But I will give details here on how I solved the problem. (Dont you HATE it when you find a resolved question that happens to be the same as yours but all it says is "THANKS FOR THE HELP!!" *lock*
Thank you
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

Amtie

  • Posts: 430
  • Turrets: +19/-20
    • <(*) Homepage / Forumz
Re: Humbly request help with my new server
« Reply #9 on: May 05, 2008, 12:51:21 am »
First time i hear of that. Well, your welcome anyway Blackwolf-dave.
Meow.

Can an admin set my name to Amtie please?

blackwolf-dave

  • Posts: 12
  • Turrets: +4/-0
Re: Humbly request help with my new server
« Reply #10 on: May 05, 2008, 03:16:57 am »
I fixed it myself...

But I will give details here on how I solved the problem. (Dont you HATE it when you find a resolved question that happens to be the same as yours but all it says is "THANKS FOR THE HELP!!" *lock*

What you have to do is this:

1. In your C:/Program Files/Tremulous/base folder, You must create a folder named "mapconfigs"

2.In this folder create a .cfg file named default (default.cfg)

3. Add whatever commands you wish the server to execute when a new map starts.

for example:

set g_humanbuildpoints 999

set g_humanstage 2 (s3)

!add bot [name] [team]

ecetera...

4. Open your server.cfg and add the command ->    set g_mapconfigs "mapconfigs"
this can be added anywhere as long as it is on its own line.. (eg. don't add it BESIDE other commands, only under them.)

This works on my server.. The only problem I am having is after a match is over, the bots dont say ready--my solution = admin does !allready but then all the !addbot commands flood the server and it kicks everyone and freezes... :S


There are some bots that automaticly click when the game ends

Care to elabourate on this please? Maybe a link or info on how/where I could aquire them? (saying that they exist does not really help me at all)

May I request to a mod that this thread be renamed to something that relates to the topic so that it may be easyer to find? for example : how to make bots spawn automatically/how to execute commands on map launch (I am sorry but I do not see an option for me to rename it.)

Thanks

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Humbly request help with my new server
« Reply #11 on: May 05, 2008, 03:50:55 am »
you can rename the topic by editing the first post.
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Amtie

  • Posts: 430
  • Turrets: +19/-20
    • <(*) Homepage / Forumz
Re: Humbly request help with my new server
« Reply #12 on: May 05, 2008, 10:49:19 am »
Edit first post; edit subject at top.

I have a QVM (made by someone from @Hunt, forgot who it is...) that autoclick.
Meow.

Can an admin set my name to Amtie please?

blackwolf-dave

  • Posts: 12
  • Turrets: +4/-0
Re: RENAMED:: How to execute commands on map start
« Reply #13 on: May 09, 2008, 07:20:52 pm »
amt Is this QVM amine's trembot? More importantly: How can I get a copy/can you give one to me?

Thanks in advance

Amtie

  • Posts: 430
  • Turrets: +19/-20
    • <(*) Homepage / Forumz
Re: RENAMED:: How to execute commands on map start
« Reply #14 on: May 09, 2008, 10:29:56 pm »
I don't think it is. I've sent you the qvm to your hotmail account. The bots arn't that smart. I've heard of smarter bots. And this QVM also has commands like !explode and !switch. I suggest not allowing any admin levels to have them (by changing the flags), unless you don't mind admins often abusing them. :P

I also included a better bot QVM. Just take out the better bot part. That qvm i don't know who made it. FxArch from Cebt gave it to me. You can ask him who made it / what it does. I've not tried it out, but i've played it, and it's got bots for dretch, marauders, goons. I think tyrants, but not sure; never seen it. Only bad thing is they taunt too much. :P
Meow.

Can an admin set my name to Amtie please?

blood2.0

  • Guest
Re: RENAMED:: How to execute commands on map start
« Reply #15 on: May 12, 2008, 01:17:36 am »
that is easy to fix just allow no admins to do !allready

nismo@nis.de

  • Posts: 18
  • Turrets: +2/-0
Re: RENAMED:: How to execute commands on map start
« Reply #16 on: May 26, 2008, 05:49:24 pm »
How can I force the bots to go out of the spawns, and to follow another (real) player of the team?

I played on the server "[T]Bot" and there were bots, which automatically go out of the spawns and don't block them, and they follow you. They also can evolve or buy weapons/upgrades.

It would be great if someone could help me with these three things.

Thanks in advance  :D (and sorry for my bad English ::))
« Last Edit: May 26, 2008, 05:51:16 pm by nismo@nis.de »
Sorry for my bad English ::)

Le Compilateur

  • Posts: 315
  • Turrets: +14/-19
Re: RENAMED:: How to execute commands on map start
« Reply #17 on: May 26, 2008, 06:05:28 pm »
I'd like to request that someone sticky this topic, because I can see it really helping noobs (like me).
« Last Edit: May 26, 2008, 06:07:38 pm by Le Compilateur »
I'm a developer! If you'd like to contribute to the Equilibrium QVM project or download the latest version, please visit this thread.

QVMs now compile under Leopard; get the patch here. Requires SVN r1053 or later.

Hendrich

  • Posts: 898
  • Turrets: +168/-149
    • TremCommands
Re: RENAMED:: How to execute commands on map start
« Reply #18 on: June 24, 2008, 11:08:36 pm »
Hey, is it okay that you show us you server.cfg, maprotation.cfg and your default.cfg files as texts copied into a thread? I want to see the finished resault of a working server.
Thx  ;D

Paradox

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
Re: RENAMED:: How to execute commands on map start
« Reply #19 on: June 25, 2008, 03:49:53 am »
Maprotation.cfg is one way to do it, but it has flaws.

For example, if a map is restarted, voted, etc, it wont have settings.

You can bypass this with mapconfigs.

Create a directory in your Local base (not the binary one, the guid/admin.dat one) called mapconfig. In your server, set g_mapConfigs to "mapconfig". Now, add a default.cfg with all settings you want to apply to EVERY MAP. Then just add mapname.cfg to set specific settings. The layering goes as follows:

∧OMG ENTROPY∧