Jump to content

[V] Script/Native Documentation and Research


Recommended Posts

Alexander Blade

Native hash translation table from b573 to b617

 

http://pastebin.com/pFZRbUtv

  • Like 3
mockba.the.borg

A (hopefully thread related) quick question:

 

How can I decompile the game scripts?

I have used OpenIV to extract the .ysc file, which generated .sys and .full files, which are binary the same.

Then I have tried to run both IDA Pro and C4 Decompiler on them.

IDA Pro doesn't generate anything useful, and C4 will refuse to open the files. Says PE invalid or something like that.

Maybe I missed some needed tool, maybe I missed some OpenIV functionality.

 

Any guidance is appreciated.

 

Thanks,

Mockba.

Edited by mockba.the.borg
Alexander Blade

There is no public decompiler .

 

A (hopefully thread related) quick question:

 

How can I decompile the game scripts?

I have used OpenIV to extract the .ysc file, which generated .sys and .full files, which are binary the same.

Then I have tried to run both IDA Pro and C4 Decompiler on them.

IDA Pro doesn't generate anything useful, and C4 will refuse to open the files. Says PE invalid or something like that.

Maybe I missed some needed tool, maybe I missed some OpenIV functionality.

 

Any guidance is appreciated.

 

Thanks,

Mockba.

 

There is no public decompiler .

 

A (hopefully thread related) quick question:

 

How can I decompile the game scripts?

I have used OpenIV to extract the .ysc file, which generated .sys and .full files, which are binary the same.

Then I have tried to run both IDA Pro and C4 Decompiler on them.

IDA Pro doesn't generate anything useful, and C4 will refuse to open the files. Says PE invalid or something like that.

Maybe I missed some needed tool, maybe I missed some OpenIV functionality.

 

Any guidance is appreciated.

 

Thanks,

Mockba.

 

And that's the main problem in the modding community.

Private, private, private...

  • Like 2
mockba.the.borg

Thanks Alexander,

 

I am not sure if I understand the reasoning behind having most of the useful mod information private.

I understand making something public or not is the decision of whoever writes it, but open source in a mod community usually helps more than hurts.

 

Thanks anyways for the updated scripts.

 

Cheers,

Mockba.

 

 

There is no public decompiler .

 

A (hopefully thread related) quick question:

 

How can I decompile the game scripts?

I have used OpenIV to extract the .ysc file, which generated .sys and .full files, which are binary the same.

Then I have tried to run both IDA Pro and C4 Decompiler on them.

IDA Pro doesn't generate anything useful, and C4 will refuse to open the files. Says PE invalid or something like that.

Maybe I missed some needed tool, maybe I missed some OpenIV functionality.

 

Any guidance is appreciated.

 

Thanks,

Mockba.

 

And that's the main problem in the modding community.

Private, private, private...

 

 

People invest their time working on the documentation of the game, they have the right to share or not their tools.

I've spoken with listener about his decompiler before, a LOT of work went into it and releasing it to the public would simply take too long and take away valuable time that could be used for doing something more important.

 

Some things are better left private. You may not like it, but there's always a reason for something being private and not being made public.

  • Like 1
  • 4 weeks later...

Just to piss Alexander off I'll post a compiler for V.

 

Not that hard to make one, only a few different lines of code needed compared to IV version

 

Yeah using AB researches sure, and a few different lines from what ?

Alexander Blade

SDK is udpdated !

 

v1.0.617.1a
- added ability to access pickup pool
- added ability to get base object pointer using script handle

InfamousSabre

SDK is udpdated !

 

v1.0.617.1a

- added ability to access pickup pool

- added ability to get base object pointer using script handle

WOOOOO! Thank you for adding this feature! :D I can finally let my Pickups script support the weapons hidden in the world. You're the best!

  • 3 weeks later...

Seems like we got a new update in GTA V? :-)

Ayuppa .. And everything is broken again. *sigh* Had to revert to former version.

 

Well.. Poor Alex. I really do hope the author can work-up the energy -yet again- to adapt scripthookV (I was gonna' say 'fix', but it isn't scripthook that needs fixing. It's Rockstar's unpleasant habit of pushing updates...) . Thanx Rockst*r for some cars I don't need, and a script-killing update. :facedesk:

mockba.the.borg

Is there a way to roll-back the update and stay on 1.32 for a while?

If not I guess I will just have to wait for the new Scripthook.

And I agree, poor Alexander, it sucks to be having to re-do everything again every time R* comes up with new trinkets.

Alexander Blade

Native hash translation table from b617 to b678

http://pastebin.com/7cv47gC8

  • Like 4
Alexander Blade

Yes , 24 added and 11 deleted . Param count is changed for TASK_JUMP (4 params now) .

 

Is there any new native ?

Is there any new native ?

 

0x11579d940949c49e
0x7ec3c679d0e7e46b
0x4b5b620c9b59ed34
0xf47e567b3630dd12
0xa84081e1eaf46e20
0x8a24b067d175a7bd
0x821fdc827d6f4090
0xb214d570ead7f81a
0x17f7471eaca78290
0x24f4121d07579880
0xaf03011701811146
0xda05194260cdcdf9
0x463941a4fb6104c6
0x67164204fc1104c5
0x62454a641b41f3c5
0x39a5fb7eaf150840
0x8881c98a31117998
0x7033eefd9b28088e
0xcd79a550999d7d4f
0xdcd8468e2fbbd1cc
0x2ce9d95e4051aecd
0x7242f8b741ce1086
0xcea7c8e1b48ff68c
0xeb2bf817463dfa28
arewenotmen

Can we have a new decompiled set of scripts please?

 

In particular 'shop_controller' as this is what's despawning DLC, and the sooner we have the script content, the sooner we can figure out what (if anything) to do short of blocking the whole script.

Edited by arewenotmen
sasuke78200

Well, I can provide this for now (sorry I didn't include the hash table that AB provided, plus my high level decompilng code is broken, don't want to fix it right now)

 

 

https://gist.github.com/Sasuke78200/bcdd0a342b4e9aff5645

 

Enjoy reading awful 'asm' code :p

 

 

 

EDIT: The function at 'label_1c94c' seems to be the one that's causing this ;)

 

EDIT 2 ; You can just set the global id 2558120 to 1 and you're good to go. (credits to three-socks who find this)

Edited by sasuke78200

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.