Quantcast

Jump to content

» «
Photo

Decompiled Scripts b757

26 replies to this topic
unknown modder
  • unknown modder

    Bon Jon Bovi

  • Members
  • Joined: 04 Jul 2012
  • United-Kingdom

#1

Posted 09 June 2016 - 03:41 PM Edited by unknown modder, 10 June 2016 - 12:03 PM.

Listener hasnt released his scripts so i thought I'd jump the gun and release these so people can start looking at what has changed. The blocked vehicles check was removed from looking inside these files, as well as information on spawning/teleporting to the new offices just to name a few examples of how this can be useful

Downloads

 

Gta 5 mods:

https://www.gta5-mod...ed-scripts-b757

 

MediaFire:

http://www.mediafire...cripts_b757.rar

  • Skorpro, sasuke78200, jedijosh920 and 1 other like this

Jitnaught
  • Jitnaught

    ✰✰✰✰✰✰

  • Members
  • Joined: 24 Aug 2013
  • United-States

#2

Posted 09 June 2016 - 03:59 PM Edited by Jitnaught, 09 June 2016 - 04:00 PM.

Thanks. :) Did you use your own decompiler to decomile them?


unknown modder
  • unknown modder

    Bon Jon Bovi

  • Members
  • Joined: 04 Jul 2012
  • United-Kingdom

#3

Posted 09 June 2016 - 04:18 PM

Thanks. :) Did you use your own decompiler to decomile them?

Yep

  • Jitnaught likes this

mockba.the.borg
  • mockba.the.borg

    Punk-ass Bitch

  • Members
  • Joined: 17 Jan 2016
  • United-States

#4

Posted 10 June 2016 - 12:16 AM

This is awesome... any way to get this updated as more and more natives get renamed in the nativedb?


unknown modder
  • unknown modder

    Bon Jon Bovi

  • Members
  • Joined: 04 Jul 2012
  • United-Kingdom

#5

Posted 10 June 2016 - 12:48 AM

This is awesome... any way to get this updated as more and more natives get renamed in the nativedb?

If NativeDB suddently has loads of new changes then I'll think about re uploading. if you wanted to do it manually, you could do a find and replace over the whole directory


mockba.the.borg
  • mockba.the.borg

    Punk-ass Bitch

  • Members
  • Joined: 17 Jan 2016
  • United-States

#6

Posted 10 June 2016 - 01:45 AM

Coincidence ... I just wrote an "automaton" for that.

So I can always get updated versions once NativeDB gets updated.

 

Thanks man.


unknown modder
  • unknown modder

    Bon Jon Bovi

  • Members
  • Joined: 04 Jul 2012
  • United-Kingdom

#7

Posted 10 June 2016 - 12:04 PM

There were no changes to the script.rpf in the latest mini update(757.3/4)

  • Jitnaught likes this

uNiverselEgacy
  • uNiverselEgacy

    Player Hater

  • Members
  • Joined: 15 Jul 2015
  • United-States

#8

Posted 16 June 2016 - 02:14 AM

Thank you! This is fantastic.

One stupid question: what do those commented numbers mean?

for example: Global_101154.item_18807.item_69[15 /*78*/].item_66

what does /*78*/ mean?

 

Another stupid question: does aa.item_bb mean ((char *)aa)[bb] or ((char *)&aa)[bb] or something else?


unknown modder
  • unknown modder

    Bon Jon Bovi

  • Members
  • Joined: 04 Jul 2012
  • United-Kingdom

#9

Posted 16 June 2016 - 03:02 PM Edited by unknown modder, 16 June 2016 - 03:03 PM.

The 78 means each array index is a structure containing 78 items. The array items count just means how many UInt64 values it can store, if it was a vector3 array, the number would be 3. Also the way arrays work in scripts is different to a unmanaged array. The item at the array pointer contains the how many indexes the array has. The data starts at the next item(8 bytes away) Aa.item_bb means aa is a structure. Bb is the item in the structure being referenced. It can be seen with vector 3 which will change item_1 to y and item_2 to z

MoMadenU
  • MoMadenU

    GooD-NTS so sorry bro

  • Members
  • Joined: 19 Jun 2015
  • United-States

