• 1
  • 3
  • 4
  • 5
  • 6(current)
  • 7
Kodi skin localize VS Code extension
#76
(2024-08-25, 13:00)roidy Wrote: Excellent, can I ask where you found this? I looked for ages but found nothing.

Of course you can ask, whether I provide an answer is another thing.... Tongue

All kidding aside: I literally went to Bing.com, clicked on copilot and asked it the question with the "precision" option active. Define EXACTLY what you need and it can/will provide you the code snippets and or whole function if you ask it to. I've used this on a few occasion where the forum is lacking or couldn't understand any particular aspect of the code and it will literally spoon feed you until you understand. It can go off the rails if you let it, but since most of us are in pretty advanced stages of our particular skins, plugins etc... it is more a guide tool when the internet or forums fail us. BE ABSOLUTELY LETHALLY ACCURATE in what you ask it, and remember, it is free, but it will only give you so many shots at asking the question and answer to the topic at hand... typically 4 responses per session before it force restarts and you "start over"... it doesn't remember the last session either....if you login, you get more tries.... if you pay, well, it's unlimited persay.... Treat it as a incredibly smart but dumb tutor and it can be a godsend... or a curse if you let it.  So....you can also "preface" the inquiry like this:

Kodi skinning: Tell me what an infolabel is and build me code that will populate the label with the current time

The preface: kills 95% of the worthless BS it will return and it will focus the AI (GPT4.0) in the precise area of interest and it will literally build you the requisite code need to do exactly what I just demonstrated the ask of. You can even tell it, I have my variable in file xyz.xml and my function in abc.xml and it will properly link those two things together and provide any necessary "include" statements to ensure the code operates. Used it for debugging also including the Custom_Debug_Overlay.xml functionality to help with things I needed for specifics for the Madnox skinning... it can be both a blessing and curse...

Image
Kodi: Nexus v20.5 | Skin Dev: Madnox Omega/Nexus: v20.01.02 | Madnox ForumRoot | Madnox Repov1.0.09 | Mr. V'sSource | Kodi Texture Tool (Takeover): v3.0.1 | Batch Texture Resize (Irfanview): Tutorial
Working On
: Replacing Embruary >> TMDB Helper || Start: 6/3/2024 End: God knows || Status Complete: Movies: 80% TV Shows: 40% Music: 20%
Reply
#77
I'm old school and have never really been interested in AI..... But holy shit that's like some kind of cheat code.
 
Image
Reply
#78
(2024-08-25, 13:33)roidy Wrote: I'm old school and have never really been interested in AI..... But holy shit that's like some kind of cheat code.
 
Image

I'm the same as you, but really all it is a diff engine that can properly categorize and pull from known examples from millions of sources that you'd never think to even look at. 

That is why I said, blessing or curse. We all know how the wheel works, we don't need to keep reinventing it for the sake of impressing people that could care less... people want results, this will help get to from A to D without needing B and C even though we all know how to build B and C.

IMHO, the end results are what counts, shortcuts are MORE than ok if you truly understand the underlying foundation (which you and clearly many others here have demonstrated), if others want to ding or ridicule for "having help"... that is their cross to bear not yours... and I personally say F' em... use the tools that will make your life easier... and as you are starting to see, it can open you up to possibilities that you would have never taken on due to time constraints or simply just constructing something in record time... 

You could actually use it to help with the false detections if you know what/how to ask it and don't want to deal with the Booleans that are needed.... sure you could do it on paper, but why... toiling is a waste of your time and efforts...

One can argue, you didn't earn it, oh really, how did I arrive here then?...and my personal favorite "F off...seriously, don't care what others have to say". Again, their cross to bear... and you move onto bigger and better things that will, and have, helped us all... Wink

In closing, if you know how to harness the power of AI (even being an old schooler) it is NOT CHEATING or a CHEAT CODE... it is YOU... enhanced... end of story.  Nod
Kodi: Nexus v20.5 | Skin Dev: Madnox Omega/Nexus: v20.01.02 | Madnox ForumRoot | Madnox Repov1.0.09 | Mr. V'sSource | Kodi Texture Tool (Takeover): v3.0.1 | Batch Texture Resize (Irfanview): Tutorial
Working On
: Replacing Embruary >> TMDB Helper || Start: 6/3/2024 End: God knows || Status Complete: Movies: 80% TV Shows: 40% Music: 20%
Reply
#79
One thing I have just noticed, using the same prompt 'vscode api capture word at cursor' on Chrome on PC gives the correct answer but no matter what browser I use on Mac the same prompt always gives an incorrect answer Sad
Reply
#80
(2024-08-25, 14:02)roidy Wrote: One thing I have just noticed, using the same prompt 'vscode api capture word at cursor' on Chrome on PC gives the correct answer but no matter what browser I use on Mac the same prompt always gives an incorrect answer Sad

