M2HPatcher

EDIT: I have completely revamped this project and greatly improved the previous “updater” and made it a true patcher.
See this topic: http://forum.unity3d.com/threads/111671-M2HPatcher-The-Unity-patching-solution?highlight=m2hpatcher

On 1. don’t zip it, dmg it so they can drag - drop it. thats more standard anyway than zipping.

that being said they should carry over the chmod too if the zip was generated with osx compression functionality

Thanks for the feedback. Well the zip file works just fine when unzipping it on Mac. However it’s the unzip code that I use in unity that doesn’t respect the permissions (Due to the File.Create call I guess, but I dont think I can add any permission flags here).
I’d prefer automating this as a .dmg is just as much work as using a .zip here.

Awesome Leepo, was looking for something like this for a while now. I’ll give it a try.

Verry cool thumbsup

would really like to see the editor script to know how it works :wink:

This sounds great! Can’t wait to see support for “modified files only” updates!

hey guys
Ive started to make ma own patcher…

I went so far that it downloads a zip file…

But how can i make the zip file to be extracted in my folder?

Thanks for every answer :slight_smile:
/Robert

http://www.icsharpcode.net/opensource/sharpziplib/
i used that one, works great in C#

i dont really undestand the sharpziplib :frowning:
mostly i script in js but i know a bit c#

but thats too high for me :smile:

How do i have to use it?
Where to put the downloaded file?
How to do after having downloaded a file from the net?

Is there a way to save the file locally before extracting or something?

Many questions i know but i hope u can answer them easily :wink:

Thanks
/Robert

did you write your patcher in C# ?

what i have now :
Yes…

But it s only a script that downloads a file when u click on a button whit a progress bar…

Note:
I have the same script in js :smile:
But i think i need it in c# to use sharpziplib right? :smile:

Robert

yes, here is some sample code for ziplib : http://wiki.sharpdevelop.net/GZip-and-Tar-Samples.ashx

hey thanks appels

I think thgis is what i need…
But not exactly:
Do u know an example for a normal zip file?
Not gzip not tar not targz normal zip?

And where do i have to put the library file i downloaded?the sharpziplib?

http://wiki.sharpdevelop.net/SharpZipLib-Zip-Samples.ashx?HL=unzip
you need to add a reference to the lib in csharp, you can find out how to do that in google

last question for today…
Tomorrow ill check it out :wink:

So my question:
Lets say we have 3 scenes:patcher menu game…
When i patch the game in the first scene with a patch to have 2 more levels are they integrated automatically or do i have to restart the application to male the changes beeing applyed?

i know nothing about in game patching, i made an updater that patches all and then starts the new game.

I love you.

can anybody pls help me?

i am getting errors when i use the aboves examples:

Assets/UnZipFile.cs(33,7): error CS0246: The type or namespace name `ICSharpCode’ could not be found. Are you missing a using directive or an assembly reference?

Assets/UnZipFile.cs(34,7): error CS0246: The type or namespace name `ICSharpCode’ could not be found. Are you missing a using directive or an assembly reference?

how can i fix these errors?

Thanks
/Robert

OH my god! very Thanks! I needed.

This rocks out loud!

Thanks for this guys :slight_smile: