• UMSG to NET message redirector / converter
    20 replies, posted
I made something pretty simple. Useful for those that are using umsgs that want to use net-messages but have too many to convert and not enough time... [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/networking/converting_umsg_to_net_messages.lua.html[/url] The first 3 files are needed to handle it. Basically since having multiple net-message network strings has no benefit other than to distinguish between messages, it basically just adds all usermessage hooks to one table based on name, the net-receiver then just calls the functions and passes in the arguments using usermessage library for the argument which is used by umsg to Read the values ( dirty redirect, but until I finish the other, cleaner system, it works )... The server sender uses similar redirects... It is already being used on one large production server with success. Reduced lag and next to no umsgs are being sent any longer ( except for hard-coded functions which use it such as SendLua and others which will be converted in a different version ). I'll finish up this system when I release my networking system and when I am working on finishing it, I'll be converting NWVars, etc.. over to my networking system too meaning that no variable is sent unless it is changed and clients won't be able to request variables every frame ( each var will have a cooldown / cache time if they're private variables ). Hopefully this helps a few of you..
Note, for those using this, or my acecooldev_networking system and have an issue running it WITH ulx installed, view these links: [url]https://bitbucket.org/Acecool/acecooldev_networking/overview[/url] -- IMPORTANT NOTE added to the bottom of the readme file which covers modifying your ulx file to set the variable to a local. This will hopefully be merged into the official ULX code soon, when that has been done then I will remove the notice... CURRENTLY AFFECTED VERSIONS: [url]http://ulyssesmod.net/downloads.php[/url] ULX 3.61 - [url]http://ulyssesmod.net/archive/ulx/ulx-v3_61.zip[/url] - and prior.... [code]IMPORTANT NOTE: If you are using ULX / ULib with this addon there is a compatibility issue because of ULX not using local variables in a file which overwrites the data table. To FIX this issue open: addons/ulx/lua/ulx/modules/xgui_server.lua Scroll to line 152 REPLACE: data = xgui.dataTypes[dtype] WITH: local data = xgui.dataTypes[dtype] and that's it, all fixed! Make sure you apply this compatibility fix to your server, local addons or anywhere where ULX is installed. I've submitted a pull-request to ULX and the pull request can be viewed here: https://github.com/Nayruden/Ulysses/pull/404 Additionally, I've submitted an ISSUE Report which can be viewed here: https://github.com/Nayruden/Ulysses/issues/403 [/code] [url]https://github.com/Nayruden/Ulysses/pull/403[/url] -- Issue Report [url]https://github.com/Nayruden/Ulysses/pull/404[/url] -- Pull Request EDIT: [B]This issue has been resolved and the pull-request has been MERGED; make sure you're using the latest ULX[/B]
For the stupid people, does this have any benefit for server performance if we're not addon developers?
[QUOTE=WitheredPyre;47185389]For the stupid people, does this have any benefit for server performance if we're not addon developers?[/QUOTE] Makes your networking the tiniest bit faster.
Of course it makes it faster and everything should be that way anyways.
Being a noob looking at this... is it worth using, will it make my performance even the tiniest better?
[QUOTE=YourStalker;47273482]Being a noob looking at this... is it worth using, will it make my performance even the tiniest better?[/QUOTE] If any of your addons or code uses usmgs then yes. [editline]7th March 2015[/editline] Also Acecool, what was the verdict on that pull request?
Does this encourage laziness?
[QUOTE=Walrus Viking;47275644]Does this encourage laziness?[/QUOTE] Stagnancy if anything. If someone is so far in the hole as to having to use a wrapper to fix something, they might as well go all in and just do it properly and not rely on band-aid fixes.
This might be a nice idea but I'm more tempted to review my code and replace outdated parts anyway.
[QUOTE=ph:lxyz;47296684]This might be a nice idea but I'm more tempted to review my code and replace outdated parts anyway.[/QUOTE] I can see it's uses. If you want to run straight from a repo of a large addon like Wiremod for example. You don't want to go through changing there code every update. I've no idea how efficient wiremod is these days, they might not even use UMSG anymore, was just an example.
Anyone having an issue with this in TTT where it gives the following error clientside when you arm C4: [code][ERROR] addons/acecool/lua/autorun/umsg_to_net_mapping_sh.lua:132: Undefined UMSG Hook: c4_disarm_result 1. error - [C]:-1 2. func - addons/acecool/lua/autorun/umsg_to_net_mapping_sh.lua:132 3. unknown - lua/includes/modules/net.lua:32[/code] I believe it has something to do with this AccessorFuncDT stuff found [url=https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/terrortown/entities/entities/ttt_c4/]here[/url] around 47 and 48.
[QUOTE=YourStalker;47344778]Anyone having an issue with this in TTT where it gives the following error clientside when you arm C4: [code][ERROR] addons/acecool/lua/autorun/umsg_to_net_mapping_sh.lua:132: Undefined UMSG Hook: c4_disarm_result 1. error - [C]:-1 2. func - addons/acecool/lua/autorun/umsg_to_net_mapping_sh.lua:132 3. unknown - lua/includes/modules/net.lua:32[/code] I believe it has something to do with this AccessorFuncDT stuff found [url=https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/terrortown/entities/entities/ttt_c4/]here[/url] around 47 and 48.[/QUOTE] It's probably with an addon; c4_disarm_result doesn't appear anywhere in the vanilla TTT code. [editline]17th March 2015[/editline] [url]https://github.com/dkdps/EnrageUk-TTT-/blob/ad41264a34b7d01666bfb0431feb782bf2dfc4c1/garrysmod/Addons/Damagelog-master/lua/sv_stupidoverrides.lua[/url] Yup, seems to be with DamageLogs
This addon seems to becoming more and more of an issue (the damage log) :P Thanks though!
This is kind of a weird reason to bump a thread but Acecool has seemingly vanished. He talked a lot about being injured and not having much time left so I was wondering how he was doing
[QUOTE=Exho;49229626]This is kind of a weird reason to bump a thread but Acecool has seemingly vanished. He talked a lot about being injured and not having much time left so I was wondering how he was doing[/QUOTE] I've never really spoken to him but I've got him on Steam - he has over 100 hours in-game for the last two weeks so Acecool is probably fine but has moved on from Gmod
I hit him up with a message. Nice to see people care.
From what I had seen and known about him, for the few times I spoke to him, he is a sweet guy, really patient. Let's hope he's okay
He's alive and doing reasonably.
I miss acecool, who else's coding standards can we make fun of? Jokes aside, he's a cool guy, helped me with understanding gameevents and net messages from his various tutorial
He just commented on a GMod [URL="https://github.com/garrynewman/garrysmod/pull/1097"]GitHub PR[/URL] stating that his health has still been pretty bad: [quote=Acecool] I haven't been in-tune with a lot lately because of continuing health issues ( reason why I haven't been on facepunch for a long time ) [/quote]
Sorry, you need to Log In to post a reply to this thread.