Giter Site home page Giter Site logo

gedosatotool's People

Contributors

peterth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gedosatotool's Issues

Smarter backup procedure

Its kinda brute and ugly way how Updater backups entire folder every time even if no changes was made, a lot of trash backup up for no reason, and some important files like shaders that main people need to setup again never got backed up.

I suggest to change updated behavior to this:

  1. Unpack updated files to temp folder 1st \ Alternative - would be to do step 2 and 4 without unpacking files to folder, working with archive like with virtual file system
  2. Enum and compare list of every file and folder in temp and main folder
  3. copy missing files and folders from temp to main
  4. calculate hashes of existing files of same names in temp and main folder
  5. backup only main folder files that has different hashes (not just configs, anything, including shaders and dlls and exes, that might be usefull in case if new version will break something that worked before) comparing to files from temp folder
  6. override only files that has different hashes, matching hashes should be left alone
  7. delete temp folder \ not necessary for alternative method

if it is possible, even better way would be enum list of files and hashes of updated files from server, compare with local hashes and download only missing and mismatching updated files, and backup only mismatching old files.

What you think about this idea?

GeDoSaToUpdater.exe error

Hello,
I have an error when I run GeDoSaTo Updater.exe ==>
************** Debug JIT **************
To enable just-in-time (JIT) debugging, the configuration file for this
application or this computer (machine.config) should have value
jitDebugging defined in the system.windows.forms section.
The application must also be compiled with debugging
activated.

For example :

When just-in-time debugging is enabled, unhandled exceptions
will be sent to the JIT debugger registered on the computer
rather than being handled by this dialog

here is the complete detail of this error==>
"See the end of this message for more details on the debug call
just-in-time (JIT) instead of this dialog box.

************** Exception text **************
System.IO.IOException: Attempt to move the file pointer before the beginning of the file.

to System.IO .__ Error.WinIOError (Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.SeekCore (Int64 offset, SeekOrigin origin)
at System.IO.FileStream.Seek (Int64 offset, SeekOrigin origin)
at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory ()

************** Assemblies loaded **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2633.0 built by: NET471REL1LAST_C
CodeBase: file: /// C: /Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

GeDoSaToUpdater
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file: /// C: /GeDoSaTo/GeDoSaToUpdater.exe

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file: /// C: /WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file: /// C: /WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file: /// C: /WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file: /// C: /WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2633.0 built by: NET471REL1LAST_C
CodeBase: file: /// C: /WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2612.0 built by: NET471REL1LAST_B
CodeBase: file: /// C: /WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.Resources
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file: /// C: /WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.resources/v4.0_4.0.0.0_en_b77a5c561934e089/System.resources.dll

mscorlib.resources
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file: /// C: /WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_en_b77a5c561934e089/mscorlib.resources.dll

System.IO.Compression.FileSystem
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0
CodeBase: file: /// C: /WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.IO.Compression.FileSystem/v4.0_4.0.0.0__b77a5c561934e089/System.IO.Compression.FileSystem.dll

System.IO.Compression
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0
CodeBase: file: /// C: /WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.IO.Compression/v4.0_4.0.0.0__b77a5c561934e089/System.IO.Compression.dll

System.IO.Compression.resources
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0
CodeBase: file: /// C: /WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.IO.Compression.resources/v4.0_4.0.0.0_en_b77a5c561934e089/System.IO.Compression.resources.dll

System.Windows.Forms.resources
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1"

Thanks for your help

AutoStart with Windows Task Scheduler Entry

Like other programs that need admin priviledges to auto start, program should add a task scheduler entry with highest priviledges so that the option can actually work. Currently it does not without creating the entry yourself on an admin account.

Error with installer

I run into a similar problem to PeterTh/gedosato#172 when I moved the "C:\GeDoSaTo" folder during installation (I don't like having stuff in C:).
It seems like it's trying to remove the folder that it created and crashes if it's not there.

Edit history is stored across settings-files

If you change what file to edit in the settings-editor then you can immediately press CTRL+Z and the contents of the previous file will appear. If you save at this point then the file you changed to is overwritten.

A possible fix would be to empty the edit history when swapping file.

Also, when pressing the 'u'-button it will create a new entry in the list regardless of whether or not the file already exists.

A solution would be to only add it to the list if the file doesn't exist (in which case chances are that it's already in the list.) Alternatively compare entries and see if it's already present.

Crash on starting installer on Win7 without a C Drive

Reporting this again as requested here: PeterTh/gedosato#172

There is a crash in the installer when starting it on Windows 7 if there is not a C:\ drive on the machine. This happens immediately after the information message prompting the user to select a permanent installation path. The current work around is to add a C:\ drive to the machine (inserting a USB flash device, for example) allowing the user to continue to choose a installation path on another drive.

Error message:

Could not find a part of the path 'C:/GeDoSaTo'

Crash details:

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\GeDoSaTo'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
   at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
   at System.IO.Directory.CreateDirectory(String path)
   at GeDoSaToUpdater.MainForm.MainForm_Load(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18331 built by: FX45GDRSTAGE
    CodeBase: file:///D:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
GeDoSaToUpdater
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///D:/Users/User/Downloads/GeDoSaToUpdater.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18331 built by: FX45GDRSTAGE
    CodeBase: file:///D:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18331 built by: FX45GDRSTAGE
    CodeBase: file:///D:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18331 built by: FX45GDRSTAGE
    CodeBase: file:///D:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

GeDoSaTo crashes when entering a non existent profile in filter

DESCRIPTION
When GeDoSaTo can't find a profile with the string entered in the text editor filter, the program crashes.

v0.14.1501

STEPS
Open GeDoSaTo
Click Edit settings
Click on filter
Enter a string that does not match any profiles

EXPECTED
Message that says no profile found with the filter

ACTUAL
GeDoSaTo crashes

************** Exception Text **************
System.ArgumentOutOfRangeException: InvalidArgument=Value of '0' is not valid for 'SelectedIndex'.
Parameter name: SelectedIndex
at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
at GeDoSaToTool.TextForm.filterTextBox_TextChanged(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnTextChanged(EventArgs e)
at System.Windows.Forms.TextBoxBase.OnTextChanged(EventArgs e)
at System.Windows.Forms.TextBoxBase.WmReflectCommand(Message& m)
at System.Windows.Forms.TextBoxBase.WndProc(Message& m)
at System.Windows.Forms.TextBox.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
gedosato-crash-filter01

Move config backup into single Backups folder

Not a big issue but easy to fix.
Since Gedosato backing up configs with every update its folder became trashed a lot with configs
i suggest to move existing configs by pattern config_backup* and new configs to folder structured like that
Backups\YY_MM_DD_HH_Mm_SS\Config

and in case if shader backups will be implemented Assets folder should go to Backups\YY_MM_DD_HH_Mm_SS

Minimize on startup

Needs a start minimized option. Autostart with windows still ain't working so forcing it to autostart through other means makes the program start maximized. Making a windows shortcut to force it to start minimized doesn't work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.