Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Tut] How to Patch! [Odin]

om nom nom.
Loyal Member
Joined
Nov 30, 2007
Messages
299
Reaction score
9
Okay, since I was asked many times, I will teach you how to patch your private server files.
For this tutorial, I will be patching a clean revision of 947 with Guilds.

Stuck setting up a server? Feeling fed up?


Step One - Download
Tortoise SVN :

Step Two
You will also be needing your patch file so get that ready too.
Your patch file should look like a word document and have the extension of .patch, if it isnt, it probably isnt a patch or there is an extra .txt extension after.
Innovative - [Tut] How to Patch! [Odin] - RaGEZONE Forums


Step Three
There are two possible ways of patching your files, one is quite easy and done automatically, however this method is quite often buggy and doesnt patch all your files. So to be on the safe side, before patching anything, you might want to make a backup of your server files.
Innovative - [Tut] How to Patch! [Odin] - RaGEZONE Forums


Step Four
Okay, the first method, applying the patch with Tortoise.
Right click the patch file, then mouseover Tortoise SVN, then click Apply Patch.
Innovative - [Tut] How to Patch! [Odin] - RaGEZONE Forums


Then browse to your server files folder.
Innovative - [Tut] How to Patch! [Odin] - RaGEZONE Forums


Step Five
A window should have appeared with a small window as well.
Innovative - [Tut] How to Patch! [Odin] - RaGEZONE Forums


Right click one of the items and press Patch ALL.
If all done correctly, it should look something like this
Innovative - [Tut] How to Patch! [Odin] - RaGEZONE Forums


If you get errors...then you shall have to resort to manual patching.

Step Six
If you have resorted to manual patching, this is what you do.
Open up the patch file in either WordPad or Notepad.

Under headings like:
Code:
Index: recvops.properties
Innovative - [Tut] How to Patch! [Odin] - RaGEZONE Forums


This tells you which file the below text will be patching.
If you scroll further down into the body of that index, you will see
Code:
+function action(mode, type, selection) {
+    if (mode == -1) {
+        cm.dispose();
Or something similar, you might even have '-'s in yours at the beginning of each line.

Okay, now how do you do it manually you might ask, each of the '+'s or '-'s means you either ADD that line or TAKEAWAY that line.

For example:
In my recvops.properties:
Code:
+GUILD_OPERATION = 0x3C
I would add this line however if it was:
Code:
-GUILD_OPERATION = 0x3C
I would have to take it away and delete it.
The ones without a plus or a minus helps you look for where you are meant to be adding or deleting that particular line.
Innovative - [Tut] How to Patch! [Odin] - RaGEZONE Forums

Innovative - [Tut] How to Patch! [Odin] - RaGEZONE Forums

Innovative - [Tut] How to Patch! [Odin] - RaGEZONE Forums



Step Seven
After you have done patching, either with Tortoise or by manually patching the files, you will have to recompile your server files.
I have a guide for compiling your server files with NetBeans, I strongly recommend you check it out.

Step Eight
REMEMBER to move the new .jar into your 'dist' folder and make sure it is named 'odinms.jar'
 
Last edited:
Newbie Spellweaver
Joined
Jun 1, 2008
Messages
83
Reaction score
0
Re: [Guide] How to Patch! [Odin]

this method can be also use for .diff right?
hey when on step 5 my files are highlighted red =x help pls i get alot of error when i press patch all...i patching npc animations...
 
Last edited:
Junior Spellweaver
Joined
May 27, 2008
Messages
196
Reaction score
0
Re: [Guide] How to Patch! [Odin]

DUDE YOU ROCKS :D

ILY!!!!

btw why do i get alot of errors while patching the style changers.. ALOT of errors, thats what got me thinking how to patch properly
 
Newbie Spellweaver
Joined
Jun 3, 2006
Messages
60
Reaction score
0
Re: [Guide] How to Patch! [Odin]

nice guide very helpful specially for ppl like 1st time in odinms =)

BTW: do you have a link how to SVN patch odin it has 4 folder which folder will i choose??
 
Newbie Spellweaver
Joined
Jan 14, 2007
Messages
6
Reaction score
0
Re: [Guide] How to Patch! [Odin]

How do i get a patch file?When i download the newest version , they didn't give patch file all of it was the source of odinms.
Sorry, im noob.
 
Old Schooler
Banned
Joined
Jun 8, 2008
Messages
195
Reaction score
0
Re: [Guide] How to Patch! [Odin]

nice guide this will be very helpful for our the noob users
 
om nom nom.
Loyal Member
Joined
Nov 30, 2007
Messages
299
Reaction score
9
Re: [Guide] How to Patch! [Odin]

How do i get a patch file?When i download the newest version , they didn't give patch file all of it was the source of odinms.
Sorry, im noob.

Download it off releases.
 
Initiate Mage
Joined
Apr 13, 2008
Messages
1
Reaction score
0
Re: [Guide] How to Patch! [Odin]

wow thx for the guide now i know how to patch !
i try the tortoise at first every time i try to patch keep pop on every 5 sec said got problem etc etc
-.-

at first i use notepad do manual patching than coufusing -.-
than u got the change banner thread i dl the notepad++
than i use not coufusing now know how patch -.-
 
Banned
Banned
Joined
Jun 23, 2008
Messages
197
Reaction score
0
Re: [Guide] How to Patch! [Odin]

How do i get a patch file?When i download the newest version , they didn't give patch file all of it was the source of odinms.
Sorry, im noob.

Patch files usually come with new releases. i.e. Guilds.

Edit: Innovative beat me to it :p
 
Elite Diviner
Joined
May 25, 2008
Messages
454
Reaction score
0
Re: [Guide] How to Patch! [Odin]

Erm, May I know wad are this lines:
PHP:
@@ -84,3 +84,5 @@
for? Coz some patch they jus start straight with the { lyke this:

Code:
Index: src/net/sf/odinms/net/channel/ChannelServer.java
===================================================================
--- src/net/sf/odinms/net/channel/ChannelServer.java	(revision 967)
+++ src/net/sf/odinms/net/channel/ChannelServer.java	(working copy)
@@ -299,6 +315,12 @@
 		}
 	}
 
