Author Topic: New way to browse the downloads section  (Read 6054 times)

0 Members and 1 Guest are viewing this topic.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
New way to browse the downloads section
« 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 that TC01 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!
/e

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: New way to browse the downloads section
« Reply #1 on: February 13, 2014, 10:28:03 am »
Looking sweet!
I might make some gCn bridge for that ^.^

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

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: New way to browse the downloads section
« Reply #2 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
/e

Offline TC01

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 344
  • Rating: +9/-0
    • View Profile
Re: New way to browse the downloads section
« Reply #3 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
« Last Edit: February 13, 2014, 01:22:03 pm by TC01 »



The userbars in my sig are links embedded links.

And in addition to calculator (and Python!) stuff, I mod Civilization 4 (frequently with Python).

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: New way to browse the downloads section
« Reply #4 on: February 13, 2014, 01:34:24 pm »
Oh, that would make it faar easier then, to use calcpkg :P

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

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Re: New way to browse the downloads section
« Reply #5 on: February 13, 2014, 01:45:24 pm »
Nice Eeems :D

Offline TC01

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 344
  • Rating: +9/-0
    • View Profile
Re: New way to browse the downloads section
« Reply #6 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...
« Last Edit: February 13, 2014, 01:56:06 pm by TC01 »



The userbars in my sig are links embedded links.

And in addition to calculator (and Python!) stuff, I mod Civilization 4 (frequently with Python).

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: New way to browse the downloads section
« Reply #7 on: February 13, 2014, 09:04:42 pm »
It might be a good idea actually. Btw nice to see you again :D

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: New way to browse the downloads section
« Reply #8 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.
« Last Edit: February 15, 2014, 12:52:29 pm by DJ Omnimaga »

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: New way to browse the downloads section
« Reply #9 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.
« Last Edit: February 15, 2014, 02:30:23 pm by Eeems »
/e

Offline TC01

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 344
  • Rating: +9/-0
    • View Profile
Re: New way to browse the downloads section
« Reply #10 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.



The userbars in my sig are links embedded links.

And in addition to calculator (and Python!) stuff, I mod Civilization 4 (frequently with Python).

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: New way to browse the downloads section
« Reply #11 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.
/e