Okay, so I was trying to install CM 10.2.1, but I got a missing md5 file error, so it didn't work out. I am using TWRP as my recovery, and naturally I wiped everything before flashing, so I then went into some of the recoveries on my sd card to try to restore from those, unfortunately all attempts at restoring have failed,. My next attempt was trying to use the adb sideload feature of TWRP to try to put a new ROM zip file into it, and try to flash that, but TWRP just hangs at "Starting sideload feature" and never really starts it so I am unable to do that. Any ideas on how to get things working? Also why is TWRP unable to do anything correctly? (TWRP v2.6.31)
TWRP 220.127.116.11 is supposedly the most stable loki recovery for our phone. I would try "downgrading" to that first, If you still have problems with 18.104.22.168 then I would switch to Philz Touch. I had to switch to Philz because TWRP just doesn't like my S4 for some reason. It sucks though, TWRP has a way better UI than CWM.