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

Shroud unexplored areas. #9

Open
Nunyabb opened this issue Feb 8, 2024 · 1 comment
Open

Shroud unexplored areas. #9

Nunyabb opened this issue Feb 8, 2024 · 1 comment

Comments

@Nunyabb
Copy link

Nunyabb commented Feb 8, 2024

I have been trying to research how to go about pulling data from the game to add a overlay to the map that shrouds the map and only reveals the map as the player explores it along with player location data. I cant for the life of me find any info on the bin files or how they are structured internally. I thought this game was mod friendly? But anyways would be a neat feature that a faction could host on a wamp or xampp webserver

@cff29546
Copy link
Owner

cff29546 commented Apr 7, 2024

The structure of bin files is dependent on mods. It is not easy to retrieve visited area info from bin files.
However, the current player location is simple to get. The player database (players.db) stores this info. You can list the locations of all players via the following script:

import sqlite3

playersDB = sqlite3.connect('players.db')
cursor = playersDB.cursor()
cursor.execute('SELECT name, wx, wy, x, y, z FROM localPlayers;')
print(cursor.fetchall())

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

2 participants