Openkore.com

OpenKore Forums
It is currently 21 Oct 2018, 19:57

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: AI 2008 SVN autoupdate
PostPosted: 17 Jun 2009, 13:34 
Offline
Super Moderators
Super Moderators
User avatar

Joined: 06 May 2008, 12:47
Posts: 801
kLabMouse has implemented an autoupdate.pl script into the AI 2008 project.
If you want to test it out on windows, you can download the latest svn command-line tools here:
Setup-Subversion-1.6.2

How it works
The script checks for the repositories: openkore, fields, tables if their global rev (last changed rev of repo in svn) is greater than their local rev (the rev we have on our pc).
If this is the case, that means that the global repo (in svn) has changed since we last updated our local repo.
So the script will use the 'svn update --force --accept theirs-conflict' command for that repo.
(note: you can see a repository as a file tree)

Limitations:
- the initial checkout must still be done by the user himself
- not every user uses SVN

Solve limitations?
- hand out an improved version of the script that does the checkout (if the repo does not exist locally, we check it out) instead of handing out svn snapshots
- native svn client built into kore
- make combination of different svn clients (kore native + other) possible by using a downgrade script: issue discription

Potential uses: (read: crazy idea's)
- A system that automatically updates our grf from the patch-server, then extracts the table files, then commits those to svn so that all the user clients are updated immediately (trough the autoupdate feature).
- Conditional checkout of "tables/servername" (folder structure -> see openkore TODO) dependent on which server the user plays.

Got idea's or want to discuss? Make a post!

_________________
One ST0 to rule them all? One PE viewer to find them!
One ST_kRO to bring them all and in the darkness bind them...

Mount Doom awaits us, fellowship of OpenKore!


Top
 Profile  
 
 Post subject: Re: AI 2008 SVN autoupdate
PostPosted: 19 Jun 2009, 08:46 
Offline
Administrator
Administrator
User avatar

Joined: 24 Apr 2008, 12:02
Posts: 1301
Originally, This system was made for our SVN packages, which Bibian and isieo host and call "openkore_ready".
So when you download such package, and run autoupdate.pl, all the files will be updated, and even your custom Mods will be saved and untouched.

_________________
Join our Team. Click here.
Image


Image


Top
 Profile  
 
 Post subject: Re: AI 2008 SVN autoupdate
PostPosted: 19 Jun 2009, 09:32 
Offline
Super Moderators
Super Moderators
User avatar

Joined: 06 May 2008, 12:47
Posts: 801
Ah the snapshots from isieo's site do have the .svn folders and the folder structure is already like it should be.
Ok, so thats perfectly possible.

(tho bibian's snapshots don't have the .svn folders and the users still has to compose the folder structure themselves)

_________________
One ST0 to rule them all? One PE viewer to find them!
One ST_kRO to bring them all and in the darkness bind them...

Mount Doom awaits us, fellowship of OpenKore!


Top
 Profile  
 
 Post subject: Re: AI 2008 SVN autoupdate
PostPosted: 19 Jun 2009, 09:43 
Offline
Administrator
Administrator
User avatar

Joined: 24 Apr 2008, 12:02
Posts: 1301
Technology wrote:
Ah the snapshots from isieo's site do have the .svn folders and the folder structure is already like it should be.
Ok, so thats perfectly possible.

(tho bibian's snapshots don't have the .svn folders and the users still has to compose the folder structure themselves)

May-be Add a check for ".svn" folder??? it there is none, then checkout there.

_________________
Join our Team. Click here.
Image


Image


Top
 Profile  
 
 Post subject: Re: AI 2008 SVN autoupdate
PostPosted: 19 Jun 2009, 09:43 
Offline
OpenKore Monk
OpenKore Monk

Joined: 04 Apr 2008, 10:10
Posts: 474
I'll try to create an svn endpoint that has a few svn:externals in its properties. That should result in something similar to mount points in an ext2/3 file system (in other words, the required openkore files will be downloaded in their proper places with just one checkout command).

_________________
Got your topic trashed by a mod?

Trashing topics is one click, and moving a topic to its proper forum is a lot harder. You expend the least effort in deciding where to post, mods expend the least effort by trashing.

Have a nice day.


Top
 Profile  
 
 Post subject: Re: AI 2008 SVN autoupdate
PostPosted: 23 Jun 2009, 00:08 
Offline
Super Moderators
Super Moderators
User avatar

Joined: 06 May 2008, 12:47
Posts: 801
I've done some superficial tests and i believe that svn:externals will have no effect on the autoupdate feature.
Tho, its best that someone double checks or tests this out.

Bot fully functional after checkout
We could accomplish that by doing something like control/default/... and control/profile/... and renaming confpack & tablespack,
so that if you check everything out, your kore will be ready except for the configuration.
If the user wants to configure his bot,
he will start the bot in a special mode (--mode) or something like firstrun,
then he will need to give in a name for the profile,
the bot will then create a folder in control/profile/... with the foldername of the profile and copies all files from default.
Or maybe some kind of native account manager (like dKore).
What do you guys think?

_________________
One ST0 to rule them all? One PE viewer to find them!
One ST_kRO to bring them all and in the darkness bind them...

Mount Doom awaits us, fellowship of OpenKore!


Top
 Profile  
 
 Post subject: Re: AI 2008 SVN autoupdate
PostPosted: 23 Jun 2009, 02:24 
Offline
Administrator
Administrator
User avatar

Joined: 24 Apr 2008, 12:02
Posts: 1301
Technology wrote:
Or maybe some kind of native account manager (like dKore).
What do you guys think?

Nice! :D

_________________
Join our Team. Click here.
Image


Image


Top
 Profile  
 
 Post subject: Re: AI 2008 SVN autoupdate
PostPosted: 23 Jun 2009, 12:28 
Offline
Developers
Developers

Joined: 05 Dec 2008, 05:42
Posts: 1811
Technology wrote:
Potential uses: (read: crazy idea's)
- A system that automatically updates our grf from the patch-server, then extracts the table files, then commits those to svn so that all the user clients are updated immediately (trough the autoupdate feature).
- Conditional checkout of "tables/servername" (folder structure -> see openkore TODO) dependent on which server the user plays.

These two ideas are useful, and not so hard to implement. And we can have the diff for all changes in patches.


Top
 Profile  
 
 Post subject: Re: AI 2008 SVN autoupdate
PostPosted: 23 Jun 2009, 15:51 
Offline
Administrator
Administrator
User avatar

Joined: 24 Apr 2008, 12:02
Posts: 1301
EternalHarvest wrote:
Technology wrote:
Potential uses: (read: crazy idea's)
- A system that automatically updates our grf from the patch-server, then extracts the table files, then commits those to svn so that all the user clients are updated immediately (trough the autoupdate feature).
- Conditional checkout of "tables/servername" (folder structure -> see openkore TODO) dependent on which server the user plays.

These two ideas are useful, and not so hard to implement. And we can have the diff for all changes in patches.

May-be it will be in AI 2008 (OpenKore 3.x).
But 2.x branch won't have it.

_________________
Join our Team. Click here.
Image


Image


Top
 Profile  
 
 Post subject: Re: AI 2008 SVN autoupdate
PostPosted: 23 Jul 2009, 22:37 
Offline
Super Moderators
Super Moderators
User avatar

Joined: 06 May 2008, 12:47
Posts: 801
Using the svn API's in conjuction with other languages.
http://svnbook.red-bean.com/nightly/en/svn.developer.usingapi.html
Do we need this kind of native support?

_________________
One ST0 to rule them all? One PE viewer to find them!
One ST_kRO to bring them all and in the darkness bind them...

Mount Doom awaits us, fellowship of OpenKore!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group