was going to, but...Expresses a past intention that was not carried out or was interrupted. Often introduces an explanation or contrast, and the sentence may continue with what prevented the action.
JA: 昨日映画を見るつもりだったのだが、疲れて寝てしまった。
EN: I was going to watch a movie yesterday, but I fell asleep because I was tired.