• 1
  • 9
  • 10
  • 11(current)
  • 12
  • 13
  • 22
Release KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting
more improvements:
- much improved tooltips (should work for much more cases now, esp when stuff is nested)
- new style for some tooltips (for example for fonts & variables)
- proper EOL check for the script part (thx ronie)
- added check for encodings != utf-8
- fixed an endless loop in case the Kodi font file is borked (thx bossanova^^)
- take confluence fonts into account for font checks
- extended some checks
- show translation comments when searching fonts
- moved context menu items to root + show them only in case it makes sense
- new check: unused / undefined ids for windows / controls
- bugfixes
- more stuff I forgot

false positive rate for checks should now almost be down to zero. (tested several skins)
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
(2015-05-19, 17:35)phil65 Wrote: you could compile pillow for python 3.3 yourself on your local machine and see if those pyd files work on your computer.

If you tell me (or give me links on some howtos), I can try it Wink
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
(2015-05-20, 08:40)mikebzh44 Wrote:
(2015-05-19, 17:35)phil65 Wrote: you could compile pillow for python 3.3 yourself on your local machine and see if those pyd files work on your computer.

If you tell me (or give me links on some howtos), I can try it Wink

sorry, I wont be able to provide step-by-step instructions.
you can try to install pillow via pip for Python 3.3 x86 and move the created module to the libs/ dir of SublimeKodi.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
I have downloaded and installed Python 3.4.3 for x86 and Pillow 2.8.1 win32 py3.4

Then I have copied (overwrite when exist) all files (.py and .pyd) from C:\Python34\Lib\site-packages\PIL to C:\Users\<user>\AppData\Roaming\Sublime Text 3\Packages\SublimeKodi_8671ab975a\libs\PIL_32

But always the same error in console :

Code:
reloading plugin SublimeKodi_8671ab975a.sublimekodi
Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 74, in reload_plugin
    m = importlib.import_module(modulename)
  File "./importlib/__init__.py", line 90, in import_module
  File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 584, in _check_name_wrapper
  File "<frozen importlib._bootstrap>", line 1022, in load_module
  File "<frozen importlib._bootstrap>", line 1003, in load_module
  File "<frozen importlib._bootstrap>", line 560, in module_for_loader_wrapper
  File "<frozen importlib._bootstrap>", line 868, in _load_module
  File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
  File "C:\Users\MIbertho\AppData\Roaming\Sublime Text 3\Packages\SublimeKodi_8671ab975a\sublimekodi.py", line 19, in <module>
    from PIL_32 import Image
  File "C:\Users\MIbertho\AppData\Roaming\Sublime Text 3\Packages\SublimeKodi_8671ab975a\libs\PIL_32\Image.py", line 63, in <module>
    from PIL import _imaging as core
ImportError: DLL load failed: %1 n’est pas une application Win32 valide.
plugins loaded

But in IDLE, Pillow seem to be OK :

Code:
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> from PIL import _imaging as core
>>> attr = getattr(core, 'PILLOW_VERSION', None)
>>> print(attr)
2.8.1
>>>
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
You have to use Python 3.3
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
PHP Code:
Traceback (most recent call last):
  
File "C:\Users\ssaenger\Documents\GitHub\sublime\Data\Packages\SublimeKodi\sublimekodi.py"line 347in <lambda>
    
self.window.show_quick_panel(label_listlambda sself.label_search_ondone_action(s), selected_index=0)
  
File "C:\Users\ssaenger\Documents\GitHub\sublime\Data\Packages\SublimeKodi\sublimekodi.py"line 355in label_search_ondone_action
    info_string 
INFOS.build_translate_label(label_idscope_name)
  
File "C:\Users\ssaenger\Documents\GitHub\sublime\Data\Packages\SublimeKodi\libs\InfoProvider.py"line 392in build_translate_label
    
if "text.xml" in scope_name and self.addon_type == "python" and 32000 <= label_id <= 33000:
NameError: global name 'scope_name' is not defined 

The plugin won't add $LOCALIZE[value] anymore as soon as I move a string to the language file or if I'm searching for a label. Using the latest 3086 build. Any ideas?
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
(2015-05-21, 15:32)phil65 Wrote: You have to use Python 3.3
Python 3.3.5 and pillow 2.8.1 installed, files copied but issue still present Sad

