Author Topic: FileSyst  (Read 19839 times)

0 Members and 1 Guest are viewing this topic.

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: FileSyst
« Reply #30 on: January 09, 2013, 03:35:15 am »
I updated prgmCMD to include the OPEN command and you can see as it opens DK5ION that this should be very useful!

indeed! i bet basic programmers out there will love this, and the code could be really useful elsewhere as well. is it calling those other apps to open the selected files? if so, it would be nice to have a hook that's called whenever a program is run from the homescreen, seeing as there isn't really anything out there that chooses what to use in opening a file dynamically like that.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: FileSyst
« Reply #31 on: January 09, 2013, 10:45:24 am »
is it calling those other apps to open the selected files? if so, it would be nice to have a hook that's called whenever a program is run from the homescreen, seeing as there isn't really anything out there that chooses what to use in opening a file dynamically like that.
Yes, the program checks for the associated app or program and has it loaded (it also installs the necessary hook and restores the parser hook after running). However, since the app does this based on data stored in the file header and not the program, it would be difficult to install a hook to intercept the prgm token to do this. From the homescreen, people can do dim("OPEN( <<file>>) and it will work, so long as the file has the proper file association set.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: FileSyst
« Reply #32 on: January 09, 2013, 07:02:29 pm »
Looking nice, but can you also use it in basic programs?
Sorunome, that screenshot is of it being used in a BASIC program.
It was off the homescrean :P
And if yes, is it compatible with BatLib as it uses dim( too?
The answer is yes and no. The two cannot work at the same time, but in this update I will introduce a new command OPEN() that is able to open BatLib programs (among other things). Also, a bunch of BatLib commands are provided at the moment with FileSyst, though some may be removed later.
Oh, that is pretty cool, does batlibs chainhook still work then?

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: FileSyst
« Reply #33 on: January 09, 2013, 10:08:31 pm »
Oh, I think you missed this post, then :P Or, you can see what I started working on earlier today in this post

EDIT: Oh, I forgot to mention the important part of what I did today. I added in actual icons instead of the two dummy icons, as you can see from the example. GICON() also now looks for more info when it reads a "default" icon. For example, it will check if the file has any file association and then it checks if it is a BASIC or assembly program, returning the appropriate icon.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: FileSyst
« Reply #34 on: January 10, 2013, 03:44:26 pm »
I figured that I would ask for input on the following changes to be made to FileSyst:

-Using "/" instead of ":" for folder paths
-Getting rid of the File Association field and just using file extensions. For example, DonkeyKong.ION

Do these sound like good ideas?

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: FileSyst
« Reply #35 on: January 10, 2013, 03:52:35 pm »
-Getting rid of the File Association field and just using file extensions. For example, DonkeyKong.ION
That's actually a great idea for any shell...




Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: FileSyst
« Reply #36 on: January 10, 2013, 03:58:09 pm »
Thanks :) And since FileSyst is going to be used in at least three projects (LinuxOS, ScopeOS, and LSDOS), all of which will have shell features, that should be greatly useful. Plus, as it is, it isn't easy to show the user what file associations there are. However, if it is part of the file name as a file extension, users will be able to clearly see what kind of file they are opening.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: FileSyst
« Reply #37 on: January 10, 2013, 05:36:38 pm »
I like the idea with the file extensions :D
And the / for folder path is a must anyways :P

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: FileSyst
« Reply #38 on: January 11, 2013, 12:28:35 am »
Okay, so I added in file extensions and using / for filepaths. It as actually a lot easier than I thought it would be to convert to using file extensions. I also added in the .DOC7 to open up DocDE7 files and I removed AFA() and RFA() as they are no longer needed.

I think I should probably mention that in the screenie running prgmGUI, prgmGUI keeps its subprograms archived. It creates a folder in the main directory called GUI, creates OS shortcuts there, then runs them when it needs to using OPEN(). But what is even cooler is that GUI recognises hidden files or folders and won't display them in the menus. That is why you don't see its folder-- it is marked as hidden using the HIDE() command.

Offline ben_g

  • Hey cool I can set a custom title now :)
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +125/-4
  • Asm noob
    • View Profile
    • Our programmer's team: GameCommandoSquad
Re: FileSyst
« Reply #39 on: January 20, 2013, 04:10:59 pm »
This looks cool. Do you need to have DCS installed for DocDE to work or is this fully compatible with DCS programs?
My projects
 - The Lost Survivors (Unreal Engine) ACTIVE [GameCommandoSquad main project]
 - Oxo, with single-calc multiplayer and AI (axe) RELEASED (screenshot) (topic)
 - An android version of oxo (java)  ACTIVE
 - A 3D collision detection library (axe) RELEASED! (topic)(screenshot)(more recent screenshot)(screenshot of it being used in a tilemapper)
Spoiler For inactive:
- A first person shooter with a polygon-based 3d engine. (z80, will probably be recoded in axe using GLib) ON HOLD (screenshot)
 - A java MORPG. (pc) DEEP COMA(read more)(screenshot)
 - a minecraft game in axe DEAD (source code available)
 - a 3D racing game (axe) ON HOLD (outdated screenshot of asm version)

This signature was last updated on 20/04/2015 and may be outdated

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: FileSyst
« Reply #40 on: January 20, 2013, 04:13:59 pm »
You need DoorsCS as well as DocDE7 to open .DOC7 files.

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: FileSyst
« Reply #41 on: January 20, 2013, 07:12:06 pm »
Very handy feature :).

I was wondering if you had put any thought into case sensitivity at all? Is it required? (could it be toggled?)
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: FileSyst
« Reply #42 on: January 21, 2013, 06:15:01 am »
Currently it is case sensitive. I was thinking of making it not case sensitive for the extension part of the name, but I am trying to figure out the best approach for the rest of the name. For example, DOnkeyKong.ION is different from DonkeyKong.ION. I could make the file searching code recognise the two as the same name, though. Do you think this would be a good idea?

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: FileSyst
« Reply #43 on: January 23, 2013, 08:08:27 pm »
I would go with storing case sensitive but searching case in-sensitive

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: FileSyst
« Reply #44 on: January 23, 2013, 11:51:31 pm »
I think case-insensitivity is possibly a good idea if input is calc driven, since it would save tedious typing time? But i guess it comes down to your preference Xeda ... is the necessary work required to implement worth the benefit? - I guess you can see it as both an increase and decrease in flexibility.
« Last Edit: January 23, 2013, 11:52:44 pm by tr1p1ea »
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."