Adding maphtml & mapDesc to maps..


Guyver
03-06-2007, 05:44 PM
...that don't already have them?

Is this possible?

Ca-Chicken-Soup
03-06-2007, 10:59 PM
totaly. Just stick one into resource/maphtml. I'd just copy one that's in there and change it around. But that's because I don't understand style sheets. The name has to be mapname_english.html to work. And cannot be embedded into a BSP.

Guyver
03-07-2007, 12:16 AM
What tools do I need to create them?

Furyo
03-07-2007, 12:43 AM
word will do, or notepad, or just about whatever. Of course, using a website software will help (dreamweaver,etc). If all fails just open up an existing one and edit it in Notepad. Anvil has one, so does Rive and some other maps. That's if you're not bothered to use gcfscape and get the stock ones

Ca-Chicken-Soup
03-07-2007, 01:06 AM
The stock ones are not packed into the GFC due to IE not being able to preform properly so they are right in the resource/maphtml folder. I'd edit with notepad, word will add a lot of unnecessary stuff to the file. Here's some step by step:

Copy dod_jagd_english.html and rename it to yourmapname_english.html
Right click on the new file and open with > choose program > notepad.
You'll see a bunch of html code, if you turn off word wrap (format > word wrap) it will be layed out easier to see.
Basically anything that isn't within < > is text that appears.
Find "<div class="head1">Mission Brief</div>" And change the 'mission brief' to 'test' for example.
File > save.
Quit notepad
Open the file with IE or Firefox or whatever and see the changes you just made.

Guyver
03-07-2007, 01:12 AM
Thanks, I really think all maps should have them. It really makes you feel like there's a mission/story behind the maps like in 1.3

What about the mapDesc?

EDIT:
Thanks CC. :D

lgdevil
03-07-2007, 04:54 AM
If you can't embed them into the bsp how are they supposed to be distributed? You have to put it in a zip and make people put it in the folder manually?

ultranew_b
03-07-2007, 05:30 AM
You have to put it in a zip and make people put it in the folder manually?

yes

:)

lgdevil
03-07-2007, 08:17 AM
that's not going to work if it's on a public server and people download while connecting.

Furyo
03-07-2007, 08:31 AM
That's what res files are made for

Formologic23
03-07-2007, 09:32 AM
That's what res files are made forAnd those are pretty easy to make also.

RosietheRiveter
03-07-2007, 09:50 AM
If you can't embed them into the bsp how are they supposed to be distributed? You have to put it in a zip and make people put it in the folder manually?
Its not difficult to make a res file for downloads in game and this is where self installing exe files come in very handy for players who are uncomfortable with manually installing more than a bsp.

You can make the res files manually (http://forums.steampowered.com/forums/showthread.php?t=197973) or use a res file generator app like resmaker.

resmaker (http://www.sunlitgames.net/index.php?module=ExDownloads&func=details&fid=88)
Netframework 2.0 (http://www.sunlitgames.net/index.php?module=ExDownloads&func=details&fid=89)- required for res maker to work
Clickteam (http://www.clickteam.com/eng/installcreator.php) - self installer

lgdevil
03-07-2007, 11:19 AM
ah cool, didn't know about the res files. thanks :)

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.