Code:
Python 3.3.5 (v3.3.5:62cf4e77f785, Mar  9 2014, 10:37:12) [MSC v.1600 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> from PIL import _imaging as core
>>> attr = getattr(core, 'PILLOW_VERSION', None)
>>> print(attr)
2.8.1
>>>
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
(2015-05-22, 10:20)mikebzh44 Wrote:
(2015-05-21, 15:32)phil65 Wrote: You have to use Python 3.3
Python 3.3.5 and pillow 2.8.1 installed, files copied but issue still present Sad

Code:
Python 3.3.5 (v3.3.5:62cf4e77f785, Mar  9 2014, 10:37:12) [MSC v.1600 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> from PIL import _imaging as core
>>> attr = getattr(core, 'PILLOW_VERSION', None)
>>> print(attr)
2.8.1
>>>


You compiled yourself or you only downloaded it from somewhere?
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
(2015-05-22, 09:55)sualfred Wrote:
PHP Code:
Traceback (most recent call last):
  
File "C:\Users\ssaenger\Documents\GitHub\sublime\Data\Packages\SublimeKodi\sublimekodi.py"line 347in <lambda>
    
self.window.show_quick_panel(label_listlambda sself.label_search_ondone_action(s), selected_index=0)
  
File "C:\Users\ssaenger\Documents\GitHub\sublime\Data\Packages\SublimeKodi\sublimekodi.py"line 355in label_search_ondone_action
    info_string 
INFOS.build_translate_label(label_idscope_name)
  
File "C:\Users\ssaenger\Documents\GitHub\sublime\Data\Packages\SublimeKodi\libs\InfoProvider.py"line 392in build_translate_label
    
if "text.xml" in scope_name and self.addon_type == "python" and 32000 <= label_id <= 33000:
NameError: global name 'scope_name' is not defined 

The plugin won't add $LOCALIZE[value] anymore as soon as I move a string to the language file or if I'm searching for a label. Using the latest 3086 build. Any ideas?

should be fixed with https://github.com/phil65/SublimeKodi/co...c50277f27a
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
(2015-05-22, 16:03)phil65 Wrote:
(2015-05-22, 10:20)mikebzh44 Wrote:
(2015-05-21, 15:32)phil65 Wrote: You have to use Python 3.3
Python 3.3.5 and pillow 2.8.1 installed, files copied but issue still present Sad

Code:
Python 3.3.5 (v3.3.5:62cf4e77f785, Mar  9 2014, 10:37:12) [MSC v.1600 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> from PIL import _imaging as core
>>> attr = getattr(core, 'PILLOW_VERSION', None)
>>> print(attr)
2.8.1
>>>


You compiled yourself or you only downloaded it from somewhere?
I download .exe and run it and I think that files are compiled on the fly.

I will be able to check that on Tuesday morning.
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
Thx, this fixed it.

Btw:
I noticed that moving a string to the language file will use the set native strings.po instead of the english one. Dunno if you want it this way, or if this is a bug.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
Maybe that _imagimg.pyd and other .pyd files are not compiled on the fly because all the files in PIL folder are from 02APR2015 12:23

I have downloaded PILLOW 2.8.1 source, install setuptools on Python 3.3 but when I try to compile pillow, I need Visual C++ :

Code:
copying PIL\_util.py -> build\lib.win32-3.3\PIL
copying PIL\__init__.py -> build\lib.win32-3.3\PIL
copying PIL\OleFileIO-README.md -> build\lib.win32-3.3\PIL
running build_ext
building 'PIL._imaging' extension
error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).

As I use my professionnal laptop to do this, I don't want to install too much stuff on it.

Don't know if I will be able to go further on this issue. Will hav a look on tuesday morning Wink
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
(2015-05-22, 16:13)sualfred Wrote: Thx, this fixed it.

Btw:
I noticed that moving a string to the language file will use the set native strings.po instead of the english one. Dunno if you want it this way, or if this is a bug.
Not sure, didnt really pay attention to that setting. What would be preferred?
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
EN because of the transifex translation teams etc Smile
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
@sualfred I think it works properly now. I had to change quite some stuff for proper muli-lang support because there is lot of stuff to take into account if it should work for all cases (different platforms with different paths, new language addons + backwards compatibilty to old system etc) so bit of testing would be nice.
I also had to exchange the settings for this, so instead of "use_native" bool and "language" string you now need to config one list of folder names which the plugin should try to parse. The first existing one will be used for move-to-language file etc.

Also new features from the last days:
- Remote Actions (some ADB stuff to work with remote devices)
- "Build Skin" (requires texturepacker path in settings)
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
  • 1
  • 9
  • 10
  • 11(current)
  • 12
  • 13
  • 22

Logout Mark Read Team Forum Stats Members Help
KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting1