|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: Thursday, August 07, 2008 5:22:35 PM
Posts: 9,
Visits: 25
|
|
| Hi again. Suppose I want to make a couple of levels and group them together in one .pak file... Like the original mission pack, there's a directory called portals which contains all information to play the mission pack. When you load it (with C:\Hexen2\GLH2.exe -portals -width 1024 -height 768 -bpp 32) for example, when you select new game, it automatically loads the first level of the mission pack. I've looked through the source code but I can't find any lines where it says that the engine loads that particular map when you select new game, your skill and the class. Basically, I want to include map1.bsp map2.bsp and map3.bsp in one pak file. How do you let the engine know that when your mod is loaded, to select map1.bsp to start?
http://www.blackcrucible.com
|
|
|
|
|
Supreme Being
      
Group: Administrators
Last Login: Yesterday @ 9:06:34 AM
Posts: 163,
Visits: 451
|
|
| It does actually, Hexen II loads "demo1.bsp" as the root level and in portals mode it loads "keep1.bsp" as the root level when loading from the menu a new game in these two modes. Give that a try.
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: Thursday, August 07, 2008 5:22:35 PM
Posts: 9,
Visits: 25
|
|
| Yes but in the mission pack there are also the tibet maps and the first one starts with tibet1.bsp How does the engine know how to start with keep1.bsp and not tibet1.bsp? I don't want to use the same mapnames but rather this one instead: black1.bsp, black2.bsp, etc.
http://www.blackcrucible.com
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: Sunday, August 03, 2008 4:45:47 PM
Posts: 5,
Visits: 13
|
|
Starting a game using the menu system have the map names, etc, hard-coded in the engine.
The rest, like the tibet maps you mentioned, are controlled by the changelevel triggers: easy, no
problem. For your case, adding a batch file or shell script to start your mod would be the easiest
solution, because you can pass the "+map XXX" arguments to the engine; but if you want your
own map to start even by using the menu system, then you have to play by the book:
Decide whether you need the mission pack: if yes, then name your starting map as keep1.bsp.
If not, then name it as demo1.bsp.
H.o.T.: http://uhexen2.sf.net/
|
|
|
|
|
Supreme Being
      
Group: Administrators
Last Login: Yesterday @ 9:06:34 AM
Posts: 163,
Visits: 451
|
|
szo is right
|
|
|
|