-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
--You need Python (I used the most recent version as well as Anaconda) --You also need Python 2.6 --You need Zdrop or to know how to decompress a Zlib chunk (https://forums.majorgeeks.com/attachments/zdrop-zip.214531/) --You need HxD (https://mh-nexus.de/en/hxd/) --You need Wargame Modding Suite (https://github.com/RugnirViking/moddingSuite/releases) --Notepad++ is optional (https://notepad-plus-plus.org/) export .xyz file from modding suite open with hxd make a copy somewhere other than where your zdrop.exe is open the .xyz file search for hex value: "78DA", this is the start of the zlib chunk search for hex value: "FFFF", this is the end of the zlib chunk delete any hex values before "78DA" or after "FFFF" (make sure you search everything for these). If there is no FFFF, you don't need to delete anything from the end save as a ".zlib" file drag it over zdrop.exe (before doing this you need to move any copies of the original .xyz file out of the same folder or you need to rename them because zdrop can't overwrite but will make a new file without the ".zlib") New file is created without the ".zlib" (it is just an unzlibbed .xyz file) open this new file in hxd next instructions from Enohka (https://github.com/enohka/moddingSuite/wiki/*.xyz-files) "after unzlibing the block you get raw python bytecode without any magic, thus undecompilable. I found out that its in fact Python 2.6. So if you insert 8 bytes in front of your file: D1 F2 0D 0A and 4 random bytes for the timestamp, for instance F1 5A 0C 4D (18th December 2012, 06:55:45). You can simply uncompyle it with any python decompiler supporting 2.6!" Back to me. No python familarity but managed to do it after much trial and error: So what he is saying is you need to add 8 bytes to the start of your file, let's use his: D1F20D0AF15A0C4D Now save the xyz file as a ".pyc" file Now using Python 3.5, via Anaconda. I ran: pip install uncompyle6 # I used uncompyle6 because it is a python package call uncompyle6 cd /d D: # navigate to the d drive where my unzlibbed xyz file is uncompyle6 filename.pyc >out.py #decompiles "filename.pyc" and puts it into a .py file You now have the xyz file decompiled into python. I opened it with Notepad++. Interesting stuff in here. Such as the units that are hidden from the in the game building menu, the match timer, nationalities of the AI and the player, etc.) You can also find options to build stuff without an hq, disable bazookas, disable capture, objectives etc. Part 2: And now we come to recompiling... Edit the code, save as .py Download, install and run python 2.6 Run the following commands but basically use py_compile to recompile the python .py file into compiled bytecode (.pyc file) Running python 2.6 I used: Import py_compile Import os os.chdir("D:") print("Current Working Directory " , os.getcwd()) py_compile.compile("YOURPYFILENAME.py") Once the last line is run, a .pyc file is generated in the D: directory open up this .pyc file in hxd remove the first 8 "magic" bytes that we added earlier At this point, save the file as an .xyz file now drag the new .xyz file over zdrop.exe you should now have an xyz.zlib file that is zlibbed now open up the ORIGINAL .xyz file for the python code and copy all the bytes before the 78DA from the oginal bytecode and paste it at the start of the new xyz.zlib file you created also make note of the offset of the original .xyz file the last step is to navigate to the end of your xyz.zlib file and add 00s until the offset of your xyz.zlib and the original .xyz file are exactly the same the effect of the past 3 steps is rebuilding the container file for the python code finally save the file as a new .xyz file and replace it in RUSE using the wargame modding suite Run game and check to see if it worked
--You need Python (I used the most recent version as well as Anaconda) --You also need Python 2.6 --You need Zdrop or to know how to decompress a Zlib chunk (https://forums.majorgeeks.com/attachments/zdrop-zip.214531/) --You need HxD (https://mh-nexus.de/en/hxd/) --You need Wargame Modding Suite (https://github.com/RugnirViking/moddingSuite/releases) --Notepad++ is optional (https://notepad-plus-plus.org/) export .xyz file from modding suite open with hxd make a copy somewhere other than where your zdrop.exe is open the .xyz file search for hex value: "78DA", this is the start of the zlib chunk search for hex value: "FFFF", this is the end of the zlib chunk delete any hex values before "78DA" or after "FFFF" (make sure you search everything for these). If there is no FFFF, you don't need to delete anything from the end save as a ".zlib" file drag it over zdrop.exe (before doing this you need to move any copies of the original .xyz file out of the same folder or you need to rename them because zdrop can't overwrite but will make a new file without the ".zlib") New file is created without the ".zlib" (it is just an unzlibbed .xyz file) open this new file in hxd next instructions from Enohka (https://github.com/enohka/moddingSuite/wiki/*.xyz-files) "after unzlibing the block you get raw python bytecode without any magic, thus undecompilable. I found out that its in fact Python 2.6. So if you insert 8 bytes in front of your file: D1 F2 0D 0A and 4 random bytes for the timestamp, for instance F1 5A 0C 4D (18th December 2012, 06:55:45). You can simply uncompyle it with any python decompiler supporting 2.6!" Back to me. No python familarity but managed to do it after much trial and error: So what he is saying is you need to add 8 bytes to the start of your file, let's use his: D1F20D0AF15A0C4D Now save the xyz file as a ".pyc" file Now using Python 3.5, via Anaconda. I ran: pip install uncompyle6 # I used uncompyle6 because it is a python package call uncompyle6 cd /d D: # navigate to the d drive where my unzlibbed xyz file is uncompyle6 filename.pyc >out.py #decompiles "filename.pyc" and puts it into a .py file You now have the xyz file decompiled into python. I opened it with Notepad++. Interesting stuff in here. Such as the units that are hidden from the in the game building menu, the match timer, nationalities of the AI and the player, etc.) You can also find options to build stuff without an hq, disable bazookas, disable capture, objectives etc. Part 2: And now we come to recompiling... Edit the code, save as .py Download, install and run python 2.6 Run the following commands but basically use py_compile to recompile the python .py file into compiled bytecode (.pyc file) Running python 2.6 I used: Import py_compile Import os os.chdir("D:") print("Current Working Directory " , os.getcwd()) py_compile.compile("YOURPYFILENAME.py") Once the last line is run, a .pyc file is generated in the D: directory open up this .pyc file in hxd remove the first 8 "magic" bytes that we added earlier At this point, save the file as an .xyz file now drag the new .xyz file over zdrop.exe you should now have an xyz.zlib file that is zlibbed now open up the ORIGINAL .xyz file for the python code and copy all the bytes before the 78DA from the oginal bytecode and paste it at the start of the new xyz.zlib file you created also make note of the offset of the original .xyz file the last step is to navigate to the end of your xyz.zlib file and add 00s until the offset of your xyz.zlib and the original .xyz file are exactly the same the effect of the past 3 steps is rebuilding the container file for the python code finally save the file as a new .xyz file and replace it in RUSE using the wargame modding suite Run game and check to see if it worked
--You need Python (I used the most recent version as well as Anaconda) --You also need Python 2.6 --You need Zdrop or to know how to decompress a Zlib chunk (https://forums.majorgeeks.com/attachments/zdrop-zip.214531/) --You need HxD (https://mh-nexus.de/en/hxd/) --You need Wargame Modding Suite (https://github.com/RugnirViking/moddingSuite/releases) --Notepad++ is optional (https://notepad-plus-plus.org/) export .xyz file from modding suite open with hxd make a copy somewhere other than where your zdrop.exe is open the .xyz file search for hex value: "78DA", this is the start of the zlib chunk search for hex value: "FFFF", this is the end of the zlib chunk delete any hex values before "78DA" or after "FFFF" (make sure you search everything for these). If there is no FFFF, you don't need to delete anything from the end save as a ".zlib" file drag it over zdrop.exe (before doing this you need to move any copies of the original .xyz file out of the same folder or you need to rename them because zdrop can't overwrite but will make a new file without the ".zlib") New file is created without the ".zlib" (it is just an unzlibbed .xyz file) open this new file in hxd next instructions from Enohka (https://github.com/enohka/moddingSuite/wiki/*.xyz-files) "after unzlibing the block you get raw python bytecode without any magic, thus undecompilable. I found out that its in fact Python 2.6. So if you insert 8 bytes in front of your file: D1 F2 0D 0A and 4 random bytes for the timestamp, for instance F1 5A 0C 4D (18th December 2012, 06:55:45). You can simply uncompyle it with any python decompiler supporting 2.6!" Back to me. No python familarity but managed to do it after much trial and error: So what he is saying is you need to add 8 bytes to the start of your file, let's use his: D1F20D0AF15A0C4D Now save the xyz file as a ".pyc" file Now using Python 3.5, via Anaconda. I ran: pip install uncompyle6 # I used uncompyle6 because it is a python package call uncompyle6 cd /d D: # navigate to the d drive where my unzlibbed xyz file is uncompyle6 filename.pyc >out.py #decompiles "filename.pyc" and puts it into a .py file You now have the xyz file decompiled into python. I opened it with Notepad++. Interesting stuff in here. Such as the units that are hidden from the in the game building menu, the match timer, nationalities of the AI and the player, etc.) You can also find options to build stuff without an hq, disable bazookas, disable capture, objectives etc. Part 2: And now we come to recompiling... Edit the code, save as .py Download, install and run python 2.6 Run the following commands but basically use py_compile to recompile the python .py file into compiled bytecode (.pyc file) Running python 2.6 I used: Import py_compile Import os os.chdir("D:") print("Current Working Directory " , os.getcwd()) py_compile.compile("YOURPYFILENAME.py") Once the last line is run, a .pyc file is generated in the D: directory open up this .pyc file in hxd remove the first 8 "magic" bytes that we added earlier At this point, save the file as an .xyz file now drag the new .xyz file over zdrop.exe you should now have an xyz.zlib file that is zlibbed now open up the ORIGINAL .xyz file for the python code and copy all the bytes before the 78DA from the oginal bytecode and paste it at the start of the new xyz.zlib file you created also make note of the offset of the original .xyz file the last step is to navigate to the end of your xyz.zlib file and add 00s until the offset of your xyz.zlib and the original .xyz file are exactly the same the effect of the past 3 steps is rebuilding the container file for the python code finally save the file as a new .xyz file and replace it in RUSE using the wargame modding suite Run game and check to see if it worked