Giter Site home page Giter Site logo

daylily-zeleen / gd-eos Goto Github PK

View Code? Open in Web Editor NEW
23.0 23.0 2.0 518.34 MB

Epic Online Services for Godot. Use as C++ SDK or compile as GDScript SDK.

License: MIT License

Python 50.86% C++ 49.12% C 0.02%
code-generation epic epic-online-services gdextension gdscript godot multiplayer p2p

gd-eos's People

Contributors

daylily-zeleen avatar

Stargazers

 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

Forkers

yanweiliang senln

gd-eos's Issues

Playerdatastorage does not write file

When i try to write using playerdatastorage, i always get WriteData callback failed.

Both cache directory and encryption key are set.

code:
func _ready():
# wait for login
await Main.logged_in
# Init
# Checking for username
var check_username = await EOSPlayerDataStorage.query_file(Main.local_id, "username.txt")
var username = ""
if check_username.result_code == EOS.NotFound:
# Generate new username
username = "NewPlayer" + str(randi_range(1111, 9999))
# Save File
var file = FileAccess.open(Global.cache_directory + "username.txt",FileAccess.WRITE)
print(Global.cache_directory + "username.txt")
file.store_string(username)
file.close()
#
var options = EOSPlayerDataStorage_WriteFileOptions.new()
options.filename = "username.txt"
options.chunk_length_bytes = 4096
options.local_user_id = Main.local_id
var test = EOSPlayerDataStorage.write_file(options)

Error:
[LogEOSPlayerDataStorage]: WriteData callback failed.
[LogEOSPlayerDataStorage]: Deleting local scratch file as the file was not written to successfully. ScratchFilename=[C:/...emp/datastorage/scratch/e06da7e7775748b1a792fcedf088a3ce/000...b00/username.txt]

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.