General > Developers Corner

ULib breaks datastream

(1/1)

thomasfn:
Sorry if this is in wrong place, or w/e.

Already sent off a bug report about this:
http://ulyssesmod.net/bugs/view.php?id=348

But it's important this is fixed asap.


--- Code: ---When using the datastream module (now included in GMod by default) clientside, ULib errors out and datastream fails to deliver data.

Using datastream.StreamToServer on the client. Error is serverside.

ULib/server/hook.lua:139: attempt to index local 'gm' (a nil value)

This causes compatability issues with PCMod 2, stopping a core feature from working. Any other mod that uses clientside datastream will break completely.

This is not a problem with my code, or datastream code, but with ULib overriding the hook library badly. It needs to be fixed asap, since ULX is basically breaking a GMod function.
--- End code ---

Many people use PCMod 2 and ULX on their servers, and since PCMod 2 uses clientside datastream, ULX breaks it.

Megiddo:
Argh. I told the author of Datastream not to do this; guess he didn't listen to me.

thomasfn:
Well, I don't know how much of this is LuaBanana's fault, or what exactly the problem is, but is there a chance you could add the fix into the next release/svn? I'm getting alot of complaints that the save feature is not working, and I don't want to have to give people a file to override hook.lua with. (I posted a fix on mantis)

Megiddo:
Testing the change now... will have it on SVN later today as long as it doesn't break anything.

EDIT: Fixed in rev 24

Navigation

[0] Message Index

Go to full version