A "manic episode" is one theory for a man's bizarre crime spree in and around Bristol just after Christmas.
Rafal Lukasz Hajto was upset after splitting up with his girlfriend, Bristol Crown Court heard.
After heading to Cornwall he committed a string of offences while acting strangely.
Hajto 32, of Carlett View, Liverpool, pleaded guilty to burglary, failing to pay for fuel, fraud by false representation and criminal damage in December last year.
Judge Michael Longman handed him a 12-month community order with 150 hours' unpaid work.
He told Hajto: "It is speculative conclude this was a manic episode.
"There is no more persuasive explanation."
Susan Cavender, prosecuting, said Hajto was at St Ives Harbour Hotel in St Ives when he stole property from a woman's room as she slept.
Items included a laptop computer, tablet device, luggage, clothes, car keys and bank cards - much of which was recovered.
Miss Cavender said Hajto used a stolen bank card to try and buy £50 worth of diesel from a service station in Exeter.
When he wasn't able to use the card's PIN he tried to offer service station staff a laptop, binoculars and other items, the court heard.
Miss Cavender said: "He didn't have ID and he also tried to pay with unused scratch cards.
"He then drove off and the manager called the police."
The court heard Hajto then had £63 worth of food and drink at The Bird in, Bathwick, Bath, and though he had four bank cards was unable to pay with any - offering staff items including scratch cards and wine.
This time police called in arrested him, and he was taken to Bath train station in order to go home.
But the court heard the next day he was arrested after trying to pull down a security camera at Southgate car park, Bath.
Having been taken into custody he defecated in a police cell and smeared "Help me" on the wall.
When bailed the next day he damaged a glass front door at Bus Stop News in Fishponds Road in Eastville, Bristol.
Hakjto was demanded in custody and not diagnosed with a mental health problem.
Matthew Comer, defending, said the offences were unsophisticated.
He told the court: "Mr Hajto believes this spate of offending was caused by a manic episode.
"He was upset because he had broken up with his girlfriend.
"He went to Cornwall to get away from his problems and committed these offences."