Author Topic: Athena: Calculator project installer  (Read 14844 times)

0 Members and 3 Guests are viewing this topic.

Offline Iambian

  • Coder Of Tomorrow
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 739
  • Rating: +216/-3
  • Cherry Flavoured Nommer of Fishies
    • View Profile
Re: Athena: Calculator project installer
« Reply #15 on: December 10, 2010, 10:42:03 pm »
Ah ok, I just remember seeing it somewhere before while compression was talked about so that's why I asked. But ah ok, thanks :) It'll be a long time before I incorporate any of that into anything I do though :P
It's not that big of a deal, though. They've already got a ready-made decompressor for the purpose of sticking it in your (Z80 ASM) program so you can use it to mess with chunks of data fitting of some really huge FlashAPP.

On a note related to the project, I have just enough to start working on the Z80 ASM side of things.
A Cherry-Flavored Iambian draws near... what do you do? ...

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: Athena: Calculator project installer
« Reply #16 on: December 11, 2010, 01:19:35 am »
Just FYI, you can un-group hacked pics once they are on the PC with the WinRAR utility (if you were thinking that that's an issue). I'm not sure how the file names would show up on PC though.
If it can do that, you should probably be able to rename them to whatever you want. The variable's name (when it is sent to the calc) is actually dependent on some name field somewhere near the start of the file.

On another note, I've got Athena generating valid .8xp files now, so I guess I can start working on the Z80 side of things pretty soon.
It doesn't work on Windows XP or below, only on Vista and 7. On older OSes, some chars are not supported and the files won't ungroup.

Also these files can't be renamed while inside groups, it seems. (at least, for me), and even if I managed to do so, I noticed that when you rename a pic file, it seems WabbitEmu grabs the new windows file name, not the file name inside the pic. I noticed this after renaming _PRGMNAM.8xp to APRGMNAM.8xp by just renaming the file under Windows. At first, the file on Wabbitemu would be _PRGMNAM in the PRGM menu and wouldn't be executable, then it was APRGMNAM. It might be because my version of Wabbitemu isn't very up to date, though.

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Athena: Calculator project installer
« Reply #17 on: December 11, 2010, 08:28:55 am »
@Omni: That's good to know, I've only used WinRAR to un-group group files on Windows 7. I've never tried it on XP or below. I've also never fooled with Hacked pics either so I was unsure how those would be handled by the PC. I'd also imagine that the file would need to be un-grouped first before attempting any name changes.

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: Athena: Calculator project installer
« Reply #18 on: December 12, 2010, 04:35:15 am »
To ungroup 8xg files with WinRAR do you just rename the extension ot .rar then extract the files? I wonder if the format is really that similar?

EDIT: Weird, could you clarify? I renamed a 8xg file to .rar and .zip and in both cases I got a corrupted/damager archive error on Windows 7 ???
« Last Edit: December 12, 2010, 04:36:46 am by DJ Omnimaga »

Offline JosJuice

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1344
  • Rating: +66/-14
    • View Profile
Re: Athena: Calculator project installer
« Reply #19 on: December 12, 2010, 04:44:16 am »
To ungroup 8xg files with WinRAR do you just rename the extension ot .rar then extract the files? I wonder if the format is really that similar?
The file formats are completely different. Maybe there's some kind of plug-in for zipping programs?

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: Athena: Calculator project installer
« Reply #20 on: December 12, 2010, 05:33:51 am »
I'm not sure. I would be surprised if WinRAR supported calculator formats natively, though. O.O

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Athena: Calculator project installer
« Reply #21 on: December 13, 2010, 10:08:17 am »
I guess the group format uses a similar procedure to files which winrar supports natively. No renaming is necessary. Just right click the group file and choose extract all. Bam- you have a folder with the group name with all the files contained therein. =)
« Last Edit: December 13, 2010, 10:08:50 am by Art_of_camelot »

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: Athena: Calculator project installer
« Reply #22 on: December 13, 2010, 10:40:14 pm »
Oh, this isn't done by WinRAR, this is done by TI-Connect, which adds an extract all option in right-click.
« Last Edit: December 13, 2010, 10:42:23 pm by DJ Omnimaga »

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Athena: Calculator project installer
« Reply #23 on: December 13, 2010, 10:51:27 pm »
Oh, heh...  :-[
I knew that... I was just testing you.... yea... that's it!
* Art_of_camelot seems to have forgotten that TI Connect did that...
« Last Edit: December 13, 2010, 10:52:40 pm by Art_of_camelot »

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: Athena: Calculator project installer
« Reply #24 on: December 13, 2010, 11:00:41 pm »
Lol :P

Also, double-clicking the group file opens its content in a Windows 98 looking way. It doesn't work in Windows 7 and can crash, though.
« Last Edit: December 13, 2010, 11:01:19 pm by DJ Omnimaga »

Offline JosJuice

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1344
  • Rating: +66/-14
    • View Profile
Re: Athena: Calculator project installer
« Reply #25 on: December 14, 2010, 09:26:20 am »
Also, double-clicking the group file opens its content in a Windows 98 looking way. It doesn't work in Windows 7 and can crash, though.
For me, it doesn't work if the group file is in a zip file.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Athena: Calculator project installer
« Reply #26 on: December 14, 2010, 02:11:05 pm »
For me, windows is convinced 8xp are text files and will refuse to treat them as anything else x.x

Offline Iambian

  • Coder Of Tomorrow
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 739
  • Rating: +216/-3
  • Cherry Flavoured Nommer of Fishies
    • View Profile
Re: Athena: Calculator project installer
« Reply #27 on: December 14, 2010, 09:09:44 pm »
Still reworking the packer part to Athena. Got a newer idea of generating these files. The initial file will instead have its metadata and data sections split so the metadata will be in its own file.

The data files are going to have names that are generated. The first character will be a theta, the next three are hex digits generated from the project name, and the last four are generated from the checksum of each file. In the event of a collision, the last four digits will just be incremented until there's no longer a problem.

EDIT: As for the windows problem, just look for the .8xp entry in the registry and delete that. It should solve your problem. Make sure you delete *all* entries, too. Some may be more obscure than others, and there may be more than one that's trying to associate your .8xp files with notepad.
« Last Edit: December 14, 2010, 09:10:46 pm by Iambian »
A Cherry-Flavored Iambian draws near... what do you do? ...

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Athena: Calculator project installer
« Reply #28 on: December 14, 2010, 10:56:20 pm »
For me, windows is convinced 8xp are text files and will refuse to treat them as anything else x.x
easy fix, just go to the control panel and change file associations

Iambian, I'm really looking forward to this :)
/e

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: Athena: Calculator project installer
« Reply #29 on: December 14, 2010, 10:58:48 pm »
For me, windows is convinced 8xp are text files and will refuse to treat them as anything else x.x
easy fix, just go to the control panel and change file associations

Iambian, I'm really looking forward to this :)
This doesn't always work I think. I accidentally made 8xk files be openable by Notepad once and I never could find the original TI-Connect app icon again in control panel afterward, so now there's no send to TI device option anymore, I have to double-click the APP. Reinstalling TI-Connect doesn't do the trick. Once you accidentally change TI-Connect file associations, it's over.
« Last Edit: December 14, 2010, 10:59:19 pm by DJ Omnimaga »