AI 2008 SVN autoupdate

Wrote new code? Fixed a bug? Want to discuss technical stuff? Feel free to post it here.

Moderator: Moderators

Message
Author
Technology
Super Moderators
Super Moderators
Posts: 801
Joined: 06 May 2008, 12:47
Noob?: No

AI 2008 SVN autoupdate

#1 Post by Technology »

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!

User avatar
kLabMouse
Administrator
Administrator
Posts: 1301
Joined: 24 Apr 2008, 12:02

Re: AI 2008 SVN autoupdate

#2 Post by kLabMouse »

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.

Technology
Super Moderators
Super Moderators
Posts: 801
Joined: 06 May 2008, 12:47
Noob?: No

Re: AI 2008 SVN autoupdate

#3 Post by Technology »

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!

User avatar
kLabMouse
Administrator
Administrator
Posts: 1301
Joined: 24 Apr 2008, 12:02

Re: AI 2008 SVN autoupdate

#4 Post by kLabMouse »

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.

kali
OpenKore Monk
OpenKore Monk
Posts: 457
Joined: 04 Apr 2008, 10:10

Re: AI 2008 SVN autoupdate

#5 Post by kali »

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.

Technology
Super Moderators
Super Moderators
Posts: 801
Joined: 06 May 2008, 12:47
Noob?: No

Re: AI 2008 SVN autoupdate

#6 Post by Technology »

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!

User avatar
kLabMouse
Administrator
Administrator
Posts: 1301
Joined: 24 Apr 2008, 12:02

Re: AI 2008 SVN autoupdate

#7 Post by kLabMouse »

Technology wrote:Or maybe some kind of native account manager (like dKore).
What do you guys think?
Nice! :D

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: AI 2008 SVN autoupdate

#8 Post by EternalHarvest »

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.

User avatar
kLabMouse
Administrator
Administrator
Posts: 1301
Joined: 24 Apr 2008, 12:02

Re: AI 2008 SVN autoupdate

#9 Post by kLabMouse »

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.

Technology
Super Moderators
Super Moderators
Posts: 801
Joined: 06 May 2008, 12:47
Noob?: No

Re: AI 2008 SVN autoupdate

#10 Post by Technology »

Using the svn API's in conjuction with other languages.
http://svnbook.red-bean.com/nightly/en/ ... ngapi.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!

Post Reply