1. We have added the ability to collapse/expand forum categories and widgets on forum home.
    Dismiss Notice
  2. Photobucket has changed its policy concerning hotlinking images and now requires an account with a $399.00 annual fee to allow hotlink. More information is available at: this link.
    Dismiss Notice
  3. All Civ avatars are brought back and available for selection in the Avatar Gallery! There are 945 avatars total.
    Dismiss Notice
  4. To make the site more secure, we have installed SSL certificates and enabled HTTPS for both the main site and forums.
    Dismiss Notice
  5. Civ6 is released! Order now! (Amazon US | Amazon UK | Amazon CA | Amazon DE | Amazon FR)
    Dismiss Notice
  6. Dismiss Notice
  7. Forum account upgrades are available for ad-free browsing.
    Dismiss Notice

[Tool] AND offline updater

Discussion in 'Rise of Mankind: A New Dawn' started by dbkblk, Jan 18, 2015.

  1. dbkblk

    dbkblk Chieftain

    Joined:
    Oct 28, 2005
    Messages:
    1,774
    Location:
    France
    AND offline updater: Update your game on a PC without an internet connexion!


    Description
    Here is a very simplistic simple tool that can be useful to update your game on a PC without internet.
    It has two functions:
    • Download patch: Put the revision number of the mod to update, then press "Download" to download the patch in the executable folder. It will open an empty console that will eventually print errors (i hope it don't :)) and will close at the end. A popup will warn you when the download has finished. Please be patient because some updates are quite large when the graphic files are modified (more than 500mb).
    • Apply patch: Click on it to select the patch file (named "and_*the number you put when downloaded*_update.patch), then select the mod folder "Rise of Mankind - A New Dawn", then cross fingers while waiting. At the end, a popup will warn you. A log file will be available in the application folder, "patch.log".

    Installation instructions
    - Download the zip file (link at the top of the page).
    - Extract the folder on an usb key.
    - Launch the executable on a PC with internet.
    - Download a patch.
    - Connect your usb key to the PC without internet.
    - Apply patch.

    Source code
    • 2.0 - Rewritten from scratch in autohotkey as an exercice. It is lighter and don't need any dependency.
    • 1.0 - Fix the revision update problem. Compiled using MinGW (no need to install MSVC anymore).
    • 0.9.2 - Feature: The patcher now remembers the last game folder location. Feature: Auto-empty cache after update. Fix: Prevent patching if local installation revision is different from the patch revision. Fix: Abort patching on cancelling file / folder selection window.
    • 0.9.1 - Hotfix: Workaround for Windows 7+ not starting patch executable.
    • 0.9 - Initial release
     
  2. Zeta Nexus

    Zeta Nexus Chieftain

    Joined:
    Jan 23, 2014
    Messages:
    2,416
    Location:
    In a constant brainstorm...
    Cool :)
    Will test it tomorrow.
     
  3. dbkblk

    dbkblk Chieftain

    Joined:
    Oct 28, 2005
    Messages:
    1,774
    Location:
    France
    @Sogroon: If you have downloaded 0.9. Please redownloaded because i hotfixed the program. Unfortunately, windows 8.1 UAC prevented the patch to apply for stupid reasons (it worked on XP). Now it should works on all systems.
     
  4. Zeta Nexus

    Zeta Nexus Chieftain

    Joined:
    Jan 23, 2014
    Messages:
    2,416
    Location:
    In a constant brainstorm...
    I answer this one here.

    Hehehe... :crazyeye:

    Telling the truth I have tried the offline installer and it seemed to work perfect - at least the game started without errors. But... :mischief: But then I deleted that version, and installed a full package, assuming that can't be wrong :lol:

    Earlier I wanted to tell you that it works fine, but don't waste your time on it. Now I revaluate it :goodjob:
     
  5. nionios

    nionios Chieftain

    Joined:
    Sep 29, 2013
    Messages:
    376
    The offline updater is perfect!
    Congratulations:clap:
     
  6. dbkblk

    dbkblk Chieftain

    Joined:
    Oct 28, 2005
    Messages:
    1,774
    Location:
    France
    Thanks for the feedbacks ! Just a precision about the installer. It will remove the depreciated files that are removed from the repository during an update, as opposite to the launcher which removes all the files which are not in the repository (except the files chosen in the exclusion list). There is no way to get the same behavior with the offline updater.
    This explain why Sogroon got a problem with textures, which would have been removed with the launcher.
     
  7. nionios

    nionios Chieftain

    Joined:
    Sep 29, 2013
    Messages:
    376
    So when using the offline updater do i have to remove manually any files?:confused:
    I think that maybe i've misunderstood something.:confused:
     
  8. Zeta Nexus

    Zeta Nexus Chieftain

    Joined:
    Jan 23, 2014
    Messages:
    2,416
    Location:
    In a constant brainstorm...
    No, as I understand it is all automated.
    My problem was caused by not using the offline updater, so some files were not removed.
     
  9. dbkblk

    dbkblk Chieftain

    Joined:
    Oct 28, 2005
    Messages:
    1,774
    Location:
    France
    Sorry for the confusion. To be clear, the behaviors are the following:
    - Launcher: It compares your local installation, file by file, to check if there is a newer version / modified. Then, if your local file doesn't exists on the server, it simply delete it. However, the "exclusion" list allows the launcher to ignore some files. If you have modified a file for your convenience, for example, this can allows to preserve your modifications.
    - Offline updater: This one only know what have changed between versions. If, during update 872, we have removed file A, then when the patch apply, it will remove that file. However, it won't check any other file to remove it. Just the ones which were explicitely asked to be removed for the update.
     
  10. dbkblk

    dbkblk Chieftain

    Joined:
    Oct 28, 2005
    Messages:
    1,774
    Location:
    France
    (double post)
     
  11. nionios

    nionios Chieftain

    Joined:
    Sep 29, 2013
    Messages:
    376
    Is cache clearing necessary after offline updating?
     
  12. dbkblk

    dbkblk Chieftain

    Joined:
    Oct 28, 2005
    Messages:
    1,774
    Location:
    France
    Yes, but that is a good idea. I'll add it to the offline updater.
     
  13. Zeta Nexus

    Zeta Nexus Chieftain

    Joined:
    Jan 23, 2014
    Messages:
    2,416
    Location:
    In a constant brainstorm...
    So it works good so far...
    However, if I enter an older rev number, than my current (e.g. 870 instead of 873) the does not load. Don't know if it worth to try to "fix" at all, just a reminder for everyone who uses it.

    And an other thing: The patcher doesn't remember where my mod is installed, so I have to apply it every time manually. No biggie, just a note.
     
  14. dbkblk

    dbkblk Chieftain

    Joined:
    Oct 28, 2005
    Messages:
    1,774
    Location:
    France
    EDIT: That is a known behavior. I can introduce a simple fix: Check the installation revision number and refuse to install patch with a different number. That will be more secure indeed.

    I'll add that to the next version.

    Thank you for the feedback!
     
  15. dbkblk

    dbkblk Chieftain

    Joined:
    Oct 28, 2005
    Messages:
    1,774
    Location:
    France
    Update to v0.9.2

    • Feature: The patcher now remembers the last game folder location.
    • Feature: Auto-empty cache after update.
    • Fix: Prevent patching if local installation revision is different from the patch revision.
    • Fix: Abort patching on cancelling file / folder selection window.
     
  16. nionios

    nionios Chieftain

    Joined:
    Sep 29, 2013
    Messages:
    376
    I downloaded the "and_894_update" patch, applied it to my game but the "patch.log" shows many failures and the revision doesn't get updated.
    Uploaded the "patch.txt" file.
     

    Attached Files:

  17. dbkblk

    dbkblk Chieftain

    Joined:
    Oct 28, 2005
    Messages:
    1,774
    Location:
    France
    Hm. Effectively, this is still an experimental software. Patching files this way isn't really safe.
    I have plans to make it really safe by strongly modify the patching process:
    - Download a list of the modified files
    - Download each new / modified file
    - Make a list of the files to remove

    Then the patcher will just erase new / modified files and remove the files in the list. It will be much safer.
    Once that'll work, i will publish monthly full builds.
     
  18. nionios

    nionios Chieftain

    Joined:
    Sep 29, 2013
    Messages:
    376
    Ok, thanks for the quick reply,dbkblk.Keep up the very good work!
     
  19. Zeta Nexus

    Zeta Nexus Chieftain

    Joined:
    Jan 23, 2014
    Messages:
    2,416
    Location:
    In a constant brainstorm...
    I had the same issue as Nionios:
    Downloaded 895 full build, than patch 895, but it refused to patch.
    Next day dl 894 and it worked.
    Note that patch.log shows Hunk #... failed at ...
    although the patcher worked and the game runs fine.
     
  20. dbkblk

    dbkblk Chieftain

    Joined:
    Oct 28, 2005
    Messages:
    1,774
    Location:
    France
    We can agree that even if it's working, it doesn't seem very bug-proof :x
     

Share This Page