Advertisement:
A2Hosting

Author Topic: Package SDK, anyone?  (Read 364921 times)

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Package SDK, anyone?
« on: November 22, 2004, 03:26:37 AM »
More information can be found in the Package SDK: modification.xml and Package SDK: package-info.xml topics.


I understand that a lot of people would like to learn to write packages.  We're still working on documentation, but here's a bit that should at least help you get an idea for it.  Comments are very welcome - and if anyone wants to contribute more to it, please just click reply ;) .

The only notes I should make is that, one, this is for package *authors*, and two the included "test_modification.php" must be uploaded or run on your local webserver.

Thanks,
-[Unknown]
« Last Edit: April 08, 2009, 06:40:50 PM by SleePy »

Offline Jerry

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,903
  • Gender: Male
  • What? I can't hear you over my awesomeness!!
    • PlanetSMF
Re: Package SDK, anyone?
« Reply #1 on: November 22, 2004, 03:49:26 AM »
I think these are great tutorials :), I will have to take a better look at them tommorow afternoon geting late here :P
- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

Offline Kirby

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,037
  • Gender: Male
Re: Package SDK, anyone?
« Reply #2 on: December 07, 2004, 06:05:04 PM »
Hmm... thanks.

Offline OvermindDL1

  • Jr. Member
  • **
  • Posts: 279
  • Gender: Male
    • OvermindDL1's Website
Re: Package SDK, anyone?
« Reply #3 on: December 07, 2004, 09:14:59 PM »
Yes, useful, but missing one things, it does not describe how to add files like pictures and such by using the xml file, I know how to do it by mod file, but what about xml?

Offline Jerry

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,903
  • Gender: Male
  • What? I can't hear you over my awesomeness!!
    • PlanetSMF
Re: Package SDK, anyone?
« Reply #4 on: December 07, 2004, 09:28:22 PM »
I think you do it the same way as a mod file .tar.gz it with instructions for the package manager lol ;)
- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

Offline OvermindDL1

  • Jr. Member
  • **
  • Posts: 279
  • Gender: Male
    • OvermindDL1's Website
Re: Package SDK, anyone?
« Reply #5 on: December 07, 2004, 09:59:13 PM »
Not that, as stated above, what if I included some graphic files, how do I get the forum to store them from the archive to where I want it to place them?

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Package SDK, anyone?
« Reply #6 on: December 07, 2004, 10:06:45 PM »
Not that, as stated above, what if I included some graphic files, how do I get the forum to store them from the archive to where I want it to place them?

This is covered.... look in the avatars section, and just use the same method, except put them elsewhere.

-[Unknown]

Offline OvermindDL1

  • Jr. Member
  • **
  • Posts: 279
  • Gender: Male
    • OvermindDL1's Website
Re: Package SDK, anyone?
« Reply #7 on: December 08, 2004, 12:18:35 AM »
Not section dependent, perhaps I should have spent more then a few minutes looking at it (get past the mod section)....

Offline purplepaisley68

  • Full Member
  • ***
  • Posts: 522
  • Gender: Female
Re: Package SDK, anyone?
« Reply #8 on: December 19, 2004, 08:54:22 AM »
Does anyone have a windows method (that works) of creating gzip archives? I tried a few (Ultimate zip for one) that were mentioned in other threads but I couldn't get them to work, and uploading files to  server to gzip and download to test, editing making changes and redoing this is tedious and time consuming.
SMF since 2004 <3

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Package SDK, anyone?
« Reply #9 on: December 19, 2004, 08:55:48 AM »
You can use zip files with the package manager as of RC1 or RC2... gzips can be created by several programs, such as TUGZip. (www.tugzip.com)

-[Unknown]

Offline Jerry

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,903
  • Gender: Male
  • What? I can't hear you over my awesomeness!!
    • PlanetSMF
Re: Package SDK, anyone?
« Reply #10 on: December 19, 2004, 08:55:48 AM »
http://www.akjerry.com/ezgz.zip
Thats what I use, I cant find the name, and don't use it often enough to find the name. ..  but it works fairly well :)
- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

