alphazolam / RE_RSZ

010 Editor Binary Template for editing RE Engine game files
MIT License
84 stars 26 forks source link

How to change the resource path length using the current template #21

Open alin00zz opened 1 month ago

alin00zz commented 1 month ago

Hello, seniors. I am trying to change the uint_size using the current template to accommodate a longer resource path but I am failing. I guess it should be that there is no synchronised change on the pointers or offsets, but I don't have much knowledge in this area, can you tell me how to implement it.

dtlnor commented 1 month ago

Hello, seniors.

I am trying to change the uint_size using the current template to accommodate a longer resource path but I am failing. I guess it should be that there is no synchronised change on the pointers or offsets, but I don't have much knowledge in this area, can you tell me how to implement it.

modify the struct, not the inner char array. the template should handle the offset for you.

alin00zz commented 1 month ago

I'm not quite sure how to modify the structure I've tried to modify the offsets myself by adding as many characters as I can to the next offset. Apparently this works in most places. There's only one thing that doesn't work. The struct ResourceInfos part.

dtlnor commented 1 month ago

I'm not quite sure how to modify the structure I've tried to modify the offsets myself by adding as many characters as I can to the next offset. Apparently this works in most places. There's only one thing that doesn't work. The struct ResourceInfos part.

ummmm, maybe using ResourceInfo Writer might be easier to get it to work. Or you can join our Discord to see if anyone has a workaround.

alin00zz commented 1 month ago

I'm not quite sure how to modify the structure I've tried to modify the offsets myself by adding as many characters as I can to the next offset. Apparently this works in most places. There's only one thing that doesn't work. The struct ResourceInfos part.

ummmm, maybe using ResourceInfo Writer might be easier to get it to work. Or you can join our Discord to see if anyone has a workaround.

Thanks a lot i tried to change the offset by myself and it finally done