.:: 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 ::. > Developer's Farm > SDK Programming discussions > Half-Life 1 SDK
Half-Life 1 SDK For developments focused around Half-Life (and its mods) Half-Life

Reply
 
Thread Tools
[CZ/CS]Map specific MOTD.txt?
Old
  (#1)
Rusty Le Cyborg
Complete Amateur
 
Rusty Le Cyborg's Avatar
 
Status: Offline
Posts: 52
Join Date: May 2005
Default [CZ/CS]Map specific MOTD.txt? - 19-07-2005

Hi there

Just thinking out loud here, but as I have been playing with Lazy's Model Changer Plugin I wondered if the above could be possible.

What I envisaged was an MOTD which would display the map overview and the models used in the map (using HTML obviously). The problem with the "mapname".txt file in the maps directory is that it doesn't seem to support HTML

Has one of these ever been made? I saw some sort of MOTD stuff mentioned in AMXMod, but I don't think it is map specific.

Any ideas would be much appreciated. Especially if somoene knows how to do it using the mapname.txt files...

Cheers for now
  
Reply With Quote
Re: [CZ/CS]Map specific MOTD.txt?
Old
  (#2)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: [CZ/CS]Map specific MOTD.txt? - 19-07-2005

I think you can do this without any plugins, taking a look at the sdk shows that it opens up the motd with the path in the "motdfile" cvar.
All you'd need to do is change it in the map's cfg file, like ...

motdfile "maps/assault_motd.txt"
  
Reply With Quote
Re: [CZ/CS]Map specific MOTD.txt?
Old
  (#3)
Rusty Le Cyborg
Complete Amateur
 
Rusty Le Cyborg's Avatar
 
Status: Offline
Posts: 52
Join Date: May 2005
Default Re: [CZ/CS]Map specific MOTD.txt? - 19-07-2005

Oh right. So this would be added to the server.cfg file? (or listenserver.cfg...)
  
Reply With Quote
Re: [CZ/CS]Map specific MOTD.txt?
Old
  (#4)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: [CZ/CS]Map specific MOTD.txt? - 19-07-2005

Well, I think it loads map configs automatically.
Like maps/MAPNAME.cfg
  
Reply With Quote
Re: [CZ/CS]Map specific MOTD.txt?
Old
  (#5)
Rusty Le Cyborg
Complete Amateur
 
Rusty Le Cyborg's Avatar
 
Status: Offline
Posts: 52
Join Date: May 2005
Default Re: [CZ/CS]Map specific MOTD.txt? - 19-07-2005

Hmm.. interesting... I shall try it out Thanks!!!
  
Reply With Quote
Re: [CZ/CS]Map specific MOTD.txt?
Old
  (#6)
Rusty Le Cyborg
Complete Amateur
 
Rusty Le Cyborg's Avatar
 
Status: Offline
Posts: 52
Join Date: May 2005
Default Re: [CZ/CS]Map specific MOTD.txt? - 20-07-2005

Couldn't get this to work, but checking on Google it seems that this is actually for Source only and may be a command line only option...

Could be wrong though...
  
Reply With Quote
Re: [CZ/CS]Map specific MOTD.txt?
Old
  (#7)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: [CZ/CS]Map specific MOTD.txt? - 20-07-2005

Hmm, I'll see if this can be done once I finish writing a plugin for someone else ( small bugfix ).
  
Reply With Quote
Re: [CZ/CS]Map specific MOTD.txt?
Old
  (#8)
Rusty Le Cyborg
Complete Amateur
 
Rusty Le Cyborg's Avatar
 
Status: Offline
Posts: 52
Join Date: May 2005
Default Re: [CZ/CS]Map specific MOTD.txt? - 20-07-2005

Cool. In the past I had used Environskin to do the skin changing, but this also uses the botprofile.db etc. and has the entity limit problem as detailed in the other thread.

What it does is puts cfg.dll which runs a "mapname".cfg file as a "listenserver".cfg file. I am not sure if this could be used as a Metamod plugin, but I doubt it.

It was actually written by Splorygon I believe.

From his readme : czero/dlls/cfg.dll:
executes .cfg's with the same name as the
loading map. ex: server executes <map>.cfg on
level change, which contains console commands.
See czero/de_dust_cz.cfg in notepad for details.
Also includes custom czero/liblist.gam to direct
the game to load cfg.dll


So I don't think it can be used instead of mp.dll when Metamod is in use...

Now, if there was a plugin similar to the model_changer one you made, which made motd.txt into maps/mapname_motd.txt, then maybe it would work. I honestly don't know.

Thanks for any help you may be able to give!
  
Reply With Quote
Re: [CZ/CS]Map specific MOTD.txt?
Old
  (#9)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: [CZ/CS]Map specific MOTD.txt? - 20-07-2005

Since its only one file and I know how it's opened it should be possible to do, I'll have a look once I get this other plugin tested and sent out.
  
Reply With Quote
Re: [CZ/CS]Map specific MOTD.txt?
Old
  (#10)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: [CZ/CS]Map specific MOTD.txt? - 20-07-2005

Allright, I have done some basic testing and this plugin works.
What you need to do is create a new directory in your mod root folder called "motd".
Then, in that directory create files called mapname.txt for the maps where you want custom motds.

These work in the exact same way, meaning you can have the contents as a url and it will load a web page or just plain text.
If there is no matching file in the motd directory the default motd pointed to by the "motdfile" cvar will be used.
Attached Files
File Type: zip mapmotd_mm.zip (26.0 KB, 362 views)
  
Reply With Quote
Reply


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

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