Hammer/SDK setup for BG

View previous topic View next topic Go down

Hammer/SDK setup for BG

Post by Rumpel on Sat Nov 21, 2015 3:37 pm

Hi All,

There's some interest in this so here I go. This post should take you from installing the SDK to having it set up for mapping/viewing BG models. I won't tell you how to map, it takes practice, research, and watching tutorials.

1. Install Source SDK, this can be found under the library>tools section of steam. I think you also need to have Source 2007 SDK Base installed, but this may be a prerequisite of BG2 anyway so you could have it.



2. Open Source SDK, you should be greeted with something that looks like the picture below. Our job is basically to give SDK the game settings, so that we can select BG in the bottom most drop down lists.



3. (Dislaimer. this may not really be necessary but its the way I do it so I suggest you do to). Make sure the Engine version dropdown at the bottom is on Source Engine 2007, and click the 'create a mod' button. It shouldn't matter which option you pick, but go for Modify Half-Life 2 Multiplayer. You will be asked for a directory and name, these are not important, I just use this mod to get into hammer easily, so pick anywhere and anything (i.e. C:/MyMod, MyMod). It copies some files, and then you should see something like this (notice dropdowns at bottom.)



4. With these dropdown settings, click on the 'hammer' button to open hammer. We now can manually add the settings for BG in hammer. Go to tools>options from the toolbar at the top. You will see something like this;



5. We want to make a new configuration, so click edit next to the dropdown for configuration, an 'Edit game configurations' dialogue opens up, click 'add', and name your configuration, the name doesn't really matter, but 'BG' makes sense.



6. We now want to edit this configuration so that it works for BG. So in the drop down for configuration back on the 'Configure hammer' dialogue, pick your new configuration, 'BG'. The first setting to deal with is 'Game Data files'. Click add next to this and you get a browser. You want to navigate to, or paste in your machines equivalent to this file;

C:\Program Files (x86)\Steam\steamapps\sourcemods\bg2\bg2.fgd

7. Next, Game executable Directory, click browse next to it and navigate/paste to;

C:\Program Files (x86)\Steam\steamapps\#YOURUSERNAME#\half-life 2 deathmatch\hl2mp

8. Next, Game Directory, browse etc to;

C:\Program Files (x86)\Steam\steamapps\sourcemods\bg2

9. Hammer VMF Directory, this is where your saved files of maps go, you can pick wherever you want, I am just going to put mine in the maps folder of bg so I know where all the mapping stuff is at;

C:\Program Files (x86)\Steam\steamapps\sourcemods\bg2\maps

10. Click apply, then close hammer, then close SDK, and open it back up again (this just applies all the settings etc). When you do you should see that we can now pick our BG mod in the dropdowns on SDK, so far so good, so pick BG;



11. You can test that this is all working by using the model viewer in SDK, click model viewer, then file>load, and look for BG's models, for instance in Player>American>etc. You should see that all the directories are right. However, for hammer there are still some settings left, for building and running the maps once they are made!



12. Get back into hammer, again tools>options, and go over to the tab that says 'Build Programs'. Make sure you are on the right configuration, BG. Again we are just browsing to find the right files. Game executable first;

C:\Program Files (x86)\Steam\steamapps\common\Source SDK Base 2007\hl2.exe



13. Then BSP executable, VIS executable, and RAD executable; which are all in;

C:\Program Files (x86)\Steam\steamapps\common\SourceSDK\bin\source2007\bin

They are vbsp.exe, vvis.exe, and vrad.exe respectively.



14. Then 'place compiled maps in this directory...' here you need to point to BG's maps folder;

C:\Program Files (x86)\Steam\steamapps\sourcemods\bg2\maps

15. I think thats basically it for settings, you can test this out by making a room out of brushes, adding a light into it, and adding a info_player_american or info_player_british (or both if you feel like it). Then go file>run map. The map will compile, BG2 will open, and you should be able to spawn in your map Smile

Good luck mapping. I haven't done it in years, but if I can help I will, and I will likely be learning along with yous.

Rumpel


Last edited by Rumpel on Sat Nov 21, 2015 3:44 pm; edited 1 time in total
avatar
Rumpel
Sergeant
Sergeant

Posts : 43
Points : 379
Join date : 2015-11-08

View user profile

Back to top Go down

Re: Hammer/SDK setup for BG

Post by Rumpel on Sat Nov 21, 2015 3:38 pm

Oh forgot to add, now you can go and delete the mod that we only used to get into hammer in the first place; 'mymod' or whatever you called it.

EDIT: Also, there may well be an easier way to do this - but this works to meh.
avatar
Rumpel
Sergeant
Sergeant

Posts : 43
Points : 379
Join date : 2015-11-08

View user profile

Back to top Go down

Re: Hammer/SDK setup for BG

Post by CaveManJimmy on Sat Nov 21, 2015 10:21 pm

Really great of you to add this to our forum Rumple!
For any of you guys who want to try out your *new* maps, ask us and we can set it up on the 49th server!
avatar
CaveManJimmy
Lieutenant
Lieutenant

Posts : 112
Points : 1486
Join date : 2015-10-10
Location : Watford

View user profile

Back to top Go down

Re: Hammer/SDK setup for BG

Post by Roberto on Sun Nov 22, 2015 9:04 pm

Great cheers for that rumple, thats a lot of details !

_________________
I am a fart farting is what I do
avatar
Roberto
Major
Major

Posts : 67
Points : 577
Join date : 2015-10-10
Age : 161
Location : Watford

View user profile

Back to top Go down

Re: Hammer/SDK setup for BG

Post by The PooP Monster on Sun Nov 22, 2015 9:06 pm

thanks that helps everybody in this regiment.
and yeah as caveman said any of you guys feel free to make maps and send them to me so that i can upload them onto the server.
avatar
The PooP Monster
Recruit
Recruit

Posts : 105
Points : 1287
Join date : 2015-10-10

View user profile

Back to top Go down

Re: Hammer/SDK setup for BG

Post by Rumpel on Mon Nov 30, 2015 9:50 pm

Note. In step 12, you need to make sure each box leads to its own specific .exe file (vrad.exe, vbsp.exe and vvis.exe) - not just to the overal folder.
avatar
Rumpel
Sergeant
Sergeant

Posts : 43
Points : 379
Join date : 2015-11-08

View user profile

Back to top Go down

Re: Hammer/SDK setup for BG

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum