[Moto X4 Guides, News, & Discussion] gorgatron:
I need help with my soft bricked x4. i can go to TWRP recovery but cannot fully install it and super su and root. I also need to flash my phone with the fi image but this is what happens when I try to.

PS C:\Users\gorg\Desktop\x4 root\platform-tools_r28.0.0-windows\platform-tools> .\flash-all.bat
Sending 'partition' (37 KB) OKAY [ 0.003s]
Writing 'partition' (bootloader) Validating 'gpt.default.xml'
(bootloader) Committing 'gpt.default.xml'
(bootloader) - flashing 'gpt_main0.bin' to 'partition:0'
OKAY [ 0.123s]
Finished. Total time: 0.128s
Sending 'bootloader' (9520 KB) OKAY [ 0.213s]
Writing 'bootloader' (bootloader) Validating 'bootloader.default.xml'
(bootloader) Committing 'bootloader.default.xml'
(bootloader) - flashing 'xbl.elf' to 'xbl'
(bootloader) - flashing 'prov64.mbn' to 'prov'
(bootloader) - flashing 'cmnlib.mbn' to 'cmnlib'
(bootloader) - flashing 'cmnlib64.mbn' to 'cmnlib64'
(bootloader) - flashing 'abl.elf' to 'abl'
(bootloader) - flashing 'keymaster.mbn' to 'keymaster'
(bootloader) - flashing 'storsec.mbn' to 'storsec'
(bootloader) - flashing 'rpm.mbn' to 'rpm'
(bootloader) - flashing 'pmic.elf' to 'pmic'
(bootloader) - flashing 'hyp.mbn' to 'hyp'
(bootloader) - flashing 'tz.mbn' to 'tz'
(bootloader) - flashing 'devcfg.mbn' to 'devcfg'
OKAY [ 0.293s]
Finished. Total time: 0.508s
rebooting into bootloader OKAY [ 0.002s]
Finished. Total time: 0.003s
Sending 'modem__a' (94847 KB) OKAY [ 2.009s]
Writing 'modem__a' (bootloader) Invalid partition name modem__a
FAILED (remote failure)
Finished. Total time: 2.016s
Sending 'fsg__a' (5680 KB) OKAY [ 0.122s]
Writing 'fsg__a' (bootloader) Invalid partition name fsg__a
FAILED (remote failure)
Finished. Total time: 0.129s
Erasing 'modemst1' OKAY [ 0.017s]
Finished. Total time: 0.018s
Erasing 'modemst2' OKAY [ 0.008s]
Finished. Total time: 0.009s
Sending 'bluetooth__a' (4564 KB) OKAY [ 0.098s]
Writing 'bluetooth__a' (bootloader) Invalid partition name bluetooth__a
FAILED (remote failure)
Finished. Total time: 0.105s
Sending 'dsp__a' (16384 KB) OKAY [ 0.346s]
Writing 'dsp__a' (bootloader) Invalid partition name dsp__a
FAILED (remote failure)
Finished. Total time: 0.353s
Sending 'logo__a' (2282 KB) OKAY [ 0.052s]
Writing 'logo__a' (bootloader) Invalid partition name logo__a
FAILED (remote failure)
Finished. Total time: 0.058s
Sending 'boot__a' (20625 KB) OKAY [ 0.437s]
Writing 'boot__a' (bootloader) Invalid partition name boot__a
FAILED (remote failure)
Finished. Total time: 0.443s
Sending 'system__a' (516147 KB) OKAY [ 10.880s]
Writing 'system__a' (bootloader) Invalid partition name system__a
FAILED (remote failure)
Finished. Total time: 10.887s
Sending 'system__a' (514107 KB) OKAY [ 10.863s]
Writing 'system__a' (bootloader) Invalid partition name system__a
FAILED (remote failure)
Finished. Total time: 10.872s
Sending 'system__a' (524240 KB) OKAY [ 11.121s]
Writing 'system__a' (bootloader) Invalid partition name system__a
FAILED (remote failure)
Finished. Total time: 11.129s
Sending 'system__a' (509415 KB) OKAY [ 10.775s]
Writing 'system__a' (bootloader) Invalid partition name system__a
FAILED (remote failure)
Finished. Total time: 10.782s
Sending 'system__a' (518325 KB) OKAY [ 10.945s]
Writing 'system__a' (bootloader) Invalid partition name system__a
FAILED (remote failure)
Finished. Total time: 10.953s
Sending 'system__a' (524142 KB) OKAY [ 11.090s]
Writing 'system__a' (bootloader) Invalid partition name system__a
FAILED (remote failure)
Finished. Total time: 11.097s
Sending 'system__a' (465818 KB) OKAY [ 9.857s]
Writing 'system__a' (bootloader) Invalid partition name system__a
FAILED (remote failure)
Finished. Total time: 9.863s
fastboot: error: cannot load 'system.img_sparsechunk.7': No such file or directory
Sending 'system_b' (134369 KB) OKAY [ 2.827s]
Writing 'system_b' OKAY [ 1.653s]
Finished. Total time: 4.483s
Sending 'oem__a' (41300 KB) OKAY [ 0.876s]
Writing 'oem__a' (bootloader) Invalid partition name oem__a
FAILED (remote failure)
Finished. Total time: 0.883s
Erasing 'carrier' OKAY [ 0.015s]
Finished. Total time: 0.016s
Erasing 'userdata' OKAY [ 2.617s]
Finished. Total time: 2.618s
Erasing 'ddr' OKAY [ 0.008s]
Finished. Total time: 0.009s
Press any key to exit...

edit: used a different fastboot and it worked. now i need to install recovery and super su