linuxYou are using a linux or a windows host?
how do i do if im using windows?Did you give this
dir = "/var/www/html/updater/files"
chmod 777?
60 seconds search otcv8-tools/updater.php at main · OTCv8/otcv8-tools (https://github.com/OTCv8/otcv8-tools/blob/main/api/updater.php)Where the hell is the updater.php file?
yes because as you could read it is called "old tools", I don't think the updater works with php anymore
Why would you link old tools that don't work?yes because as you could read it is called "old tools", I don't think the updater works with php anymore
$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)
$files_and_dirs = array("init.lua", "data", "modules", "layouts");
Don't use updater_advanced. updater.php is the one that works without problems.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:
Already did, same problem. Does your things folder update automatically every time you change something?Don't use updater_advanced. updater.php is the one that works without problems.
Everything updates, data/mods/modules/dlls/exe/init.lua. As simple as encrypting updated file and uploading to the server.Already did, same problem. Does your things folder update automatically every time you change something?
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
$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] ?: "";
Stop using updater_advanced.php and use normal updater.phpEverything 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
Realized my updater url has some php errors:
Lines 30 to 35:
It already restarts the client after an update.How to force OTClient close and open after update? Mine need to close and re-open manual after update