Coder Social home page Coder Social logo

luahook's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

luahook's Issues

Access memory violation / Game Crashes

Hello,

I find your lua hook very useful and I wanted to test it on modded vermintide 2 realm with EAC disabled.
I receive random crashes and spent several hours straight trying to understand whats going on.
It starts correctly with lua state = 0 and new lua state = 0 (game offset correct)
Clicking Home (changed hotkey from F9)...
Getting 0 0 again, worked, fire mage boosted levels.
2nd time, same
3rd time, lua state=0, new lua state=4 and getting memory access violation and address like 0x0000000000010 for instance

I have few experience with lua. I tried hooking lua_settop and call val.lua_settop_p(lua_State_ptr, 0); to clear stack but without a luck.
Also, checked creating new lua thread whens its value=4.
Sometimes i sucessfuly execute lua like 5 times in a row and crash and sometimes crash after 1st or 2nd.

May you help me?
Can we catch these exceptions (despite lua is written in c) and take action or continue loop?

Cheers,
Filip

Console does not outputs Lua `print`?

Hi there,

Amazing project you have here! I would have never thought I could have ever gotten this far with the help of your project, I loved the read @ https://niemand.com.ar/2019/02/15/why-leveling-if-you-can-just-use-lua-hacking-lua-inside-games/ and totally enjoyed it, it was let me to actually implement this into another game and low and behold, it works like a charm, I had to make some changes, e.g. the Lua is embedded in my target so I had to remove all references when you get the lua51 module instead I had to manually find the function (gettop, settop, loadfile, etc., etc.) addresses and so on...

Now my thing is that I have been trying to understand how this works and this projects has broaden my very limited knowledge on hooking lua and working with it in general, my issue comes from trying to output the actual print from lua itself to the allocated console... however I haven't been able to accomplish this...

It just won't print... either print("hello world") nor io.write("Hello world, from ",_VERSION,"!\n")

So I'm actually writing all my output to a file, which is quite unconventional knowing I have print available but it does not works.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.