Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Sprytile

A Blender add-on for building tile based low-poly scenes with paint/map editor like tools · By Jeiel Aranal

Blender 2.80

A topic by kitsune.ONE team created Mar 09, 2019 Views: 13,891 Replies: 64
Viewing posts 12 to 31 of 31 · Previous page · First page

Hey guys,

I installed on 2.8.0 (current stable, not beta anymore), after renaming-zipping the folder but I don't get the 3 icons (Fill, Paint, Build) in the toolbar, it starts at "Flip"

You can find it in the default edit mode toolbar at left side

(1 edit)

In 2.80.75, Edit mode, I don't get the 3 icons (Fill, Paint, Build) in the toolbar, it starts at "Flip"

Console throws multiple times:

File "C:\Users\nobody\Documents\blender-2.80\2.80\scripts\startup\bl_ui\space_userpref.py", line 1900, in draw
    draw(context)
  File "C:\Users\nobody\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\Sprytile\__init__.py", line 790, in draw

box.label("Keyboard Shortcuts")
TypeError: UILayout.label(): required parameter "text" to be a keyword argument!

Hello! Is there progress on the 2.8 port of Sprytile?

I tried ologon's version, but as he said, the UI isn't there yet, so it's not really usable. An it crashed blender 2.8 two times. 

(5 edits) (+16)

Good news! I've finished porting all features to blender 2.8, except decal layers, and since it has become usable now, I've uploaded a beta release here:

https://github.com/ologon/Sprytile/releases

To install the beta, grab the zip file from that page and install it from the preferences -> addons panel as usual.

Here's what changed in the blender 2.8 version:


The sprytile panel is now located in the new panel section, which is hidden by default.
To show it click on the small arrow in the top left corner of the 3D view:

Then select "Sprytile"

Blender 2.8 default viewport settings are not optimal for pixel art, specifically you may notice texture jittering when moving the camera. (This is caused by eevee's temporal anti-aliasing filter) Moreover, blender viewport employs filmic color correction by default, which will cause your unlit tiles to appear slightly brighter than the original image. To fix this issues, select the newly added "Sprytile Utilities" -> "Setup Pixel Viewport". I recommend doing this once before starting to work with sprytile.

Sprytile tools are now located in the toolbar on the right. They will show up once you enter edit mode:

You can use the snap tool by holding "S" while the build tool is active as usual, and the tile picker by holding left Alt while any sprytile tool is active.

The normal tool is not a separate icon , instead it can now be used by holding "N" while the build tool is active.

Everything  else is pretty much the same as it was in 2.7.


The beta hasn't been tested throughly, so crashes/errors may occur while using it. Let me know if you encounter any problem, and be sure to save often just in case :)

(+2)

You're the bomb! Been waiting for a 2.8 compatible release for awhile now, so stoked to give it a try. Thanks a bunch!

YAY!

First thank you very much for porting this to blender 2.8
Next, I tried to use but it crashs so quickly and randomly I can't tell you what is going wrong :/
Do you have a version with some try/catch everywhere writing the errors into a file or at least in the console ?
Or tell me how can I help you to make this version more stable, I would like to help.

Hi LuDK,

Thanks! I've been using it for a while and it appears to work just fine in my case. Are you using the latest beta? (Beta6)

If you are already using the latest beta, open the windows command prompt and start blender from there (by typing for example "C:\Program Files\Blender Foundation\Blender\blender.exe" then enter) . When sprytile/blender crashes the error causing the crash should remain in the command prompt. Can you tell me what you are getting? (Also knowing when it happens would be helpful)

Ok I'm doing that since this morning.
I updated blender to the official release 2.81 too... and... no crash currently.
I let you know if anything happens ;)

Ok I got a crash:

"Error: Not freed memory blocks: 5, total unfreed memory 0.001434 MB

Blender quit"

Wow crashed again when I tried to Ctrl + Z:

"Traceback (most recent call last):

  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 513, in draw_callback_handler
    VIEW3D_OP_SprytileGui.draw_offscreen(context)
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 573, in draw_offscreen
    target_img.gl_load()
ReferenceError: StructRNA of type Image has been removed
Traceback (most recent call last):
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 513, in draw_callback_handler
    VIEW3D_OP_SprytileGui.draw_offscreen(context)
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 573, in draw_offscreen
    target_img.gl_load()
ReferenceError: StructRNA of type Image has been removed
Traceback (most recent call last):
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 513, in draw_callback_handler
    VIEW3D_OP_SprytileGui.draw_offscreen(context)
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 573, in draw_offscreen
    target_img.gl_load()
ReferenceError: StructRNA of type Image has been removed
Traceback (most recent call last):
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 513, in draw_callback_handler
    VIEW3D_OP_SprytileGui.draw_offscreen(context)
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 573, in draw_offscreen
    target_img.gl_load()
ReferenceError: StructRNA of type Image has been removed
Traceback (most recent call last):
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 513, in draw_callback_handler
    VIEW3D_OP_SprytileGui.draw_offscreen(context)
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 573, in draw_offscreen
    target_img.gl_load()
