Yes, this helped a lot!  I was planning on packing this map using pakrat,
and wanted to get it working outside of pakrat before packing it to test.
Little did I know that pakrat is required to get this working in the first
place.  Needless to say, I got it working through your method, but the only
difference is I had to leave the path field blank because it was looking for
the motd.txt file in a folder named: /motd.txt -which wouldn't have been the
folder name.  So this makes more sense considering pakrat is relevant to the
hl2mp directory to begin with (where the default motd.txt file is located)
and by not specifying any more of a specific folder path, did it only look
into the hl2mp/ folder for the file name.  So in short, I did not type
anything into the 'path' field, and that's what worked for me.  Typing in
what you suggested did not work, but it did lead me to what did, thanks!  I
think I might write a tutorial about this on the SnarkPit (www.snarkpit.net)
since I could not find anything official on this elsewhere.  

-Riven

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Jeff Moghadam
Sent: Saturday, June 27, 2009 9:24 PM
To: Discussion of Half-Life Mapping
Subject: Re: [hlmappers] Unique motd file for hl2dm map load.

Use pakrat, attach the motd.txt file into your map. It is a simple to use
program, just open the BSP, click "add", and it will prompt you for a file.
Find your motd.txt file. Once it is added to you're map, make sure to change
the directory from C:/.../motd.txt to /motd.txt. The directory is relevant
to the games /hl2mp directory. So if you want a file at
<game>/hl2mp/motd.txt, you change the directory to motd.txt. Basically,
click the file, click edit directory, then change the "C:/...hl2mp/motd.txt"
to "motd.txt". I am not sure how clear I am being right now, as I just came
back from a 6 hour drive, but pakrat is a simple to use program. BTW, to
save your changes (and save the bsp with the attached files), just
file->save BSP, and you will have your updated bsp with the included motd
file.

Hope this helps,
-Jeff

On Sat, Jun 27, 2009 at 4:48 PM, riven <[email protected]> wrote:

> I want my motd file to load from a downloaded map (not downloaded from a
> server in-game where the server can have its own motd.txt file to display)
> I
> mean an motd file that will show only when *that* map is loaded online, or
> offline.  So if a player loads up this map after creating a local server,
> they would be able to see this custom motd file appear when that map
starts
> up. If they were to load up another map on a local server, then they would
> only see the default motd file again <-this is what I'm wanting to do.
>
> I created my own motd file that works when replacing the default one
> located
> under the hl2mp folder.  I also read the method described here (by a guy
> who
> was having the same issue as me, perhaps better explained):
>
>
>
http://www.interlopers.net/forum/viewtopic.php?f=2&t=20913&p=246556&hilit=mo
>
td#p246556<http://www.interlopers.net/forum/viewtopic.php?f=2&t=20913&p=2465
56&hilit=mo%0Atd#p246556>
>
> -So the fact that it works, proves that the content within the motd file
> can
> be parsed properly.  I tried the above mentioned method in both hl2dm and
> css (knowing that people do this all the time for css) -And it did not
work
> for either, so I must be doing something wrong :(
>
> Does anyone have any experience with this?
>
> Thanks,
> -Riven
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlmappers
>
>
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlmappers


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlmappers

Reply via email to