hi.. i have a question about this hex editor, but before that, i am a newbie on hexing, but i am currently developing and porting an old pc mmorpg to mobile.. i wanted to know if there's a way to use your editor and create a script or template to extract obj or mesh like how hex2obj works, but something automated, because i have like hundreds of them to extract, is it possible though ? i have a old python script that only works on blender 2.46.. here's a link of a YouTube video of the game i am currently working on..
#Script: Object Extraction from a Binary File
1 messages Β· Page 1 of 1 (latest)
Hex2obj seems to be an app that can read vertices and indices data from a binary file and write text based obj format. While ImHex is not designed for this type of conversion you may find its 3d visualizer to be a better alternative. It allows you to display the mesh in 3d and rotate it at will. Like in hex2obj you need to provide the vertices and and indices locations in the binary file. For an example on how this may be done look at the stl pattern in the patterns folder.
I know it wont display the models or anything but what i am try to know is if it is possible on ImHex to just get the datas and (since data structure are similar), create a script just to extract those values into a hex or text file.. Because i will be genererating the obj on unity.
if you know an automatic way to locate the data then you can use the pattern language to implement it. The language allows you to write files and can also be used in a command line interface so you can process all the files you want using a batch script.
thanks.. ill try this..
Do you have any sample patterns ?
Here is the documentation for the file operations https://docs.werwolv.net/pattern-language/libraries/std/file.pat
To get the name of the input file use
#include "hex/provider.pat"
str fileName = hex::prv::get_information("file_name");
std::print(fileName);
To help you locate the data you want to write you need to provide more details that explain how you would find the data if you had to do each file manually so we can translate the operations into pattern language that will perform the same operations automatically.
Here is my current status. I still lack
@solid star i can send you the python script if you want.
And i can provide you also the files that needs to be read.
so you opted to not use imhex and wrote a python script to import models to unity instead? It looks good. I have used unity a bit but only briefly and a while back but I'll try to answer any questionyoumay have.
i still need to use imhex tho to find the pattern.. because i integrate the pattern to unity
So you are creating a new file and writing to it the pattern you find using imhex and then you open the new file in unity to access the pattern data?