Unofficial Quake Engine - Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



The Hexen II source code Expand / Collapse
Author
Message
Posted Wednesday, May 21, 2008 12:35:21 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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

Post #529
Posted Wednesday, May 21, 2008 1:47:14 PM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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.

Post #530
Posted Thursday, May 22, 2008 9:56:42 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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

Post #534
Posted Sunday, August 03, 2008 4:54:40 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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/
Post #579
Posted Monday, August 04, 2008 10:52:10 AM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: Yesterday @ 9:06:34 AM
Posts: 163, Visits: 451
szo is right
Post #581
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 3 (3 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Korax

Permissions Expand / Collapse

All times are GMT +2:00, Time now is 10:46pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 6 queries. Compression Disabled.