unifiedremote / Docs

Official API documentation.
149 stars 33 forks source link

Loader: could not load layout: File not found #40

Open HalJordan opened 2 years ago

HalJordan commented 2 years ago

layout.xml - https://pastebin.com/8cPCuqxw remote.lua - https://pastebin.com/XT2ptvbP meta.prop -

meta.name: Elite Dangerous v2
meta.author: anInnocentBystander
meta.description: Let's try not to crash the ship this time. mmmKay?
meta.tags: EliteDangerous
meta.tags.category: input
meta.platform: linux
meta.layout: layout.xml

I've been working on this a few days, checking back and forth between my phone and the layout file to get things positioned right. Just today started getting the keymap setup in remote.lua, when suddenly this monstrosity appears in the log:

2022-01-16 23:18:48 (I) Loader: loading remote: /home/hal_j/.urserver/remotes/custom/EliteDangerous/meta.prop
2022-01-16 23:18:48 (E) Loader: could not load layout: File not found

It's /there/. It didn't move. It wasn't renamed, although I tried that and modifying, even specifying layout.xml in meta.prop. Did I miss a character in something somewhere that's breaking it? It would be helpful if it showed the path it was looking for on the layout so I could confirm I'm not crazy.

I was like 99% done with it too, and ready to actually set it up in the game's controls and give it a field test.

HalJordan commented 2 years ago

Of note, I've just found and fixed line 42 of layout.xml, with no change. Just imagine that it doesn't have the extra "ta" at the end.

HalJordan commented 2 years ago

I found it. I must have flubbed some of the image locations when I was shuffling some things around. However, simply saying "file not found" like that is very misleading when you /also/ get error lines like this:

2022-01-17 02:39:35 (I) Loader: loading remote: /home/hal_j/.urserver/remotes/custom/EliteDangerousv2/m
eta.prop 
2022-01-17 02:39:35 (E) Loader: could not load layout: SAXParseException: Invalid token in line 106 col
umn 50

That example is a perfect grade a choice error, as it actually tells you where it ran into the error.

groovenectar commented 2 years ago

hunter2?

HalJordan commented 2 years ago

Eh?

groovenectar commented 2 years ago

Eh?

It was a bad joke, sorry

What's Elite Dangerous v2 by anInnocentBystander?

This quote seems funny: "Let's try not to crash the ship this time. mmmKay?"

But I can't find any references to it online...

HalJordan commented 2 years ago

The name of the remote is Elite Dangerous v2, it's for the game "Elite Dangerous".

The description was off the cuff. It has absolutely nothing to do with how many times I've proven that shields are a necessity. I promise.