Proper Econet Error Messages

discuss general risc os software applications and utilities
Related forum: adventures


Post Reply
User avatar
BeebMaster
Posts: 3639
Joined: Sun Aug 02, 2009 5:59 pm
Location: Lost in the BeebVault!
Contact:

Proper Econet Error Messages

Post by BeebMaster » Thu Feb 05, 2015 11:04 pm

Today I did a great service to all Econet lovers using 32-bit machines by replacing this twaddle
February2015b388.jpg
February2015b395.jpg
with this sanity
February2015b356.jpg
February2015b409.jpg
It's something I've wanted to be able to do for quite a few years, and I was given the idea earlier on when looking at the source code for the Econet Module Podule module. If I knew how to compile or assemble the source code I could have replaced the file location of the Messages file to do it officially, but instead I had to resort to a bodge by overtyping the location in the actual module with the full pathname of an edited Messages file I made - attached here as EconetMsgs:
EconetMsgs.zip
(655 Bytes) Downloaded 76 times
The next bit was more tricky, because the Who are you? error, as it should be, isn't in the Econet module. I looked at all the Messages files for other network modules and found that the error was in the NetFS Messages. The next challenge was getting the NetFS module as a file that I could edit. I couldn't find it online, probably because it's illegal to own any RISC-OS software that wasn't programmed into a ROM in 1988, so I had to extract it from ROM using *SAVE. I didn't know that was possible, and it was only after reading a page on how you have to *SAVE the ROMs to be allowed to use them in an emulator that I figured it out.

Then I modified NetFS messages and edited NetFS to point to the new messages file:
NetFSMsgs.zip
(1.42 KiB) Downloaded 45 times
I edited the modules by opening them in !Edit and using overtype mode to overtype the pathname of the Resources: location of the Messages file, in my case it was ADFS::HardDisc4.$.ISW.NetMsgs or NetFSMsgs, padding out the remaining bytes from the old location with spaces so that the file length didn't change.

I'm sure there's a better, more official way of doing it, but it worked for me and now I have Econet in a Podule on my RISC PC with original early 1980s error messages!
Image

User avatar
jgharston
Posts: 4129
Joined: Thu Sep 24, 2009 12:22 pm
Location: Whitby/Sheffield
Contact:

Re: Proper Econet Error Messages

Post by jgharston » Fri Feb 06, 2015 12:31 am

BeebMaster wrote:... so I had to extract it from ROM using *SAVE.
There's a useful utility called RMSave that does what it says on the tin. I can't remember where it is on my site(*), but a web search for "RISC OS RMSave" will give plenty of links to where you can get it.

(*) Ah ha! ARMLib at http://mdfs.net/Apps/Networking

Code: Select all

$ bbcbasic
PDP11 BBC BASIC IV Version 0.32
(C) Copyright J.G.Harston 1989,2005-2020
>_

User avatar
flaxcottage
Posts: 4261
Joined: Thu Dec 13, 2012 8:46 pm
Location: Derbyshire
Contact:

Re: Proper Econet Error Messages

Post by flaxcottage » Fri Feb 06, 2015 11:25 am

I suppose that is progress in the Archimedes world! :lol:

How about a nice cup of tea?
- John

Image

User avatar
danielj
Posts: 8439
Joined: Thu Oct 02, 2008 5:51 pm
Location: Manchester
Contact:

Re: Proper Econet Error Messages

Post by danielj » Fri Feb 06, 2015 11:39 am

