[DiscordArchive] I'm modifying a mining node .m2 in 010 and I want to change the texture that is hardcoded to somethi
[DiscordArchive] I'm modifying a mining node .m2 in 010 and I want to change the texture that is hardcoded to somethi
![[Image: image.png?ex=690c360d&is=690ae48d&hm=9b4...59424684e&]](https://cdn.discordapp.com/attachments/415944535718494208/1216985483817648128/image.png?ex=690c360d&is=690ae48d&hm=9b47474b31b8ca5eaa8b43c6d0d22f6ad8c44d766e13883e3950ae959424684e&)
Archived author: ReynoldsCahoon • Posted: 2024-03-12T05:45:49.878000+00:00
Original source
So placing these two null bytes after the name should make the rest of the string ignored/escaped?
![[Image: image.png?ex=690c360d&is=690ae48d&hm=9b4...59424684e&]](https://cdn.discordapp.com/attachments/415944535718494208/1216985483817648128/image.png?ex=690c360d&is=690ae48d&hm=9b47474b31b8ca5eaa8b43c6d0d22f6ad8c44d766e13883e3950ae959424684e&)
Archived author: A2 • Posted: 2024-03-12T05:46:04.594000+00:00
Original source
Basicaly
Archived author: ReynoldsCahoon • Posted: 2024-03-12T05:46:14.338000+00:00
Original source
Will give it a shot. Thank you.
Archived author: A2 • Posted: 2024-03-12T05:46:46.555000+00:00
Original source
If your texture lenght is 50 chars it will slap those 50 chars into some char array that it reads until the null byte is hit then it escapes the reading loop
Archived author: ReynoldsCahoon • Posted: 2024-03-12T05:47:00.637000+00:00
Original source
That makes sense.
Archived author: A2 • Posted: 2024-03-12T05:47:22.566000+00:00
Original source
Lowering the string size if it contains the empty spaces that is unused after the null byte would be wise to optimze model
Archived author: ReynoldsCahoon • Posted: 2024-03-12T05:48:06.219000+00:00
Original source
So modify the `FileName_length` value to match the new string length? Or are you meaning something else?
Archived author: A2 • Posted: 2024-03-12T05:48:12.953000+00:00
Original source
Yes
Archived author: ReynoldsCahoon • Posted: 2024-03-12T06:13:39.555000+00:00
Original source
Would it hurt anything if I did more than 2 null entries, and just nulled out the remainder of the string array?