FudgePacker 0.4 - With Hammer Intergration.
by sicklebrick · Uploaded Jun 07, 2012
File Size: 0.21 MB
Downloads: 324
Rating: (0 votes)
Description
FudgePacker lets you create a list (or several lists) of files to add to your map, and automatically packs the files you want for each map while it builds. You can now choose which lists to load from inside hammer itsself.
Comments
Sign in to comment.
FudgePacker lets you create a list (or several lists) of files to add to your map, and automatically packs them every time you build that particular map.
You can now choose which lists to load from inside hammer itsself.
* Instructions (PeTI):
-Run vbsp.exe (by double clicking) and drag the files you'd like to pack onto the main window.
-Hit save, and save your file to ..steam..\common\portal 2\bin\filelist.txt
-Close FudgePacker
-Build your map.
-When the fudgepacker window pops up, check that everything's packed, and close the window.
-The build process will continue as normal.
When used with PeTI, fudgepacker will automatically read filelist.txt,and pack those files.
* Instructions (Hammer):
Much the same as the PeTI instructions, but you may use any filename you like.
You can save to any directory, but \portal 2\bin\ is reccomended.
In hammer, you can now add this comment to any entity in your vmf:
packer_addfile:whatever.txt (if it's in your \portal 2\bin\ folder)
or
packer_addfile:c:\myjunk\stuff.txt (if you opted to use another folder)
Likewise, if no file is specified, FudgePacker will default to filelist.txt.
You can have the packer auto-close by adding packer_autoclose to an entity in the same way.
* Notes:
Files dragged onto FudgePacker must be in the correct working directories.
-E.g. ..steamapps\common\portal 2\portal2\materials
-or ..steamapps\common\portal 2\portal2_dlc3\models
-or ..steamapps\common\portal 2\platform\scripts
-etc.
Only ever place one command in each comment box. Use empy entities like logic_auto if you'd like multiple file lists. Also, never ever use quotes ("these") in the comments box.
Might be an idea to run in window mode.
You can also name an entity packer_addfile:whatever.txt if you feel like it.
The output log spam is dumped to \portal 2\bin\packerlog.log
This also removes the 1750 entity limit for PeTI maps.
Cheers to HMW for the hammer comments idea.
* Installation:
Navigate to your steamapps\common\portal 2\bin\ folder.
Rename vbsp.exe to _vbsp.exe (not just anything random, actually call it _vbsp.exe).
Copy this archive's contents into the folder - i.e.
----C:\Program Files\Steam\steamapps\common\portal 2\bin\filelist.txt
----C:\Program Files\Steam\steamapps\common\portal 2\bin\vbsp.exe (the new copy)
Optionally, install the included sample materials (tiled floor).
----C:\Program Files\Steam\steamapps\common\portal 2\platform\materials\sicklebrick\prey\prey_floor.vmt
----C:\Program Files\Steam\steamapps\common\portal 2\platform\materials\sicklebrick\prey\prey_floor.vtf
* Q&A:
Q: Didn't start.
A: Download the .net runtimes. Google this. No handholding.
Q: How do I check that my map's been packed?
A: Use pakrat or read up the BSPZip documentation to see how to unzip.
Q: Didn't work.
A: If this doesn't work, telling me as much info as possible is a good idea. Telling me it doesn't work, doesn't help. Not reading the help first doesn't help. Reading the help and not paying attention doesnt help. Helping me help you helps me, and you. Everyone wins, hugs & cuppycakes. Bigger maps and happy faces.
* Changelog:
V0.2 - Drag n Drop, fancy borders
V0.3 - VMF scanner, some tweaks here and there, removed patch.bat
First, I wanted to say fantastic work, and thank you!
I also wanted to see how you would feel about me modding up your file to work with vrad. I've got a rough version going so far that allows selection of several command line options for vrad, such as fast, noextra and a couple others...as well as the highly sought after -no ( well, this actually completely skips the real vrad, simply returning 0 to portal2 ). Now that I've proven the concept though, I figured I would ask for your ok since it does re-use a fair chunk of your code.
Note: I have kept your links at the bottom of the form.
If you've got an email you don't mind sharing I could send ya what I've got so far.
Awesome idea! It would be super nice to prototype PeTI maps without waiting for the lighting 
I included a link to the license in the readme, so you can go nuts with it man.
Been toying with the idea of using madCodeHook too, which would mean we could put both programs in a single executable with the ability to stop and modify process creation and destruction.
So for example...
-catch vbsp opening
-modify command line params
-let it run
-catch it closing
-pack files into the bsp. (rather than waiting for the next tool, 'cause it might not be coming)
-catch vrad opening
-alter params
-...etc
Just gotta see how well it handles 64bit processes these days!
Anyhoo, my email is my forum name at gmail - would love to see what you've done.
Giving me a problem whenever I attempt to compile a map
Quote:
Unhandled exception has occurred in your application. If you click continue the application will ignore this error and attempt to continue. If you click Quit, the application will close immediatelyCount cannot be less than zero.
Paramater name: count
And here's the trace stack:
Quote:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.** Exception Text **
System.ArgumentOutOfRangeException: Count cannot be less than zero.
Parameter name: count
at System.String.RemoveInternal(Int32 startIndex, Int32 count)
at System.String.Remove(Int32 startIndex, Int32 count)
at vbsp.Form1.processFile(String currentLine)
at vbsp.Form1.scanVMF()
at vbsp.Form1.setArgs(String args)
at vbsp.Form1.Form1_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)** Loaded Assemblies **
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.269 (RTMGDR.030319-2600)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
vbsp
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///I:/Steam/steamapps/common/Portal%202/bin/vbsp.exe
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.278 built by: RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.282 built by: RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.269 built by: RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
** JIT Debugging **
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.For example:
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
And here's the log output from the window of the application:
Quote:
Commandline -
"I:/Steam/steamapps/common/Portal 2/bin/vbsp.exe" -entity_limit 1750 -game "I:/Steam/steamapps/common/Portal 2/portal2/" "I:/Steam/steamapps/common/Portal 2/sdk_content\maps/preview.vmf"
found -entity_limit index at 50
VMF Path = I:\Steam\steamapps\common\Portal 2\sdk_content\maps\preview.vmf
BSP Path = I:\Steam\steamapps\common\Portal 2\sdk_content\maps\preview.bsp
bin directory: I:\Steam\steamapps\common\Portal 2\bin\
module : I:\Steam\steamapps\common\Portal 2\bin\vbsp.exe
originalCall : "I:/Steam/steamapps/common/Portal 2/bin/vbsp.exe" -entity_limit 1750 -game "I:/Steam/steamapps/common/Portal 2/portal2/" "I:/Steam/steamapps/common/Portal 2/sdk_content\maps/preview.vmf"
newCall : -entity_limit 2048 -game "I:/Steam/steamapps/common/Portal 2/portal2/" "I:/Steam/steamapps/common/Portal 2/sdk_content\maps/preview.vmf"
Launching genuine vbsp and so forth....
_VBSP.exe exited with return code 0
Scanning VMF file for fudgepacker commands
I:\Steam\steamapps\common\Portal 2\sdk_content\maps\preview.vmf
Using PTI editor: scanning ?in
ilelist.txt
Woops, sorry about that.
I fixed that ages ago, but nobody seemed to be using it so didn't upload.
Just updated now, hope that helps 
Have you considered advertising this tool on the Steam user forums? there are quite a lot of people there that seem to want a way to bypass the item limit, and I feel this tool would receive a lot more usage if you advertised it to a wider audience.
But I digress, just did another test compile and it worked this time. Thanks for updating!
So with the new update to the game, this doesn't seem to work for PetI anymore. It's a shame, because this was really useful to create bigger maps. Are you going to update this any time soon?
Cheers for telling me 
Little busy this evening, but I'll try and have a copy ready tomorrow afternoon 
(Double posting so Waterhandle gets the notification)
I think what's happened is that the recent update has replaced your modified vbsp.exe with a real copy.
I just tested the latest (0.4) release and it worked fine, so try reinstalling maybe? If it doesn't work, try pasting me your packer log file?
( C:\Program Files\Steam\steamapps\common\portal 2\bin\packerlog.log )
I still use fudgepacker with the latest update to the workshop and I too confirm that it appears to be working just fine.
Sorry for the late response. I was making smaller maps and was enjoying not having to click two more times
Also Portal 2 didn't work for a few days. Anyway, I reinstalled Fudgepacker now, and I can confirm that it works again 
Hey! Thanks for creating FudgePacker, it's been extremely useful!
I noticed something however, at least on my computer... That whenever I compile a map within the PeTI, and exit Portal 2... Steam seems to still think I'm in Portal 2. (And doesn't attempt to sync with the Steam Cloud.)
I've troubleshooted this a bit, running it without FudgePacker, verifying game cache, setting
"-autoconfig", Disabled Steam Cloud, Disabling Stema Community in-game, etc. The only alteration that I've made is using FudgePacker, and only then does this oddity occur.
The weird part is, there's no sign of FudgePacker, VBSP, Portal2, or anything else Steam related open in the Task Manager. There's no way to solve this for me without forcibly ending Steam, and opening it again.
I was wondering if you've heard any other reports of this, or if you knew what could be the cause.
Much appreciated!
Hey IceSage, sorry I took so damn long to reply... I have a vague memory of reading the post, then uhh, clearly I forgot.
I've not really heard anything similar to be honest, as I didn't really think anyone was actually using it. It might be to do with the exit code fudgepacker passes on (usually 1 regardless of the outcome), but I can't really figure out where... or how to solve it, since I don't get the same issue.
I'll get back to you, and do an update if I can figure it out 
When I downloaded this thing, it immediately said I had a virus, on both computers I downloaded it on! >_<
FudgePacker lets you create a list (or several lists) of files to add to your map, and automatically packs the files you want for each map while it builds.
You can now choose which lists to load from inside hammer itsself.
File Name: fudgepacker0.4.rar
File Size: 218.68 KiB
Click here to download FudgePacker 0.4 - With Hammer Intergration.