Please or Register to create posts and topics.

FudgePacker

Page 1 of 2Next

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.

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..commonportal 2binfilelist.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 2bin 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 2bin folder)
or
packer_addfile:c:myjunkstuff.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. ..steamappscommonportal 2portal2materials
-or ..steamappscommonportal 2portal2_dlc3models
-or ..steamappscommonportal 2platformscripts
-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 2binpackerlog.log

This also removes the 1750 entity limit for PeTI maps.

Cheers to HMW for the hammer comments idea.

******** Installation:

Navigate to your steamappscommonportal 2bin 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 FilesSteamsteamappscommonportal 2binfilelist.txt
----C:Program FilesSteamsteamappscommonportal 2binvbsp.exe (the new copy)

Optionally, install the included sample materials (tiled floor).

----C:Program FilesSteamsteamappscommonportal 2platformmaterialssicklebrickpreyprey_floor.vmt
----C:Program FilesSteamsteamappscommonportal 2platformmaterialssicklebrickpreyprey_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 :D
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 immediately

Count 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:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

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_contentmaps/preview.vmf"
found -entity_limit index at 50
VMF Path = I:SteamsteamappscommonPortal 2sdk_contentmapspreview.vmf
BSP Path = I:SteamsteamappscommonPortal 2sdk_contentmapspreview.bsp
bin directory: I:SteamsteamappscommonPortal 2bin
module : I:SteamsteamappscommonPortal 2binvbsp.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_contentmaps/preview.vmf"
newCall : -entity_limit 2048 -game "I:/Steam/steamapps/common/Portal 2/portal2/" "I:/Steam/steamapps/common/Portal 2/sdk_contentmaps/preview.vmf"
Launching genuine vbsp and so forth....
_VBSP.exe exited with return code 0
Scanning VMF file for fudgepacker commands
I:SteamsteamappscommonPortal 2sdk_contentmapspreview.vmf
Using PTI editor: scanning inilelist.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!

Meh.. CBA really. You can if you want :p
Glad it's working though :)

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 :)

Page 1 of 2Next