Offline Kirby

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,037
  • Gender: Male
Re: Package SDK, anyone?
« Reply #11 on: December 19, 2004, 12:34:30 PM »
I use PowerArchiver 2004... works like a charm :)
EDIT: just tried TUGzip and I must say it is better than any archiver ive seen :P
« Last Edit: December 19, 2004, 12:45:08 PM by Kirby »

Offline purplepaisley68

  • Full Member
  • ***
  • Posts: 522
  • Gender: Female
Re: Package SDK, anyone?
« Reply #12 on: December 22, 2004, 09:50:54 AM »
Thanks for the tips. :)
SMF since 2004 <3

Offline OvermindDL1

  • Jr. Member
  • **
  • Posts: 279
  • Gender: Male
    • OvermindDL1's Website
Re: Package SDK, anyone?
« Reply #13 on: December 23, 2004, 01:19:47 AM »
www.7zip.com works perfectly for me, supports tar, gzip, zip, 7z, rar, ace, cab, etc... etc...

Offline Meriadoc

  • SMF Friend
  • Sophist Member
  • *
  • Posts: 1,263
  • Gender: Male
  • For the world is changing
    • Philip Renich: Websites
Re: Package SDK, anyone?
« Reply #14 on: December 25, 2004, 09:42:28 PM »
position="before|after|replace|end"

now, if I say before, will that <add> the code I want before what I searched for (logically in coding thought) or will what I searched for be before what I <add> (linguistically logical ;))?
If I know the way home and am walking along it drunkenly, is it any less the right way because I am staggering from side to side? : Leo Tolstoy
Everything I know I learned from Calvin and Hobbes.
And patience is about the most useful thing you could ever have.  That and backups. : [Unknown]
If I choose to send thee, Tuor son of Huor, then believe not that thy one sword is not worth the sending. : Ulmo, Lord of the Waters - Unfinished Tales, by J.R.R. Tolkien

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Package SDK, anyone?
« Reply #15 on: December 26, 2004, 02:03:34 AM »
You could have this:

search position="before"
add
search position="after"

So, linguistically.  You're just used to boardmod :P.

-[Unknown]

Offline Meriadoc

  • SMF Friend
  • Sophist Member
  • *
  • Posts: 1,263
  • Gender: Male
  • For the world is changing
    • Philip Renich: Websites
Re: Package SDK, anyone?
« Reply #16 on: December 26, 2004, 02:22:54 AM »
don't think i ever used boardmod... but thanks
If I know the way home and am walking along it drunkenly, is it any less the right way because I am staggering from side to side? : Leo Tolstoy
Everything I know I learned from Calvin and Hobbes.
And patience is about the most useful thing you could ever have.  That and backups. : [Unknown]
If I choose to send thee, Tuor son of Huor, then believe not that thy one sword is not worth the sending. : Ulmo, Lord of the Waters - Unfinished Tales, by J.R.R. Tolkien

Offline CapriSkye

  • Full Member
  • ***
  • Posts: 574
    • Open
Re: Package SDK, anyone?
« Reply #17 on: January 01, 2005, 12:20:29 AM »
im having trouble to get a simple mod package to work. i used the test modification file, and it says
The file you uploaded was parsed and the following results were returned.
then no error message. and when i tried to install it on local server, it says Modification parse error.
i looked at the syntax twice and just can't find any error  :D
the package i was testing on can be found here: http://open.38.com/personal/colorize.zip
any idea? thanks

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Package SDK, anyone?
« Reply #18 on: January 02, 2005, 02:25:38 AM »
404?  The test_modification.php file is meant to deal directly with .mod or .xml modification files, not with whole packages.

-[Unknown]

Offline CapriSkye

  • Full Member
  • ***
  • Posts: 574
    • Open
Re: Package SDK, anyone?
« Reply #19 on: January 02, 2005, 03:03:58 AM »
that'd be the reason, thanks unknown.

just a note, even slightest extra space would make the test fail, why? i thought space doesn't matter....
« Last Edit: January 02, 2005, 03:10:30 AM by CapriSkye »