Jump to content
Sign in to follow this  
GOIIA

Hwo to create or mod Libs files using gg?

Recommended Posts

I know Lp2lua.lua but it's only mod some specific hex values. But i needed to edit full library files or want to create mod Libs (with value of 00) using lua Script.

It will done easily with linux or any terminal 

Using "dd if=/dev/zero of=". But want to do that using lua Script.

Edited by GOIIA

Share this post


Link to post
Share on other sites

Just write zeroes to file via io.* functions.

[added 0 minutes later]

And you can not edit game lib files, because lua scripts do not have access to them. But you can edit any memory in game process. Even allocate new memory.

Share this post


Link to post
Share on other sites
2 minutes ago, Enyby said:

Just write zeroes to file via io.* functions.

[added 0 minutes later]

And you can not edit game lib files, because lua scripts do not have access to them. But you can edit any memory in game process. Even allocate new memory.

If i want to edit whole lib memory Then what i needed?

Can you give me sn example of function?

Share this post


Link to post
Share on other sites

Then you need edit it.

You free modify any memory, so... just modify it.

 

But it is really complicated task if game stay use this code. And it is produce crash if you change something wrong.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...