Repton Map Creator

discuss pc<>acorn file transfer issues and the use of other utils
Post Reply
User avatar
geraldholdsworth
Posts: 1401
Joined: Tue Nov 04, 2014 9:42 pm
Location: Inverness, Scotland
Contact:

Repton Map Creator

Post by geraldholdsworth »

Hi all,

I've been busy beavering away writing version 2 of Repton Map Display, now known as Repton Map Creator.

The intention is that, eventually, you'll be able to view, create and edit maps on Windows, Linux or macOS for use in BBC, Electron, Commodore 64, and Archimedes versions of Repton 3, Infinity and The Lost Realms (and view other Repton scenarios).

For now, I've got a beta release ready. Not very polished, but I'm getting there. I've only tested it on macOS, so the GUI may look a lot different on Linux or Windows. Also, I haven't done the High-DPI scaling, so if you use anything other than 100%, it will look messed up.

macOS Intel 64bit
macOS Intel 32bit
macOS ARM
Linux 64bit
Linux 32bit
Linux ARM (Raspbian)
Windows 64bit
Windows 32bit

Either click on the folder to load a Repton 3/Infinity/TLR data file or disc image, or just drag and drop a file onto the main window. With some formats (3,Infinity and TLR, IIRC) if you then drag another data file of the same game type, even different platform, it'll load the character set and replace the loaded set with the incoming one (and up or down scaling as necessary).

Version 1 is still available on The Repton Resource Page.
Gerald Holdsworth, CTS-D
Extron Authorised Programmer
https://www.geraldholdsworth.co.uk
https://www.reptonresourcepage.co.uk
Twitter @radiogezza
PJTech
Posts: 141
Joined: Wed Apr 06, 2022 5:17 pm
Contact:

Re: Repton Map Creator

Post by PJTech »

Gosh this takes me back to the original BBC level editor which I believe may have been the first time I ever used a mouse!
I never managed to design anything very interesting as a level and I remember a school friend at the time thinking it rather hilarious to create levels with rude shapes :lol:

All these years later I still occasionally fire up BeebEm and play Repton. I'll have to have a go a making a level and see if 35 years have boosted my creativity
User avatar
lurkio
Posts: 4351
Joined: Wed Apr 10, 2013 12:30 am
Location: Doomawangara
Contact:

Re: Repton Map Creator

Post by lurkio »

I'm being told the macOS ARM version is damaged and needs to be moved to the Bin when I try to open it!

:!:
User avatar
geraldholdsworth
Posts: 1401
Joined: Tue Nov 04, 2014 9:42 pm
Location: Inverness, Scotland
Contact:

Re: Repton Map Creator

Post by geraldholdsworth »

lurkio wrote: Wed Jan 25, 2023 11:14 pm I'm being told the macOS ARM version is damaged and needs to be moved to the Bin when I try to open it!
Odd! Never happened before. I've recompiled that version and reposted it.
Gerald Holdsworth, CTS-D
Extron Authorised Programmer
https://www.geraldholdsworth.co.uk
https://www.reptonresourcepage.co.uk
Twitter @radiogezza
User avatar
vanekp
Posts: 1413
Joined: Thu Nov 30, 2000 7:09 am
Location: The Netherlands
Contact:

Re: Repton Map Creator

Post by vanekp »

If I try to open a PC version of a repton map I either get a blank screen or the program crashes with "Access violation"
Repton1 files give blank screen, Repton2 Access violation and Repton3 not a valid Repton data file.
Regards Peter.
User avatar
geraldholdsworth
Posts: 1401
Joined: Tue Nov 04, 2014 9:42 pm
Location: Inverness, Scotland
Contact:

Re: Repton Map Creator

Post by geraldholdsworth »

vanekp wrote: Thu Jan 26, 2023 9:06 am If I try to open a PC version of a repton map I either get a blank screen or the program crashes with "Access violation"
Repton1 files give blank screen, Repton2 Access violation and Repton3 not a valid Repton data file.
It can't deal with PC Repton 1 or 2, unfortunately. Maybe one day.

