Page 3 of 20

Re: X4 Foundations v1.21 Steam (GM and More) 2018-Dec-06

Posted: Thu Dec 06, 2018 3:56 am
by r3zn4v4ts
Recifense wrote:
Thu Dec 06, 2018 12:39 am
Hi guys,

A table was updated to version 1.21 with fixes. Please look at the first post.

Cheers!
Thanks ! will test it out. Btw is the GM/FS & UM for all player owned ships or only the player controlled one?

Re: X4 Foundations v1.21 Steam (GM and More) 2018-Dec-06

Posted: Thu Dec 06, 2018 9:44 pm
by KingFalcon
Hey Recifense ,

Not sure if this is any help, but I found the code that subtracts the consumables (civilian and military), maybe you can add an unlimited option (did not want to hijack your work). Anyway, here are the addresses (from V 1.21):

Sat & Adv Sat: X4.exe+2A5345
Nav Beacon: X4.exe+2A6055
Resource Beacon: X4.exe+2A66C5
Laser Towers: X4.exe+2A6FAB
Mines: X4.exe+2A59A5

Re: X4 Foundations v1.21 Steam (GM and More) 2018-Dec-06

Posted: Fri Dec 07, 2018 4:05 am
by ZaKl86
Add a kill with one shot!

Re: X4 Foundations v1.21 Steam (GM and More) 2018-Dec-06

Posted: Fri Dec 07, 2018 4:40 am
by monk124us
for some reason the new table 1.21 is not loading for me. the previous version worked i have the steam version of the game if it matters

Re: X4 Foundations v1.21 Steam (GM and More) 2018-Dec-06

Posted: Fri Dec 07, 2018 5:37 am
by r3zn4v4ts
monk124us wrote:
Fri Dec 07, 2018 4:40 am
for some reason the new table 1.21 is not loading for me. the previous version worked i have the steam version of the game if it matters
Try this,
1. Run CE (make sure you have latest version)
2. Run X4 (wait until main menu loads)
3. Alt+Tab to CE and load process and table.
4. Toggle Main script only.
5. Load save game.
6. Toggle UM,GM,FS, etc.

Re: X4 Foundations v1.21 Steam (GM and More) 2018-Dec-06

Posted: Fri Dec 07, 2018 6:59 am
by monk124us
yea i dont know why it didnt activate the script the first time i loaded, but my game crashed and it started working again ><

Re: X4 Foundations v1.21 Steam (GM and More) 2018-Dec-06

Posted: Fri Dec 07, 2018 3:33 pm
by Empress_Ravenna
1.30 plus 1.30 Hotfix beta is out.. script should work still its a huge update too >;D

Re: X4 Foundations v1.21 Steam (GM and More) 2018-Dec-06

Posted: Fri Dec 07, 2018 7:26 pm
by KingFalcon
All options seem to work fine in 1.30+.

Re: X4 Foundations v1.21 Steam (GM and More) 2018-Dec-06

Posted: Fri Dec 07, 2018 7:28 pm
by Empress_Ravenna
ok good to know i got side tracked trying to test them out

Re: X4 Foundations v1.21 Steam (GM and More) 2018-Dec-06

Posted: Sat Dec 08, 2018 12:02 am
by KingFalcon
Here is a bit code that enables unlimited consumables. Create a new script entry copy the code into the new script.

This works with version 1.30

Code: Select all

{ Game   : X4.exe
  Version: 1.30
  Date   : 2018-12-07
  Author : kingFalcon

  This script enable unlimited consumables
}

[ENABLE]


aobscanmodule(satDeploy,X4.exe,41 29 00 75 08 49 8B CF E8 6E) // Satellites
aobscanmodule(mines,X4.exe,41 29 00 75 08 48 8B CE) // Mines
aobscanmodule(lasers,X4.exe,41 29 00 75 08 49 8B CD) // Lasers
aobscanmodule(resBeacon,X4.exe,41 29 00 75 08 49 8B CF) // Resource Beacon
aobscanmodule(navBeacon,X4.exe,41 29 00 75 08 49 8B CF E8 5E) // Nav Beacons

alloc(satMem,$1000,"X4.exe"+2A5725)
alloc(minMem,$1000,"X4.exe"+2A5D85)
alloc(laserMem,$1000,"X4.exe"+2A738B)
alloc(resMem,$1000,"X4.exe"+2A6AA5)
alloc(navMem,$1000,"X4.exe"+2A6435)

label(satExit)
label(minExit)
label(laserExit)
label(resExit)
label(navExit)

registersymbol(satDeploy)
registersymbol(mines)
registersymbol(lasers)
registersymbol(navBeacon)
registersymbol(resBeacon)

// Satellite
satMem:
  nop
  nop
  nop
  jne X4.exe+2A5732
  jmp satExit

// Resource Beacons
resMem:
  nop
  nop
  nop
  jne X4.exe+2A6AB2
  jmp resExit



// Nav Beacons
navMem:
  nop
  nop
  nop
  jne X4.exe+2A6442
  jmp navExit

//Lasers
laserMem:
  nop
  nop
  nop
  jne X4.exe+2A7398
  jmp laserExit

// Mines
minMem:
  nop
  nop
  nop
  jne X4.exe+2A5D92
  jmp minExit


satDeploy:
  jmp satMem

satExit:

resBeacon:
  jmp resMem

resExit:

navBeacon:
  jmp navMem

navExit:

lasers:
  jmp laserMem

laserExit:

mines:
  jmp minMem

minExit:



[DISABLE]

satDeploy:
  db 41 29 00 75 08

resBeacon:
  db 41 29 00 75 08

navBeacon:
  db 41 29 00 75 08

lasers:
  db 41 29 00 75 08

mines:
  db 41 29 00 75 08

unregistersymbol(satDeploy)
dealloc(satMem)
unregistersymbol(resBeacon)
dealloc(resMem)
unregistersymbol(navBeacon)
dealloc(navMem)
unregistersymbol(mines)
dealloc(minMem)
unregistersymbol(lasers)
dealloc(laserMem)




Re: X4 Foundations v1.21 Steam (GM and More) 2018-Dec-06

Posted: Sat Dec 08, 2018 8:17 am
by Empress_Ravenna
works perfectly thanks! merged it with recifense's table im using right now which also still works for 1.30

Re: X4 Foundations v1.21 Steam (GM and More) 2018-Dec-06

Posted: Sat Dec 08, 2018 9:38 am
by OhHeyItsLee
Player-owned L and XL size ships still have their components (engines, turrets, etc.) destroyed in combat, even with FS and GM working perfectly in every way except this.

Re: X4 Foundations v1.21 Steam (GM and More) 2018-Dec-06

Posted: Sat Dec 08, 2018 5:57 pm
by Flupper
Is a reputation pointer planned ? If I change it over the xml it changes but still can't buy license etc.

Re: X4 Foundations v1.21 Steam (GM and More) 2018-Dec-06

Posted: Sat Dec 08, 2018 11:46 pm
by saucefar
Cargo space would also be nice if possible.

Re: X4 Foundations v1.21 Steam (GM and More) 2018-Dec-06

Posted: Sun Dec 09, 2018 7:54 pm
by vahull
KingFalcon wrote:
Sat Dec 08, 2018 12:02 am
Here is a bit code that enables unlimited consumables. Create a new script entry copy the code into the new script.

This works with version 1.30

Code: Select all

{ Game   : X4.exe
  Version: 1.30
  Date   : 2018-12-07
  Author : kingFalcon

  This script enable unlimited consumables
}

[ENABLE]


aobscanmodule(satDeploy,X4.exe,41 29 00 75 08 49 8B CF E8 6E) // Satellites
aobscanmodule(mines,X4.exe,41 29 00 75 08 48 8B CE) // Mines
aobscanmodule(lasers,X4.exe,41 29 00 75 08 49 8B CD) // Lasers
aobscanmodule(resBeacon,X4.exe,41 29 00 75 08 49 8B CF) // Resource Beacon
aobscanmodule(navBeacon,X4.exe,41 29 00 75 08 49 8B CF E8 5E) // Nav Beacons

alloc(satMem,$1000,"X4.exe"+2A5725)
alloc(minMem,$1000,"X4.exe"+2A5D85)
alloc(laserMem,$1000,"X4.exe"+2A738B)
alloc(resMem,$1000,"X4.exe"+2A6AA5)
alloc(navMem,$1000,"X4.exe"+2A6435)

label(satExit)
label(minExit)
label(laserExit)
label(resExit)
label(navExit)

registersymbol(satDeploy)
registersymbol(mines)
registersymbol(lasers)
registersymbol(navBeacon)
registersymbol(resBeacon)

// Satellite
satMem:
  nop
  nop
  nop
  jne X4.exe+2A5732
  jmp satExit

// Resource Beacons
resMem:
  nop
  nop
  nop
  jne X4.exe+2A6AB2
  jmp resExit



// Nav Beacons
navMem:
  nop
  nop
  nop
  jne X4.exe+2A6442
  jmp navExit

//Lasers
laserMem:
  nop
  nop
  nop
  jne X4.exe+2A7398
  jmp laserExit

// Mines
minMem:
  nop
  nop
  nop
  jne X4.exe+2A5D92
  jmp minExit


satDeploy:
  jmp satMem

satExit:

resBeacon:
  jmp resMem

resExit:

navBeacon:
  jmp navMem

navExit:

lasers:
  jmp laserMem

laserExit:

mines:
  jmp minMem

minExit:



[DISABLE]

satDeploy:
  db 41 29 00 75 08

resBeacon:
  db 41 29 00 75 08

navBeacon:
  db 41 29 00 75 08

lasers:
  db 41 29 00 75 08

mines:
  db 41 29 00 75 08

unregistersymbol(satDeploy)
dealloc(satMem)
unregistersymbol(resBeacon)
dealloc(resMem)
unregistersymbol(navBeacon)
dealloc(navMem)
unregistersymbol(mines)
dealloc(minMem)
unregistersymbol(lasers)
dealloc(laserMem)



would be nice to see this added to the table