Dragon's Dogma 2
0 of 0

File information

Last updated

Original upload

Created by

Aqa

Uploaded by

aiqa

Virus scan

Safe to use

Tags for this mod

33 comments

  1. antroxxxx
    antroxxxx
    • supporter
    • 1 kudos
    why 2800 lines of code when a simple file copy is less than 10 lines?
    1. aiqa
      aiqa
      • premium
      • 24 kudos
      Mostly the included gdi+ library to make screenshots. My own code is about 100 lines for convenience stuff like limiting the number of backup folders.
    2. antroxxxx
      antroxxxx
      • supporter
      • 1 kudos
      you can make screenshots much easier by using "https://www.irfanview.com/".
      free tool -> install -> next -> next -> next -> finish and done.
      then you can simply do the following:

      _FILEPATH_SCREENSHOTS := "X:\__windows\Pictures\Screenshots"
      fd := _FILEPATH_SCREENSHOTS
      status  := Format("{1:02u}_{2:02u}_{3:02u}", A_Hour, A_Min, A_Sec)
      runwait,"%a_programfiles%\IrfanView\i_view64.exe" "/capture=0 /convert=%fd%\%status%__REPAIR.bmp"

      outputname is then : 02_09_53__REPAIR.bmp
    3. aiqa
      aiqa
      • premium
      • 24 kudos
      I would like to avoid such requirements. The gdi+ library works fine.
    4. AzzFat
      AzzFat
      • member
      • 1 kudos
      is there an AHK script that copies and pastes a whole folder? i have one ive been using for years for one save file at a time. i feel more comfortable backing up the whole folder on this game.
    5. aiqa
      aiqa
      • premium
      • 24 kudos
      That is pretty much with this script does. And the latest version can be changed easily for use in other games.
    6. jbara77
      jbara77
      • supporter
      • 0 kudos
      I dont know how to use autohotkey 

      please can you provide video ?
    7. AzzFat
      AzzFat
      • member
      • 1 kudos
      sorry late "reply". i left out the part where i was wondering about a manual AHK folder(or multiple files) copy/paste with only a few lines. the one ive been using is only like 10 lines to copy a file with whatever key press, automatically pastes it in a backup folder. and another key press to paste the last copy back in game save folder.
      i opened your backup.ahk and its huge. i imagine a lot of that is for autosave backups?
      just a simple f5 save folder(or set of files) and f8 paste folder(or set of files). not only to have a small script, but also so i can understand it better. im not very skilled in script reading/writing.
      do you use paste bin? or maybe tell me what to delete/hide from yours. maybe i could paste mine. its kind of a mess since i been adjusting it for decades :D
      xo
    8. aiqa
      aiqa
      • premium
      • 24 kudos
      In the conversation thread you replied to. My very first post was:
      "Mostly the included gdi+ library to make screenshots. My own code is about 100 lines for convenience stuff like limiting the number of backup folders."

      If you scroll down the file in a text editor, very soon you'll encounter a bunch of information about the gdi+ library. Everything under that point is that library, and that is all used to make screenshots without requiring other programs to be installed. Everything above that is fairly simple. And I did try to give the functions descriptive names.

      Also, I am not quite sure what your exact usecase is. The intended configuration is all at the top:
      CheckInterval := 1000
      Time in milliseconds the script checks for updates to the monitored files.

      BackupFolder := "backup"
      What is the folder name the files get copied to.

      MaxBackups := 100
      Number of backups, oldest get deleted automatically.

      Screenshot := 1
      Add a screenshot to the backups, 1 for yes, 0 for no.

      FilesToBackup := "*.*"
      What files should get monitored  and backed up. By default it's set to *.*, which means all files with an an file extention. If for example you only wacht to monitor and backup .txt while you repalce the *.* with *.txt

      ExcludeFilesFromCheck := ["backup.ahk", "data00-1.bin"]
      Files that are included in the backup, but you don't want to monitor for changes. In the case of Dragon Dogma 2, data00-1.bin is for the game settings. I wanted to include that in the backup, but not to create a new backup every time you change some graphic option or keybinding.

      ExcludeFilesFromCopy := ["backup.ahk"]
      Files that might be included on the "FilesToBackup", but you want to explicitly exclude from being copied to the backup.

      ScreenshotWindowName := "Dragon's Dogma 2"
      The window name used for creating a screenshot.

      What do you want to do that is missing? If it's backing up files inside subfolders, that is possible but will make the script a bit more complex, since you'd have to keep track of what files are in what folder and what you want to include in your backups. Like do you want to backup all files from all subfolders if any 1 file changes, or do you want to backup only the files from the same subfolder.
  2. jbara77
    jbara77
    • supporter
    • 0 kudos
    The script was not reloaded; the old version will remain in effect.

    It showed to me after I open the file with autohotkey 

    What I can do ??? @aiqa
    aiqa
     
    1. aiqa
      aiqa
      • premium
      • 24 kudos
      I've asked you before not to spam, this is the last time I am responding to a spammed question from you. Asking once is more than enough.

      It sounds like you ran the script as admin and then again as normal user. A normal user can't exit a program started by an admin, so it can't exit the already running script. You can exit the script manually and start it again, to get things working normally.
    2. jbara77
      jbara77
      • supporter
      • 0 kudos
      I am sorry . I did not mean to be rude . I have a problem in internet . Sorry I did not see that i ask 5 times and It is my first time I used comment in this site . 

      Following the problem . I run it again and showed me this message : Error at line 1 

      Can you help ? 
    3. aiqa
      aiqa
      • premium
      • 24 kudos
      The error message is more than just that. Tell me the full error.
    4. jbara77
      jbara77
      • supporter
      • 0 kudos
      Okay .. Thank you very much for help and again I am sorry . 

      First I downloaded the Auto then I copy the backup file that you made (backup.ahk-228-1-2-1711725380 )

      then I open the file (backup.ahk-228-1-2-1711725380 ) right click then choose open with autohotkey but it showing me this message :

      Error at line 1 
      line text :7z1/4 
      Error: the line does not contain a recognized action 
      The program will exist 

      And when i opened the file I saw an strange language like that : 

      7z¼¯' wGxُI      b       ي،†جلگجI] w®سâ!‌.ف.@f¸¯£‌9BوcB~;ُî‘ةشظد ره•:؛÷:_kçgOZ6,‹aâDهٌ¶ع‎~‹ھOحةغN­ظ—ٹWù­µaFْآµ{بHك‡ر)ڑ¨ہ‡…³+Gت|whiY%¯yسƒ_<ز#=يحôڑ{ع¦ك8Qhكر5çأ,**‰E ””’=Œ`ù—[ق؛حزّD5n™°)¤‰E¢غؤaر–‌ùj-ج¶»«LHچ<0کâب±ïH¥;¬ص&(ِ@­›´ffس'چ;‹ڈ)ب9¤ج‚ضNêT‰®ًَحن²2oëئ@ آc7گ/³q‍لU¸د¾‘|ُ¬k>‚ؤ”µ
      ;S’³Nٹ؟ظ]¹‹@½(: نةغH#¾…]ْ¦ü±îy¸‚س>چےژ?ْ‚ï‎َ¶“ءOPˆî¯َ,­.ü½دœء"S¾*Qش$7ن‚م—§س¦<اض×m^لœté_Va+0×50ج0ؤHN:چىقتô–‍چâôzَ3„™†2„‡َو‘™Ebs Io‚Zc6ى#ٌل‹]ٌHû'w³™I،ےaèةkFrء3؟»)9gàuةىزثّـ¢‹èy—I)“ُcŒظم ؛Uئ[ل.^V*m Œe…
      E·ه\ژ³6إ°êèfdأ-نگ²gfَھ-}]uBچM€@S&r=ï´ïغqw÷†è¼£0x=@ ض%<×»‹ـ¢غ¯ھ›Xxنض긶تت(،¤~®ث‘à;“>鋶کژ"
      b?œ‍ëه"b|…>»؟قl&ٍYµë ؤھخ»®®eےئ|»<مںP¯¨îY¹ع8چ‏¦َ}§|
      )_°;ىà¼J÷¾Oà+Q2§—جlc¦-جےہةٍ؛MM±¯N›…5خ*s؛Ko™[³®²ظ«ڑً$يَêŒھ÷
    5. aiqa
      aiqa
      • premium
      • 24 kudos
      So any file you download from this website is in a some sort of zip file. You need to extract that first to get the actual script. This script is in a 7zip archive called "backup.7z". If you use a recent Windows 11 version it can extract those by default, you can rightclick the backup.7z file and use "extract all...". If your version of Windows can't do that, you'll need a program like WinRAR or 7Zip.
    6. jbara77
      jbara77
      • supporter
      • 0 kudos
      Yes I extract It 

      But since I click open with autohotkey . It does not show me anything 

      What is the problem 
    7. aiqa
      aiqa
      • premium
      • 24 kudos
      You only get a green H icon in your system tray. If you see that, that means a script is running. If you don't get see that, no idea.
    8. jbara77
      jbara77
      • supporter
      • 0 kudos
      Ok I convert it into green icon But again i open it  but nothing  to view . Like an empty 
  3. jbara77
    jbara77
    • supporter
    • 0 kudos
    Error the file does not work 
  4. jbara77
    jbara77
    • supporter
    • 0 kudos
    The script was not reloaded; the old version will remain in effect.

    It showed to me after I open the file with autohotkey 

    What I can do ???
  5. garanipuna
    garanipuna
    • premium
    • 0 kudos
    Hi there, Im trying to clarify how this all work
    So I downloaded autohotkey program, then place the script in the save folder, and do I run it everytime before starting the game?
    Does it create a folder of backup saves?
    How do I use the backup saves?

    Sorry all the questions, i havent done this type of thing before :(
    1. aiqa
      aiqa
      • premium
      • 24 kudos
      You can run the script whenever. It monitors the save files and makes a backup when ever one is changed, so as long as the script is running when you save the game it's fine.

      The script creates a backup folder inside the folder with the save files, and creates subfolder named by date and time. Then it creates a screenshot of Dragon Dogma, and copies all the save files and the screenshot to the folder named by date and time.

      If you want to go back to an older save, you'll have to copy it back manually. The folder names and screenshots are hopefully enough to help you decide which save you want to return to.
    2. garanipuna
      garanipuna
      • premium
      • 0 kudos
      I see. Thanks for the clarification. 
    3. jbara77
      jbara77
      • supporter
      • 0 kudos
      I dont know how to use autohotkey 

      please can you provide video ?
    4. jbara77
      jbara77
      • supporter
      • 0 kudos
      I dont know how to use autohotkey 

      please can you provide video ?
    5. aiqa
      aiqa
      • premium
      • 24 kudos
      Don't spam please. Asking 5 times is rude and doesn't get you answers any faster. You can read the autohotkey documentation for an explanation how to run an autohotkey script: https://www.autohotkey.com/docs/v1/Program.htm#run
  6. QahnaarinDovahkiin
    QahnaarinDovahkiin
    • premium
    • 2 kudos
    This mod is a Must-Have!! Easy, straightforward.  So damn convenient!  Due to your mod, I was able to go back to a prior save right before some idiot named npcs decided to run headlong to a cyclops.  Didn't end well for them.......
    1. jbara77
      jbara77
      • supporter
      • 0 kudos
      I dont know how to use autohotkey 

      please can you provide video ?
  7. sparda10
    sparda10
    • supporter
    • 3 kudos
    How does it work?  Do I simply put it next to the saves and it will create a backup by itself every 1000 seconds?
    1. aiqa
      aiqa
      • premium
      • 24 kudos
      Install the "Autohotkey" program.
      Place the backup.ahk in the Dragon Dogma save folder.
      Double click it, you'll see a green H icon in your systemtray, that means the script is running.
      To exit the script rightclick that systemtray icon.
    2. sparda10
      sparda10
      • supporter
      • 3 kudos
      ok so there is an off site requirement then, I was asking because it is not noted on the requirements section, gonna check for this autohotkey program and see
    3. aiqa
      aiqa
      • premium
      • 24 kudos
      Good point, requirement added.
  8. Hbulczao
    Hbulczao
    • premium
    • 0 kudos
    is there a way to disable auto saving? so u can only save in camp fires/by sleeping?