Southperry.net
[open source] make_prepatcher - Printable Version

+- Southperry.net (https://www.southperry.net)
+-- Forum: Maplestory (https://www.southperry.net/forumdisplay.php?fid=15)
+--- Forum: Maplestory Discussion (https://www.southperry.net/forumdisplay.php?fid=31)
+--- Thread: [open source] make_prepatcher (/showthread.php?tid=955)

Pages: 1 2


[open source] make_prepatcher - Heidi - 2008-08-14

Awesome, used it this morning to patch MS. So cool, its so easy to use that not even I can mess it up. Thanks again Spaz Tongue


[open source] make_prepatcher - Kalovale - 2009-03-05

easypatcher Wrote:Getting the version listing on the ftp...

Oops! There are 2 fields instead of 9! Please report this bug.

Press enter to close this

Help please Smile


[open source] make_prepatcher - Spaz - 2009-03-05

Aw crap, they changed the ftp listing format. I'll have to fix the script.

Edit: Fixed. Download the latest version of the script.


[open source] make_prepatcher - Kalovale - 2009-03-08

Spaz Wrote:Aw crap, they changed the ftp listing format. I'll have to fix the script.

Edit: Fixed. Download the latest version of the script.

So if they keep changing the format, we, less knowledgeable users, will keep being screwed? What if one day you won't feel the need to lend us helpless maplers a helping hand anymore? T_T

Thank you for fixing it though, I hope it'll work for patch 0.67~ x)


[open source] make_prepatcher - haha01haha01 - 2009-03-08

what is it doing...? makes prepatchers?


[open source] make_prepatcher - Hazzy - 2009-03-08

No Python? YEY! <3


[open source] make_prepatcher - Spaz - 2009-03-08

Kalovale Wrote:So if they keep changing the format, we, less knowledgeable users, will keep being screwed? What if one day you won't feel the need to lend us helpless maplers a helping hand anymore? T_T

Thank you for fixing it though, I hope it'll work for patch 0.67~ x)

Then you can use Fiel's, which requires you to download the patch files yourself and download the Python interpreter. Or someone else can maintain my code. Or you can just wait and patch normally.


[open source] make_prepatcher - haha01haha01 - 2009-03-08

whats so special about a patch maker?
Quote: private void buildmp(string patcher, string txt, string datapath, string outpath)
{
FileStream pbfs = new FileStream(patcher,FileMode.Open);
byte[] pbdata = new byte[pbfs.Length];
pbfs.Read(pbdata, 0, Convert.ToInt32(pbfs.Length));
FileStream noticefs = new FileStream(txt, FileMode.Open);
byte[] noticelen = ConvertToDword(Convert.ToInt32(noticefs.Length));
byte[] notice = new byte[noticefs.Length];
noticefs.Read(notice, 0, Convert.ToInt32(noticefs.Length));
FileStream datafs = new FileStream(datapath, FileMode.Open);
byte[] datalen = ConvertToDword(Convert.ToInt32(datafs.Length));
byte[] data = new byte[datafs.Length];
datafs.Read(data, 0, Convert.ToInt32(datafs.Length));
byte[] footer = new byte[] {0xF3,0xFB,0xF7,0xF2};
FileStream output = new FileStream(outpath, FileMode.Create);
output.Write(pbdata, 0, Convert.ToInt32(pbfs.Length));
output.Write(data, 0, Convert.ToInt32(datafs.Length));
output.Write(notice, 0, Convert.ToInt32(noticefs.Length));
output.Write(datalen, 0, 4);
output.Write(noticelen, 0, 4);
output.Write(footer, 0, 4);
pbfs.Close();
noticefs.Close();
datafs.Close();
output.Close();
}
i made one that automatically checks for new patches on the ftp and when available makes a prepatcher and post the wz extractions for my extraction bot, but didnt bother to post it as there are many free tools (maststef's patch builder is a nice one) that do it.


[open source] make_prepatcher - Nikkey - 2009-03-09

haha01haha01 Wrote:whats so special about a patch maker?

It creates a patch so you don't have to download through the nexon patcher, which turns out to stop loading sometimes. While it's true it's easy to create, it's quite handy.

Edit:
 15-min lsp



[open source] make_prepatcher - Mopsy - 2009-05-07

The patcher gives me this whenever I attempt to use it.

Error downloading ftp://patch.nexon.net/Maple/patch/patchdir/00070/00069to00070.
patch, error code: 404

It says no patch 4 u.

I says ):


[open source] make_prepatcher - Kalovale - 2009-05-07

haha01haha01 Wrote:whats so special about a patch maker?

i made one that automatically checks for new patches on the ftp and when available makes a prepatcher and post the wz extractions for my extraction bot, but didnt bother to post it as there are many free tools (maststef's patch builder is a nice one) that do it.

O, I see java. <3

But since Nexon stopped sharing the patch content on the ftp, it means all manual patchers are done for, right?


[open source] make_prepatcher - Russt - 2009-05-07

The patch content is still on the FTP.

Just a different place than before.


[open source] make_prepatcher - Darkfaith - 2009-05-07

Russt Wrote:The patch content is still on the FTP.

Just a different place than before.

So where is it?


[open source] make_prepatcher - haha01haha01 - 2009-05-07

Russt Wrote:The patch content is still on the FTP.

Just a different place than before.
someone doesnt know whats an ftp Rolleyes

its still available, but on http://download2.nexon.net/
since its not an ftp theres no directory listing, so you will have to request the exact address, such as: http://download2.nexon.net/Game/MapleStory/patch/patchdir/00070/00069to00070.patch


[open source] make_prepatcher - Spaz - 2009-05-07

It still has the directory on the ftp (ftp://patch.nexon.net/Maple/patch/patchdir/00070/) so I should be able to use that to find out the latest version, then it can go download from the http location. I should also add a command-line option to specify which version.

But yeah, this script is broken until I fix it.

Edit: Fixed. New version can take an optional command-line parameter saying which version to download in case the autodetection stops working. Example usage: easy_prepatcher 00070