Sokoban
Moderators: Flumminator, Zomis
Re: Sokoban
You can play them in mind (if possible), or you can copy them to R'n'D:are these topics about finishing levels in mind?
- 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...
Yes, indeed.this puzzl is possible
Re: Sokoban
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...
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
Oh duh you said that :)
But still, auto-detect...?
But still, auto-detect...?
Re: Sokoban
wow, thx.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"
but really it need to install RnD firstly then:)
Re: Sokoban
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.)
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
Done!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
Yes, saw the comment elsewhere :)