Skip to main content

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

[FIX] Crashing in Blender 3?

A topic by awhiskin created Aug 09, 2022 Views: 2,443 Replies: 4
Viewing posts 1 to 5
(+4)

I downloaded the repo from BlockCat (https://github.com/BlockCat/Sprytile) however was still getting errors.

It looks like there is a function expecting an integer but receiving a value of another type, so we need to edit it slightly to cast the value to an integer.

The following works for me and doesn't result in errors.

  1. Go to your Blender addons folder (for me, under %APPDATA%\Roaming\Blender Foundation\Blender\3.2\scripts\addons\) then go into the Sprytile folder.
  2. Open sprytile_gui.py and replace the following lines:

Lines 276-277

context.scene.sprytile_ui.palette_pos[0] = display_offset.x
context.scene.sprytile_ui.palette_pos[1] = display_offset.y

with the following

context.scene.sprytile_ui.palette_pos[0] = int(display_offset.x)
context.scene.sprytile_ui.palette_pos[1] = int(display_offset.y)

---

Lines 475-476

context.scene.sprytile_ui.palette_pos[0] = display_offset.x
context.scene.sprytile_ui.palette_pos[1] = display_offset.y

with the following

context.scene.sprytile_ui.palette_pos[0] = int(display_offset.x)
context.scene.sprytile_ui.palette_pos[1] = int(display_offset.y)

3. Save the file

4. Reload Blender and check if issue is resolved.

Hope that helps!

(2 edits) (+5)

Still got some errors when I followed the above instructions,
but after I also changed these lines 489 - 492 as follow in the sprytile_gui.py there are no more errors and Sprytile works perfectly in Blender v3.3 on a Windows 10 PC

 tilegrid.tile_selection[0] = int(sel_min.x)

                tilegrid.tile_selection[1] = int(sel_min.y)

                tilegrid.tile_selection[2] = int(sel_max.x - sel_min.x) + 1

                tilegrid.tile_selection[3] = int(sel_max.y - sel_min.y) + 1


Addition note:

Tested Sprytile further and it also works fine on: Bforartists 3 ( fork Blender) Version 3.4.0 (based on the Blender master 3.5 Alpha).

Sprytle will likely work as well in Blender v3.40 release.

Might not work for all - but ive reverted to using Blender 2.93.13 for Srytile as i was getting nothing but errors when trying to use the tool in Blender 3

why am i not suprised?? blender have never ever worked. there is good and many good reason i stopped using blender. as matter of fact istopped being creative just thanks to no sucess in my willing to be creative. 

(+1)

The original Sprytile hasn't been updated since 2020.  For current Blender support have a look at https://github.com/ionthedev/ReSprytile