#10

Posted 17 June 2016 - 01:12 AM

WOW. These are beautiful.  Real array declarations!  :)  There is so much copy/pasted code everywhere.  Is that the decompiler doing that or is the source code really like that?  


unknown modder
  • unknown modder

    Bon Jon Bovi

  • Members
  • Joined: 04 Jul 2012
  • United-Kingdom

#11

Posted 17 June 2016 - 03:52 AM Edited by unknown modder, 17 June 2016 - 03:54 AM.

WOW. These are beautiful.  Real array declarations!  :)  There is so much copy/pasted code everywhere.  Is that the decompiler doing that or is the source code really like that?  

All the code is generated from decompiling the scripts. I think the reason for all the copy/pasted looking code is scripts are compiled using function libraries. All library functions referenced from a scripts source will get compiled into the ysc along with its original source. So if many scripts use the same function from a library, that will appear in the decompiled scripts many times


WildBrick142
  • WildBrick142

    🦋 This action will have consequences...

  • GTA Series Staff
  • Joined: 18 Dec 2012
  • Unknown
  • Draw Contest Winner 2016
    Contribution Award [GTA V]

#12

Posted 18 July 2016 - 01:29 PM Edited by WildBrick142, 18 July 2016 - 01:41 PM.

Not sure if anyone else has this issue, but I can't open the latest version on gta5-mods. It gives me a corrupted archive error.

EDIT: nvm. For some reason I can't do anything with the archive on Windows 7 but I can on an XP VM. Weird.

unknown modder
  • unknown modder

    Bon Jon Bovi

  • Members
  • Joined: 04 Jul 2012
  • United-Kingdom

#13

Posted 18 July 2016 - 02:24 PM

Not sure if anyone else has this issue, but I can't open the latest version on gta5-mods. It gives me a corrupted archive error.

EDIT: nvm. For some reason I can't do anything with the archive on Windows 7 but I can on an XP VM. Weird.

oh, that is becausei used rar5 to compress them, otherwise i exceeded the 100MB file limit on gta5 mods


_CP_
  • _CP_

    Boss

  • Feroci
  • Joined: 27 Dec 2007
  • Poland
  • Most Helpful Modding 2016 [Runner-up]
    Best Vehicle 2016 [IVPack]
    Best Map 2013 "ViceCityStories PC Edition"

#14

Posted 18 July 2016 - 03:17 PM

I'm gonna ask again, are there any new natives in 791?

unknown modder
  • unknown modder

    Bon Jon Bovi

  • Members
  • Joined: 04 Jul 2012
  • United-Kingdom

#15

Posted 18 July 2016 - 04:48 PM Edited by unknown modder, 18 July 2016 - 04:48 PM.

I'm gonna ask again, are there any new natives in 791?

When did you ask the first time? There are new natives in this update though from what i can see the only one called in any of the scripts is 0xB81CF134AEB56FFB


Kesha_F1
  • Kesha_F1

    EFO owner

  • Members
  • Joined: 02 Oct 2008
  • Russia

#16

Posted 15 June 2017 - 12:21 PM Edited by Kesha_F1, 15 June 2017 - 12:21 PM.

Any news about update archive after Gunrunning?

unknown modder
  • unknown modder

    Bon Jon Bovi

  • Members
  • Joined: 04 Jul 2012
  • United-Kingdom

#17

Posted 16 June 2017 - 05:50 PM

Any news about update archive after Gunrunning?

I can't update it till I have an accurate list of all the new natives


mockba.the.borg
  • mockba.the.borg

    Punk-ass Bitch

  • Members
  • Joined: 17 Jan 2016
  • United-States

#18

Posted 16 June 2017 - 07:46 PM

 

Any news about update archive after Gunrunning?

I can't update it till I have an accurate list of all the new natives

 

 

You mean ... AB's hash conversion table, right?


unknown modder
  • unknown modder

    Bon Jon Bovi

  • Members
  • Joined: 04 Jul 2012
  • United-Kingdom

#19

Posted 17 June 2017 - 08:51 AM Edited by unknown modder, 17 June 2017 - 08:54 AM.

 

 

