hmm.. i was first thinking it's an air leak.
one day my hotpipe came out of it's coupling. in the middle of the night and on the side of the road, i couldn't immediately pin-point the problem. the next day, a guy i knew said, "it's an air leak, guaranteed."
symptoms were: real rough idle, motor really wants to die. to build rpms i had to feather the gas. too MUCH gas caused it to bog down and die instantly. my mileage was horrible; went through about 1/2 tank driving home that night (it's normally a 15 minute drive, stop and go).check all your piping, look for cracks on any plastic or rubber parts.
also, your motor is MAF, right? i don't know much about the ka motors; mine's an sr. my MAF sensor is right after the intake filter. make sure your connection is solid.
i'm just shooting in the dark, but check your TPS and if it's still effed-up, check the wires on your MAF, with a voltmeter i guess.
anybody else wanna chime in?
for the TPShttp://
www.240sx.org/faq/artic...m.htm
for the MAF... scroll to "MAF testing"
zerothread/254283
good luck! and i hope i don't make your problem worse. haha