[WIP] Fallout 4 Hook

Post » Thu Nov 26, 2015 9:35 am

Fallout 4 Hook

Hi guys !

It's been a long time since I visited this forums , some of you may remember me from Skyrim projects called ScriptDragon and Skyboost .

F4H is aimed to provide an ability to use Papyrus scripting functions in external scripts and plugins. Also during development I'm publishing info on Fallout 4 papyrus internals .

Whats changed in papyrus scripts ? Scripts are almost the same , but now they support structures and natives can return arrays out of the box .

Today I'm publishing the research on scripts , opensource utility called https://dl.dropboxusercontent.com/u/1237747/temp/f4/f4pexdump.7z , with it's help you can dump most of the vital info from Fallout4 pex scripts . https://dl.dropboxusercontent.com/u/1237747/temp/f4/pex.dumps.7z are also published , but if you want to dump them by your own you will need to extract pex files manully using ianpatt's http://www.gamesas.com/topic/1544542-wipz-fallout-4-script-extender-f4se/ .

User avatar
Peter lopez
 
Posts: 3383
Joined: Mon Sep 10, 2007 5:55 pm

Post » Thu Nov 26, 2015 12:39 pm

Thank you for this. :)

User avatar
danni Marchant
 
Posts: 3420
Joined: Sat Oct 07, 2006 2:32 am

Post » Thu Nov 26, 2015 1:38 pm

Cool, what are the new structures like? Can we make something like this now?

Event OnSample()    Point myPoint    myPoint.X = 10    myPoint.Y = 5EndEventStructure Point    int Property X Auto    int Property Y AutoEndStructure
User avatar
-__^
 
Posts: 3420
Joined: Mon Nov 20, 2006 4:48 pm

Post » Thu Nov 26, 2015 6:36 am

Yes , there are structures for variables and props

User avatar
Logan Greenwood
 
Posts: 3416
Joined: Mon Jul 30, 2007 5:41 pm

Post » Thu Nov 26, 2015 7:42 am

Thank you.

User avatar
April
 
Posts: 3479
Joined: Tue Jun 20, 2006 1:33 am

Post » Thu Nov 26, 2015 5:29 pm



Would we be able to make an array of these structures?

Event OnInit()    Point[] myPoint = new Point[5]    myPoint[0].X = 10    myPoint[0].Y = 5    myPoint[1]...etcEndEventStructure Point    int Property X Auto    int Property Y AutoEndStructure
Would make things interesting

- Hypno
User avatar
Joe Alvarado
 
Posts: 3467
Joined: Sat Nov 24, 2007 11:13 pm

Post » Thu Nov 26, 2015 2:14 am

Would we be able to make an array of these structures?

Yes. You can use an array. Bethesda is actively using the arrays of structures too

For example:

ca_queststage_bump#queststagebumpdatum[]

User avatar
Dean Brown
 
Posts: 3472
Joined: Fri Aug 31, 2007 10:17 pm

Post » Thu Nov 26, 2015 2:17 am

This is what a (decompiled) script looks like:

http://pastebin.com/HjKDkzge

User avatar
Dalley hussain
 
Posts: 3480
Joined: Sun Jun 18, 2006 2:45 am


Return to Fallout 4