Image
(Not that I'm in any position to talk...)

User avatar
BeebMaster
Posts: 3639
Joined: Sun Aug 02, 2009 5:59 pm
Location: Lost in the BeebVault!
Contact:

Re: Proper Econet Error Messages

Post by BeebMaster » Sat Feb 07, 2015 9:33 pm

I'm not sure what that is, it certainly doesn't look like a nice cup of tea.

Is it a level from RISC-PC Lemmings that I haven't reached yet?
Image

User avatar
BeebMaster
Posts: 3639
Joined: Sun Aug 02, 2009 5:59 pm
Location: Lost in the BeebVault!
Contact:

Re: Proper Econet Error Messages

Post by BeebMaster » Sun Feb 22, 2015 11:40 am

So I can do it officially, can anybody tell me how I can compile the source code for the replacement Econet module which is used with the Econet Module Podule? I can then point it to the new messages file in the source code and compile it or assemble it or whatever you have to do to make it into module code, instead of overtyping the actual module code.

And maybe there's source code for NetFS as well so I can do the same with that? Or is the source code sealed in the time capsule buried in the Blue Peter garden not to be seen till 2150?
Image

User avatar
jgharston
Posts: 4129
Joined: Thu Sep 24, 2009 12:22 pm
Location: Whitby/Sheffield
Contact:

Re: Proper Econet Error Messages

Post by jgharston » Sun Feb 22, 2015 12:37 pm

BeebMaster wrote:So I can do it officially, can anybody tell me how I can compile the source code for the replacement Econet module which is used with the Econet Module Podule?
It's written in ARM assembler, so you don't compile it, you assemble it. The source is in the RISC OS source tarball at RISC OS Open. The networking modules are in castle/RiscOS/Sources/Networking.

Why do you need to modify the code? What's wrong with pointing to the new messages file on startup? In the startup sequence you *AddAppFS a file replacing Apps:$.Resources.NetFS.Messages with your own messages file.

Code: Select all

$ bbcbasic
PDP11 BBC BASIC IV Version 0.32
(C) Copyright J.G.Harston 1989,2005-2020
>_

User avatar
BeebMaster
Posts: 3639
Joined: Sun Aug 02, 2009 5:59 pm
Location: Lost in the BeebVault!
Contact:

Re: Proper Econet Error Messages

Post by BeebMaster » Sun Feb 22, 2015 1:17 pm

Ah, well, like many things 32-bit, I didn't know that was possible! I'll try that next.
Image

User avatar
jgharston
Posts: 4129
Joined: Thu Sep 24, 2009 12:22 pm
Location: Whitby/Sheffield
Contact:

Re: Proper Econet Error Messages

Post by jgharston » Sun Feb 22, 2015 9:20 pm

BeebMaster wrote:Ah, well, like many things 32-bit, I didn't know that was possible! I'll try that next.
I'm away from my machine at the moment, but when I get back I'll post an example of replacing messages files in AppFS (unless somebody gets in before me).

Code: Select all

$ bbcbasic
PDP11 BBC BASIC IV Version 0.32
(C) Copyright J.G.Harston 1989,2005-2020
>_

User avatar
BeebMaster
Posts: 3639
Joined: Sun Aug 02, 2009 5:59 pm
Location: Lost in the BeebVault!
Contact:

Re: Proper Econet Error Messages

Post by BeebMaster » Mon Feb 23, 2015 12:18 pm

Yes please! I did try it, but my RISC PC doesn't have *ADDAPPFS just *ADDAPP which didn't seem to do what I wanted (if anything).
Image

User avatar
BeebMaster
Posts: 3639
Joined: Sun Aug 02, 2009 5:59 pm
Location: Lost in the BeebVault!
Contact:

Re: Proper Econet Error Messages

Post by BeebMaster » Tue Sep 08, 2020 12:17 pm

With !ResROM I've been able to make a module out of the two custom Messages files, so I can just drop them somewhere in the !Boot hierarchy and they take effect to replace the ROM versions. Taking me from this:
ProperEconetMessages1.png
to this:
ProperEconetMessages16.png
I've attached a zip of the two modules.

What I haven't worked out yet is how to change the messages within the Level 4 file server, as I still get silly error messages from user stations. There's not a lot of text in the !RunImage, unless it's compressed or encoded somehow. Templates has some messages but these are mostly the log file entries and menu items etc.
Attachments
Proper Messages.zip
(2.31 KiB) Downloaded 8 times
Image

User avatar
BeebMaster
Posts: 3639
Joined: Sun Aug 02, 2009 5:59 pm
Location: Lost in the BeebVault!
Contact:

Re: Proper Econet Error Messages

Post by BeebMaster » Tue Sep 08, 2020 12:28 pm

Looks like the L4 !RunImage must be compressed (it's about 64K). Advanced L4 is 212K and has the error messages within it.
Image

Post Reply

Return to “32-bit acorn software: other”