ReferenceError: StructRNA of type Image has been removed
Traceback (most recent call last):
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 513, in draw_callback_handler
    VIEW3D_OP_SprytileGui.draw_offscreen(context)
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 573, in draw_offscreen
    target_img.gl_load()
ReferenceError: StructRNA of type Image has been removed
Traceback (most recent call last):
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 513, in draw_callback_handler
    VIEW3D_OP_SprytileGui.draw_offscreen(context)
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 573, in draw_offscreen
    target_img.gl_load()
ReferenceError: StructRNA of type Image has been removed
Traceback (most recent call last):
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 513, in draw_callback_handler
    VIEW3D_OP_SprytileGui.draw_offscreen(context)
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 573, in draw_offscreen
    target_img.gl_load()
ReferenceError: StructRNA of type Image has been removed
Traceback (most recent call last):
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 513, in draw_callback_handler
    VIEW3D_OP_SprytileGui.draw_offscreen(context)
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 573, in draw_offscreen
    target_img.gl_load()
ReferenceError: StructRNA of type Image has been removed
Traceback (most recent call last):
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 513, in draw_callback_handler
    VIEW3D_OP_SprytileGui.draw_offscreen(context)
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 573, in draw_offscreen
    target_img.gl_load()
ReferenceError: StructRNA of type Image has been removed
Traceback (most recent call last):
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 513, in draw_callback_handler
    VIEW3D_OP_SprytileGui.draw_offscreen(context)
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 573, in draw_offscreen
    target_img.gl_load()
ReferenceError: StructRNA of type Image has been removed
Traceback (most recent call last):
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 513, in draw_callback_handler
    VIEW3D_OP_SprytileGui.draw_offscreen(context)
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 573, in draw_offscreen
    target_img.gl_load()
ReferenceError: StructRNA of type Image has been removed
Traceback (most recent call last):
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 513, in draw_callback_handler
    VIEW3D_OP_SprytileGui.draw_offscreen(context)
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 573, in draw_offscreen
    target_img.gl_load()
ReferenceError: StructRNA of type Image has been removed
Traceback (most recent call last):
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 513, in draw_callback_handler
    VIEW3D_OP_SprytileGui.draw_offscreen(context)
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 573, in draw_offscreen
    target_img.gl_load()
ReferenceError: StructRNA of type Image has been removed
Traceback (most recent call last):
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 513, in draw_callback_handler
    VIEW3D_OP_SprytileGui.draw_offscreen(context)
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 573, in draw_offscreen
    target_img.gl_load()
ReferenceError: StructRNA of type Image has been removed
Traceback (most recent call last):
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 513, in draw_callback_handler
    VIEW3D_OP_SprytileGui.draw_offscreen(context)
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 573, in draw_offscreen
    target_img.gl_load()
ReferenceError: StructRNA of type Image has been removed
Traceback (most recent call last):
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 513, in draw_callback_handler
    VIEW3D_OP_SprytileGui.draw_offscreen(context)
  File "C:\Users\eques\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\sprytile\sprytile_gui.py", line 573, in draw_offscreen
    target_img.gl_load()
ReferenceError: StructRNA of type Image has been removed
Error   : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FF6C7C1101D
Module  : C:\Program Files\Blender Foundation\Blender 2.81\blender.exe"

Thanks! I’ll look into it and see if I can reproduce it :)

(+1)

I was able to reproduce the above crashes and I've released a beta7 with a fix.

Let me know if you encounter other issues! :)

Thanks, I updated I let you know ;)

Uh THANK YOU!!!!

I messed around with sprytile in the past but when 2.8 got here I was so sad to see it was incompatable. Now that it's back, I'm looking forward to learning it again!

Hell yeah!

Hi :)

How can I remove a tileset ?

Thank you !!!

And sometimes the view of the tileset to pick a tile is just missing, is there any way to force to display ?
(I have to close and reopen blender to fix it).

Thank you ;)

(2 edits)

Hi LuDK!

As in 2.7, to delete a tileset you have to first delete its material. Find the tileset material in the material panel and press the  "X" button while holding shift, then save your blend file and reopen it:


Blender will delete the material and it should show up as "Invalid Data" in the tileset list.  Sprytile will eventually delete it for you when you add new tilesets, but to delete it right away click on the down arrow icon and choose "Validate Grids":


Regarding the view not showing, it usually means you are working on an object which currently has a different tileset than the one selected.

Hope that helps! :)

Thanks !!!

Deleted 3 years ago
(+1)

All seems good, no more crash, nice job !!!

If you want to have a look: https://www.artstation.com/artwork/Pm0e4L

(+1)

Glad to hear that! Thanks for reporting that issue. And the sprytile works look cool! :)

Thanks :)

(1 edit)

