AndyDentFree / rbstuff

Automatically exported from code.google.com/p/rbstuff
2 stars 0 forks source link

Possibility of Map Folder? #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. If I add a new built-in map similar to your kSampleMap1 then it will be gone 
in the next update. 

What is the expected output? What do you see instead?

Would it be possible to have a map folder which could contain text files such 
as mountains.txt which 
could contain a new map such as:

World 10 15

Robot 1 1 2 0
Wall 1 1 2
Wall 2 1 2
Wall 3 1 2
Wall 4 1 2
Wall 5 1 2

Wall 1 4 2
Wall 2 4 2
Wall 3 4 2
Wall 4 4 2
Wall 5 4 2
Wall 6 4 2
Wall 7 4 2

Wall 1 7 2
Wall 2 7 2
Wall 3 7 2

Wall 1 10 2
Wall 2 10 2
Wall 3 10 2
Wall 4 10 2
Wall 5 10 2
Wall 6 10 2
Wall 7 10 2
Wall 8 10 2
Wall 9 10 2

Then these maps could be imported  into the top of the 'Samples' menu or into a 
new Maps menu.

What version of the product are you using? On what operating system?

r40

Please provide any additional information below.

Original issue reported on code.google.com by jeffreya...@gmail.com on 27 Apr 2009 at 8:58

GoogleCodeExporter commented 9 years ago

Original comment by dentaroo@gmail.com on 27 Apr 2009 at 10:45

GoogleCodeExporter commented 9 years ago
Reasonably straight-forward, should be able to do in next 24 hours. Do you want 
a separate Maps menu from 
the built-in Samples? Or maybe a separator under the samples and dynamically 
add the Maps?

Remember to put comments in the top of your files if you are creating long-term 
text files ;-) 

Original comment by dentaroo@gmail.com on 27 Apr 2009 at 10:48

GoogleCodeExporter commented 9 years ago
Having thought about this a bit more, I think it makes sense to have optional 
KarelMaps and KarelScripts 
folders that can provide both scripts and maps and have a menu for each.

The question is where to put them - there was some discussion on the RB-NUG 
mailing list about this 
recently as to what is most appropriate. I think it should be flexible, 
searching a list of folders in order, 
maybe (in terms of the SpecialFolder module in the Language Reference)
  # CurrentWorkingDirectory
  # Documents
  # SharedDocuments

Original comment by dentaroo@gmail.com on 28 Apr 2009 at 2:32

GoogleCodeExporter commented 9 years ago
Personally I'd go with KarelMaps and KarelScripts folders in the 
CurrentWorkingDirectory.

I think a new Maps menu and a Scripts menu would be best.

Original comment by jeffreya...@gmail.com on 28 Apr 2009 at 4:47

GoogleCodeExporter commented 9 years ago
Added in r75 - searches the directories in order:
- application directory, next to exe
- documents
- shared documents
- user home

Note that it works with aliases, eg: I put aliases in my Documents directory 
pointing to the KarelScripts and 
KarelWorlds that are in my svn working area. Haven't tested on Windows yet.

Original comment by dentaroo@gmail.com on 10 May 2009 at 4:19

GoogleCodeExporter commented 9 years ago
r77 adds a minor fix for Windows where it would crash if some of the special 
folders 
didn't exist and to make it cope if a link to the worlds and scripts dirs was 
put in 
a location, like Documents.

Original comment by dentaroo@gmail.com on 11 May 2009 at 7:57