Page 1 of 2

Intravenous 2

Posted: Tue Aug 27, 2024 5:34 pm
by aSwedishMagyar
So this game uses the LOVE engine which is entirely lua based. It requires adding the lua.dll to the release folder so that makes it easy for us to find the loadstring and pcall functions for executing lua code and the gettop function which we need to grab the luaState.

My implementation is just using two consecutive calls of executeCodeEx, one for loadstring which adds the handle to the luastate stack, and one for executing the pcall which executes the last handle on the stack. I pause and unpause the game to try and ensure nothing messes with it during the function calls but it can occasionally crash so be aware.

Forgot to mention that despite not using the asm from his table, I did learn about this stuff from Sunbeam's post here and this [Link]

Oh and feel free to post any lua scripts that you come up with that you might want me to add to the table. Cheers.

Current Table:
intravenous2.CT
29-08-2024
1.0.20
No difference just removed bloat
(14 KiB) Downloaded 5236 times
Current Options:
  • Scripts
    • God Mode
    • Debug Mode - (Buggy, can crash game) -Press Y to add ammo for current weapon
    • Invisible
    • Set Health Max
    • Set Health Max
    • Unlock Weapons
    • Unlock Weapon Mods
    • Fast Reload
    • Add Money
  • Debug
    • Dump Globals
    • Dump Player Actor

Old Versions
intravenous2.CT
27-08-2024
1.0.17
(11.99 KiB) Downloaded 631 times

Re: Intravenous 2

Posted: Wed Aug 28, 2024 3:42 am
by TeddyRiggs
so rather than add ammo can you make like the clip have 999 bullets instead?

so I can have the inf bullet sort of without the hassle of reloading

Re: Intravenous 2

Posted: Wed Aug 28, 2024 11:28 pm
by makotech222
Hmm it didn't work for me, using 1.0.17 gog version of game. Scripts are activated but effects aren't working. Tried godmode and invisible.

Re: Intravenous 2

Posted: Thu Aug 29, 2024 1:31 am
by TeddyRiggs
makotech222 wrote:
Wed Aug 28, 2024 11:28 pm
Hmm it didn't work for me, using 1.0.17 gog version of game. Scripts are activated but effects aren't working. Tried godmode and invisible.
only works for ver 1.0.13

Re: Intravenous 2

Posted: Thu Aug 29, 2024 3:12 am
by makotech222
the OP says 1.0.17, but shame, i just updated too :(

Re: Intravenous 2

Posted: Thu Aug 29, 2024 3:44 am
by aSwedishMagyar
makotech222 wrote:
Thu Aug 29, 2024 3:12 am
the OP says 1.0.17, but shame, i just updated too :(
Can you check to see if the luaState is found? Go to memory view and then hit Ctrl+U to see the registered symbols. If luaState is not among then then I can do something about it.

Re: Intravenous 2

Posted: Thu Aug 29, 2024 8:08 am
by xavehi
makotech222 wrote:
Thu Aug 29, 2024 3:12 am
the OP says 1.0.17, but shame, i just updated too :(
same here, table activated but no effect. (v1.0.17)

Re: Intravenous 2

Posted: Thu Aug 29, 2024 3:52 pm
by makotech222
No luastate, but the lua_pcall, call, loadbuffer loadstring are there.

Re: Intravenous 2

Posted: Thu Aug 29, 2024 7:55 pm
by aSwedishMagyar
makotech222 wrote:
Thu Aug 29, 2024 3:52 pm
No luastate, but the lua_pcall, call, loadbuffer loadstring are there.
Updated, let me know if it works.

Re: Intravenous 2

Posted: Thu Aug 29, 2024 8:48 pm
by makotech222
Yep, worked on 1.0.17 version of game. Thanks!

Re: Intravenous 2

Posted: Sat Aug 31, 2024 7:59 am
by Forceeuro
Can you add super accuracy?

Re: Intravenous 2

Posted: Mon Sep 02, 2024 10:57 am
by Candidate34
The Invisible not working, enemy still can see me ~. ~

Re: Intravenous 2

Posted: Sun Sep 22, 2024 10:23 pm
by jungletek
Unlock weapons works functionally, but the flag doesn't "stick"; all the weapons unlocked with the script will be locked again if you reload with the scripts inactive.

Weapon mods unlocks the mod in the list, but you can't actually apply them.

Regardless, nice work. I've not gotten into LUA stuff much, so there's things for me to learn here.

Re: Intravenous 2

Posted: Thu Oct 10, 2024 2:41 am
by zowrcandy
Needs an update, features like the invisibility cheat don't work anymore

Re: Intravenous 2

Posted: Thu Oct 10, 2024 3:49 am
by aSwedishMagyar
zowrcandy wrote:
Thu Oct 10, 2024 2:41 am
Needs an update, features like the invisibility cheat don't work anymore
Only thing that needs an update is your brain.