• User Messages Or Messages on hud
    14 replies, posted
How Do I make UserMessages And Also What Messages That Show up on the hud Which one is better?
What? [highlight](User was banned for this post ("Why reply" - Craptasket))[/highlight]
What? [highlight](User was banned for this post ("Bandwagon reply" - Craptasket))[/highlight]
What? [highlight](User was banned for this post ("Bandwagon reply" - Craptasket))[/highlight]
What? [highlight](User was banned for this post ("Bandwagon reply" - Craptasket))[/highlight]
Whaaaaaaaaaat? [highlight](User was banned for this post ("Bandwagon reply" - Craptasket))[/highlight]
What? [highlight](User was banned for this post ("Bandwagon reply" - Craptasket))[/highlight]
[QUOTE=DeadShotKillz;45555794]How Do I make UserMessages And Also What Messages That Show up on the hud Which one is better?[/QUOTE] User-messages are a form of communication. It is limited to 255 bytes total size per message, and it can only transmit one way ( SERVER > CLIENT ). Additionally, UMSGs are sent the next frame instead of instantly. Net messages are the newest form of communication. The size is 64kb per message and can be transmitted BOTH ways. Net Messages are sent INSTANTLY. Both forms are limited to 20 KB/sec speeds. Here's an example of how to send a bit ( boolean ): [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/networking/networking_booleans.lua.html[/url] To make huds, and panels take a look at this to understand an easy way to ensure uniform size for different resolutions: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/vgui/understanding_hardcoding_of_screensizes.lua.html[/url] To hide default hud elements, use this method: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/vgui/proper_hud_creation.lua.html[/url] VS using table.HasValue. [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/benchmarking_tips/benchmarking_hud_stuff.lua.html[/url] 15 seconds vs 0.08 seconds running 100 million times. Here are a few examples combining net-messages to send data to a client to have something show on the hud, or open a panel ( some examples use a method of HOOK Creation within a net-receive... Typically when you build a HUD, you'd want to just use the hook.Add( "HUDPaint" ... portion and exclude the networking, unless you want specific things to happen at certain points.. But, still, you could use shared or client hooks to add another hook and then have it removed, etc... ): [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/benchmarking_tips/benchmarking_hud_stuff.lua.html[/url] Creating shapes using POLY: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/poly/creating_shapes_using_poly.lua.html[/url] [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/poly/simplified_circles_with_poly.lua.html[/url] [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/poly/tilted_rectangle_poly_as_health_meter.lua.html[/url] Hopefully these help. [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/vgui/sh_hud_countdown.lua.html[/url] Here are some other useful resources if you're new to Lua or GLua: Hey, welcome to FacePunch. This forum is for devs that need help working on things. Here are some resources to help you get started: ---------------------------------------------- General Learning Lua Help Thread ( Contains links to helpful topics, and websites ): [url]http://facepunch.com/showthread.php?t=1337945[/url] Problems that don't need their own thread ( All simple questions / quickies should go here, but please do not post a question here AND make a new topic.. ): [url]http://facepunch.com/showthread.php?t=1411111[/url] OLD Problems and Solutions thread ( contains a massive amount of useful data ): [url]http://facepunch.com/showthread.php?t=1348923[/url] Garry's Mod Wiki: [url]http://wiki.garrysmod.com/page/Main_Page[/url] Old Garry's Mod Wiki ( Contains a lot of useful information; some content may not work without modification within GM13 ): [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index4875.html[/url] DarkRP Help Thread ( [b]ALL[/b] DarkRP Questions go here ): [url]http://facepunch.com/showthread.php?t=1249475[/url] DarkRP Wiki ( Most questions can be answered here ): [url]http://wiki.darkrp.com/index.php/Main_Page[/url] Creating Jobs in DarkRP: [url]http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields[/url] Creating Shipments in DarkRP: [url]http://wiki.darkrp.com/index.php/DarkRP:CustomShipmentFields[/url] Looking to [b]HIRE[/b] a coder? Read this: [url]http://facepunch.com/showthread.php?t=1257110[/url] and visit [url]http://www.coderhire.com[/url] Coderhire Thread: [url]http://facepunch.com/showthread.php?t=1281665[/url] Facepunch Style Fixer for GreaseMonkey: [url]https://userstyles.org/styles/65192/facepunch-fixer[/url] Or the updated Faceraper: [url]http://www.facepunch.com/showthread.php?t=1314761[/url] ----------------------------------------------
[QUOTE=DerpishCat;45556192]What? [highlight](User was banned for this post ("Bandwagon reply" - Craptasket))[/highlight][/QUOTE] This is some lovely hypocritical irony here.
[QUOTE=Acecool;45556492]:words:[/QUOTE] Why do you post so much stuff? Like 3/4 of that isnt even related to ... whatever OP asked (I actually have no idea what that says). You posted stuff about DarkRP and rendering polys and theres no mention of either anywhere in this thread.
[QUOTE=G4MB!T;45559128]Why do you post so much stuff? Like 3/4 of that isnt even related to ... whatever OP asked (I actually have no idea what that says). You posted stuff about DarkRP and rendering polys and theres no mention of either anywhere in this thread.[/QUOTE] Because the OP asked about "User Messages Or Messages on hud" / "How Do I make UserMessages And Also What Messages That Show up on the hud Which one is better? " which can mean any number of things... Networking, differences between net and umsg, drawing text in HUDPaint, what are the pros/cons of hiding huds in terms of speed based on default messages show up on the hud ( hl2 hud, etc... how to properly hide them ), creating panels etc... The post is a little vague and can cover a wide range of things. The OP may be looking for some research materials, or may not know what question to ask... Hopefully with providing the material it'll help to narrow down what is trying to be achieved... I tried to add in things that seemed relevant.
[lua]// Created by Josh 'Acecool' Moser[/lua] [highlight](User was banned for this post ("Trolling" - Craptasket))[/highlight]
[QUOTE=Acecool;45560099]Because the OP asked about "User Messages Or Messages on hud" / "How Do I make UserMessages And Also What Messages That Show up on the hud Which one is better? " which can mean any number of things... Networking, differences between net and umsg, drawing text in HUDPaint, what are the pros/cons of hiding huds in terms of speed based on default messages show up on the hud ( hl2 hud, etc... how to properly hide them ), creating panels etc... The post is a little vague and can cover a wide range of things. The OP may be looking for some research materials, or may not know what question to ask... Hopefully with providing the material it'll help to narrow down what is trying to be achieved... I tried to add in things that seemed relevant.[/QUOTE] OP can barely construct a sentence, even if it isn't his/her first language, should know about capital letters. I think they just wanted to get spoon fed
sbip
Sorry, you need to Log In to post a reply to this thread.