LoR SVN

phungus420

Deity
Joined
Mar 1, 2003
Messages
6,296
I've uploaded LoR into sourceforge as an SVN; because the SVN is mainly a development tool, there will not be an easy installer, in fact the SVN is a little complex to set up. However if you want to update LoR to the most current version, the SVN is the way to go.

To use the SVN you must download and install tortoise SVN, found here:
http://tortoisesvn.net/downloads

Once you have TortoiseSVN installed on your computer, here is how to set up LoR's SVN:

1)Somewhere on your computer create a folder where you want LoR's SVN repository to be (where you want it to store the files for the current SVN); and name that folder LoR.
2)Right click on this folder and select "SVN checkout...", a box will pop up for the SVN information. In the "URL of Repository" field put this:
https://civ4lor.svn.sourceforge.net/svnroot/civ4lor/Trunk/LoR/
3)Select OK, and the repository will begin downloading the latest SVN to the folder you selected.
4)Now unstall LoR if you have it installed, this ensures that there are no files left that can conflic with the new version. Once this is done, right click on your LoR SVN folder and in the Tortoise SVN options select "Export", it will want to know where to export it to, and that's your mods folder where LoR usually installs to when you use the installer. The latest SVN will then export to your mods folder and be playable by selecting it like any other mod.
5)When you update the SVN, remember to delete the LoR folder in your mods folder you are going to export to in order to get the most recent updates. This ensures that no old files are left over, which could cause conflicts. If you want to be really smooth, you can always use winmerge to merge in the recent updates, and then you wol't need to delete, and export the full mod with every update.

There are a couple of other things you can do that the installer does automatically, which if you want to do them you will need to do manually since the SVN is a dev tool, and I can't set it up to do user friendly stuff like the regular installer for LoR does. To create a desktop shortcut, go into your main BtS folder and find the main BtS .exe file, right click on it and select "create shortcut", put that shortcut on the desktop and name it "Legends of Revolution", now right click on it and select properties, in the path field, add mod="LoR" to the end (as an example my LoR desktop shortcut has this for it's path "C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Civ4BeyondSword.exe" mod="LoR"), then with the change icon box, set it to link to the LoR icon in the LoR mod's folder. For Vista and Windows 7 users you can get around the launch as admin issue by going into the LoR folder again, and cutting the UserSettings folder, then go into the My Documents path for BtS (you can get there easily by following one of the shortcuts to various folders like "Saves" in the main BtS folder, then browsing out of the folder you shortcuted to, to it's parent the BtS directory along the My Documents path), once in the BtS directory in the my Documents path create a new folder, and rename this LoR, paste the UserSettings folder you cut here; this will make it so you will no longer need to launch as an admin. That's alot of directions, but once you have things set up, you can just click on the SVN repository you set up and select update to update to the current SVN revision#, and then export it to the main mods folder to update, remember to delete the old version in your mod folder when you do a full export though, that or ensure there are no left over files in the old version that could cause problems.

For those familiure with the SVN, the important web adresses for the LoR SVNs can be found here:
0.9.9 (dev-full): https://civ4lor.svn.sourceforge.net/svnroot/civ4lor/Trunk/LoR/
0.9.9 (dev-light): https://civ4lor.svn.sourceforge.net/svnroot/civ4lor/Trunk/LoRLight/
SDK: https://civ4lor.svn.sourceforge.net/svnroot/civ4lor/Trunk/LoRSource/CvGameCoreDLL/
Unpacked Art: https://civ4lor.svn.sourceforge.net/svnroot/civ4lor/Trunk/UnpackedArt/
 
Why do a svn export on the working copy? I know that when you do that, you get a copy of the working copy minus the hidden .svn folders. Why do you not recommend to do the checkout directly in the mods folder? Does Civ have a problem with the hidden .svn folders?
 
Why do a svn export on the working copy? I know that when you do that, you get a copy of the working copy minus the hidden .svn folders. Why do you not recommend to do the checkout directly in the mods folder? Does Civ have a problem with the hidden .svn folders?

