Page 1 of 1

Sokoban

Posted: Mon Nov 27, 2006 3:20 pm
by Manuel

Posted: Wed Jun 04, 2008 6:31 am
by fang q
I thought I had it, but it is not quite so easy.

EDIT: Does anyone have the solution???

Re:

Posted: Thu Oct 22, 2020 5:43 pm
by AndrY
are these topics about finishing levels in mind?

fang q wrote: Wed Jun 04, 2008 6:31 am EDIT: Does anyone have the solution???
this puzzl is possible

Re: Sokoban

Posted: Thu Oct 22, 2020 9:52 pm
by Holger
are these topics about finishing levels in mind?
You can play them in mind (if possible), or you can copy them to R'n'D:

- click at the "reply with quote" button of the post that contains a level sketch
- copy the text representation of the level sketch to the clipboard using "Ctrl-C"
- click "back" to return to the post without replying
- open R'n'D and go to the level editor
- paste the level sketch by pressing "Ctrl-V"

In this case, you have to fix the player element (which was an old element code). I should fix this in the code...
this puzzl is possible
Yes, indeed. :-)

Re: Sokoban

Posted: Thu Oct 22, 2020 10:23 pm
by filbo
I had forgotten about the paste-a-level feature.

Pasted this into the editor, it was nonfunctional -- everything turned to yellow emeralds as soon as I started play.

Pulled down the menu, set it to RnD rather than EMC engine. Started: the player character was a '?'.

So I switched to an RnD levelset, did the same -- still a '?'. At least I can play the level if I edit '?' to Rockford...

On paste, is there any possibility you could 'smell' the data and automatically recognize which engine it belongs to? It would probably be pretty heuristic, with some cases easily determined (e.g. only when interpreted for this engine is there a player character) and some cases impossible...

Re: Sokoban

Posted: Thu Oct 22, 2020 10:24 pm
by filbo
Oh duh you said that :)

But still, auto-detect...?

Re: Sokoban

Posted: Fri Oct 23, 2020 7:10 am
by AndrY
Holger wrote: Thu Oct 22, 2020 9:52 pm You can play them in mind (if possible), or you can copy them to R'n'D:

- click at the "reply with quote" button of the post that contains a level sketch
- copy the text representation of the level sketch to the clipboard using "Ctrl-C"
- click "back" to return to the post without replying
- open R'n'D and go to the level editor
- paste the level sketch by pressing "Ctrl-V"
wow, thx.
but really it need to install RnD firstly then:)

Re: Sokoban

Posted: Fri Oct 23, 2020 11:22 pm
by Holger
Regarding auto-detect on pasting a level sketch: Yes, that sounds sensible.

And should be fairly easy: Just check for all elements in the level sketch if they match a certain engine, and set the engine accordingly. (And map obsolete elements before doing that, just like it is already done when loading historic R'n'D level files.)

Re: Sokoban

Posted: Sat Oct 24, 2020 1:01 am
by Holger
Just check for all elements in the level sketch if they match a certain engine, and set the engine accordingly. (And map obsolete elements before doing that, just like it is already done when loading historic R'n'D level files.)
Done! :)

Re: Sokoban

Posted: Sat Oct 24, 2020 6:44 am
by filbo
Yes, saw the comment elsewhere :)