Any news about update archive after Gunrunning?

I can't update it till I have an accurate list of all the new natives

 

 

You mean ... AB's hash conversion table, right?

Thats what I used for all previous version. I have a list of hashes but I need to be sure they are all good before releasing. Also online scripts wont be included in the release like what i did for the 1011/1032 scripts. Except for special requests from people


.Alex.
  • .Alex.

    Crackhead

  • Members
  • Joined: 19 Sep 2014
  • None

#20

Posted 17 June 2017 - 09:08 AM Edited by .Alex., 17 June 2017 - 09:12 AM.

Can you tell the names (if you have them) of the interior props used for the bunker styles, by any chance?


ikt
  • ikt

    _

  • Members
  • Joined: 02 Oct 2006
  • None

#21

Posted 17 June 2017 - 09:38 AM

Are you still using your own decompiler? I tried opening b1032 scripts with it (from GitHub) but it said nope.
  • ins1de likes this

unknown modder
  • unknown modder

    Bon Jon Bovi

  • Members
  • Joined: 04 Jul 2012
  • United-Kingdom

#22

Posted 17 June 2017 - 04:12 PM

Are you still using your own decompiler? I tried opening b1032 scripts with it (from GitHub) but it said nope.

The one on github is very broken, Theres many bugs with it

 

Can you tell the names (if you have them) of the interior props used for the bunker styles, by any chance?

I dont know the names of them unfortunately


mockba.the.borg
  • mockba.the.borg

    Punk-ass Bitch

  • Members
  • Joined: 17 Jan 2016
  • United-States

#23

Posted 18 June 2017 - 05:52 AM

 

Are you still using your own decompiler? I tried opening b1032 scripts with it (from GitHub) but it said nope.

The one on github is very broken, Theres many bugs with it

 

 

Is there one not-on-github? :)

If so I am interested. It would help me a lot on the work I am doing converting a new list of natives.


.Alex.
  • .Alex.

    Crackhead

  • Members
  • Joined: 19 Sep 2014
  • None

#24

Posted 18 June 2017 - 08:32 PM

 

Are you still using your own decompiler? I tried opening b1032 scripts with it (from GitHub) but it said nope.

The one on github is very broken, Theres many bugs with it

 

Can you tell the names (if you have them) of the interior props used for the bunker styles, by any chance?

I dont know the names of them unfortunately

 

 

Ah I understand, thank you anyway :)


Scriptkiddy1337
  • Scriptkiddy1337

    Player Hater

  • Members
  • Joined: 15 Jun 2017
  • Germany

#25

Posted 18 June 2017 - 08:55 PM

The one on Github is still working like a charm, btw.


unknown modder
  • unknown modder

    Bon Jon Bovi

  • Members
  • Joined: 04 Jul 2012
  • United-Kingdom

#26

Posted 20 June 2017 - 11:36 PM Edited by unknown modder, 20 June 2017 - 11:36 PM.

Scripts have been updated on the gta5 mods page, minus online scripts 

The one on Github is still working like a charm, btw.

Its not, there are so many bugs. It also needs updating for things like new hashes and native translations, but I haven't bothered with them


Neutrinobeam
  • Neutrinobeam

    Player Hater

  • Members
  • Joined: 04 May 2015
  • United-States

#27

Posted 06 July 2017 - 11:03 PM

I built a Python (2.7) script to remove the common functions from the scripts and place them into a library. It found nearly 21000 functions and shrank my b1103 folder from 770 MB to 230 MB. Would you like it for future releases? 
 
An example. 

In library file:
bool func_lib_9598(var param0)
{
  int iVar0;
  iVar0 = func_lib_494(param0->f_351 == 1, 20000, 15000);
    if (Global_69800)
    {
    return (func_lib_4026(param0) > iVar0 && param0->f_341);
    }
  return GAMEPLAY::GET_GAME_TIMER() > (param0->f_361 + iVar0);
}
// carwash1.c func_55
// carwash2.c func_56
 
In carwash1.c:
bool func_55(var param0)
{/*func_lib_9598*/}
  • jedijosh920 and TheRouLetteBoi like this




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users