I had a problem with building my cross layered beam battery, it kept saying the landing gear was in the way of it, even though it was fine on the other side. This script will make it so it will allow you to affix any part to anywhere (so long as the part can normally attach to that location).
Code: Select all
// Game Executable : Starfield.exe
// Author : gir489
// Executable Version: 1.7.23.0
// MD5 Signature : 173549837281599BF8E44DE81D884675
// EXE Compile Date : August 21, 2023 04:58 PM
// Script Date : September 07, 2023 11:36 PM
[ENABLE]
aobscanmodule(aob_ShipBuildCheckTollerance,Starfield.exe,C5 FA 11 45 20 4C 89 75)
registersymbol(aob_ShipBuildCheckTollerance)
alloc(newmem_ShipBuildCheckTollerance,512,Starfield.exe)
label(return_ShipBuildCheckTollerance)
alloc(newTollerance,8,Starfield.exe)
newmem_ShipBuildCheckTollerance:
vmovss xmm0, [newTollerance]
vmovss [rbp+20],xmm0
jmp return_ShipBuildCheckTollerance
aob_ShipBuildCheckTollerance:
jmp newmem_ShipBuildCheckTollerance
return_ShipBuildCheckTollerance:
newTollerance:
dq (float)-5
[DISABLE]
aob_ShipBuildCheckTollerance:
db C5 FA 11 45 20
unregistersymbol(aob_ShipBuildCheckTollerance)
dealloc(newmem_ShipBuildCheckTollerance)
dealloc(newTollerance)
{
// ORIGINAL CODE - INJECTION POINT: Starfield.exe.text+13BBFDC
Starfield.exe.text+13BBF5E: C5 E8 54 81 80 00 00 00 - vandps xmm0,xmm2,[rcx+00000080]
Starfield.exe.text+13BBF66: C5 F8 11 85 90 00 00 00 - vmovups [rbp+00000090],xmm0
Starfield.exe.text+13BBF6E: C5 E8 54 81 90 00 00 00 - vandps xmm0,xmm2,[rcx+00000090]
Starfield.exe.text+13BBF76: C5 F8 11 85 A0 00 00 00 - vmovups [rbp+000000A0],xmm0
Starfield.exe.text+13BBF7E: C5 E8 54 81 A0 00 00 00 - vandps xmm0,xmm2,[rcx+000000A0]
Starfield.exe.text+13BBF86: C5 F8 11 85 B0 00 00 00 - vmovups [rbp+000000B0],xmm0
Starfield.exe.text+13BBF8E: C5 F8 10 91 B0 00 00 00 - vmovups xmm2,[rcx+000000B0]
Starfield.exe.text+13BBF96: C5 E8 59 0D F2 6A 1B 03 - vmulps xmm1,xmm2,[Starfield.exe.rdata+6CBA90]
Starfield.exe.text+13BBF9E: C5 F1 EB 0D EA DC B6 02 - vpor xmm1,xmm1,[Starfield.exe.rdata+82C90]
Starfield.exe.text+13BBFA6: C5 FA 7F 8D C0 00 00 00 - vmovdqu [rbp+000000C0],xmm1
Starfield.exe.text+13BBFAE: B9 FF FF 00 00 - mov ecx,0000FFFF
Starfield.exe.text+13BBFB3: 66 89 4D 00 - mov [rbp+00],cx
Starfield.exe.text+13BBFB7: 45 33 F6 - xor r14d,r14d
Starfield.exe.text+13BBFBA: 44 89 75 04 - mov [rbp+04],r14d
Starfield.exe.text+13BBFBE: 4C 89 75 08 - mov [rbp+08],r14
Starfield.exe.text+13BBFC2: 4C 89 75 F8 - mov [rbp-08],r14
Starfield.exe.text+13BBFC6: 4C 89 75 F0 - mov [rbp-10],r14
Starfield.exe.text+13BBFCA: 66 C7 45 11 00 FB - mov word ptr [rbp+11],FB00
Starfield.exe.text+13BBFD0: 48 89 45 18 - mov [rbp+18],rax
Starfield.exe.text+13BBFD4: C5 FA 10 05 04 8B 11 04 - vmovss xmm0,[Starfield.exe+54D5AE0]
// ---------- INJECTING HERE ----------
Starfield.exe.text+13BBFDC: C5 FA 11 45 20 - vmovss [rbp+20],xmm0
// ---------- DONE INJECTING ----------
Starfield.exe.text+13BBFE1: 4C 89 75 28 - mov [rbp+28],r14
Starfield.exe.text+13BBFE5: C6 45 10 02 - mov byte ptr [rbp+10],02
Starfield.exe.text+13BBFE9: 48 8D 4C 24 30 - lea rcx,[rsp+30]
Starfield.exe.text+13BBFEE: E8 9D 00 81 FF - call Starfield.sub_140BCD090
Starfield.exe.text+13BBFF3: 90 - nop
Starfield.exe.text+13BBFF4: E8 93 06 99 01 - call Starfield.sub_142D4D68C
Starfield.exe.text+13BBFF9: 48 89 44 24 30 - mov [rsp+30],rax
Starfield.exe.text+13BBFFE: 44 89 74 24 5C - mov [rsp+5C],r14d
Starfield.exe.text+13BC003: C5 F8 10 05 25 38 C1 03 - vmovups xmm0,[Starfield.exe.data+18830]
Starfield.exe.text+13BC00B: C5 F8 11 44 24 60 - vmovups [rsp+60],xmm0
Starfield.exe.text+13BC011: 44 88 74 24 70 - mov [rsp+70],r14b
Starfield.exe.text+13BC016: 4C 89 75 E8 - mov [rbp-18],r14
Starfield.exe.text+13BC01A: C5 F8 11 75 80 - vmovups [rbp-80],xmm6
Starfield.exe.text+13BC01F: C5 F8 11 75 90 - vmovups [rbp-70],xmm6
Starfield.exe.text+13BC024: C5 FA 11 7D A0 - vmovss [rbp-60],xmm7
Starfield.exe.text+13BC029: B9 FF FF FF 00 - mov ecx,00FFFFFF
Starfield.exe.text+13BC02E: 89 4D A8 - mov [rbp-58],ecx
Starfield.exe.text+13BC031: 83 CA FF - or edx,-01
Starfield.exe.text+13BC034: 89 55 AC - mov [rbp-54],edx
Starfield.exe.text+13BC037: C6 45 B0 0F - mov byte ptr [rbp-50],0F
}
You can do cool things like stick habitats inside of themselves and also double up on parts.