Newbie Spellweaver
- Joined
- Jun 17, 2009
- Messages
- 20
- Reaction score
- 0
What is the file format for the PT smd file ?
I mean, what are it
I mean, what are it
Last edited by a moderator:
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!Afraid I can't help with the token, but you may have noticed their is a TGA de-obfuscator around here somewhere. (check RFT)
I've never found source for it, and attempts to understand it's workings have failed me. It seems to do more than the BMP patcher by Oscuro (IMS), but I think that what it does is more than needs to be. It reads the obscured TGA into a Picture control and writes that out as a 32-bit TGA. I personally much prefer the command line interface of the BMP patcher, as this can be scripted much easier.
Of course, I'm sure you know that game.exe will read either obfuscated, or plain TGAs and BMPs. So from where you are, I might suggest you simply use the tools that are available to make your textures "normal" and concentrate on the binary SMD.
I only mention this because I fear you could easily get side-tracked, when it sounds like you are doing a fantastic job as you are, and tools to read and translate the BMPs and TGAs already exist. (all be it in undocumented, closed source form)
[SMD.Data:
SMD.Data.Signature: B$ 0 #018
SMD.Data.Member01: D$ 0 ; materials count ?
SMD.Data.Member02: D$ 0 #0C
SMD.Data.Member05: D$ 0
SMD.Data.Member06: D$ 0
; since he read and write the 1st 556 bytes we simply fill the rest of the structure
SMD.Data.Member07: B$ 0 #01D8]
; folowed by a array of structure. Seems to be a array of material structure
; below seems to be an structure array, based on the amount of materials found. So, each material is a structure. So we have XXX materials followed in sequence below this.
; Each material structure seems to have 40 Bytes long
; SMD structure
;;
The 1st thing the routines do is allocate 556 bytes to read the inputed SMD data, anc opy it to a buffer.
So, it reads from SMD_Data.Signature to SMD.Data.Member07
;;
[SMD.Data:
SMD.Data.Signature: B$ 0 #018
SMD.Data.Member01: D$ 0 ; material count ?
SMD.Data.Member02: D$ 0 #0C
SMD.Data.Member05: D$ 0
SMD.Data.Member06: B$ 0 #080; A buffer containing 128 bytes long
; since he read and write the 1st 556 bytes we simply fill the rest of the structure
SMD.Data.Member07: B$ 0 #015C]
; below is a array of a structure (Material structure) whose amiunt is defined in SMD.Data.Member01
; This structure seems to have 40 Bytes long
[SMD.Material:
SMD.Material.Data01: B$ 0 #40]
; SMD structure
;;
The 1st thing the routines do is allocate 556 bytes to read the inputed SMD data, anc opy it to a buffer.
So, it reads from SMD_Data.Signature to SMD.Data.Member07
The signature type is of 2 types:
SMD Model data Ver 0.62
SMD Stage data Ver 0.72
The one i