Is it not possible to multiply floats? I have a 3D model archive that divides the number of 3D models, offset, size and every other important data by 256 for some reason. So to get the correct offset, I need to multiply by 256, but when I do that I dont even get close to the correct number as it is right now.
sir aluigi, %.14 and done? but all of numbers after dot is not 14 always, what about them? float is really matter for alot of things, like 3d objects, config files, fonts, and even more!
GHfrear, 256 or other numbers *256 or 1024 is just for more precisely
I think this has been asked before but is there any possibilities to run XMemCompress with quickbms compiled on mac? I have extraction tool which execute quickbms.exe to compress files and I can run it on terminal typing /Applications/CrossOver.app/Contents/SharedSupport/CrossOver/bin/wine --cx-app quickbms.exe when I set crossover wine bottle to default. That's enough for me but it's easier and quickbms launch faster if it's possible to run XMemCompress native on mac.
@Delutto I need the source code of the compression algorithm for adding it. LZ77 and LZ78 have thousands of different implementations, quickbms already support the most used ones.
Quickbms 0.10.1 will have python support Just finished implementing it (obviously without python27.dll import, so no need of Python installed if not used) and it works great:
ASSETS.GFC ASSETS.GOB From what I have found so far, the GFC file is the "map" of where the files are in the GOB files. Within the GOB files, there are "fragments" of data that start with STBL and end with ENBL (over_the_hedge.bms) is not valid for reimportation (because it contains the instructions "* log NAME" with MEMORY_FILEs) ... it does not generate any change when reimporting the modified data to the gfc / gob files .. Someone to help me .. Here I leave a picture I mark (2092 files found in 36 seconds) successful extraction: https://www.mediafire.com/view/sxs70pv2djn49pq Here I leave you a successful reimportation photo but it really does not generate any change to the game it marks me (0 files reimported in 45 seconds) I believe that it does not reimport successfully by name (MEMORY_FILEs) (Name): https://www.mediafire.com/view/uwruc9798crql8c
aluigi wrote:Quickbms 0.10.1 will have python support Just finished implementing it (obviously without python27.dll import, so no need of Python installed if not used) and it works great:
set MEMORY_FILE string " def multiply(a,b): print \"Will compute\", a, \"times\", b c = 0 for i in range(0, a): c = c + b return c "
calldll MEMORY_FILE "multiply" "python" RET 123 456 print "RESULT %RET%"
CONGRATULATION ! and thanks a lot ! I have little knowledge about python but I know many huge text processing offered in python ... I am good in regular expression pattern matching too If you please make an introduction on advantages of supported python in quickbms and highlight them by yourself , we can pay attention ? also whether as in your example Mathematical functions improvement expected too ? your sincerely F.S
aluigi wrote:It's just a way for easily supporting another programming language and python can be used for many things that are currently impossible in quickbms
NIce what about .NET core ?? Most common this days...
The QuickBMS variables are visible in both python and lua, not sure if this is good or not.
Obviously this is just the first implementation and it will probably need improvements in the future. For sure there is some memory leak because memory (Python) and stack (Lua) aren't clear for some reasons: - Py_DECREF is a complex macro and not a function to call, I had to use python without any link to the dll - returned pointer and strings in Lua may be removed by GC if we use lua_pop
Would it be possible to setup a variable in python like a dict {} and use that in quickbms. or would I need to handle everything in the python side. It would be nice to have a function that creates an empty dictionary and be able to access and add to it in quickbms. It will be great having python in quickbms. Its hard to believe how useful quickbms has become.