Jump to content
The Dark Mod Forums

taaaki

Root
  • Posts

    1020
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by taaaki

  1. Another way to do the checks would be to actually have the updater client unpack each file in a Zip/PK4 and check if: a.) it is possible to even open the archive, b.) it is possible to extract the file and c.) the extracted CRC matches the CRC value stored in the archive (or do a running sum of extracted CRCs). The Python libraries allow you to extract in chunks to memory so temp files/dir hassles shouldn't be a problem. To some extent the updater already does this after it downloads a Zip file. But doing the full check for all files at the start of the update would probably take a very long time, so maybe make this an option like --deep-check. The main reason for going Python in my mind would be for the GUI stuff. Serps and I seem to have found a reasonably portable gui library for Python so I'm going to start experimenting with that soon.
  2. I've been working on a Python replacement for tdm_update. At the moment it is more or less working the same as the Perl version except for differences with libraries such as the Python zipfile module. All I really need to do is sanitise zip member paths (the Python zipfile module doesn't really make this easy) and test the Windows batch file for restarting the updater. Then I need to test packaging with py2exe for Windows and Python Freeze for Loonix. If it all works out properly (ie. it behaves the same as the current updater in all circumstances), I can look at revamping the file checksum system to use SHA-1 instead. And maybe even look at throwing a GUI on top and supporting multiple download threads (if the mirror hosts have no objections). Edit: the Python rewrite was suggested to me by Serpentine because some people were having issues with Perl libraries on certain Linux distros. I'm not sure if those issues were sorted out using other means or if it really was Perl+distro causing the problem. Also, I needed a side project to keep me coding.
  3. I've found that on certain maps (can't recall which), when you start the mission, there is a smallish number "2" where your currently selected weapon would be. This appears to increase the lightgem brightness until you switch to the blackjack or "put the current weapon away" (even though you don't have one selected). So this might be what you are referring to in 1.
  4. has now set their status

  5. Works properly now. You can delete takinator now. Thanks for all the help
×
×
  • Create New...