• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OTCV8 auto updater doesnt detect changed files

Did you manage to fix it?

My release versions goes without .spr/.dat and it is downloading just fine.
But when I change .spr it is not updating.
 
Last edited:
I have the same problem. If there is already a file downloaded by the updater named data.zip in the AppData folder, the client's updater ignores the check for changed files.
 
On their tutorial there is this part:
$things_dir = "/data/things"; // files from that dir won't be downloaded automaticaly, you can set it to null to download everything automaticaly (useful if you have only 1 version of data/sprites)

But I still don't know how to make it automatically since there is no $things_dir on my updater_advanced, but this:
$files_and_dirs = array("init.lua", "data", "modules", "layouts");
 
On their tutorial there is this part:


But I still don't know how to make it automatically since there is no $things_dir on my updater_advanced, but this:
Don't use updater_advanced. updater.php is the one that works without problems.
 
Already did, same problem. Does your things folder update automatically every time you change something?
Everything updates, data/mods/modules/dlls/exe/init.lua. As simple as encrypting updated file and uploading to the server.
 
Everything does for me as well, but things folder. And when user download it for the first time, or delete data.zip from appdata it downloads things folder just normal. So weird o_O

Realized my updater url has some php errors:
Notice: Trying to get property 'version' of non-object in /home/otsmanager/www/public_html/updater/updater_advanced.php on line 30
Notice
: Trying to get property 'build' of non-object in /home/otsmanager/www/public_html/updater/updater_advanced.php on line 31
Notice
: Trying to get property 'os' of non-object in /home/otsmanager/www/public_html/updater/updater_advanced.php on line 32
Notice
: Trying to get property 'platform' of non-object in /home/otsmanager/www/public_html/updater/updater_advanced.php on line 33
Notice
: Trying to get property 'args' of non-object in /home/otsmanager/www/public_html/updater/updater_advanced.php on line 34
Notice
: Undefined index: in /home/otsmanager/www/public_html/updater/updater_advanced.php on line 35

Lines 30 to 35:
$version = $data->version ?: 0; // APP_VERSION from init.lua
$build = $data->build ?: ""; // 2.4, 2.4.1, 2.5, etc
$os = $data->os ?: "unknown"; // android, windows, mac, linux, unknown
$platform = $data->platform ?: ""; // WIN32-WGL, X11-GLX, ANDROID-EGL, etc
$args = $data->args; // custom args when calling Updater.check()
$binary = $binaries[$platform] ?: "";
 
Last edited:
Im with a similar problem, my OTC drop in a infinite loop updating
 
Everything does for me as well, but things folder. And when user download it for the first time, or delete data.zip from appdata it downloads things folder just normal. So weird o_O

Realized my updater url has some php errors:


Lines 30 to 35:
Stop using updater_advanced.php and use normal updater.php
 
How to force OTClient close and open after update? Mine need to close and re-open manual after update
 
Back
Top