Omnimaga

Omnimaga => News => Topic started by: Eeems on February 13, 2014, 10:06:22 am

Title: New way to browse the downloads section
Post by: Eeems on February 13, 2014, 10:06:22 am
http://omnimaga.org/files/
In order to make Omnimaga's download section more complaint to the calcpkg project (https://github.com/TC01/calcpkg) that TC01 (http://www.omnimaga.org/index.php?action=profile;u=738) is working on I quickly threw together an interface for it that makes it seem like it's a folder structure on the server. The folder structure is dynamically generated from the database every time you view it, so when a new upload is approved it will show up on the list!
Title: Re: New way to browse the downloads section
Post by: Sorunome on February 13, 2014, 10:28:03 am
Looking sweet!
I might make some gCn bridge for that ^.^
Title: Re: New way to browse the downloads section
Post by: Eeems on February 13, 2014, 11:09:12 am
Looking sweet!
I might make some gCn bridge for that ^.^
You should just make a gCn client for calcpkg ;P
Title: Re: New way to browse the downloads section
Post by: TC01 on February 13, 2014, 01:19:25 pm
Thanks Eeems!

I haven't posted about calcpkg in forever here, but I've been working on it on github recently, as you can see. Hopefully the next release of the software will have support for ticalc.org, Cemetech, and Omnimaga (and will happen sometime soon!)

Looking sweet!
I might make some gCn bridge for that ^.^
You should just make a gCn client for calcpkg ;P

The existing gCn/Sandpaper bridge to ticalc.org actually uses calcpkg as the backend to lookup file info and fetch files, so there's no reason somebody couldn't write an Omnimaga bridge as well. (Once I actually get Omnimaga support working, that is, but it'll be trivial to do).

EDIT: I would, obviously, recommend using calcpkg to do this instead of writing everything from scratch, but I'm kind of biased. :P
Title: Re: New way to browse the downloads section
Post by: Sorunome on February 13, 2014, 01:34:24 pm
Oh, that would make it faar easier then, to use calcpkg :P
Title: Re: Re: New way to browse the downloads section
Post by: DJ Omnimaga on February 13, 2014, 01:45:24 pm
Nice Eeems :D
Title: Re: New way to browse the downloads section
Post by: TC01 on February 13, 2014, 01:55:15 pm
Code: [Select]
[bjr@rannoch calcpkg]$ calcpkg -x -r omnimaga get MirageOS
Results for repo: omnimaga
File Category:                           File Name:
===========================================================================================
Old-Calculator-RPGs-Headquarter-Archive/TI-Shells-Kernels-and-Plugins/ [TI-83+/SE/84+/SE] MirageOs 1.2
 
Download files [Y/N]? y
Downloading /files/Old-Calculator-RPGs-Headquarter-Archive/TI-Shells-Kernels-and-Plugins/mirageos.zip from http://www.omnimaga.org/files/Old-Calculator-RPGs-Headquarter-Archive/TI-Shells-Kernels-and-Plugins/mirageos.zip
Download complete! Wrote file /home/bjr/Downloads/Old-Calculator-RPGs-Headquarter-Archive-TI-Shells-Kernels-and-Plugins-mirageos.zip

Extracting file /home/bjr/Downloads/Old-Calculator-RPGs-Headquarter-Archive-TI-Shells-Kernels-and-Plugins-mirageos.zip, creating directory for extracted files
All files in archive extracted to /home/bjr/Downloads/Old-Calculator-RPGs-Headquarter-Archive-TI-Shells-Kernels-and-Plugins-mirageos-zip
The archive file /home/bjr/Downloads/Old-Calculator-RPGs-Headquarter-Archive-TI-Shells-Kernels-and-Plugins-mirageos.zip has been deleted!

[bjr@rannoch calcpkg]$ ls ~/Downloads/Old-Calculator-RPGs-Headquarter-Archive-TI-Shells-Kernels-and-Plugins-mirageos-zip/
DevPac8X.COM  mirage.bat  mirage.inc  MIRAGEOS.8xk  MirageOS.txt  ti83plus.inc

So, this didn't take very long. :D

This definitely is not perfect though. Even from the output above you can see one obvious problem- my command line interface isn't working very well. There are other problems; the "info" command has not yet been implemented, and filenames with a space in them are causing issues. But these should all be easy enough for me to fix.

Thanks again Eeems!

I should probably update the old calcpkg thread on Omnimaga as well...
Title: Re: New way to browse the downloads section
Post by: DJ Omnimaga on February 13, 2014, 09:04:42 pm
It might be a good idea actually. Btw nice to see you again :D
Title: Re: New way to browse the downloads section
Post by: DJ Omnimaga on February 15, 2014, 12:47:58 pm
A little bug report: I think that for files which used to be direct downloads, if they were later replaced by an URL (such as a forum attachment or ticalc.org page), on your page the original download will still be shown instead of the URL. For example,
http://www.omnimaga.org/index.php?action=downloads;sa=view;down=847 (redirects to forum attachment)
http://www.omnimaga.org/files/User-Contributed-Calculator-Games-amp-Development-Tools/TI-84-Plus-C-Color-Edition/ (shows the last file uploaded before the switch to URL upload)

In addition to that, the file will be 0 byte and not work.  I had the same issue happening with the Doors CS 7 link (showing an old copy of DCS 6.2) and the CSE "Zelda" game.
Title: Re: New way to browse the downloads section
Post by: Eeems on February 15, 2014, 02:30:14 pm
A little bug report: I think that for files which used to be direct downloads, if they were later replaced by an URL (such as a forum attachment or ticalc.org page), on your page the original download will still be shown instead of the URL. For example,
http://www.omnimaga.org/index.php?action=downloads;sa=view;down=847 (redirects to forum attachment)
http://www.omnimaga.org/files/User-Contributed-Calculator-Games-amp-Development-Tools/TI-84-Plus-C-Color-Edition/ (shows the last file uploaded before the switch to URL upload)

In addition to that, the file will be 0 byte and not work.  I had the same issue happening with the Doors CS 7 link (showing an old copy of DCS 6.2) and the CSE "Zelda" game.
I'll have to delete the file then. This isn't a bug with my software, it's a data issue.
Title: Re: New way to browse the downloads section
Post by: TC01 on February 17, 2014, 09:45:10 pm
I'm not sure there is really a good way to support files that are just links to other places in calcpkg anyway, unfortunately. :/

It might be a good idea actually. Btw nice to see you again :D

Hello! Yep, I do still exist in some capacity, despite the best efforts of university and other irritating real life time commitments.
Title: Re: New way to browse the downloads section
Post by: Eeems on February 17, 2014, 11:36:50 pm
I'm not sure there is really a good way to support files that are just links to other places in calcpkg anyway, unfortunately. :/

It might be a good idea actually. Btw nice to see you again :D

Hello! Yep, I do still exist in some capacity, despite the best efforts of university and other irritating real life time commitments.
I handle the links for you.