Jump to content
Sign in to follow this  
ttah11

Loading Variable From File Bug

Recommended Posts

local config={
	test=true
}

local configPath=gg.getFile()..'.cfg'

gg.saveVariable(config,configPath)

print(load(configPath))

Screenshot_20200113-092416.png.a856b01034e524a5f0636dccd50c2a14.png

@Enyby Am I doing something wrong?

Share this post


Link to post
Share on other sites

18 minutes ago, ttah11 said:

print(load(configPath))

must be

print(assert(loadfile(configPath), "Failed load config from "..configPath)())

Share this post


Link to post
Share on other sites

Yeah but it says 'attempt to call a nil value'

Share this post


Link to post
Share on other sites

Then you doing something wrong because it is work for me.

local config={
	test=true
}

local configPath=gg.getFile()..'.cfg'

gg.saveVariable(config,configPath)

print(assert(loadfile(configPath), "Failed load config from "..configPath)()) 

 

[added 0 minutes later]

изображение.png

Share this post


Link to post
Share on other sites

I don't know what is causing this issue. It fails on both of my phones and on my pc using LDPlayer and it says the same thing.

Share this post


Link to post
Share on other sites

Oh nevermind I found the issue, thanks for the help.

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  

  • Similar Content

    • By msebastian100
      Hello,
      gameguardian goes very well [Nox, MEmu, Bluestacks] [with Root]
      The only thing that is not working, the Speedhack has tested it in many applications.
      Example: ac rebellion
      on the phone Goes the Speedhack [with Root].
      on [Nox, MEmu, Bluestacks] the sppedhack does not work.
      Greetings msebastian100
    • By MIQ2001
      Okay, so it's taken me a week to find a on actual working hack program of anything for Dragon City. Then I found Game Guardian and optimized Parallel Space. It showed the game in my process. I knew how to enter values. When I entered the new values they showed up. Then if I used them the game crashed. Even if I didn't, the game crashed after 20 seconds. It would never save the changed info or amounts then. So. Is this program entirely useless, or is there a bigger problem? Is it the game? Is there any hope for hacking the game because I'm sick of having to spend real money on it. I love the game though. Someone just let me know if I'm exhausting my efforts for nothing please...
    • By zshuaijie82
      Equipment: xiaomi 6
      BUG: always shut down unexpectedly at run
      I tried many ways but I still can't
      Please fix this problem. Thank you
    • By DuhLynx
      So I've been anxious to play around with some scripts on a guest account for PUBG and I've watched countless tutorials on how to do so but I always get the error "Operation not permitted" without root and "game is protected" with a root. (THis occurs when trying to select a cheat after executing order 66 the .lua file. If anyone can guide me to a possible solution then HMU with details.
       
    • By QwertyQwerty12345
      Since i started using GG V8.55 onward (all the new updates) the games i always use GG on with speedhack started crashing - and i am 10000% sure it is the new updates sicne 8.55 cuz my other tablets and fones still havce GG V.8.54. even BS (bluestacks) has V8.54 and the same games run as usual perfectly with the speedhack except when u sing 8.55 crashes a LOT
       
      hope you fix ASAP 
       
×
×
  • Create New...