EpochModTeam / DayZ-Epoch

Experimental DayZ Mod for Arma 2
http://epochmodteam.github.io/DayZ-Epoch
226 stars 399 forks source link

Server PBO won't repack right #914

Closed DarthRogue closed 10 years ago

DarthRogue commented 10 years ago

Having an issue with the server pbo. When I use the stock PBO everything works fine. Server loads ok and characters load in as normal. But when I do my usual edits and addons and repack the pbo the server won't start normally. Errors show in the RPT about server files not being able to be found, like it's not reading the pbo prefix file.

If I open the PBO in PBO Manager and copy and paste the necessary files and folders into the PBO the server loads and there are no errors thrown in the rpt, but character load ins get stuck on the ocean screen. Once again, no errors in the RPT and if I revert back to the stock pbo everything works fine. I've never had any issues with this before. Been doing server edits for over a year now and this is the first time a PBO has messed up like this. Was something changed in this version for security purposes? When adding files to the pbo in PBO Manager I get a prompt about a digital signature being altered when adding new files. Never got that on a server pbo before. Also tried editing with CPBO and PBOView. No change. Please help! My server is DOA! :(

SniperNoSniping commented 10 years ago

With some PBO Viewers it does not save the prefix after you have unpacked it, edited, and repack.

This is just something that is known to be an issue and someone has assisted me with the same issue. Using PBO Manger...

Pack the dayz_server into a PBO file. Right click the dayz_server.pbo, and then Open with PBO Manager. Click on the PBO but do not unpack. Click the Gear Icon above. Right Click in the empty box and Click Add. Add "prefix" as the property, and "z\addons\dayz_server" without the quotations. Then close and try using that file. If that doesn't work reply. image

MrMadn3ss commented 10 years ago

does this way work to the mpmissions too? yesterday i opened a thread that the dze_buildinglimit is missing in the init.sqf. When i include these line, upload the dayz_privat_1.epoch.chernarus.pbo and restart it, nobody can connect.

ArmaRPT says "Warning ... Mission file not found in server_config.cfg or mpmissions folder. Please verify your settings!! Starting anyway. But connecting may fail.

vbawol commented 10 years ago

We use BinPBO to pack the server pbo and use hard coded prefix paths in our packing process. It is likely your issue is the prefix path. I would expect errors to be present in the servers RPT file.

@MrMadn3ss We don't package the missions pbo but provide the raw mission files with our server releases. Your host packed those files. That error meas you likely have a typo in your config.cfg is not pointing to the correct mission file.

DarthRogue commented 10 years ago

@SniperNoSniping - Prescribed fix does not work. The server pbo has the pboprefix file and it has the correct path "z\addons\dayz_server". But it is not being read. I attempted your suggestion and it does not work either. But even so, shouldn't it be "PBOPrefix" and not just "Prefix"?

Screenshots of my situation are attached.
serverpbo serverpbo_pboprefix server_rpt_errors

Now....if I open the server pbo in PBO Manager, WITHOUT unpacking, and copy and paste all files (using previously extracted and edited files from the current version) needed into it and then close PBO Manager, it works fine.

As I mentioned before, I've NEVER had this issue with packing and unpacking a server pbo before. As long as the PBO Prefix was included with the correct path then it's always worked. This really has me scratching my head.

DarthRogue commented 10 years ago

Others are having this issue also. In case you were unaware, there is a thread going on the forums as well: http://dayzepoch.com/forum/index.php?/topic/4976-patch-1031-file-structure-cannot-start-private-server/

vbawol commented 10 years ago

The changes to the server package was:

All config and launch examples moved to "Configs" folder.

Binaries (tbpmalloc.dll, tbb.dll, and database.dll) are now in a "Binaries" folder but will still need to be installed to the ARMA2OA root folder for fresh installs, if your just upgrading you should not need to do anything as these files have not changed in any previous epoch build.

vbawol commented 10 years ago

The only restructuring was done with the server files was within the archive we ship not the server PBO.

vbawol commented 10 years ago

After you pack your PBO, extract it. You should see it extracted into a folder path exactly like the prefix path.

DarthRogue commented 10 years ago

serverpbo2

This is what I get after extraction with PBO Manager. It looks right, but it doesn't work if repacked.

vbawol commented 10 years ago

Looks like your missing the "z" folder

DarthRogue commented 10 years ago

I've never had a "z" folder when unpacking a server pbo and it's always worked fine before. If you open the PBOPrefix file inside the pbo it clearly has the correct path in it, including the z.

vbawol commented 10 years ago

What paths do you get when extracting our vanilla pbo?

I just checked and Eliteness does extract our PBO with the proper paths: z\addons\dayz_server

DarthRogue commented 10 years ago

If I open the pbo in PBO Manager and right click on the file and click "Extract", I choose a folder to extract it to. When the files are extracted I get all the subs, pic attached

pbo extract

In my experience, this is exactly as I would expect.

I was previously unaware of Eliteness. I just tried it and it does include the "z\addons" path whereas my usual PBO utils do not. However, upon repacking it with Eliteness and showing the "z\addons" physical directories and starting the server, I still get the RPT erros and my character does not correctly load into the game. My first thought may be because when repacking, Eliteness apparently does not put the PBOPrefix.txt file back in the dayz_server folder. I manually replaced it and tried again and still no go.

vbawol commented 10 years ago

Here is my command line for packing the server pbo using BINPBO

"C:\Program Files (x86)\Bohemia Interactive\Tools\BinPBO Personal Edition\BinPBO.exe" "C:\GitHub Personal\DayZ-Epoch\dayz_server" "C:\GitHub Personal\DayZ-Epoch\Server Files\@DayZ_Epoch_Server\addons" -INCLUDE *.pac;*.paa;*.rtm;*.sqf;*.sqs;*.bikb;*.fsm;*.wss;*.ogg;*.wav;*.fxy;*.csv;*.html;*.lip;*.txt;*.wrp;*.bisurf; -BINARIZE -CLEAR -TEMP C:\TEMP -PREFIX z\addons\dayz_server

DarthRogue commented 10 years ago

Ok I will give that a try when I get home. Stuck at work for now. My usual command line for cpbo is X:\@Epoch_DayZ_Server\add-ons\cpbo -p dayz_server dayz_server.pbo. This has always worked just fine until now. still scratching my head

Skaronator commented 10 years ago

Thats the Headerfile: Rightclick on the folder above and press create PBO (dropdown menu via cpbo)

DarthRogue commented 10 years ago

Yes that works with CPBO to repack the file. But it still presents wth the same problem. Already tried that as well.

dayz10k commented 10 years ago

you just need to right click the dayz_server folder and drop down to the "create PBO" that skaro linked with cpbo...no need for a command line

dayz10k commented 10 years ago

3 days, no further response and several methods of packing pbo's correctly outlined. Closing. Can reopen later if needbe.

DarthRogue commented 10 years ago

Issue is not resolved as of yet. I've just been playing SA in my free time and haven't had a chance to dig into this any more right now. Server is up and running for the time being. Will revisit the issue if it's still a problem after next update. Thanks for the help!

jamastiene commented 10 years ago

Every time I make an edit to my private Epoch server using PBO Manager 1.4, I have to manually add the prefix back in, even with the PBOprefix file there. Can we just run a server with the raw files instead of constantly unpacking, editing, then repacking the PBO for every edit? In other words, can we run the server without bothering with the PBO altogether?

DarthRogue commented 10 years ago

The mission PBO you can, yes. But the server PBO has to be packed. Instead of unpacking and repacking just copy the files out of the PBO, make your edits and then copy and paste them back into the PBO. PBOManager will allow you to do that just fine. I've found that works perfectly every time.

jamastiene commented 10 years ago

Ok, thanks. That sounds much simpler.

raymix commented 10 years ago

rename $pboprefix$ file to $prefix$