Please or Register to create posts and topics.

[Portal 2] Extras menu patcher for custom maps

Page 1 of 2Next

Hi!

Today I have been working on a program which allows user to add custom maps to the Portal 2 Extras menu!

It is very easy to use: It will automatically get your portal2.exe path & map name in the folder where the patcher is. Just set the ID, title and subtitle. You can also set a picture for your map (not necessary). The map ID can be the same as map name (without any spaces!).

The program can save settings to an ini file to make patching even easier.

In future, I will add new features to the program, such as copying maps to the portal 2 maps folder.

The program is made using Visual C# 2010 Express so I guess it'll need the Visual Runtime to be installed.

Please post your comments & ideas to this topic! Thanks for reading & testing the program!

Download: http://haapavuo.hostcell.net/Portal2ExtrasPatcher.zip

Mirror #2: Portal 2 Extras Menu Patcher

I'm different.

This looks like it would require either to be packed with map downloads or to have its configuration file modified by the end user for each map. Would it be possible to store the information other than the Portal 2 path in a different file that can be included with a map?

Also, you may want to use the VGAME environment variable to get an initial value for the Portal 2 path.

Hello! This is the part where I kill you!
Nightgunner5 wrote:
This looks like it would require either to be packed with map downloads or to have its configuration file modified by the end user for each map. Would it be possible to store the information other than the Portal 2 path in a different file that can be included with a map?

Also, you may want to use the VGAME environment variable to get an initial value for the Portal 2 path.

Thanks for your reply!

I was thinking that every map maker could put this program into the same package with their maps with a modified settings.ini. So the end user wouldn't have to change anything else than the Portal 2 executable path. I'll see if I can find the path somehow "automatically".

I'm different.
Haapavuo wrote:
Nightgunner5 wrote:
This looks like it would require either to be packed with map downloads or to have its configuration file modified by the end user for each map. Would it be possible to store the information other than the Portal 2 path in a different file that can be included with a map?

Also, you may want to use the VGAME environment variable to get an initial value for the Portal 2 path.

Thanks for your reply!

I was thinking that every map maker could put this program into the same package with their maps with a modified settings.ini. So the end user wouldn't have to change anything else than the Portal 2 executable path. I'll see if I can find the path somehow "automatically".

Packaging the program with every map would create the problem of every map having a different version of this program. When you release an update to this program, every map on the site will need to be updated.

Packaging just a configuration file would solve that problem, at least.

Hello! This is the part where I kill you!

Well considering that whatever version of the tool it was packaged with will support what you need there should be no need to update maps later just because of an update to the program.

But unless this can 100% figure out the install path by itself I don't think it's gonna be of much use.

Yes. Packaging only the settings.ini file should be just fine. The program itself could be downloaded externally.

Player1 wrote:
But unless this can 100% figure out the install path by itself I don't think it's gonna be of much use.

I'm going to try to do this by getting the path from a running steam process. To my knowledge, Portal 2 is always installed in the steamappscommon folder.

I'm different.
Haapavuo wrote:
...To my knowledge, Portal 2 is always installed in the steamappscommon folder.

Yes, but what if someone didn't install steam to "Program Files"? It's better to check the steam install path first via the registry:
HKEY_LOCAL_MACHINESOFTWAREValveSteam, keyname: InstallPath.

Have a nice day,
~Sidneys1

Image
^Click to go to my Steam Community Profile^

Upload files to the Download Database please. Don't link to external sites.

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.
Sidneys1 wrote:
Haapavuo wrote:
...To my knowledge, Portal 2 is always installed in the steamappscommon folder.

Yes, but what if someone didn't install steam to "Program Files"? It's better to check the steam install path first via the registry:
HKEY_LOCAL_MACHINESOFTWAREValveSteam, keyname: InstallPath.

Have a nice day,
~Sidneys1

I already said that I was going to check the path from the running steam process. But maybe the register is a better idea. Thanks!

I will also add radio buttons so user can select whether he wants the new item to be added on top or to the bottom of the menu.

I'm different.

Sorry for the double post but I have now updated the program. It will now automatically get your portal2.exe path from Windows registry and see if there is a map file in the folder where the patcher is. This should make patching very easy!

I will soon release a "simpler" version which could be released with maps.

EDIT: I added the program to the database of this site.

I'm different.
Page 1 of 2Next