L2J changeset downloader
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
L2J changeset downloader
Got inspiration and wrote a tiny, but handy, batch script to download changesets.
How to use: run it, choose to DL either core or datapack changesets, then input the changesets to diff.
Outputs core/datapack_%initial%-%target%.diff
The script automatically checks if you have Subversion installed and if it's not, it notifies you and stops the script.
Change 1: updated the SVN links.
Change 2: added Linux version; added check for Subversion client.
Change 3: fixed a small problem and a typo in the Windows script.
How to use: run it, choose to DL either core or datapack changesets, then input the changesets to diff.
Outputs core/datapack_%initial%-%target%.diff
The script automatically checks if you have Subversion installed and if it's not, it notifies you and stops the script.
Change 1: updated the SVN links.
Change 2: added Linux version; added check for Subversion client.
Change 3: fixed a small problem and a typo in the Windows script.
You do not have the required permissions to view the files attached to this post.
Last edited by jurchiks on Sun Feb 13, 2011 10:52 am, edited 10 times in total.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 1160
- Joined: Thu Aug 30, 2007 5:17 pm
Re: L2J changeset downloader
nice tool but diff patch has nothing in it
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: L2J changeset downloader
Then you have put wrong changesets. It doesn't check if a changeset of selected number actually exists on the SVN.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 55
- Joined: Thu Aug 12, 2010 4:43 pm
Re: L2J changeset downloader
Dude i have tryed everything but there is nothing in the .diff files.
Can you explain a bit more about this please? because this is really helpfull.
Thanks in advance!
Can you explain a bit more about this please? because this is really helpfull.
Thanks in advance!
MELERIX is our G0D !
- Flashy
- Posts: 310
- Joined: Mon Sep 29, 2008 11:49 am
- Location: Germany
Re: L2J changeset downloader
if you would have read the forum posts, u saw that the svn path was changed.
Simple change the svn roots in the scripts to:
http://svn.l2jserver.com/trunk/L2J_Server
http://svn.l2jdp.com/trunk/L2J_DataPack
Simple change the svn roots in the scripts to:
http://svn.l2jserver.com/trunk/L2J_Server
http://svn.l2jdp.com/trunk/L2J_DataPack
-
- Posts: 55
- Joined: Thu Aug 12, 2010 4:43 pm
Re: L2J changeset downloader
I have changed the links, but still the same problem.Flashy wrote:if you would have read the forum posts, u saw that the svn path was changed.
Simple change the svn roots in the scripts to:
http://svn.l2jserver.com/trunk/L2J_Server
http://svn.l2jdp.com/trunk/L2J_DataPack
Tryed different numbers, no one works, always nothing in the diff patch.
Or this should just create the .diff files with named changeset?
MELERIX is our G0D !
-
- Posts: 55
- Joined: Thu Aug 12, 2010 4:43 pm
Re: L2J changeset downloader
Any other way to get the .diff patch for every Changesets ?
MELERIX is our G0D !
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: L2J changeset downloader
What exact steps are you doing? You should be doing it like this:
1) you run the program
2) you choose core/dp (for example 1 - core)
3) you input initial changeset (for example 4495)
4) you input target changeset (for example 4496)
That's it, you wait until it creates a file named "core_4495-4496.diff" in the same folder as the program.
As I already mentioned - DON'T input invalid/nonexistent changesets, there will be no output then.
Also, the tool already checks for it, but the target changeset must be higher than initial, not the same or lower. I don't think I should explain why.
1) you run the program
2) you choose core/dp (for example 1 - core)
3) you input initial changeset (for example 4495)
4) you input target changeset (for example 4496)
That's it, you wait until it creates a file named "core_4495-4496.diff" in the same folder as the program.
As I already mentioned - DON'T input invalid/nonexistent changesets, there will be no output then.
Also, the tool already checks for it, but the target changeset must be higher than initial, not the same or lower. I don't think I should explain why.
What do you mean by "every" changeset?feather56 wrote:Any other way to get the .diff patch for every Changesets ?
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
- Flashy
- Posts: 310
- Joined: Mon Sep 29, 2008 11:49 am
- Location: Germany
Re: L2J changeset downloader
He wrote me a pm..
it seems he forgot to install a svn client.
without it your tool isn' t working ofc.
it seems he forgot to install a svn client.
without it your tool isn' t working ofc.
- BiggBoss
- L2j Veteran
- Posts: 1104
- Joined: Wed Apr 15, 2009 3:11 pm
- Location: Spain
Re: L2J changeset downloader
svn diff commands refer a command that calls the program to run setted in c:/documment and settings/your_user_name/application data/subverion/config @:
if you have not the programn nor the var properly setted, it wont work.
Code: Select all
[helpers]diff-cmd= root to the subversion program
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: L2J changeset downloader
Well, I had thought about that, but didn't think he would actually hope it to just work...
Not directly related to my tool though.
Not directly related to my tool though.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 276
- Joined: Wed Apr 15, 2009 6:41 am
Re: L2J changeset downloader
Thx jurchiks for your tool, it is very helpful. Its good to see people share, even if it is a simple tool.
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: L2J changeset downloader
Updated first post, added Linux version of the same thing, a bit more advanced than Windows though (checks if changesets have numeric values to avoid creating empty files with letters instead of changesets), couldn't find the equivalent for Windows (yet) :/
If someone knows how to do it, let me know.
Also added check for Subversion presence (for reasons seen in the posts above) and automatic choosing of trunk folder name (since it changed recently).
Edit: there is only one known bug - if the initial changeset is before the trunk rename, and target - after, the diff will be empty. You have to make one diff before and one - after rename, can't do it any other way.
If someone knows how to do it, let me know.
Also added check for Subversion presence (for reasons seen in the posts above) and automatic choosing of trunk folder name (since it changed recently).
Edit: there is only one known bug - if the initial changeset is before the trunk rename, and target - after, the diff will be empty. You have to make one diff before and one - after rename, can't do it any other way.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 14
- Joined: Tue May 05, 2009 7:25 am
- Location: Lithuania
- Contact:
Re: L2J changeset downloader
There are some problems with my Win7:
to:
Just need change a 53 and 54 lines from:'else' is not recognized as an internal or external command, operable program or batch file.
Code: Select all
)else if %choice==2 (
Code: Select all
) else if %choice==2 (
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: L2J changeset downloader
You can also remove the else since the variable `choice` can only have one value. I simply didn't want to check it twice, but if it's a problem I'll remove it, doesn't break the script.
Edit: there was also a typo, forgot the matching '%' symbol on the other side of the variable. First post updated.
Edit: there was also a typo, forgot the matching '%' symbol on the other side of the variable. First post updated.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.