Tutorial forum for Tony Hawk games.
Forum rules
No requests, use other sections for that. TAG your titles [THAW][THUG2] etc.
Posts: 419
Joined: Tue Aug 04, 2009 12:50 am
Location: FL - USA


Postby WhoElseButMe » Fri Oct 29, 2010 11:14 pm

That's right you read the title correctly, these are very much real and I'm going to give you the break down of how they're constructed.

Its a unique data type in the sense that its 2 parts, part one is the data type part 2 is the number of bytes in the script
Code Snip It, includes the next items DataType

Code: Select all


Lets break that code down to better understand a StructItemScript
000F2C00 - this is the DataType, 0x00000F00; Falls perfectly in place with all other structure item DataTypes the only difference is the last 2 bytes are actually the script size. 2C00 = 44 bytes

DB162E35 - The script name - Disqualify_Script
34C30000 - The offset to the start of the script
60C30000 - The offset to the next DataType after the script

The next byte is the start of the script and this is where our byte count starts. These scripts are constructed like THPS3/4 where a new instruction starts with byte 0x02 and is followed by a 4 byte value. The value for a StructItemScript is actually a total item count of the entire script.

02 F0080000 - new instruction + item count
16 0B9D3383 - Translates to: SetPart
16 398FF0B6 07 16 4DF45724 - Translates to: part = body
16 4E08B24B 07 16 1F31FA28 - Translates to: desc_id = MaleBody
02 F1080000 - new instruction + item count
24 - Translates to: endfunction
02 F2080000 - new instruction + item count; This is the count for the next DataType.
00 - padding, all pak scripts are padded by %4 meaning the end of the data ends at either byte 0, 4, 8, C. This is the last byte in our script, byte 44.
001B0000 - New DataType which equals StructItemQbKey

Last edited by WhoElseButMe on Fri Nov 12, 2010 8:53 pm, edited 3 times in total.
WhoElseButMe on Nov 26, 2009 wrote:It's that lack of respect amongst their peers and ignorance towards modding etiquette that keeps us who know this stuff well from spreading it like wild fire. We do still enjoy playing the game and if you need to cheat to play a game PLAY SOMETHING ELSE YOU DON'T SUCK AT.
Posts: 55
Joined: Sun Oct 17, 2010 11:16 am

Re: StrcutItemScript

Postby Cyber-Ninja95 » Sat Oct 30, 2010 5:25 am

Wow thats cool I think I may have schizophrenia or may be high I have been seeing things. "and have been realy paranoid. any way yeah keep up the good work. :wtf?:
Posts: 108
Joined: Fri Nov 20, 2009 1:20 pm
Location: Ukraine

Re: StructItemScript

Postby sMo0g™ » Mon Dec 13, 2010 5:27 pm

How you translate this codes? :DD

Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 2 guests