+        public void broadcastGMPacket(MaplePacket data) {
+		for (MapleCharacter chr : players.getAllCharacters()) {
+                    if(chr.isGM())
+			chr.getClient().getSession().write(data);
+		}
+	}
 	public int getExpRate() {
 		return expRate;
 	}

So I am kind of confuse which } to start off. Thx =D
 
Newbie Spellweaver
Joined
Apr 11, 2008
Messages
61
Reaction score
1
Re: [Guide] How to Patch! [Odin]

Uhmmmm I don't have no net.sf.odinms.client what's that???? is it like some root?? Because I'm running off a rev 938 and it's only one that allows me to create characters the repacks like sean's don't work.... Unless you know how to solve problem.
 
Junior Spellweaver
Joined
Apr 18, 2008
Messages
109
Reaction score
0
Re: [Guide] How to Patch! [Odin]

I Have a Problem: The FIles in Red, Once I Apply Patch, It gives me some error that its retrieving it, and Then It Says That it Cant Do It, Please HELP!
 
om nom nom.
Loyal Member
Joined
Nov 30, 2007
Messages
299
Reaction score
9
Re: [Guide] How to Patch! [Odin]

I Have a Problem: The FIles in Red, Once I Apply Patch, It gives me some error that its retrieving it, and Then It Says That it Cant Do It, Please HELP!

Read the guide carefully
 
Newbie Spellweaver
Joined
Jun 20, 2008
Messages
6
Reaction score
0
Re: [Guide] How to Patch! [Odin]

So... if I downloaded an ODinMS repack~ What do I do O.O
 
Newbie Spellweaver
Joined
Nov 4, 2007
Messages
10
Reaction score
0
Re: [Guide] How to Patch! [Odin]

you go to a set up guide on how to install odinms.

This is patch odinms as in update it.
 
Junior Spellweaver
Joined
Apr 18, 2008
Messages
109
Reaction score
0
Re: [Guide] How to Patch! [Odin]

Read the guide carefully

No But Some of Them Are Red - The Files that the .patch wants to patch. Then When I double click on it, it does the same as if I only rifht click 1 of them and do apply patch, it still says error retrieving revision blah blah..? So What to Do Now?
 
Junior Spellweaver
Joined
Apr 18, 2008
Messages
109
Reaction score
0
Re: [Guide] How to Patch! [Odin]

^ If it helps, patching used to work for me, but when i switched to a new repack it does not work
 
Newbie Spellweaver
Joined
Jun 19, 2008
Messages
14
Reaction score
0
Re: [Guide] How to Patch! [Odin]

Innovative: Almost all my files have that red exclamation mark, so i cant select my server files. It says "An unknown file type was found in line 19"

Am I the only one with this problem?
 
Initiate Mage
Joined
Jun 30, 2008
Messages
1
Reaction score
0
Re: [Guide] How to Patch! [Odin]

Hey innovative thanks for your guides they really helped me make a server
just on this guide i dont know where my patch folder is at can u tell me where it is
its not in my server folder
 
om nom nom.
Loyal Member
Joined
Nov 30, 2007
Messages
299
Reaction score
9
Re: [Guide] How to Patch! [Odin]

Innovative: Almost all my files have that red exclamation mark, so i cant select my server files. It says "An unknown file type was found in line 19"

Am I the only one with this problem?

Patch it manually then.
Read the FULL guide >.>
 
Back
Top