.:: 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 ::. > Forge of Digital Worlds > Mapping > HL Engine Mapping
HL Engine Mapping Maps for the Half-Life engine Half-Life

Reply
 
Thread Tools
Server Commands
Old
  (#1)
dead bwoy
Member
 
dead bwoy's Avatar
 
Status: Offline
Posts: 512
Join Date: Feb 2004
Location: STL MO USA
Default Server Commands - 16-04-2004

How do you get a map to run a cfg file running server commands? (Special rules for the map)
  
Reply With Quote
Re: Server Commands
Old
  (#2)
SoUlFaThEr
Moderator
 
SoUlFaThEr's Avatar
 
Status: Offline
Posts: 860
Join Date: Mar 2004
Default Re: Server Commands - 16-04-2004

i dont believe you can make a MAP exec a .cfg file on your server.
just make the cfg, get in the map, open console and
do: exec myspecialcfg.cfg

i am not aware of a map being able to control server commands or execute external files for server commands

anyone else?


  
Reply With Quote
Re: Server Commands
Old
  (#3)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Server Commands - 16-04-2004

A very simple metamod plugin can be written that would do what you want. It's a matter of 5 minutes, possibly even less. I'm sure Mark would love writing something like this



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: Server Commands
Old
  (#4)
dead bwoy
Member
 
dead bwoy's Avatar
 
Status: Offline
Posts: 512
Join Date: Feb 2004
Location: STL MO USA
Default Re: Server Commands - 16-04-2004

Is there any way to hack a map file's entities to run a server command without using metamod, like bot_add or mp_hostagepenalty 0. Like in a .res, .ent, .wad, .pak, or whatever. This will be used in a Single Player Game, so I dont even think metamod will work even if I wanted to use it.
  
Reply With Quote
Re: Server Commands
Old
  (#5)
Terran
Member
 
Terran's Avatar
 
Status: Offline
Posts: 431
Join Date: Jan 2004
Default Re: Server Commands - 17-04-2004

Go to www.metamod.org and look for the single player version of MetaMod.
Than go to www.amxmod.net and search for the plugin map_cfg...
From your signature I assume you know how to get and install AMX .
  
Reply With Quote
Re: Server Commands
Old
  (#6)
dead bwoy
Member
 
dead bwoy's Avatar
 
Status: Offline
Posts: 512
Join Date: Feb 2004
Location: STL MO USA
Default Re: Server Commands - 17-04-2004

The thing is:
I don't want to use metamod!
Im working on a project for czero and I dont want to include metamod in the project. If there's no other way, I'll have to drop the idea...

Would it be possible to create a simple plugin (non-metamod) that would only use the required functions to run a cfg file for a map of the same name? ie: have the plugin run de_dust.cfg when starting de_dust.bsp

Last edited by dead bwoy; 17-04-2004 at 09:43..
  
Reply With Quote
Re: Server Commands
Old
  (#7)
Terran
Member
 
Terran's Avatar
 
Status: Offline
Posts: 431
Join Date: Jan 2004
Default Re: Server Commands - 17-04-2004

Well, you could do it the hard way:
- grap the HPB Bot source code
- remove the bot specific part leaving only the hooking stuff (or is this already available somewhere?)
- add some code to load map specific configs

This is like reinventing the wheel...
  
Reply With Quote
Re: Server Commands
Old
  (#8)
dead bwoy
Member
 
dead bwoy's Avatar
 
Status: Offline
Posts: 512
Join Date: Feb 2004
Location: STL MO USA
Default Re: Server Commands - 17-04-2004

Quote:
- remove the bot specific part leaving only the hooking stuff (or is this already available somewhere?)
- add some code to load map specific configs
Would this be very time consuming? Could someone let me know what I need to keep? I'll need to know what to add as well, but lets just take this one step at a time.
Are there any whole files that can be removed? And this is for making a non-metamod plugin correct? Like I'd load it up in the target line or something like that?
  
Reply With Quote
Re: Server Commands
Old
  (#9)
Terran
Member
 
Terran's Avatar
 
Status: Offline
Posts: 431
Join Date: Jan 2004
Default Re: Server Commands - 17-04-2004

You would use it instead of metamod or a bot with all implications this will produce.
  
Reply With Quote
Re: Server Commands
Old
  (#10)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Server Commands - 17-04-2004

The only way to do this, as Terran says, is to create a hook DLL (like a bot, like metamod). That is, a DLL that you will specify in the liblist.gam instead of the czero DLL. That would require a minimum of coding skill, though.

In the HPB_bot template, for example, you need to keep engine.cpp, dll.cpp, linkfunc.cpp ; then you need to remove all third party code from all the functions in dll.cpp and engine.cpp and only let the engine calls happen, and add your config file parsing code in ServerActivate().



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
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