|
|
#1 |
![]() Join Date: Nov 2010
Reputation: 19
Posts: 373
|
Replace a file in vpk
I successfully realized to play in splitscreen
But now i was trying to play in eyefinity (2 monitors) But i need to modify splitscreen_config file located in pak01_dir i tried to make an add-on file (vpk) with the edited file, but it doesn't work (probably it continues to load even the original version) then some server wouldn't allow me to join if i directly modify pak01_dir so any idea to load only my version? |
|
|
|
|
|
#2 |
![]() Join Date: Nov 2010
Reputation: 136
Posts: 654
|
Did you re-create the folder structure in your new vpk?
Did you include all the files needed? I would tear apart a known-working VPK to make sure you understand how it works. |
|
|
|
|
|
#3 | |
![]() Join Date: Nov 2010
Reputation: 19
Posts: 373
|
Quote:
but the game seem to not load my modified file |
|
|
|
|
|
|
#4 |
![]() Join Date: Nov 2009
Reputation: 171
Posts: 969
|
Grab this tool: http://nemesis.thewavelength.net/index.php?p=25
About: GCFScape is an explorer like utility that enables users to browse Half-Life packages and extract their contents. GCFScape supports .bsp, .gcf, .ncf, .pak, .vpk, .wad and .xzp packages and runs independently of Steam. |
|
|
|
|
|
#5 | |
![]() Join Date: Nov 2010
Reputation: 19
Posts: 373
|
Quote:
it has the same "structure" of "pak01_dir.vpk" but it seems to not replace its files |
|
|
|
|
|
|
#6 |
![]() Join Date: Dec 2009
Reputation: 481
Posts: 1,340
|
Are there reports of other users using this method? It's possible that the file gets loaded before addons. Perhaps there's a command to reload this file you could run manually, later.
Edit: From what I can tell, this file is read once when the client is initialized. So, making an addon might not work. If you're not super concerned about sv_consistency checks (I don't think you can play online with splitscreen anyway so this shouldn't be an issue) you can try simply opening pak01_000.vpk in a hex editor or a good text editor and looking for the part that contains splitscreen_config.txt (search for some content). Since there are other files in pak01_000.vpk, you'll want to make sure that you don't add or remove any length to the splitscreen_config.txt section. For every character you delete, you must add another. If you want to add a character, you must delete some other. This is where a hex editor will work better. Luckily there should be plenty of spacing and commenting for you to add/remove. Last edited by ProdigySim: 07-20-2012 at 10:14 AM. |
|
|
|
|
|
#7 | |
![]() Join Date: Nov 2010
Reputation: 19
Posts: 373
|
Quote:
however could i be vac banned to have hex edit that file? (i know that obviously sv_pure server won't let me enter) Last edited by pigosso: 07-20-2012 at 10:53 AM. |
|
|
|
|
|
|
#8 | |
![]() Join Date: Dec 2009
Reputation: 481
Posts: 1,340
|
Quote:
|
|
|
|
|
|
|
#9 |
![]() Join Date: Jul 2012
Reputation: 0
Posts: 10
|
I'm also trying to modify the splitscreen_config.txt file in pak01_000.vpk...
I can open the dir.vpk but that just opens everything, how can i edit the one file and have it save in the correct vpk? when i extract the dir.vpk its over 2GB, the pak01_000.vpk is just over 200mb thanks much trying to play coop over 2 screens |
|
|
|
|
|
#10 |
![]() Join Date: Nov 2010
Reputation: 19
Posts: 373
|
dir.vpk seems to bee a "linker" which let you open others vpk
from there you can extract the file, which is physically stored in pak01_000.vpk i managed to hex edit it... but a vpk mod or any other way to modify it would be appreciated
|
|
|
|
|
|
#11 |
![]() Join Date: Jul 2012
Reputation: 0
Posts: 10
|
right but which files belong to pak01_000.vpk? if i rebuild it will be 2GB and im not sure thatll work :P
Or if you could describe how you edited it with a Hex editor that would be fine as well Thanks |
|
|
|
|
|
#12 | |
![]() Join Date: Nov 2010
Reputation: 19
Posts: 373
|
Quote:
i can't understand what are you saying how can you rebuild pak01_000.vpk ? |
|
|
|
|
|
|
#13 |
![]() Join Date: Jul 2012
Reputation: 0
Posts: 10
|
ok i just downloaded a hex editor called HxD, opened the 000 vpk and searched for "8 by 9" - and replaced it with "16 by 9"
Make sure you *dont* use backspace to delete or else it changes the file size (i got corruption this way) saved the vpk and it worked fine. Last edited by jerroldsimb: 09-28-2012 at 09:42 PM. |
|
|
|
|
|
#14 |
![]() Join Date: Nov 2010
Reputation: 19
Posts: 373
|
yes that was the right way
but i was asking in this thread, if there were some more elegant method to do this, like a vpk addon or something similar |
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|