Fudge Packer - PeTI entity_limit fix, and auto file packer.
Basically, it replaces VBSP, then calls the original with the limit changed to 2048.
After this, it will run patch.bat. I've set this up to automatically add the sample files in filelist.txt to your .BSP, but you can mod it all you like.
I've not bothered adding a real GUI 'cause that represents a good few hours worth of work for me, and renaming files should take you a couple of seconds. And no, it won't work on a mac, not even in mono. You'd likely have to convert the batch over to a shell script and alter the source.
** Installation:
--Rename vbsp.exe to _vbsp.exe Don't just pick some random name, make sure it's "_vbsp.exe"
--Dump the files from the bin folder in the archive into the portal bin folder
----C:\Program Files\Steam\steamapps\common\portal 2\bin\patch.bat
----C:\Program Files\Steam\steamapps\common\portal 2\bin\filelist.txt
----C:\Program Files\Steam\steamapps\common\portal 2\bin\vbsp.exe
--Dump the sample materials from the materials folder in the archive into your platform\materials folder. (again, not just any materials folder.. these ones...)
----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
Ignore the source folder unless you wanna fiddle with it.
** Operation:
It's best that you do this in window mode, 'cause a little window's gonna pop up with some log info.
If it's working, just hit "Donesies" and the rest of the build process will continue.
Just increasing entity limit:
-Build as normal...
Adding custom content:
-Add your files into filelist.txt
-Build as normal...
-Read this: https://developer.valvesoftware.com/wiki/BSPZIP
You can add more commands or whatever to patch.bat too, or just completely empty it to skip the packing process.
** Q & A
Q: Didn't start.
A: Download the .net runtimes. Google this. No handholding.
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.
Q:Virus\Stole password.
A:No it didn't. It just borrowed it.
Q: Warranty?
A: Nope.
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.
** Download:
C# source included in archive.
0.1:
http://forums.thinking.withportals.com/downloads.php?view=detail&df_id=2067
It might be good to make it not depend on .NET runtimes. Compiling with MinGW and -static would make it into a very simple executable without external dependencies.
FelixGriffin wrote:
...It might be good to make it not depend on .NET runtimes. Compiling with MinGW and -static would make it into a very simple executable without external dependencies.
I'm not a fan of the .NET dependencies either, but I quite like C# for these quick little programs. I've been toying with the idea of adding a gui to create quick, named file lists that can be passed from hammer (extra parameter) too, so it makes sense to stick with C# for laziness' sake. That and I've been dragging myself kicking and screaming into the 21st century trying to accept that everything's gonna end up running on one virtual platform or another before long!
npc_msleeper_boss wrote:
Great idea. But please upload this to the download database instead. You can use an external URL to point to your site if you still want to host it at your site.
Sure thing, but do you mean upload as an attachment, or just shift the thread over to one of the download-enabled sections? I'm not too fussed where it's hosted to be honest,
Would you mind moving it over to downloads\other files\ for example
?
int main(){
system("_vbsp -entity_limit [whatever]");
system("patch.bat");
return 0;
}
(until the GUI comes out, of course)?
EDIT: Wait...patch.bat seems to just execute what's passed to it. Shouldn't there be a bspzip command?
sicklebrick wrote:
Sure thing, but do you mean upload as an attachment, or just shift the thread over to one of the download-enabled sections? I'm not too fussed where it's hosted to be honest,
Would you mind moving it over to downloads\other files\ for example?
I mean, go to the Download page, to the Portal 2 section, in the "Other Files" section. And create a new "Upload". You can copy/paste the contents of your OP here. And you can either upload the file to our server (which frankly is ideal, in case your host ever goes down, we have an available copy) or use the external URL to link to yours.
Trust me it makes sense when you're there.
||> FelixGriffin wrote:
```
int main(){
system("_vbsp -entity_limit [whatever]");
system("patch.bat");
return 0;
}```
I does have to process the parameters a wee bit, but more or less.
C# is just way less hassle when dealing with UI\Strings.
FelixGriffin wrote:
EDIT: Wait...patch.bat seems to just execute what's passed to it. Shouldn't there be a bspzip command?
It calls BSPZip with the full path, so that's passed in too
do "Echo %*" to see.
Again, less hassle
||
npc_msleeper_boss wrote:
...instructions...
Trust me it makes sense when you're there.
Yeah that works 
Was just worried I'd have to reply in 2 threads, but meh... could be worse.