Ask it for guidance on that EXACT condition, it will show you how to solve it!
Kodi: Nexus v20.5 | Skin Dev: Madnox Omega/Nexus: v20.01.02 | Madnox ForumRoot | Madnox Repov1.0.09 | Mr. V'sSource | Kodi Texture Tool (Takeover): v3.0.1 | Batch Texture Resize (Irfanview): Tutorial
Working On
: Replacing Embruary >> TMDB Helper || Start: 6/3/2024 End: God knows || Status Complete: Movies: 80% TV Shows: 40% Music: 20%
Reply
#81
Quote:Ask it for guidance on that EXACT condition

How do you do that? Is there an option somewhere?
Reply
#82
v0.2.6 - Accept selection or word at cursor for both definitions and references

General code clean up.
Reply
#83
v0.2.7 - More code clean up
Reply
#84
(2024-08-25, 14:34)roidy Wrote:
Quote:Ask it for guidance on that EXACT condition

How do you do that? Is there an option somewhere?
I'm bringing the Airstream home, I'll reach out later today, I see the update..  Smile
Kodi: Nexus v20.5 | Skin Dev: Madnox Omega/Nexus: v20.01.02 | Madnox ForumRoot | Madnox Repov1.0.09 | Mr. V'sSource | Kodi Texture Tool (Takeover): v3.0.1 | Batch Texture Resize (Irfanview): Tutorial
Working On
: Replacing Embruary >> TMDB Helper || Start: 6/3/2024 End: God knows || Status Complete: Movies: 80% TV Shows: 40% Music: 20%
Reply
#85
I see I never got back to this, it overall has been going well. I started to look at some localization stuff I was creating and when I went to look at its definition, see the image below:

Image
Kodi: Nexus v20.5 | Skin Dev: Madnox Omega/Nexus: v20.01.02 | Madnox ForumRoot | Madnox Repov1.0.09 | Mr. V'sSource | Kodi Texture Tool (Takeover): v3.0.1 | Batch Texture Resize (Irfanview): Tutorial
Working On
: Replacing Embruary >> TMDB Helper || Start: 6/3/2024 End: God knows || Status Complete: Movies: 80% TV Shows: 40% Music: 20%
Reply
#86
There is no definition handler for localization values, I'll add it soon, thanks.
Reply
#87
V0.2.9 - Add localize definition handling. Only works with user generated po files, will not return the definition of Kodi's built-in po file.
Reply
#88
(2024-11-17, 10:54)roidy Wrote: V0.2.9 - Add localize definition handling. Only works with user generated po files, will not return the definition of Kodi's built-in po file.
Damn you're fast.... LOL.

Just out of curiosity, why would it not return that particular one?

Downloading and trying it now.
Kodi: Nexus v20.5 | Skin Dev: Madnox Omega/Nexus: v20.01.02 | Madnox ForumRoot | Madnox Repov1.0.09 | Mr. V'sSource | Kodi Texture Tool (Takeover): v3.0.1 | Batch Texture Resize (Irfanview): Tutorial
Working On
: Replacing Embruary >> TMDB Helper || Start: 6/3/2024 End: God knows || Status Complete: Movies: 80% TV Shows: 40% Music: 20%
Reply
#89
A couple of reasons:-

1. The Kodi default po files aren't part of your skins directory structure.
2. You can't edit the default Kodi po files so no real point taking you to the definition anyway.
Reply
#90
(2024-11-17, 18:49)roidy Wrote: A couple of reasons:-

1. The Kodi default po files aren't part of your skins directory structure.
2. You can't edit the default Kodi po files so no real point taking you to the definition anyway.

Assuming 1 is a limitation, ok, understood.

Assuming 2, yes, understood you can't edit the files, the main idea is still to drive to the definition to see it no? I am finding odd issues like this:

xml:


msgctxt "#31395"
msgid "Resolution Media Flag Color"
msgstr ""


(for the sake of argument, assume in Kodi's main files, even though it is my personal file) > The string does not show up, however, when I switch it to:

xml:


msgctxt "#31395"
msgid "Resolution Media Flag Color"
msgstr "Resolution Media Flag Color"


Then the string shows up. When I right click to see what its definition should be, it should just take me there, regardless of what file it is no?

This occurs often from what I've seen where Kodi's main language has the string in msgid, but not msgstr and if not, then I add it to my local file for operation.

Is it possible for it to navigate to Kodi's definition? And if it is not a normal operation most would want, make it a settings option to enable it for those that may want it?

Anyway, just my thoughts.... thanks again for making the adjustment on .29.

Chris
Kodi: Nexus v20.5 | Skin Dev: Madnox Omega/Nexus: v20.01.02 | Madnox ForumRoot | Madnox Repov1.0.09 | Mr. V'sSource | Kodi Texture Tool (Takeover): v3.0.1 | Batch Texture Resize (Irfanview): Tutorial
Working On
: Replacing Embruary >> TMDB Helper || Start: 6/3/2024 End: God knows || Status Complete: Movies: 80% TV Shows: 40% Music: 20%
Reply
  • 1
  • 3
  • 4
  • 5
  • 6(current)
  • 7

Logout Mark Read Team Forum Stats Members Help
Kodi skin localize VS Code extension0