Re: hl2 mod with css materials
Posted by evilgoodguy on
Fri Dec 22nd 2006 at 2:52am
3 posts
0 snarkmarks
Registered:
Dec 22nd 2006
<html><head><link rel="stylesheet" href="themes/standard.css" type="text/css"></head><body topmargin=2 leftmargin=2> <span style="color: red;">I am attempting to make a mod for singleplayer hl2 which utilizes the materials and content of css (without importing all the content manually, in other words:having the mod recognize both hl2 and css content...the mod Black mesa source utilizes this concept also).
I assume i must do something in the gameinfo.txt in my mod folder. I made some adjustments to the gameinfo.txt and successfully got the hammer editor to recognize all the content. When I compiled my map, it compiled fine. But when I tried loading the map, it either said there is a bad string or it loaded up the map as though it is css, and of course that caused some problems.
my gameinfo.txt looks as follow (I took out all the extra stuff for this forum post):
"GameInfo"<br style="color: orange;">{<br style="color: orange;"> game "HALF-LIFE 2"<br style="color: orange;"> title "Shephard Chronicles"<br style="color: orange;"> icon "icon_01"<br style="color: orange;"> developer ""<br style="color: orange;"> developer_e-mail ""<br style="color: orange;"> type singleplayer_only<br style="color: orange;"><br style="color: orange;"> <br style="color: orange;"><span style="color: orange;"> SteamAppId 240,220 </span></span><span style="color: red; font-style: italic;"><span style="color: orange;"></span></span><span style="color: red;"> <br style="color: orange;"> ToolsAppId 211 <br style="color: orange;"> <br style="color: orange;"> SearchPaths<br style="color: orange;"> {<br style="color: orange;"> Game |gameinfo_path|.<br style="color: orange;"> Game cstrike<br style="color: orange;"> Game episodic<br style="color: orange;"><span style="color: orange;"> Game hl2
<span style="color: red;">Notice that I put "240,220" so that my mod would load both the css and hl2 GCF's
I also have cstrike and hl2 under the gameinfo_path's. Without having the cstrike path, the css content does not show up.
If anyone can tell me what I'm doing wrong, or more importantly, what to do right, it would be greatly appreciated.
</span></span>
</span>