Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geolocator don't work #5

Open
xtclovver opened this issue Mar 28, 2024 · 4 comments
Open

Geolocator don't work #5

xtclovver opened this issue Mar 28, 2024 · 4 comments

Comments

@xtclovver
Copy link

mods/hook/content/scripts/geolocator.lua:150: attempt to index a nil value

@xtclovver
Copy link
Author

I tried to fix it but it didn’t work, I really hope that you will help me and fix the geolocator!

12:17:33 AM Log: (C:\projects\payday2-superblt\src\InitiateState.cpp:486) HTTP request to https://api.ipdata.co/0002d939570a43beb1c206b07b93c7b1?api-key=*API KEY HIDDEN*
12:17:33 AM Log: (C:\projects\payday2-superblt\src\InitiateState.cpp:486) HTTP request to https://reallyfreegeoip.org/json/0002d939570a43beb1c206b07b93c7b1
12:17:34 AM Log: (C:\projects\payday2-superblt\src\InitiateState.cpp:96) mods/hook/content/scripts/geolocator.lua:150: attempt to index a nil value
12:17:34 AM Lua: [INFO] [Keybind] Bound 'geolocator_keybind' to i
12:17:34 AM Log: (C:\projects\payday2-superblt\src\InitiateState.cpp:96) ...scripts/CommandManager/Hooked/Core/requirements/JSON.lua:145: trailing garbage at byte 5 of: 404 page not found

12:17:35 AM Lua: [INFO] [BLT] Performing save...
12:17:37 AM Log: (C:\projects\payday2-superblt\src\InitiateState.cpp:486) HTTP request to https://api.ipdata.co/0002b61d496448bca272a3032b17b04f?api-key=*API KEY HIDDEN*
12:17:37 AM Log: (C:\projects\payday2-superblt\src\InitiateState.cpp:486) HTTP request to https://reallyfreegeoip.org/json/0002b61d496448bca272a3032b17b04f
12:17:37 AM Log: (C:\projects\payday2-superblt\src\InitiateState.cpp:96) mods/hook/content/scripts/geolocator.lua:150: attempt to index a nil value
12:17:38 AM Log: (C:\projects\payday2-superblt\src\InitiateState.cpp:96) ...scripts/CommandManager/Hooked/Core/requirements/JSON.lua:145: trailing garbage at byte 5 of: 404 page not found

@Mayzone
Copy link
Owner

Mayzone commented Mar 29, 2024

Can't get the IP anymore from lua source code, they patched it and encrypted the IPs. Have to use 3rd party apps or get IP from C++. 3rd party apps will probably close the game each time IP is stored.

@xtclovver
Copy link
Author

Have to use 3rd party apps or get IP from C++. 3rd party apps will probably close the game each time IP is stored.

Hello, thanks for your reply! What do you mean by get ip from c++? Are there options to write modifications for payday not in lua, but in C++? I have experience developing in C++ and I would be interested in doing it :)

@YALOKGARua
Copy link
Collaborator

mods/hook/content/scripts/geolocator.lua:150: attempt to index a nil value

Add me to Discord (yalokgar) and we can talk about getting an IP using C++

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants