GithubHelp home page GithubHelp logo

Variables sync about skungee HOT 5 CLOSED

skungee avatar skungee commented on July 20, 2024
Variables sync

from skungee.

Comments (5)

TheLimeGlass avatar TheLimeGlass commented on July 20, 2024

You can't do this with it's own Syntax or Configuration, but you can set up indices to grab from.

set {_server} to current server
set network variable {server::%{_server}%::something} to "something"

#getting
set async {_something} to network variable {server::%{_server}%::something}

from skungee.

Tyberhertz avatar Tyberhertz commented on July 20, 2024

I have now tried to customize a script for your script but somehow it is not yet ..

logfile:
[18:23:23] [Thread-195/INFO]: [Skungee] Recieved packet: UPDATEVARIABLES with data: proxy.playerdata..punkte with settable data: [type=string, data=[-128, 1, 49]]

error:
[17:44:06] [main/INFO]: [CHAT] {_server} can only be set to one object, not more (sync.sk, line 79: set {_server} to current server')

Skript:

on quit:
	set network variable {proxy.playerdata.%{_uuid}%.punkte} to "%{playerdata.%{_uuid}%.punkte}%"


on join:
	set async {playerdata.%{_uuid}%.punkte} to network variable {proxy.playerdata.%{_uuid}%.punkte}

from skungee.

TheLimeGlass avatar TheLimeGlass commented on July 20, 2024

Ok there are a few issues.

1.) A variable sync feature between servers is an enhancement, added enhancement lable.

2.) There is a bug where the current server syntax returns multiple rather than single, added bug label.

3.) In your script you provided, you're not setting the local variable {_uuid} before you use it, so you're setting a blank variable you will never be able to grab again, creating wasted space in the database.

from skungee.

TheLimeGlass avatar TheLimeGlass commented on July 20, 2024

The multiple return error has been fixed in 1.1.0

from skungee.

TheLimeGlass avatar TheLimeGlass commented on July 20, 2024

And the variable sync suggestion is a duplicate of #34

from skungee.

Related Issues (20)

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.