Jump to content
Harry Potter

I'm advertising Template Creator for Windows again! :)

Recommended Posts

This depends. It certainly saves you the manual access to that simple directory structure (changing the drive/dir in the SC panel, for example, just to copy one file from there, then change it back). If the file manager allows to create any file type without that, it can be more convenient, especially if there is a file association mechanism implemented in the shell (like RUNEXT in SDX). But in reality, the implementation may be more complex than it is worth, considering that we do not seem to have many complex data files which need to be specially structured before use. Maybe BAS, M65... music tracker modules... and ATR which can already be created in CLI using dedicated software.

  • Like 1

Share this post


Link to post
Share on other sites

drac030, you got it.  :)  The DOS version requires you to add file types and groups first.  A group is an organization method and can be considered a "purpose."  If you still need help, just reply here.

Share this post


Link to post
Share on other sites

BTW, I'm working on file compression for the CBM, DOS and upcoming Atari8 and Apple 2 versions of Template Creator.  That's why I was asking about file compression.  :)  Would it help?

Share this post


Link to post
Share on other sites

This would be less or more this in SpartaDOS X batch language:

;-NEW FILENAME.EXT
;
PATHSPL %1,,,,,%X
IF EXISTS $TEMPLATES$>*.$%X$
 COPY $TEMPLATES$>*.$%X$ %1
ELSE
 COPY NUL: %1
FI

This requires the PATHSPL.COM command, which needed to be written and will be available on a next SDX Toolkit disk release.

 

The $TEMPLATES$ environment variable must point to a directory containing the "templates", i.e. stub files for each filename extension. If one is not present, a 0-length file will be created, otherwise the template will be copied to the file name given as the parameter.

 

The batch file of course can be made a bit more complicated by adding "categories", i.e. subdirectories to the directory pointed to by the $TEMPLATES$ variable, it will make it - the BAT file - about 8 lines longer.

 

The PATHSPL command just splits the given pathname into device, path, full name, base name and extension.

 

Edited by drac030
removed debug stuff from listing
  • Like 3

Share this post


Link to post
Share on other sites

I know I'm being annoying: I annoy people a lot, but does anybody have a template to donate?  Maybe a cc65 code snippet, or a mostly-empty disk image?  Maybe a document related to the Atari emulation?  I will soon port the program to the Atari 8-bit series.  :)

Share this post


Link to post
Share on other sites

Joseph, aka Harry, are you really real? Or an artificial intelligence which emerged from the all-embracing internet? Seeded by aliens.

  • Haha 1

Share this post


Link to post
Share on other sites

I still can't believe that he thinks this tool is so great, following the thread, no one can figure out how to use it,

what benefits it provides for us, and so many times a working example has been asked for, but nothing !!!

 

From personal experience, templates/boilerplates are generally used by organisations who need consistency

in the way software/documentation is written and therefore a template/boilerplate is created as a starting

point for new programs/software and documentation.

 

In our environment, each program will probably be very different from the previous and there would be

no need for this. 

Share this post


Link to post
Share on other sites
10 hours ago, Harry Potter said:

I know I'm being annoying: I annoy people a lot, but does anybody have a template to donate?  Maybe a cc65 code snippet, or a mostly-empty disk image?  Maybe a document related to the Atari emulation?  I will soon port the program to the Atari 8-bit series.  :)

I guess that @funkheld can help you out on this.

  • Haha 2

Share this post


Link to post
Share on other sites

I've been trying to explain Template Creator here.  I'm sorry for not being clear.  :(  Basically, TmpCreat is a way to make copies of template files.  Template files can be, for example, a code snippet to be reused over and over.  I use it to create empty disk images.  It can also be used for resumes or school work.

Share this post


Link to post
Share on other sites

Well...you could use an otherwise empty main() routine with some start-up code you need often, i.e. set colors, clear screen, load data and perform other start-up tasks.  :) 

Share this post


Link to post
Share on other sites

Using a template for me is:

 

cd ~/atari
mkdir new_project
cd new_project
 

copy an existing main

 

cp ~/somewhere/main.s .

vi main.s

 

or do some "native" development.

 

cp ~/templates/atmas.atr .

atari800 atmas.atr

 

etc....

 

Edited by ivop
  • Like 2

Share this post


Link to post
Share on other sites
3 hours ago, drac030 said:

Or special startup code which does its best to overwrite the binary loader

🤣🤣🤣

Share this post


Link to post
Share on other sites

Or something as simple as click on file, ctrl+c, ctrl+v.  Voila - wow.  A copy is made.  For the cli lovers, "copy old.xex new.xex".

  • Like 1

Share this post


Link to post
Share on other sites

Yeah, this looks like an effort to write a program that no one ever asked for, to fill a need that no one ever had.

 

And if I wanted to create ATR images, I'd be doing that on a PC (Win., Linux, Mac, etc,) and not on the Atari itself....

 

 

Share this post


Link to post
Share on other sites
14 hours ago, ivop said:

cp ~/templates/atmas.atr .

atari800 atmas.atr

this is also my point of view. The whole functionality of this utility is similar to first making a directory structure e.g.

templates/platforms/files like templates/atari-doses/bw-13.atr

and then invoking a copy command. Basically two operations much simpler and less time consuming than using the tool. There are different types of utilities, but they should bring some value e.g. be time-savers that can automate tedious tasks, while this tool does not seem to do it.

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...