Chain loading files

7 views
Skip to first unread message

pixel...@gmail.com

unread,
Nov 4, 2025, 3:00:24 AM (9 days ago) Nov 4
to Medley Interlisp core
I'm making good progress and think I'll probably make the deadline for the Autumn Lisp Game Jam 2025. 

One thing I now need to do is give the user the ability to load my image loading DFASL without them manually loading it. I'm not too familiar with ALL the inner workings of Medley's file manager but I've got my main file RING.LISP and it needs to load my PBM loader DFASL so it can read and populate my sprites for the game.

I'm attaching a screenshot to kind of show the overall idea.
I'm maybe 40% done with the game at this point.RING.png

I'm using a modified Hungarian Rings puzzle which is diabolical since it has 3 intersecting rings rather than the traditional 2. I had to do some work in LibreCAD to get the layout correct. :)

Anyway, so yes, my RING.LISP file needs to load the image loader DFASL so it can build upon functions offered there. I've worked pretty hard on the sprites and look forward to seeing them in action!

Sincerely,
Ryan

pixel...@gmail.com

unread,
Nov 4, 2025, 3:08:51 AM (9 days ago) Nov 4
to Medley Interlisp core
On second thought, perhaps I offer the image loader in source form, then compile it in the game loader if need be. That way the source never gets lost...

Paolo Amoroso

unread,
Nov 4, 2025, 4:20:48 AM (9 days ago) Nov 4
to pixel...@gmail.com, Medley Interlisp core
It's looking great. Two possible approaches for loading a file from another is to add the FILES File Manager command (e.g. (FILES TOBELOADED)) to the coms of the first file, or add a suitable P command which does the load (e.g. (P (LOAD TOBELOADED.DFASL))).


--
You received this message because you are subscribed to the Google Groups "Medley Interlisp core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lispcore+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lispcore/44e368d2-08e5-43a3-8824-10b79e1c064an%40googlegroups.com.


--

Matt Heffron

unread,
Nov 4, 2025, 2:22:59 PM (8 days ago) Nov 4
to Paolo Amoroso, pixel...@gmail.com, Medley Interlisp core

That’s assuming that this is a “managed” file!

 

But the (FILES TOBELOADED) is definitely preferred as it will not load the file if it has already been loaded, and it will try both compiled extensions to load before falling back to the source file, and it looks on the DIRECTORIES list of locations.

The (P (LOAD ‘TOBELOADED.DFASL)) will always attempt to load the specific file, and it looks only in the currently connected directory unless the full path (absolute or relative) is specified as the argument.

 

From: lisp...@googlegroups.com <lisp...@googlegroups.com> On Behalf Of Paolo Amoroso
Sent: Tuesday, November 4, 2025 1:21 AM
To: pixel...@gmail.com
Cc: Medley Interlisp core <lisp...@googlegroups.com>
Subject: Re: Chain loading files

 

It's looking great. Two possible approaches for loading a file from another is to add the FILES File Manager command (e.g. (FILES TOBELOADED)) to the coms of the first file, or add a suitable P command which does the load (e.g. (P (LOAD TOBELOADED.DFASL))).

 

 

On Tue, Nov 4, 2025 at 9:08AM pixel...@gmail.com <pixel...@gmail.com> wrote:

On second thought, perhaps I offer the image loader in source form, then compile it in the game loader if need be. That way the source never gets lost...

On Tuesday, November 4, 2025 at 1:00:24AM UTC-7 pixel...@gmail.com wrote:

I'm making good progress and think I'll probably make the deadline for the Autumn Lisp Game Jam 2025. 

One thing I now need to do is give the user the ability to load my image loading DFASL without them manually loading it. I'm not too familiar with ALL the inner workings of Medley's file manager but I've got my main file RING.LISP and it needs to load my PBM loader DFASL so it can read and populate my sprites for the game.

I'm attaching a screenshot to kind of show the overall idea.

I'm maybe 40% done with the game at this point.



I'm using a modified Hungarian Rings puzzle which is diabolical since it has 3 intersecting rings rather than the traditional 2. I had to do some work in LibreCAD to get the layout correct. :)

Anyway, so yes, my RING.LISP file needs to load the image loader DFASL so it can build upon functions offered there. I've worked pretty hard on the sprites and look forward to seeing them in action!

Sincerely,
Ryan

--
You received this message because you are subscribed to the Google Groups "Medley Interlisp core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lispcore+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lispcore/44e368d2-08e5-43a3-8824-10b79e1c064an%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Medley Interlisp core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lispcore+u...@googlegroups.com.

pixel...@gmail.com

unread,
Nov 4, 2025, 8:21:39 PM (8 days ago) Nov 4
to Medley Interlisp core
Thanks for the clarification!
Reply all
Reply to author
Forward
0 new messages