Jump to content


Photo

JSW1 Room Name Lister


  • Please log in to reply
6 replies to this topic

#1 Spider

Spider

    DEC (HL)

  • Administrator
  • 3,961 posts

Posted 28 February 2016 - 09:04 PM

I was actually looking for one of these but could not find one, although I'm about 95% sure there was one printed in a magazine "back in the day" so to speak, so I just quickly whipped one up. :)

 

jswlistrooms.png 1.png

2.png 3.png

 

It simply (as the title indicates) lists the room names. To use, load the game code (don't forget to issue a CLEAR first!) then load and run this.

 

Attached File  jswlistrooms.tap   187bytes   95 downloads


Changing order to chaos since 1984

#2 jetsetdanny

jetsetdanny

    Advanced Member

  • Contributor
  • 2,133 posts

Posted 28 February 2016 - 09:12 PM

Thanks, Andy.

 

How about something PC-based that would dump the room names from a JSW game into a text file? Would you be able to create something like this?



#3 Spider

Spider

    DEC (HL)

  • Administrator
  • 3,961 posts

Posted 28 February 2016 - 09:16 PM

Possibly although it may be a bit messy :lol: :unsure:

 

It might be something to suggest for JSWED actually, just a straightforward .xml export / import (rather than a file choice) , I would like to suggest something along the lines of the following format for that:

 

<id>0</id>
<desc>The Off Licence</desc>
<id>1</id>
<desc>The Bridge</desc>

 

I could not do that format however.


Changing order to chaos since 1984

#4 SkoolKid

SkoolKid

    Advanced Member

  • Contributor
  • 54 posts

Posted 29 February 2016 - 12:18 AM

Here's how you could do it in one line with SkoolKit (on Linux, and possibly OS X):

$ echo -e 'b 49280\nT 49280,32\nL49280,256,60' | sna2skool.py -c - jsw.z80 | grep -o '".*"'

This produces the following listing:

"         The Off Licence        "
"         The Bridge             "
"       Under the MegaTree       "
...
"           The Yacht            "


#5 jetsetdanny

jetsetdanny

    Advanced Member

  • Contributor
  • 2,133 posts

Posted 29 February 2016 - 07:48 PM

Thanks for the tip, Richard!



#6 SkoolKid

SkoolKid

    Advanced Member

  • Contributor
  • 54 posts

Posted 01 March 2016 - 05:55 PM

And here's how to do it using SkoolKit and Windows PowerShell:

> echo "b 49280" "T 49280,32" "L 49280,256,60" | sna2skool.py -c - jsw.z80 | select-string DEFM | %{$_ -replace '.*DEFM ', ''}

This might not be the best way (PowerShell is not my first language), but I think it works.



#7 jetsetdanny

jetsetdanny

    Advanced Member

  • Contributor
  • 2,133 posts

Posted 01 March 2016 - 09:31 PM

Thanks again!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users