As for PC Repton 3, it can deal with but I've been asked to restrict the access to this ability. Sorry. Again, maybe one day I'll be able to open it out to everyone. That's also the reason why this is not open source.
Gerald Holdsworth, CTS-D
Extron Authorised Programmer
https://www.geraldholdsworth.co.uk
https://www.reptonresourcepage.co.uk
Twitter @radiogezza
User avatar
vanekp
Posts: 1413
Joined: Thu Nov 30, 2000 7:09 am
Location: The Netherlands
Contact:

Re: Repton Map Creator

Post by vanekp »

geraldholdsworth wrote: Thu Jan 26, 2023 9:09 am
vanekp wrote: Thu Jan 26, 2023 9:06 am If I try to open a PC version of a repton map I either get a blank screen or the program crashes with "Access violation"
Repton1 files give blank screen, Repton2 Access violation and Repton3 not a valid Repton data file.
It can't deal with PC Repton 1 or 2, unfortunately. Maybe one day.

As for PC Repton 3, it can deal with but I've been asked to restrict the access to this ability. Sorry. Again, maybe one day I'll be able to open it out to everyone. That's also the reason why this is not open source.
Ah okay no problem.
Regards Peter.
User avatar
lurkio
Posts: 4351
Joined: Wed Apr 10, 2013 12:30 am
Location: Doomawangara
Contact:

Re: Repton Map Creator

Post by lurkio »

