Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] This is almost certainly a stupid question, but I'm a bit unfamiliar with hex editing. How do you gu

[DiscordArchive] This is almost certainly a stupid question, but I'm a bit unfamiliar with hex editing. How do you gu

[DiscordArchive] This is almost certainly a stupid question, but I'm a bit unfamiliar with hex editing. How do you gu

rektbyfaith
Administrator
0
08-02-2022, 09:11 PM
#1
Archived author: Lear • Posted: 2022-08-02T21:11:15.308000+00:00
Original source

This is almost certainly a stupid question, but I'm a bit unfamiliar with hex editing. How do you guys go about properly modifying files? For example, if you have a texture in an M2 that points to creature/wolfAlpha.blp and change it to creature/wolf.blp, then the model no longer loads, I assume because the number of bytes in the file has changed. What's the proper way to do this, then?
rektbyfaith
08-02-2022, 09:11 PM #1

Archived author: Lear • Posted: 2022-08-02T21:11:15.308000+00:00
Original source

This is almost certainly a stupid question, but I'm a bit unfamiliar with hex editing. How do you guys go about properly modifying files? For example, if you have a texture in an M2 that points to creature/wolfAlpha.blp and change it to creature/wolf.blp, then the model no longer loads, I assume because the number of bytes in the file has changed. What's the proper way to do this, then?

rektbyfaith
Administrator
0
08-02-2022, 09:12 PM
#2
Archived author: <o> • Posted: 2022-08-02T21:12:25.437000+00:00
Original source

if the new string is shorter you typically don't need to do anything, just change the length variable if there is one (some fields have it and others don't), and if the old one wass null-terminated you also null-terminate yours
rektbyfaith
08-02-2022, 09:12 PM #2

Archived author: <o> • Posted: 2022-08-02T21:12:25.437000+00:00
Original source

if the new string is shorter you typically don't need to do anything, just change the length variable if there is one (some fields have it and others don't), and if the old one wass null-terminated you also null-terminate yours

rektbyfaith
Administrator
0
08-02-2022, 09:12 PM
#3
Archived author: <o> • Posted: 2022-08-02T21:12:51.220000+00:00
Original source

when hex-editing, you always edit by replace, **NEVER** by insert.
rektbyfaith
08-02-2022, 09:12 PM #3

Archived author: <o> • Posted: 2022-08-02T21:12:51.220000+00:00
Original source

when hex-editing, you always edit by replace, **NEVER** by insert.

rektbyfaith
Administrator
0
08-02-2022, 09:13 PM
#4
Archived author: <o> • Posted: 2022-08-02T21:13:24.812000+00:00
Original source

if you get a new string or chunk that needs to be larger than the old one, typically what people do is just re-point the reference and place the new data at the end of the file
rektbyfaith
08-02-2022, 09:13 PM #4

Archived author: <o> • Posted: 2022-08-02T21:13:24.812000+00:00
Original source

if you get a new string or chunk that needs to be larger than the old one, typically what people do is just re-point the reference and place the new data at the end of the file

rektbyfaith
Administrator
0
08-02-2022, 09:15 PM
#5
Archived author: Titi • Posted: 2022-08-02T21:15:04.334000+00:00
Original source

if it's shorter then you can simply change the string length, if ti's longer the simple solution would be changing the offset to the end of the file and moving the string there. otherwise you'd have to fix the offsets of all chunks
rektbyfaith
08-02-2022, 09:15 PM #5

Archived author: Titi • Posted: 2022-08-02T21:15:04.334000+00:00
Original source

if it's shorter then you can simply change the string length, if ti's longer the simple solution would be changing the offset to the end of the file and moving the string there. otherwise you'd have to fix the offsets of all chunks

rektbyfaith
Administrator
0
08-02-2022, 09:16 PM
#6
Archived author: Lear • Posted: 2022-08-02T21:16:21.966000+00:00
Original source

Oh cool, that's actually pretty straight-forward then, I'll try messing with it. Thanks, you guys!
rektbyfaith
08-02-2022, 09:16 PM #6

Archived author: Lear • Posted: 2022-08-02T21:16:21.966000+00:00
Original source

Oh cool, that's actually pretty straight-forward then, I'll try messing with it. Thanks, you guys!

rektbyfaith
Administrator
0
08-02-2022, 09:19 PM
#7
Archived author: Lear • Posted: 2022-08-02T21:19:35.342000+00:00
Original source

Gotta say I appreciate how helpful everybody in this server is, private server-stuff has changed a lot. I remember it being a lot harder to come by helpful info for a lot of stuff even just a few years ago, thanks again.
rektbyfaith
08-02-2022, 09:19 PM #7

Archived author: Lear • Posted: 2022-08-02T21:19:35.342000+00:00
Original source

Gotta say I appreciate how helpful everybody in this server is, private server-stuff has changed a lot. I remember it being a lot harder to come by helpful info for a lot of stuff even just a few years ago, thanks again.

rektbyfaith
Administrator
0
08-02-2022, 09:40 PM
#8
Archived author: tb • Posted: 2022-08-02T21:40:16.458000+00:00
Original source

Probably be better at the bottom but I was just quickly writing a concept up for it
rektbyfaith
08-02-2022, 09:40 PM #8

Archived author: tb • Posted: 2022-08-02T21:40:16.458000+00:00
Original source

Probably be better at the bottom but I was just quickly writing a concept up for it

rektbyfaith
Administrator
0
08-02-2022, 11:09 PM
#9
Archived author: Cyn • Posted: 2022-08-02T23:09:46.007000+00:00
Original source

Thankful to have ppl like <@213383518842126336> and the developers around for sure

Their value is non-numerical and indescribable
rektbyfaith
08-02-2022, 11:09 PM #9

Archived author: Cyn • Posted: 2022-08-02T23:09:46.007000+00:00
Original source

Thankful to have ppl like <@213383518842126336> and the developers around for sure

Their value is non-numerical and indescribable

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)