Page 1 of 1

Creating a .pak file

PostPosted: Sunday, 23.September 2012, 09:12
by Zanard
How do I create .Pak? :oops:
I can not find an answer on the net ... :cry:
thanks to all.
Fabio.

Re: .pak

PostPosted: Sunday, 23.September 2012, 09:48
by erbsen
Ok, lets say your demo and wz4player.exe is at C:\wz4.

Open up Command Prompt: Press Win+r - a window pops up - type in "cmd" (without quotes).
Change the directory: type in cd C:\wz4.

Type in: wz4player name_of_your_wz4_file.wz4 --pack name_of_your_demo.pak
Or type in: C:\wz4\wz4player name_of_your_wz4_file.wz4 --pack C:\wz4\name_of_your_demo.pak
Use quotes if there are spaces in your path: "C:\wz4\wz4player name_of_your_wz4_file.wz4" --pack "C:\wz4\name_of_your_demo.pak"

Rename wz4player.exe to name_of_your_demo.exe
Zip wz4player.exe and name_of_your_demo.pak and release your demo.

I wrote this from memory i hope it works.

Re: .pak

PostPosted: Sunday, 23.September 2012, 10:27
by Zanard
erbsen wrote:Ok, lets say your demo and wz4player.exe is at C:\wz4.

Open up Command Prompt: Press Win+r - a window pops up - type in "cmd" (without quotes).
Change the directory: type in cd C:\wz4.

Type in: wz4player name_of_your_wz4_file.wz4 --pack name_of_your_demo.pak
Or type in: C:\wz4\wz4player name_of_your_wz4_file.wz4 --pack C:\wz4\name_of_your_demo.pak
Use quotes if there are spaces in your path: "C:\wz4\wz4player name_of_your_wz4_file.wz4" --pack "C:\wz4\name_of_your_demo.pak"

Rename wz4player.exe to name_of_your_demo.exe
Zip wz4player.exe and name_of_your_demo.pak and release your demo.

I wrote this from memory i hope it works.

erbsen


Thanks arbsen! :D :D :D

Re: Creating a .pak file

PostPosted: Tuesday, 13.May 2014, 12:00
by CybeREX
I have working wz4 file with root operator. I run it via cmd "wz4player_dx9_x86.exe test.wz4" and demo run.
I create pak file using "wz4player_dx9_x86.exe test.wz4 --pack test.pak"
but when I try to loading it via player or via cmd "wz4player_dx9_x86.exe test.pak"
I get this error.
pak error.jpg

Re: Creating a .pak file

PostPosted: Tuesday, 13.May 2014, 12:43
by Skinnytorus
If you use any stacks similar to those used here viewtopic.php?f=42&t=1415, then this might be the FromVertex operator. That's what ikam said:
There is a problem with FromVertex and the build operator stack process. In short, mesh in cache (readed by fromvertex op) is not available if you directly show a render operator (yellow) in the satck, it is why when you show green operator before it will work, mesh will be in cache. Need investigation to remind me how all this process work.

Re: Creating a .pak file

PostPosted: Tuesday, 13.May 2014, 14:25
by CybeREX
Seems close to the true, but maybe I do something wrong in the staking?
I add "green add operator almost anywhere" =) but now get this error =)

player.jpg

Re: Creating a .pak file

PostPosted: Tuesday, 13.May 2014, 14:40
by Skinnytorus
Working fine for me. All I did was added a full project path into Document options (ctrl +k) and re-saved .wz4 file.

Re: Creating a .pak file

PostPosted: Tuesday, 13.May 2014, 14:48
by Skinnytorus
It's working even without the full project path. Try my last wz4 build.

Re: Creating a .pak file

PostPosted: Wednesday, 14.May 2014, 10:58
by CybeREX
Well I try your latest build, but also get new errors...Maybe its all about WinXP?
I try today same things when I came to home with Win7

wz4-latestbuild.JPG

Re: Creating a .pak file

PostPosted: Wednesday, 14.May 2014, 11:31
by ikam
it works fine for me too (tested with xp)

try to just lauch wz4player (double click).

and try this pak, maybe its your packaging that is bad.

Re: Creating a .pak file

PostPosted: Wednesday, 14.May 2014, 11:58
by CybeREX
Thank you guys! I finally figureout why it's not work for me.
I used folder for wz4 containing russian letters
C:\Documents and Settings\Администратор.BTI\Рабочий стол\Новая папка\Wz4CE_dx9_x86

and this things don't work, when I change destination folder to simple

C:\Wz4CE_dx9_x86

it paked and run very well!

Again thanks in participation to solve my problem!

PS. I extract several FB demos to the same folder with russian letter, but they run very well... BUT my pak file with player, only work in eng folders only =)