As a developer I like to keep my SVN copy separate from my working copy, for obvious reasons. So I posted directions on how to use the SVN for how things work for me. I'm not sure if the SVN folders mess anything up for CivIV, but I doubt it. You're probably right, it would probably work fine to set up the repository in your mods folder and just play off that. Of course if you do it that way, your UserSettings will always be changed back to the default when you update, plus there may be other unforeseen issues doing it that way.
 
Awesome thanks. That's totally something I would have missed, I thought I had just taken care of all the scenarios, and didn't notice that issue at all.
 
Awesome thanks. That's totally something I would have missed, I thought I had just taken care of all the scenarios, and didn't notice that issue at all.

No worries, I had played said map in regular BtS and wondered how the LoR version would play out (ace being able to have quick games without burning a whole week!) and just noticed the leader-names where truncated (because the names are stored in a silly manner in the standard DLL, something which RevDCM(?) seems to fix), had a peek at the worldbuilder file and immediately saw what the issue was. :)
 
*bump*

Hey phungus420 (or other LoR dev on SF), any chance of turning on the svn check-in mailing list? I like my svn spam and generally like eyeballing code as it gets checked in. :D
 
I'm willing to do that. But I do not know how, could you be more specific, or direct me how to do it?
 
Version 0.9.8c is complete, and available on the SVN. It's just waiting aproval on Strategy Informer and Moddb before I update the download stuff, but for those who use the SVN it's available now.
 
I have done some major updating to the SVN. The source and mod folders (LoR and LoRlight) in the trunk have been reverted to 0.9.8 save game compatibility; they have also been updated with all the most recent BUG mod fixes that have been implemented by the bug team which are available on the BUG mod SVN.

I have also added a 0.9.9 version, this is found in the branches folder, not the trunk. The unpacked art folder in the trunk has been updated with the 0.9.9 art. 0.9.9 is not save game compatible, but is much more advanced, and includes some radical upcoming changes to LoR (such as only one UU per civ). See the OP for the link to 0.9.9.

As always I encourage those out there who are comfortable with the SVN to test things out, and report any bugs that may be found so that any bugs I have introduced in the development versions do not make it into an into the official release.
 
I was trying to see what changes were coming with 9.9 as well as downloading the SDK from the links in the first post. When I go to Import the SVN I get a pop-up for username and password. I created a sourceforge account and verfied I am entering the right username and password that I had created. However, I was unable to authenticate after multiple attempts

Is there somewhere else I need to create an account to be able to download the SVN files?
 
You must be trying to commit changes to the SVN, rather then updating the SVN revision on your computer. Only I can commit changes to the SVN ;) Just go through the instructions again.
 
Doing an export works without the password, while import is putting files into the repository which requires one. I just got import and export mixed up in my mind.
 
I try to follow the directions, but when I go to export the files from the svn folder to my beyond the sword mods folder, I get an error that says the system cannot find the specified path.

Anyone have any input on this error, or any suggestions on what I may have done wrong?
 
I didn't extract the files directly to the mods\LOR\ folder. Instead I created a temp folder on my desktop. Then after naming the folder I right clicked on the folder and chose the Tortoise SVN > Create Repository Here menu option. Then right click on the folder again and click on either the 'SVN Checkout' or 'Tortoise SVN > Export' option. Cut and paste the correct URL listed in the OP and hit ok and it should start downloading the files.

Hope that helps.
 
I didn't extract the files directly to the mods\LOR\ folder. Instead I created a temp folder on my desktop. Then after naming the folder I right clicked on the folder and chose the Tortoise SVN > Create Repository Here menu option. Then right click on the folder again and click on either the 'SVN Checkout' or 'Tortoise SVN > Export' option. Cut and paste the correct URL listed in the OP and hit ok and it should start downloading the files.

Hope that helps.

Actually, I got that far, and was able to get the download - I think it's the next step I'm screwing up somehow. When I go to export the files (from above, right clicking on the SVN LoR folder, selecting 'export', then pointing it to my BtS mod directory) I get the error.

It's entierely possible that I'm misunderstanding the directions and not doing this right, but I thought I was doing what the directions told me to. I still need to end up with a LoR folder in my BtS directory somehow, don't I?
 
Try exporting it somewhere else, and then just manually dragging it into the BtS/Mods folder :dunno:
 
Back
Top Bottom