Results 1 to 11 of 11

Thread: Source-Forge and how to get your copy

  1. #1
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Source-Forge and how to get your copy

    Thanks to bovi's tip, we received project hosting at sourceforge.net - they host open source projects, and it appears they rank mods among those.
    You can find our project page here

    I will update that page when I have time, and in general try to use it as much as possible. The services SF offers are really great, we can submit news, host our downloads, work on documentation, maintain a wiki, upload a website, and most importantly, have a subversion server available which will definitely help development.

    I'll write a bit more about it once I configured it to my liking. Everyone will have read access to the SVN server which means you can always get the newest version of the mod, however write access will be restricted to trusted members (i.e. you ask me for it and I'll see if you troubled me too much in the past and if that isn't the case I can set you up with your sourceforge.net account that you'll have to register) - I don't want to enable anonymous write access because I want to see who changed what and when in case anything gets screwed.
    Last edited by alpaca; 10-02-2007 at 21:06.

  2. #2
    EB annoying hornet Member bovi's Avatar
    Join Date
    Jan 2007
    Location
    Norway
    Posts
    11,792

    Default Re: Source-Forge project

    Here's a very basic guide to how you can use version control. Feel free to ask questions too, and I'll update this guide (I don't visit this forum extremely often, so don't expect immediate response).

    BASIC SETUP
    First you need to download the client. There is a Tortoise client for both CVS and SubVersion (SVN), you want the SVN client as the repository is this kind. Download this from http://tortoisesvn.net/downloads. There are loads of other clients available, but these instructions assume you're using Tortoise.

    Then, you need to install it. Do that in the default location, or anywhere else you prefer, it doesn't matter. Once this is done, you will have gained some items in the context menu. When you right-click files/folders in explorer, you will see this:


    Find the place where you want to download the current build from the repository! It can be any folder, but the best place is probably a clean 1.2 M2TW directory, so you can load the game using it. Right-click this and select SVN Checkout.

    NB! The link seen in this image will not work, so don't use that! It is only meant to illustrate how to use Tortoise. The real link is https://italia-invicta.svn.sourceforge.net/svnroot/italia-invicta/trunk. You can download the build without credentials, but you'll need to supply a username and password to make changes. See Alpaca's post below for how to get write access.

    You don't have to do this, but when you've started downloading the files from the repository, you really should configure Tortoise to only scan this (these) folder(s) for up-to-date status or it will slow down your computer immensely when navigating in explorer. You do this by right-clicking anywhere in the explorer and selecting TortoiseSVN=>Settings. Find the Icon Overlays menu. Enter this in the "Exclude paths" field:
    Code:
    c:*
    d:*
    e:*
    f:*
    g:*
    h:*
    You should add any other drive letters you may have too. Then enter the folder(s) where you're downloading the files to in "Include Paths", with an asterisk (*) behind it.

    BASIC USAGE
    To ensure that you have the latest version with everything that everyone has submitted, right-click the folder and choose SVN Update. It will check all files and subfolders for what has changed since you last updated, and tell you what it's doing to get you up-to-date. If you have uncommitted changes and update, it will automatically merge non-conflicting changes.

    To change a file, simply do the changes you want, then rightclick either a file (for single commit) or folder (for all content under it) and choose SVN Commit. Always double-click the files you change in the commit dialog to check that only the changes you expect are made. Make sure to write a comment so people can see what you've done with it! This last bit is extremely important or there will be all sorts of misunderstandings.

    To add a new file, create the file in your file system, then right-click and choose TortoiseSVN=>Add. You will have to commit in a separate operation afterwards.

    If you make changes to a file on your local system and later decide you want the old file back (before you've committed it), simply delete your file and do an SVN Update on its containing folder, and Tortoise will retrieve it for you.

    To rename a file while leaving it in the same folder, use TortoiseSVN=>Rename. It will ask you for the new filename. You'll need to commit in a separate operation afterwards.

    To delete a file, use TortoiseSVN=>Delete. You'll need to commit in a separate operation afterwards. If you regret your decision, before committing you can delete the containing folder and do a new SVN Update. If you have committed you'll need to find the file in the revision log and restore it.

    ADVANCED USAGE
    But what happens when someone else changes a file at the same time that I am working on it?
    That's okay. By using the SVN Update command, it will automatically merge all the changes others have done to your own working copy. If you choose to change the same lines, however, it gets a bit more tricky. Tortoise will tell you that there is a conflict that you need to work out before committing your changes, and markup your file with some not-so-simple signs of where the conflict is. A good tool for seeing what is changed in each file is invaluable here. UltraEdit/UltraCompare is excellent, but not free. WinMerge is free and used by many, and there are many other tools as well. Tortoise has one of its own, but I don't know how good that is. To set up this diff/merge tool, right-click in any explorer, and choose TortoiseSVN=>Settings. Under "Diff Viewer" you can set your tool of choice.

    Yeah, I got that above, but I'm absolutely sure I've got the right thing and want to ruthlessly overwrite the others' changes!
    First, be absolutely sure indeed. Otherwise go through the merge process. To overrule everyone elses changes, do this:
    • Rename your file to something temporary.
    • Do a SVN Update. The latest file from the repository will be downloaded and Tortoise will know that you have the latest one so there is no conflict when you make your changes.
    • Delete the file again (normally you'd use this to merge the changes instead!)
    • Rename your file back
    • Commit


    I want to see the different versions we have had of a given file or
    Someone screwed up a file and I want to see what changes have been made!
    Right-click the file and choose TortoiseSVN=>Show log. Right-click the revision you want to compare and select "Compare with working copy". Or select two revisions (be patient as it loads the change list) then right-click and choose "Compare revisions".

    I screwed up a file and I want to go back to a previous version!
    Committing bad files is something that should be avoided as much as possible, as it may slow down everyone until we find out why your change made the game crash, but it's bound to happen plenty of times. Thankfully the actual reverting isn't all that hard: Right-click the file and choose TortoiseSVN=>Show log. Right-click the revision you want to restore to and select "Revert to this revision". Commit it and voila! It's back where it was.

    I want to move files to another folder.
    This will lose the history of the files, so should be used sparingly.
    • Move the files where you want them to be
    • TortoiseSVN=>Add them to the repository
    • SVN Update the old folder, it will reload your files
    • TortoiseSVN=>Delete the files in the old folder
    • Commit all changes

    There is an alternative way to move stuff between folders using the repository browser, which I think retains history as well, but this is the simple way.
    Last edited by bovi; 10-04-2007 at 12:45.

    Having problems getting EB2 to run? Try these solutions.
    ================
    I do NOT answer PM requests for help with EB. Ask in a new help thread in the tech help forum.
    ================
    I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image. - Stephen Hawking

  3. #3
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: Source-Forge project

    Thanks, SVN is already set up fine - however we won't give anonymous write access. People can create patch files or ask me to be added to the dev list at SF.

    The URL to get the latest version of the mod via SVN is:
    https://italia-invicta.svn.sourceforge.net/svnroot/italia-invicta/trunk

    If you intend to help us work with the mod, check it out to your M2TW directory (as bovi kindly described above) and you should be set up fine with a fresh folder called Italia_Invicta and the necessary batch and config file to launch the mod.
    Once you verified it works, any changes you made will only be made to your local copy, because, as I said, I don't want to allow anonymous write access. Instead, you can create a so-called patch file. To do this, right-click on your Italia_Invicta directory and select TortoiseSVN->Create Patch:



    After this, you will be presented a dialog asking you which files to include. Only select files you changed here.
    Then a file selection dialog will pop up in which you can select a name and folder where to store your patch file.

    Once you did all this, Tortoise will create the patch file from your working copy. Upload that file somewhere and send me a PM with information about what you changed and which revision (SVN revision) you based it on - and of course a link to the file.
    Please also try to make sure that you work with the latest revision to create your patch.

    If you want to participate on a more regular basis, I can also set you up as a developer at sourceforge. To do this, you will have to register an account there and then send me a PM with your account name. I will then review your application and decide if I'm fine with giving you write access (shouldn't usually be a problem). In that case, you can use the commit option as bovi described it above.

  4. #4
    EB annoying hornet Member bovi's Avatar
    Join Date
    Jan 2007
    Location
    Norway
    Posts
    11,792

    Default Re: Source-Forge and how to get your copy

    Tried to check out now. It works but seems to be a lot slower than the EB repository, perhaps that is because it talks encrypted with https? Is there any possibility of downloading over the svn protocol instead (IE get a svn://server/project/path link)?

    Having problems getting EB2 to run? Try these solutions.
    ================
    I do NOT answer PM requests for help with EB. Ask in a new help thread in the tech help forum.
    ================
    I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image. - Stephen Hawking

  5. #5
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: Source-Forge and how to get your copy

    Quote Originally Posted by bovi
    Tried to check out now. It works but seems to be a lot slower than the EB repository, perhaps that is because it talks encrypted with https? Is there any possibility of downloading over the svn protocol instead (IE get a svn://server/project/path link)?
    Well on SF I've only seen https mentioned. Exactly how slow are we talking here? I got dl speeds of 130KB/s on average which is alright really.

    I don't expect too many people to use the SVN repository anyways, most players will download the mod via different means once we make a release snapshot which I hope will be hosted on multiple servers while the SVN is probably hosted at one location.

  6. #6
    EB annoying hornet Member bovi's Avatar
    Join Date
    Jan 2007
    Location
    Norway
    Posts
    11,792

    Default Re: Source-Forge and how to get your copy

    I didn't measure the download speed, just noticed that the EB serves at least 6-7 times the speed. It doesn't matter though. It gets down eventually.

    Which version of M2TW is this mod for BTW? You may notice that there's a placeholder field in the guide I posted.
    Last edited by bovi; 10-04-2007 at 00:09.

    Having problems getting EB2 to run? Try these solutions.
    ================
    I do NOT answer PM requests for help with EB. Ask in a new help thread in the tech help forum.
    ================
    I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image. - Stephen Hawking

  7. #7
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: Source-Forge and how to get your copy

    Quote Originally Posted by bovi
    I didn't measure the download speed, just noticed that the EB serves at least 6-7 times the speed. It doesn't matter though. It gets down eventually.

    Which version of M2TW is this mod for BTW? You may notice that there's a placeholder field in the guide I posted.
    1.2 and 1.3 seem to be pretty identical, I'd say 1.2 or higher or something

    From what I heard (or rather didn't hear) so far, Kingdoms seems to be downwards compatible so you can use the kingdoms.exe, too. It's currently for 1.2 anyways.

    Thanks for compiling that guide by the way, I was just about to do it when I saw you already posted one.

  8. #8
    EB annoying hornet Member bovi's Avatar
    Join Date
    Jan 2007
    Location
    Norway
    Posts
    11,792

    Default Re: Source-Forge and how to get your copy

    It was a simple enough task to adapt the EB guide .

    Instead, you can create a so-called patch file.
    I hope you know what you're doing here. You personally will get lots of work to manage this (depending on the rate submissions come in, of course). While I'm not entirely sure how the patch system works, I think you'll also have to manage concurrent updates, merging submissions from several people manually, which SVN otherwise would do automatically. I hope I'm mistaken though. The patch system might understand which changes are made from the revision in question, rather than overwrite any changes made by others when a new file is patched in.
    Last edited by bovi; 10-04-2007 at 12:52.

    Having problems getting EB2 to run? Try these solutions.
    ================
    I do NOT answer PM requests for help with EB. Ask in a new help thread in the tech help forum.
    ================
    I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image. - Stephen Hawking

  9. #9
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: Source-Forge and how to get your copy

    Quote Originally Posted by bovi
    It was a simple enough task to adapt the EB guide .


    I hope you know what you're doing here. You personally will get lots of work to manage this (depending on the rate submissions come in, of course). While I'm not entirely sure how the patch system works, I think you'll also have to manage concurrent updates, merging submissions from several people manually, which SVN otherwise would do automatically. I hope I'm mistaken though. The patch system might understand which changes are made from the revision in question, rather than overwrite any changes made by others when a new file is patched in.
    As I understood it the patch system takes into account the revision the patch was generated for. I know it's more work but, well, I don't expect we'll have too many people doing small things in the files themselves. If it's a large bunch of stuff applying patches doesn't happen so often and if it's a regular participant he can request write access which will of course make things easier.
    The reason why I don't want anonymous write access is that often enough people don't properly test what they do and then I have to revert the head revision, etc.

    I'll check if it's possible to create an anonymously writable branch which would probably be the best solution - if somebody screws something there it at least doesn't disturb other people's work on the current revision.

  10. #10
    EB annoying hornet Member bovi's Avatar
    Join Date
    Jan 2007
    Location
    Norway
    Posts
    11,792

    Default Re: Source-Forge and how to get your copy

    Anonymous access to only parts should work fine, at least you can specify access for each folder when using svnserve. Not sure about sourceforge but highly likely.

    Having problems getting EB2 to run? Try these solutions.
    ================
    I do NOT answer PM requests for help with EB. Ask in a new help thread in the tech help forum.
    ================
    I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image. - Stephen Hawking

  11. #11
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: Source-Forge and how to get your copy

    Quote Originally Posted by bovi
    Anonymous access to only parts should work fine, at least you can specify access for each folder when using svnserve. Not sure about sourceforge but highly likely.
    The problem is that I don't think I can access the config files for the project. I'll write to the SF staff.

    It's possible with CVS anyways I think.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO