Page 5 of 20

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

Posted: Fri Feb 08, 2019 4:55 am
by KingFalcon
Update to the "Unlimited Consumables" code for V1.60:

Code: Select all

{ Game   : X4.exe
  Version: 1.60
  Date   : 2019-02-05
  Author : kingFalcon

  This script enable unlimited consumables
}

[ENABLE]


aobscanmodule(satDeploy,X4.exe,41 29 00 75 08 49 8B CF E8 2E 12 ED FF) // Satellites
aobscanmodule(navBeacon,X4.exe,41 29 00 75 08 49 8B CF E8 1E 05 ED FF) // Nav Beacons
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 E8 AE FE EC FF) // Resource Beacon


alloc(satMem,$1000,"X4.exe"+2B34E5)
alloc(minMem,$1000,"X4.exe"+2B3B45)
alloc(laserMem,$1000,"X4.exe"+2B514B)
alloc(resMem,$1000,"X4.exe"+2B4865)
alloc(navMem,$1000,"X4.exe"+2B41F5)

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+2B34F2
  jmp satExit

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

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

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

// Mines
minMem:
  nop
  nop
  nop
  jne X4.exe+2B3B52
  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.50 Steam (GM and More) 2018-Dec-21

Posted: Mon Feb 25, 2019 5:22 pm
by kurstein
Hi Recifense

can we get a update for 2.00 in X:4

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

Posted: Wed Feb 27, 2019 8:48 am
by KingFalcon
Updated code for unlimited consumables for Version 2.00:

Code: Select all

{ Game   : X4.exe
  Version: 2.00
  Date   : 2019-02-27
  Author : kingFalcon

  This script enable unlimited consumables
}

[ENABLE]


aobscanmodule(satDeploy,X4.exe,41 29 00 75 08 49 8B CF E8 CE C0 EC FF) // Satellites
aobscanmodule(navBeacon,X4.exe,41 29 00 75 08 49 8B CF E8 BE B3 EC FF) // Nav Beacons
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 E8 4E AD EC FF) // Resource Beacon


alloc(satMem,$1000,"X4.exe"+2C2225)
alloc(minMem,$1000,"X4.exe"+2C2885)
alloc(laserMem,$1000,"X4.exe"+2C3E8B)
alloc(resMem,$1000,"X4.exe"+2C35A5)
alloc(navMem,$1000,"X4.exe"+2C2F35)

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+2C2232
  jmp satExit

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

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

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

// Mines
minMem:
  nop
  nop
  nop
  jne X4.exe+2C2892
  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.50 Steam (GM and More) 2018-Dec-21

Posted: Thu Feb 28, 2019 7:22 pm
by OhHeyItsLee
I'd also like to see an update to the table for 2.0 :)

Re: X4 Foundations v2.00 Steam (GM and More) 2019-Mar-03

Posted: Sun Mar 03, 2019 9:52 pm
by Recifense
Hi guys,

A table was added for version 2.00. Please look at the first post.

Cheers!

Re: X4 Foundations v2.00 Steam (GM and More) 2019-Mar-03

Posted: Mon Mar 04, 2019 7:42 pm
by OhHeyItsLee
Yay! Thanks Recifense, much appreciated! And thanks KingFalcon for your Unlimited Consumables script as well! You two are awesome.

Re: X4 Foundations v2.00 Steam (GM and More) 2019-Mar-03

Posted: Tue Mar 05, 2019 4:19 pm
by kurstein
Thanks Recifense

love your work

Re: X4 Foundations v2.00 Steam (GM and More) 2019-Mar-03

Posted: Mon Mar 18, 2019 10:04 pm
by Mart1z
2.20 new update...

Re: X4 Foundations v2.20 Steam (GM and More) 2019-Mar-18

Posted: Tue Mar 19, 2019 12:15 am
by Recifense
Hi guys,

A table was added for version 2.2.0. Please look at the first post.

Cheers!

Re: X4 Foundations v2.20 Steam (GM and More) 2019-Mar-18

Posted: Wed Mar 20, 2019 3:23 pm
by kurstein
hi Recifense

thx for super nice work

Re: X4 Foundations v2.50 Steam (GM and More) 2019-May-28

Posted: Wed May 29, 2019 1:20 am
by Recifense
Hi guys,

A table was added for version 2.50 at the first post.

Cheers!

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

Posted: Fri May 31, 2019 5:02 pm
by anonymouz
KingFalcon wrote:
Wed Feb 27, 2019 8:48 am
Updated code for unlimited consumables for Version 2.00:
...
I'm not able to make this run, how to use this / add this in CE?

Could you do a table, so we can merge this together with the Main-Table of this Topic, Please?
(Would be nice if you could do this also with 2.00/2.20 Version if possible)

*hope*

Thanks so far, for all your Tables, @KingFalcon & Recifense! :wub:

Re: X4 Foundations v2.50 Steam (GM and More) 2019-May-28

Posted: Fri Jun 07, 2019 9:16 am
by Eddy
Thx

Re: X4 Foundations v2.50 Steam (GM and More) 2019-May-28

Posted: Mon Aug 19, 2019 1:52 am
by Gvaz
Any way to cheat items like giving yourself Engine Parts? Some of my stations are lacking engine parts and other resources that are preventing them from building ships.

Re: X4 Foundations v2.50 Steam (GM and More) 2019-May-28

Posted: Tue Aug 27, 2019 6:18 am
by KingFalcon
Gvaz wrote:
Mon Aug 19, 2019 1:52 am
Any way to cheat items like giving yourself Engine Parts? Some of my stations are lacking engine parts and other resources that are preventing them from building ships.
The only I know of is to buy and sell a small quantity of the item that you need and search for the values in CE.

for example buy 17 Engine Parts search for 17 in CE, then buy another 3 and search for 20, sell 5 and search for 15 ....

Keep on doing this until you have a single variable, now you can change the value to a reasonable amount.

1. You need to make sure the ship that is trading has the capacity to handle the volume, otherwise you will not be able to trade/transfer the item.
So if you need 10,000 units of an item and your ship can only carry 4,000. You will need to transfer goods 3 times (4000 at a time).

2. Make sure the value is never 0, otherwise X4 will change the structure of the variables (Based on the cargo hold) and you will need to start again.