[K3 Note General] Rayvernos:
Guys im trying to install through recovery the new 1629dev but i keep getting error 6 right on the beggining. I tried editting the updater script but there is no such line as " show_progress(0.750000, 0);" so i deleted everything above " ui_print("Patching system image unconditionally...");"

My updater script looks like this

ui_print("Patching system image unconditionally...");
block_image_update("/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");
ui_print("Verifying the updated system image...");
if range_sha1("/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/system", "78,0,32767,32768,32770,32929,32931,33439,65535,65536,65538,66046,98303,98304,98306,98465,98467,98975,131071,131072,131074,131582,163839,163840,163842,164001,164003,164511,196607,196608,196610,197118,229375,229376,229378,229537,229539,230047,262143,262144,262146,262654,294911,294912,294914,295073,295075,295583,327679,327680,327682,328190,360447,360448,360450,360958,393215,393216,393218,393726,414851,425984,425986,458752,458754,491520,491522,524288,524290,557056,557058,589824,589826,622592,622594,623102,650190,650191,655320") == "3b0ec4f8dc73c4d4ab440e9e5d516243d146bfa6" then
if range_sha1("/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/system", "90,32767,32768,32770,32929,32931,33439,65535,65536,65538,66046,98303,98304,98306,98465,98467,98975,131071,131072,131074,131582,163839,163840,163842,164001,164003,164511,196607,196608,196610,197118,229375,229376,229378,229537,229539,230047,262143,262144,262146,262654,294911,294912,294914,295073,295075,295583,327679,327680,327682,328190,360447,360448,360450,360958,393215,393216,393218,393726,414851,415363,425472,425984,425986,426498,458240,458752,458754,459266,491008,491520,491522,492034,523776,524288,524290,524802,556544,557056,557058,557570,589312,589824,589826,590338,622080,622592,622594,623102,650190,650191") == "435217094ac1b1803ef7956d2cf81f636815c1c0" then
ui_print("Verified the updated system image.");
else
abort("system partition has unexpected non-zero contents after OTA update");
endif;
else
abort("system partition has unexpected contents after OTA update");
endif;
package_extract_file("boot.img", "/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/boot");
mount("ext4", "EMMC", "/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/userdata", "/data", "");
delete_recursive("/data/data/com.tencent.mm/MicroMsg/SdcardInfo.cfg");
unmount("/data");
apply_sig(package_extract_file("sig/boot.sig"), "/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/boot");
show_mtupdate_stage("/cache/recovery/last_mtupdate_stage");
ifelse (
less_than_int(get_mtupdate_stage("/cache/recovery/last_mtupdate_stage"), "1") ,
(
ui_print("start to update general image");
package_extract_file("lk.bin", "/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/lk");
assert(package_extract_file("preloader_aio_otfp_m.bin", "/tmp/preloader_aio_otfp_m.bin"),
write_raw_image("/tmp/preloader_aio_otfp_m.bin", "/dev/block/mmcblk0boot0"),
delete("/tmp/preloader_aio_otfp_m.bin"));
set_mtupdate_stage("/cache/recovery/last_mtupdate_stage", "1");
),
ui_print("general images are already updated");
);
ifelse (
less_than_int(get_mtupdate_stage("/cache/recovery/last_mtupdate_stage"), "3") ,
(
if less_than_int(get_mtupdate_stage("/cache/recovery/last_mtupdate_stage"), "2") then

ui_print("start to update alt loader image");
package_extract_file("trustzone.bin", "/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/tee2");
set_mtupdate_stage("/cache/recovery/last_mtupdate_stage", "2");
endif;

switch_active("tee1", "tee2");
set_mtupdate_stage("/cache/recovery/last_mtupdate_stage", "3");
),
ui_print("alt loder images are already updated");
);
ifelse (
less_than_int(get_mtupdate_stage("/cache/recovery/last_mtupdate_stage"), "5") ,
(
if less_than_int(get_mtupdate_stage("/cache/recovery/last_mtupdate_stage"), "4") then

ui_print("start to update main loader image");
package_extract_file("trustzone.bin", "/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/tee1");
set_mtupdate_stage("/cache/recovery/last_mtupdate_stage", "4");
endif;

switch_active("tee2", "tee1");
),
ui_print("main loader images are already updated");
);
delete("/cache/recovery/last_mtupdate_stage");
mount("ext4", "EMMC", "/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/userdata", "/data", "");
!(get_lenovo_custom2("1468348201") == "OK") || format("ext4", "EMMC", "/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/userdata", "0", "/data");
unmount("/data");

and this is the original