Made a couple changes to Ologon's 2.8 port of Sprytile.  Was experiencing some issues with holding 'S' and 'N' while using my laptop and trackpad.  The shortcut for snapping the cursor is "Left Alt + left click", and the shortcut for selecting an off-axis work plane is "ctrl+alt left click."

Also rebound tile rotation and flipping to 1,2,3,4

https://www.dropbox.com/s/29ksood4d1q2qz9/sprytile%20laptop%20edition.zip?dl=0

You can also remove the whitening effect when in edit mode, but going under the Preferences > Themes > 3D View > Face, and change the second color alpha to 0

How did you rebound the rotation shortcut? I'm searching a guide for Ologon's shortcuts but can't find any source for it, and since i'm using blender in a desktop, don't need to download your version. 

Has anyone tried this on version 2.81 of blender? I get a few errors every time  I try to  load a tileset.

Traceback (most recent call last):

  File "C:\Users\Rustocrat\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\Sprytile-master\sprytile_utils.py", line 878, in execute
    UTIL_OP_SprytileLoadTileset.load_tileset_file(context, self.filepath)
  File "C:\Users\Rustocrat\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\Sprytile-master\sprytile_utils.py", line 896, in load_tileset_file
    bpy.ops.sprytile.texture_setup('INVOKE_DEFAULT')
  File "C:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\modules\bpy\ops.py", line 199, in __call__
    ret = op_call(self.idname_py(), C_dict, kw, C_exec, C_undo)
RuntimeError: Error: Traceback (most recent call last):
  File "C:\Users\Rustocrat\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\Sprytile-master\sprytile_utils.py", line 932, in invoke
    self.setup_tex(context)
  File "C:\Users\Rustocrat\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\Sprytile-master\sprytile_utils.py", line 973, in setup_tex
    target_img.use_alpha = True
AttributeError: 'Image' object has no attribute 'use_alpha'

location: C:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\modules\bpy\ops.py:199

location: <unknown location>:-1

(1 edit)

The 2.8 port is compatible with the latest blender version (2.81a).

Judging from the error log, it looks like you are using a different version from the latest beta. Uninstall any old sprytile from the plugins menu (make also sure there's no sprytile folder left in C:\Users\USER\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons) and try installing the latest zip from this page: https://github.com/ologon/Sprytile/releases ( currently sprytile_2.8_beta8.zip)

(+1)

Thank you so much! Looks like everything is working fine now. 

(+2)

I've been asked this quite a bit so I thought I would leave a little guide here:

Sprytile displays all the tilesets you currently have added, even those the object you are working on doesn't have a material for. If that is the case, the tile selection UI will not show up (In 2.7 it would just show a blank image). To bring it back you can either:

1) Add the tileset again to the selected object with "Add Tileset" as usual (This will create a duplicate)

2) To reuse the existing tileset, go to the material panel with your object selected, add a new material and set it to the tileset you are trying to use:

(Here for example I'm adding terrain_tileset to the object)

When you reselect the tileset, the tile selection UI will show up.

Thanks for all the hard work @ologon! I've not used your version extensively yet but its done the job for me so far!

I'm going to rip my fucking hair out. I just want to create awesome shit with this add-on but nothing I do is working. I too am getting the "Traceback" issue.

I don't know if you are looking to add new features yet, but, it would be neat if fill mode had an option to select multiple tiles and filling them in will randomly place them in the selected area, to quickly make litter variant tiles of grass/walls in the area

For those having problems. It looks like the last error message means you are on 2.82. Just go download blender 2.80 (like the heading says!) and this release works fine. You don't need 2.82 now if your workflow is only this. Chill and let the team work on maintaining this plugin through the updates.

Download 2.80 from blender's archive here: https://download.blender.org/release/Blender2.80/

Install per the instructions at the beginning of this thread.

Works just fine! 

I've tried using the latest blender version (2.82a) but did not encounter any issue. Make sure you are using the latest version of the plugin (currently:  https://github.com/ologon/Sprytile/releases/download/2.8-beta9/sprytile_2.8_beta...)

Any speculated date for Decals support? And thanks for the hard work, right now I can't imagine my project without it.

(+2)

Unfortunately I don't have an estimate atm due to lack of time :/

Decal support would be great!

i'm having the same error as DumpsterCat, i've yet to see what's good about 2.8 because it has been nothing but headaches for me.

Hi, thank You for SpryTile!
I had a problem with the tileset view not showing. I didn't give up and developed a working solution:

(1 edit) (+2)

Tileset not showing is fixed in beta11. No workaround is needed now :)

Thank you ologon for your hard work. I was sent here from another forum because people was linking your hard work. 

I really wanna try this out in Blender. What blender version should I use, and what version of the plugin should I use? Thank you

Hey there quick question, I was wondering if you can still use the scroll wheel to interact with the snap tool like in the older versions. I just tested it out myself and it doesn't seem to work. I'm not sure if theres maybe a new hotkey for moving the snap tool using the scroll wheel like in older versions.

Viewing posts 12 to 31 of 31 · Previous page · First page