Skip to content

sync clientside models to server at ease, when steamworks.DownloadUGC() is unavailable serverside

License

Notifications You must be signed in to change notification settings

GrayWolf64/mdlstream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

WIP: MDLStream

This repo is a mirrored one, from a secret Gitea host to public GitHub.

Usage

mdlstream.SendRequest(mdl_path: string, callback: function)

Sends a sync request on a specified file(size <= 8 MB), whose extension must be one of vvd, phy, vtx, ani and mdl and content is header-correct. After server tells client that sync(transmission and file build) successful, client will execute the given callback.

Detailed workings please turn to the source file, easy to read.

If you are a client, your requests are all enqueued serverside, each request action can run only if the previous one is already ran(finished). You can submit mdt in console to open MDLStream Debugging Tool, a currently simple interface to avoid switching between gmod and editor constantly when debugging.

In singleplayer, api is not enabled.

Plans(todos)

Make the most of a single and slow netchan. See the source code for detailed todos.

About

sync clientside models to server at ease, when steamworks.DownloadUGC() is unavailable serverside

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages