About Store Forum Documentation Contact



Post Reply 
Patcher class can't download xxx.index.pak
Author Message
ralphthebear Offline
Source Licensee

Post: #1
Patcher class can't download xxx.index.pak
I've uploaded all files to web server using uploader tool.

But while testing using tutorial Net/Patcher(Pak), it failed whenever downloading index file.

Is there any fault from me?

Code:
Str paks_dir="./bin";

paks.addTry(paks_dir.tailSlash(true) + "engine.pak" , null, false);
paks.addTry(paks_dir.tailSlash(true) + "project.pak", null, false);
paks.rebuild();
Patcher.SetList(local_files, paks);

patcher.create("http://webtest.servehttp.com/Patcher", "Test", null);
patcher.downloadIndex();

[attachment=2990]
[attachment=2991]


Attached File(s) Image(s)
       
08-08-2017 05:59 PM
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Binary Licensee

Post: #2
RE: Patcher class can't download xxx.index.pak
First thing ill advice you is to check that you allow incoming reading on that folder from outside, using ftp you can try to add 777 rights for test purposes on all folders where this is saved
08-08-2017 06:12 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: Patcher class can't download xxx.index.pak
First, please make sure you can download the file using your browser, left click on the file in the browser.

Also make sure, you're using latest engine version to the patcher downloader c++ class.
Make sure you're using latest engine version for the "Uploader" tool.
(at one point there was a breaking change to the PAK file format, and you have to update the engine, and reupload the data with latest uploader tool).

Let me know if that helps.
08-09-2017 01:00 AM
Find all posts by this user Quote this message in a reply
ralphthebear Offline
Source Licensee

Post: #4
RE: Patcher class can't download xxx.index.pak
I've figured out what's wrong. I'm using IIS 6.0 server and need to register an appropriate MIME setting adding '*' and 'application/octet-stream' to download

It's works well :-)

Thanks for the advice Greg and also RedcrowProd
(This post was last modified: 08-10-2017 09:46 AM by ralphthebear.)
08-10-2017 09:45 AM
Find all posts by this user Quote this message in a reply
Post Reply