geraldholdsworth wrote: Thu Jan 26, 2023 8:05 am
lurkio wrote: Wed Jan 25, 2023 11:14 pm I'm being told the macOS ARM version is damaged and needs to be moved to the Bin when I try to open it!
Odd! Never happened before. I've recompiled that version and reposted it.
I'm still getting the same error with your latest ARM upload. I'm on macOS Monterey 12.6.2. (I'm opening the copy of the .app that's on the desktop in the following screenshot, *not* the copy that's still inside the disk-image.):

Screenshot 2023-01-26 at 13.03.13.png

What's weird is that if I right-click the desktop copy of the .app and Show Package Contents, and then go into Contents/MacOS, and then copy the binary file Repton Map Creator onto the desktop, I can then successfully open that desktop copy of the binary and get the full application running!

So it seems like the binary itself is okay, but something's gone wrong with the packaging of the binary into a .app..?

:!: :?:
User avatar
geraldholdsworth
Posts: 1401
Joined: Tue Nov 04, 2014 9:42 pm
Location: Inverness, Scotland
Contact:

Re: Repton Map Creator

Post by geraldholdsworth »

lurkio wrote: Thu Jan 26, 2023 1:11 pmSo it seems like the binary itself is okay, but something's gone wrong with the packaging of the binary into a .app..?
That is weird - it's the same packaging for all three macOS DMGs, just different binaries. The 64 bit one works fine on Catalina. I'll fire up my Mac Mini later on and try it with my install of Monterey...unfortunately, still only the Intel version.

Cheers,

Gerald.
Gerald Holdsworth, CTS-D
Extron Authorised Programmer
https://www.geraldholdsworth.co.uk
https://www.reptonresourcepage.co.uk
Twitter @radiogezza
User avatar
lurkio
Posts: 4351
Joined: Wed Apr 10, 2013 12:30 am
Location: Doomawangara
Contact:

Re: Repton Map Creator

Post by lurkio »

geraldholdsworth wrote: Thu Jan 26, 2023 1:43 pm
lurkio wrote: Thu Jan 26, 2023 1:11 pmSo it seems like the binary itself is okay, but something's gone wrong with the packaging of the binary into a .app..?
That is weird - it's the same packaging for all three macOS DMGs, just different binaries. The 64 bit one works fine on Catalina. I'll fire up my Mac Mini later on and try it with my install of Monterey...unfortunately, still only the Intel version.
I was able to "fix" the problem by using option 4 on the following webpage:

https://osxdaily.com/2019/02/13/fix-app ... error-mac/

Code: Select all

xattr -cr /path/to/application.app
EDIT: Also, I ran the basic xattr command on the original "broken" .app, just to see what it would report. It reported "com.apple.quarantine":

Code: Select all

$ cd Desktop/
$ xattr Repton\ Map\ Creator.app/
com.apple.quarantine
Mind you, I get the same quarantine report when I run xattr on the Intel 64-bit app, but that app does (eventually) work for me (once I've gone into Security settings and clicked "Open anyway")!

:!:

EDIT2: I'm downloading a security update for macOS Monterey right now. Stand by..!

:!:

EDIT3: Security update didn't make any difference.

:(
User avatar
geraldholdsworth
Posts: 1401
Joined: Tue Nov 04, 2014 9:42 pm
Location: Inverness, Scotland
Contact:

Re: Repton Map Creator

Post by geraldholdsworth »

lurkio wrote: Thu Jan 26, 2023 1:52 pm I was able to "fix" the problem by using option 4 on the following webpage:

https://osxdaily.com/2019/02/13/fix-app ... error-mac/

Code: Select all

xattr -cr /path/to/application.app
That makes some sense - I use Apple's iCloud drive to store all my source code on, and it compiles to there too. The packages are also created in the same place. iCloud has been getting stuck on 'uploading 0% of XXX MB' on these packaged applications (the Windows and Linux ZIP files too), and I've had to reboot to get it to complete the upload. I have my suspicions that this could also have something to do with permissions/attributes.
Gerald Holdsworth, CTS-D
Extron Authorised Programmer
https://www.geraldholdsworth.co.uk
https://www.reptonresourcepage.co.uk
Twitter @radiogezza
User avatar
geraldholdsworth
Posts: 1401
Joined: Tue Nov 04, 2014 9:42 pm
Location: Inverness, Scotland
Contact:

Re: Repton Map Creator

Post by geraldholdsworth »

I've uploaded beta 2 version today. This version can save edited Repton 3 scenarios (except PC version), and PC graphics. Still need to write the map editor yet.

Links above are still valid, and hopefully, my Mac hasn't decided to keep the attributes to prevent it running (I've put the xattr command in the script for creating the packages, so fingers crossed). You can also get it direct from The Repton Resource Page, by clicking on the "Repton Map Display & Repton Map Decoder" link at the top.

Oh, I may have accidentally left the PC Repton 3 functionality unlocked.
Gerald Holdsworth, CTS-D
Extron Authorised Programmer
https://www.geraldholdsworth.co.uk
https://www.reptonresourcepage.co.uk
Twitter @radiogezza
User avatar
geraldholdsworth
Posts: 1401
Joined: Tue Nov 04, 2014 9:42 pm
Location: Inverness, Scotland
Contact:

Re: Repton Map Creator

Post by geraldholdsworth »

After a few weeks busy working, and going back over to Disc Image Manager, I've come back to Repton Map Creator and made Version 2 beta 3 available on the Repton Resource Page. Not much done, except that you can now edit Repton 3 maps (and, of course, save them).

A few things:
  • You can't start with a blank scenario, or blank off a screen
  • You can't change the screen colours
  • When placing a transporter, you will then need to place the destination - the 'cursor' remains as a transporter
Oh, and I've locked the PC Repton 3 maps again...sorry.

Finally, in an attempt to stop macOS Monterey and Ventura from claiming that it is broken, I've changed the script that does the packaging. It now creates the app package on my Desktop before copying it onto the DMG. Funnily enough, I don't get any issues like this on my Mac Mini running Monterey with this or Disc Image Manager.
Gerald Holdsworth, CTS-D
Extron Authorised Programmer
https://www.geraldholdsworth.co.uk
https://www.reptonresourcepage.co.uk
Twitter @radiogezza
User avatar
geraldholdsworth
Posts: 1401
Joined: Tue Nov 04, 2014 9:42 pm
Location: Inverness, Scotland
Contact:

Re: Repton Map Creator

Post by geraldholdsworth »

I'm making available the separate application (which will be merged with the main application) which can detokenise 'T.*' and 'eT.*' files, decompile 'O.*' and 'eO.*' files, and retokenise what is in the text box into a 'T.*' or 'eT.*' file (these are identical, btw). It can also convert 'O.*' into 'eO.*' and vice versa (BBC to Electron and back) - but this hasn't been tested on Repton Infinity.

This application is very 'rough and ready' and is not meant for full release, just a little side project to add to the main one. So, treat it as beta. If you find any object files it doesn't successfully decompile, please do send them over to me to polish the code up.
Gerald Holdsworth, CTS-D
Extron Authorised Programmer
https://www.geraldholdsworth.co.uk
https://www.reptonresourcepage.co.uk
Twitter @radiogezza
Post Reply

Return to “software & utilities for the pc, mac or unix”