Blockski+ , like Klotski but with a board editor.

So you have written that new, must have program. Let us see it here.
User avatar
BruceSteers
Posts: 1578
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Blockski+ , like Klotski but with a board editor.

Post by BruceSteers »

I can't for the life of me complete the Forget Me Not board !
I know it's possible and have even watched this a few times https://stavanger-guide.no/klotski.htm

But nope... haha super tricky that one
If at first you don't succeed , try doing something differently.
BruceS
User avatar
BruceSteers
Posts: 1578
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Blockski+ , like Klotski but with a board editor.

Post by BruceSteers »

Just an update on some changes / new features of V1.1.25..

* Many a tweak, visual improvements, window placements,

* A few bug fixes in the editor. (i started making some boards instead of making the program and found a few)

* A few bug fixes in setup/first time things. (i installed on gf's laptop and found a few)

* A long game can now be saved mid way and reloaded and resumed later if you need to.

* Option to save/restore board size changes made on main play board.

I plan to keep this V 1.1.xx until i think it's out of beta stage and most of the bugs are squished then i'll goto 1.2

Let me know if you find problems.

Enjoy :)
If at first you don't succeed , try doing something differently.
BruceS
User avatar
BruceSteers
Posts: 1578
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Blockski+ , like Klotski but with a board editor.

Post by BruceSteers »

really heading towards a proper complete 1.2 release now.

Have done mostly all i think I will to the editor. (for now)

V 1.1.38 still lacks being able to multi-select blocks for move/delete but i'm not sure it's really a requirement.

Have added things like...
* being able to change block type (movable or wall)
* being able to change image.
* Added a few boards
* Changing Prize or Goal size/shape changes the other too.

* Various other tweaks / improvements / developments.

Close to complete now i think.

Still Todo... (I will do for sure)
* go through all the code and make all texts translatable.

Possible ToDo's... (I may or may not do)
* Multi-select blocks for move/delete/copy-paste
* Undo feature

:)
A download is in the first post or use the online updater if you already have it.

Have fun :)
If at first you don't succeed , try doing something differently.
BruceS
User avatar
BruceSteers
Posts: 1578
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Blockski+ , like Klotski but with a board editor.

Post by BruceSteers »

There's 3 new boards to get stuck into :)

Crosses , because it's lots of crosses. trickier than it looks :) I've done that one in 22 moves

Gaps , because you have to find/make gaps using the ghost walls , i've done in 183 moves

Catchy because the Z shaped blocks like to get caught on others so they cannot move ;) , 120 moves for me so far.
Attachments
Untitled.jpg
Untitled.jpg (87.44 KiB) Viewed 2122 times
If at first you don't succeed , try doing something differently.
BruceS
User avatar
BruceSteers
Posts: 1578
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Blockski+ , like Klotski but with a board editor.

Post by BruceSteers »

Okay well maybe i'll do a little bit more :)

I've added GoThrough blocks. These are movable blocks that can go through ghost walls and the Prize block but cannot go through normal blocks or walls and normal blocks and the prize block cannot go through them.

Allowing boards like in the picture that have a block in the middle you need to move with the outer block :)

Have made all (i think) strings translatable.

V 1.1.40
Attachments
Untitled.jpg
Untitled.jpg (29.43 KiB) Viewed 2102 times
If at first you don't succeed , try doing something differently.
BruceS
User avatar
BruceSteers
Posts: 1578
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Blockski+ , like Klotski but with a board editor.

Post by BruceSteers »

Another bunch of changes.

Added a bunch of new wall images and different colored block images.

Improved default wall image

A lego image :) :lol:

you can now right click a block in the editor and change all blocks of that image to another image in one go.

there was a block rendering glitch if the block size was not a multiple of 3 because of how the image is split 3x3 into 9 squares so now blocksize is forced to be a multiple of 3

Player names are saved to a selectable pop up list for quick change

Thumbnail generation improvement
It can now get an image of a board without loading it into view first so on first load from an empty thumbnail dir it makes all thumbnails. So now they are all visible in the board chooser before you click them. 😎
(I recommend opening the settings page and hitting the kill thumbnails button to refresh them all.)

Enjoy :)
Attachments
Untitled.jpg
Untitled.jpg (83.86 KiB) Viewed 2076 times
If at first you don't succeed , try doing something differently.
BruceS
User avatar
BruceSteers
Posts: 1578
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Blockski+ , like Klotski but with a board editor.

Post by BruceSteers »

Made a fairly big change in the built in blocks.

Now the block images (normal and lego) are just 2 greyscale pictures and the blocks are colored using Image.Colorize

So that opened up a few options..
In the editor
* popup menu to change single block color to any color mask you want.
* popup menu to change all blocks of the selected type to a color
* popup menu to randomly color all blocks of the selected type.

* I've removed all the no longer needed BlockRed.png/BlockGreen.png/etc image files.

On the play board
* make multicolor or remove coloring
If at first you don't succeed , try doing something differently.
BruceS
User avatar
BruceSteers
Posts: 1578
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Blockski+ , like Klotski but with a board editor.

Post by BruceSteers »

Now includes...


Undo/Redo now exists in the board editor

Thumbnail dir can be set, either
$HOME/.config
/run/user/1000
or /tmp/gambas.1000

fixed a foolish bug in save games. i stupidly saved the block positions in pixel x,y and not dividing by block size to get relative positions, so if restoring on a different sized board it went horribly wrong :(

made a little side game where you can select any image file and it makes a square sliding puzzle.

fixed force modal window popup placement function and added options to settings

fixed a qt5 specific layout bug.

Set version to 1.2 as nearly complete and out of initial testing stages.

my gf has been playing it and reporting problems to me :)
And requesting updates :-/ so now there's an option to see the scoreboard on the main window and also opening prefs/board selector does not reset the running game but pauses it.
If at first you don't succeed , try doing something differently.
BruceS
User avatar
BruceSteers
Posts: 1578
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Blockski+ , like Klotski but with a board editor.

Post by BruceSteers »

okay so I bet you're wondering why i have stopped posting a ridiculous amount of revision updates per day?

Because of a couple of rather huge and complicated updates is why.

such an update it deserved a version number change.
Now 1.3

Upgrade 1.
I finally added multi-selection to the board editor :)

And after doing that I then had to completely debug and modify all the functions using undo to support multiple objects. (what a headache that was)

There's still a couple of little bugs i think, nothing major.

You can multi-select blocks by either holding Ctrl and clicking them or holding control and dragging the mouse.
When selecting with control you do not have to place the mouse in a blank board area, it will give the selection rectangle even if on a block.
If pressing Ctrl the previously selected blocks remain selected.
Or if you drag the mouse from a blank board area not pressing control a new selection begins.

Upgrade 2
Another big and noticeable upgrade (especially when playing) is in the board view and how blocks were painted.
Previously each block was painted every time with their Paint method in a board refresh.
This constructed and painted each block with each board refresh and on larger boards i noticed a bit of a lag.

Now when a block is initially created or modified in the editor it creates an Image of itself and with each board refresh it simply paints the ready made image. massively decreasing lag.

Upgrade 3
I have changed how the board selector works.
Previously the preview of the board was an actual Board.class that loaded the game.
This has turned out to be slow especially with the big boards my gf created.

Now the thumbnail generation process makes a larger image and the preview shows this image instead of loading the board each time.
Downside is the thumbnail dir needs renewing. (it should detect and do it automatically)

If you have set the thumbnail dir to be in $HOME then it will work the fastest at first.
if set to XDG (memory) or Gambas (/tmp/Gambas.1000) it will generate thumbs that died with the last reboot when first run, and they will survive till next reboot.

Other upgrades include...
If the Updater is set to development branch it checks if the file "./.public/LastCompile.txt" matches the online copy as version numbers will likely be the same.
If at first you don't succeed , try doing something differently.
BruceS
User avatar
BruceSteers
Posts: 1578
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Blockski+ , like Klotski but with a board editor.

Post by BruceSteers »

some more updates in version 1.3.4
Some fixes in the editor. (editor is still a bit buggy but the play board is stable.

Now there is Vanishing walls (as seen on the right hand of the first pic) they disappear when the prize block goes over them.

My gf has made some huge boards based on the window$ Klotski game she liked.

Look at this monster...
Screenshot at 2024-03-03 13-33-36.png
Screenshot at 2024-03-03 13-33-36.png (716.98 KiB) Viewed 1737 times
What a nightmare. the Prize block can only be moved 2 spaces at a time because of the annoying block inside it!
And just getting it out of the center piece takes a lot of moves. (i have yet to do it, lol, it's really tricky)

She estimates she can do it in about 2,900 moves :-\

This one is pretty tough too.
Screenshot at 2024-03-03 13-37-41.png
Screenshot at 2024-03-03 13-37-41.png (387.63 KiB) Viewed 1737 times
I've done that in 2086 moves that took me 1:17:15
If at first you don't succeed , try doing something differently.
BruceS
Post Reply