wyozi / wmc-plus

Media center addon for Garry's Mod
MIT License
1 stars 1 forks source link

Doesn't save music list #17

Open Hiimiko opened 8 years ago

Hiimiko commented 8 years ago

http://i68.tinypic.com/hv48z4.jpg -- Here's the Music with ID number

http://i65.tinypic.com/28wm6ab.jpg -- Map changed and this error happened

http://i64.tinypic.com/9hhqgi.jpg -- Included time stamp for proof that it's gone.

http://i64.tinypic.com/hvsdqs.jpg -- Includes re-adding it, and the ID number increased.

I did a test with our TTT Server and it works fine, saves on map change and everything...

It does NOT save on our TDM server though...

I even deleted it and re-uploaded it from here.

http://prntscr.com/as1i0j
-- Shows the WMCP.txt file.

yupi2 commented 7 years ago

This is a very old issue but it's worth mentioning that the problem is almost certainly net.ReadTable/net.WriteTable not being able to handle the large table being sent to clients. I ran into this exact same problem so I made an addon to compress/decompress tables before writing/reading them from the client/server. If you're interested (or even still using WMCP) then you can check out these addons that can be dropped in. There's no guarantee that it won't clash with anti-cheats replacing net.ReadTable/net.WriteTable or that it won't cause addons to generate errors but it may work.

https://github.com/yupi2/vON (This is a table <-> string library created by vercas. I just made it drop in as an addon) https://github.com/yupi2/net_compressed_table