Creates the Flux global together with Flux.shared, the table of data that the server passes on to clients: the schema folder, plugin info, configs, dependencies and packages. Refuses to start when the gamemode is set to 'flux' itself instead of a schema. On the client it also loads the UTF-8 and SFS libraries and the generated files from _flux/client.

Summary

Functions

Takes one piece of a table that the server has split over several of the generated files, because a single file would be too large to be sent to clients.

Functions

Flux.receive_chunk(name, index, count, data)

client lib/flux_struct.lua:51

Takes one piece of a table that the server has split over several of the generated files, because a single file would be too large to be sent to clients. The pieces are kept, since a Lua refresh may only send the ones that have changed.

Parameters

  • name String name of the table the piece belongs to
  • index Number position of the piece
  • count Number amount of pieces the table consists of
  • data String the piece of the serialized table

Returns

  • Map the table once all of its pieces are there, nil before that

Defined in