mount("ext4", "EMMC", "/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/userdata", "/data", "");
get_lenovo_custom1("1468348201") == "OK" || abort("Can't install this package (Wed Jul 13 02:30:01 CST 2016) over newer build (" + getprop("ro.build.data") + "). Or lenovo can't allow to rollback.");
unmount("/data");
getprop("ro.product.model") == "Lenovo K50-t5" || abort("This package is for \"Lenovo K50-t5\" devices; this is a \"" + getprop("ro.product.model") + "\".");
ui_print("Target: Lenovo/aio_otfp_m/aio_otfp_m:6.0/MRA58K/R1468347793.07130224:user/release-keys");
ui_print("Patching system image unconditionally...");
block_image_update("/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");
ui_print("Verifying the updated system image...");
if range_sha1("/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/system", "78,0,32767,32768,32770,32929,32931,33439,65535,65536,65538,66046,98303,98304,98306,98465,98467,98975,131071,131072,131074,131582,163839,163840,163842,164001,164003,164511,196607,196608,196610,197118,229375,229376,229378,229537,229539,230047,262143,262144,262146,262654,294911,294912,294914,295073,295075,295583,327679,327680,327682,328190,360447,360448,360450,360958,393215,393216,393218,393726,414851,425984,425986,458752,458754,491520,491522,524288,524290,557056,557058,589824,589826,622592,622594,623102,650190,650191,655320") == "3b0ec4f8dc73c4d4ab440e9e5d516243d146bfa6" then
if range_sha1("/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/system", "90,32767,32768,32770,32929,32931,33439,65535,65536,65538,66046,98303,98304,98306,98465,98467,98975,131071,131072,131074,131582,163839,163840,163842,164001,164003,164511,196607,196608,196610,197118,229375,229376,229378,229537,229539,230047,262143,262144,262146,262654,294911,294912,294914,295073,295075,295583,327679,327680,327682,328190,360447,360448,360450,360958,393215,393216,393218,393726,414851,415363,425472,425984,425986,426498,458240,458752,458754,459266,491008,491520,491522,492034,523776,524288,524290,524802,556544,557056,557058,557570,589312,589824,589826,590338,622080,622592,622594,623102,650190,650191") == "435217094ac1b1803ef7956d2cf81f636815c1c0" then
ui_print("Verified the updated system image.");
else
abort("system partition has unexpected non-zero contents after OTA update");
endif;
else
abort("system partition has unexpected contents after OTA update");
endif;
package_extract_file("boot.img", "/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/boot");
mount("ext4", "EMMC", "/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/userdata", "/data", "");
delete_recursive("/data/data/com.tencent.mm/MicroMsg/SdcardInfo.cfg");
unmount("/data");
apply_sig(package_extract_file("sig/boot.sig"), "/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/boot");
show_mtupdate_stage("/cache/recovery/last_mtupdate_stage");
ifelse (
less_than_int(get_mtupdate_stage("/cache/recovery/last_mtupdate_stage"), "1") ,
(
ui_print("start to update general image");
package_extract_file("lk.bin", "/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/lk");
assert(package_extract_file("preloader_aio_otfp_m.bin", "/tmp/preloader_aio_otfp_m.bin"),
write_raw_image("/tmp/preloader_aio_otfp_m.bin", "/dev/block/mmcblk0boot0"),
delete("/tmp/preloader_aio_otfp_m.bin"));
set_mtupdate_stage("/cache/recovery/last_mtupdate_stage", "1");
),
ui_print("general images are already updated");
);
ifelse (
less_than_int(get_mtupdate_stage("/cache/recovery/last_mtupdate_stage"), "3") ,
(
if less_than_int(get_mtupdate_stage("/cache/recovery/last_mtupdate_stage"), "2") then

ui_print("start to update alt loader image");
package_extract_file("trustzone.bin", "/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/tee2");
set_mtupdate_stage("/cache/recovery/last_mtupdate_stage", "2");
endif;

switch_active("tee1", "tee2");
set_mtupdate_stage("/cache/recovery/last_mtupdate_stage", "3");
),
ui_print("alt loder images are already updated");
);
ifelse (
less_than_int(get_mtupdate_stage("/cache/recovery/last_mtupdate_stage"), "5") ,
(
if less_than_int(get_mtupdate_stage("/cache/recovery/last_mtupdate_stage"), "4") then

ui_print("start to update main loader image");
package_extract_file("trustzone.bin", "/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/tee1");
set_mtupdate_stage("/cache/recovery/last_mtupdate_stage", "4");
endif;

switch_active("tee2", "tee1");
),
ui_print("main loader images are already updated");
);
delete("/cache/recovery/last_mtupdate_stage");
mount("ext4", "EMMC", "/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/userdata", "/data", "");
!(get_lenovo_custom2("1468348201") == "OK") || format("ext4", "EMMC", "/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/userdata", "0", "/data");
unmount("/data");

what could i possibly be doing wrong?