NArchive



Users browsing this forum: No registered users and 1 guest

Next topic
Previous topic
Post new topic Reply to topic  NeoAxis Forum Index » General » Community Projects, Add-ons & Code Samples
Search for:
Author Message
Unlimited License
Unlimited License
User avatar

Joined: Mon Jan 05, 2009
Posts: 790
Location: Belgrade
PostPosted: Fri Sep 23, 2011 11:28 pm Post subject: NArchive
Bottom of Page Back to top
NArchive is a brand new fast archiver for NeoAxis that uses QuickLZ for compression and System.Security.Cryptography for encryption.
Currently the usage is pretty Spartanish but it gets the job done, new versions will be more user friendly.

To create the archive you will need to call CreateArchive method:

Code: Select all   Expand view
NArchiver.CreateArchive(string folderToArchive, bool excludeFolderName, string fileName)


folderToArchive - name of the folder to archive; includes all subfolders.
excludeFolderName - specifies whether to exclude the base folder name from the entry names in the archive.
fileName - path and name of the archive including the extension (using .na by default)

Game, ResourceEditor and MapEditor will automatically recognize .na if NArchive.dll is in same folder as they are. Password is hardcoded in NArchiver class, and extension to read is hardcoded in NArchiveFactory class.

Speed: ~14.5s for 180mb Data folder to be compressed and encrypted to 128mb.


NArchive.zip [114.41 KiB]
Downloaded 96 times
_________________
Updated GridPathFindSystem
Smarter AI
Arilienta (Our NA Game)
 
 Profile  
User avatar

Joined: Mon Dec 06, 2010
Posts: 302
Country: United States (us)
PostPosted: Sat Sep 24, 2011 3:17 pm 
Bottom of Page Back to top
Sorry if I'm kinda hijacking your thread, but I didn't think this was worth it's own topic

Also, as a note, if your wanting support for rar, tar, tar.gz, tar.bz2, or 7z archives, contact me (I'm usually on the irc), as I have a package setup that should be able to do it, I just have to figure out how to get NeoAxis to like .net 4.0 libraries....

_________________
Sql-Based Inventory System
Speculative MapChangeRegion
 
 Profile  
Unlimited License
Unlimited License
User avatar

Joined: Tue Sep 16, 2008
Posts: 1253
Location: Imatra
Country: Finland (fi)
PostPosted: Sun Sep 25, 2011 5:46 am 
Bottom of Page Back to top
Why not worthy it's own topic?

I think the encryption addition sounds handy, good to see an example implementation.
Many art asset dealers force you in their EULA to have their content in encrypted format.

 
 Profile  
User avatar

Joined: Thu Oct 27, 2011
Posts: 9
Country: United States (us)
PostPosted: Thu Oct 27, 2011 2:23 pm 
Bottom of Page Back to top
How do you call CreateArchive method ?

 
 Profile  
User avatar

Joined: Fri Sep 16, 2011
Posts: 35
Country: Iran (ir)
PostPosted: Thu Oct 27, 2011 8:14 pm 
Bottom of Page Back to top
i have a problem with NArchive ...
after create archive my map not loaded and occurr error " c:\. . .\Map.map not load"

_________________
Sorry for my bad English
 
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  NeoAxis Forum Index » General » Community Projects, Add-ons & Code Samples

Jump to:  

Next topic
Previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


All times are UTC




Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group