[QUOTE=Robotboy655;52323779]net library.[/QUOTE]
and here i was still using pigeons
[QUOTE=>>oubliette<<;52324182]and here i was still using pigeons[/QUOTE]
That's ridiculous.
Just use GM:PlayerSay() for client->server communications and Player:ChatPrint() for server->client communications.
Give the message a header so it can be intercepted and suppressed and boom! Maximum efficiency.
Edit: To be clear: please don't
[QUOTE=a1steaksa;52324205]That's ridiculous.
Just use GM:PlayerSay() for client->server communications and Player:ChatPrint() for server->client communications.
Give the message a header so it can be intercepted and suppressed and boom! Maximum efficiency.[/QUOTE]
I'mma go with this method since I have alot of experience with the RESTful Web Services and I could just implement it into GMod with chat using JSON.
For server->client use a prop for each client and set it's location to a vector created from a byte.
For client->server run a loop checking if the player is jumping, if they're in the air 1, if not 0. Send the jump key to transmit.
[QUOTE=>>oubliette<<;52324182]and here i was still using pigeons[/QUOTE]
Well, there's your problem!
I just use usermessages ..
spoiler: Being ironic because I use net library and know that usermessages are hated and outdated
[QUOTE=Robotboy655;52323779]net library.[/QUOTE]
So is the net library faster & more efficient then concommands?
[QUOTE=Kalex22;52325679]
spoiler: Being ironic because I use net library and know that usermessages are hated and outdated[/QUOTE]
Uhh... Nice job?
I just set up a web service and use HTTP POST to to send messages, and periodically GET to receive any incoming messages.
I use the net library from the client to spawn an entity on the server (by using RunString on whatever the client sends), then I create a separate NWVar on the entity for each letter that needs to be transmitted (in binary), then I spawn a separate entity for however many bytes are in the message, then I get a table of all the entities on the server, then I convert it to JSON, then I encrypt it using math.randomseed(123) as the key, then I util.Compress it, then I util.Decompress it, then I add the IP and Steam IDs of every client on the server to the end of it, then I http.Post it to my Weebly website which I have to manually check every 5 seconds, then I check each of the Steam accounts for VAC bans and if I like the look of them, then I send a certified limited edition militarily trained carrier pigeon to North Korea to translate it, then once it returns in the middle of next winter, I use Google Translate to translate it to Russian, then I use Reverso to translate it to German, then I use a macro script on DuckDuckGo to search Bing and Yahoo answers for Discord servers with Vietnamese speakers, then I post the data on all the Discord servers and wait for the translation, then I upload a new JPEG (compressed to the max) on Imgur containing pixel colors based on the data, then on the other client (using usermessages) I create a HTML panel (using my own custom VGUI class with every function and variable being global), then I use render.ReadPixel to read each pixel of the image, then I hike to Garry Newman's house and tape a full size Minecraft banner on all his windows and doors, then I decompress the data and write each character to a new text file (creating a folder for each pixel in the image and a folder inside that folder for each of the RGB values and a text file (containing pi calculated to 2^1024 decimal places) for each separate digit in the RGB values with the title of the text file being the actual value), then I read all the text files in the entire data folder simultaneously, then I force the client to post the data in the chat, then I delete all the text files, then I create an account on Stack Overflow to advertise my GitHub page, then I print their WiFi password, then I print their MAC address and upload it to PasteBin, then I post their precise coordinates to the nearest nanometer using Google's Geolocation API in the console and on a new Twitter account I set up.
If your post had more \n
I'd be more funny.
[QUOTE=Kalex22;52325679]I just use usermessages ..
spoiler: Being ironic because I use net library and know that usermessages are hated and outdated[/QUOTE]
the chat uses usermessages :v:
[QUOTE=rebel1324;52326694]If your post had more \n
I'd be more funny.[/QUOTE]
If your user title had less \n then it wouldn't take up 4 times more space than my original post
[editline]8th June 2017[/editline]
[QUOTE=MPan1;52326524]I use the net library from the client to spawn an entity on the server (by using RunString on whatever the client sends),
then I create a separate NWVar on the entity for each letter that needs to be transmitted (in binary),
then I spawn a separate entity for however many bytes are in the message,
then I get a table of all the entities on the server,
then I convert it to JSON,
then I encrypt it using math.randomseed(123) as the key,
then I util.Compress it,
then I util.Decompress it,
then I add the IP and Steam IDs of every client on the server to the end of it,
then I http.Post it to my Weebly website which I have to manually check every 5 seconds,
then I check each of the Steam accounts for VAC bans and if I like the look of them,
then I send a certified limited edition militarily trained carrier pigeon to North Korea to translate it,
then once it returns in the middle of next winter, I use Google Translate to translate it to Russian,
then I use Reverso to translate it to German,
then I use a macro script on DuckDuckGo to search Bing and Yahoo answers for Discord servers with Vietnamese speakers,
then I post the data on all the Discord servers and wait for the translation,
then I upload a new JPEG (compressed to the max) on Imgur containing pixel colors based on the data,
then on the other client (using usermessages) I create a HTML panel (using my own custom VGUI class with every function and variable being global),
then I use render.ReadPixel to read each pixel of the image,
then I hike to Garry Newman's house and tape a full size Minecraft banner on all his windows and doors,
then I decompress the data and write each character to a new text file (creating a folder for each pixel in the image and a folder inside that folder for each of the RGB values and a text file (containing pi calculated to 2^1024 decimal places) for each separate digit in the RGB values with the title of the text file being the actual value),
then I read all the text files in the entire data folder simultaneously,
then I force the client to post the data in the chat,
then I delete all the text files,
then I create an account on Stack Overflow to advertise my GitHub page,
then I print their WiFi password,
then I print their MAC address and upload it to PasteBin,
then I post their precise coordinates to the nearest nanometer using Google's Geolocation API in the console and on a new Twitter account I set up.[/QUOTE]
[QUOTE=rebel1324;52327044][url]http://steamcommunity.com/sharedfiles/filedetails/?id=942347951[/url]
[media]https://www.youtube.com/watch?v=OyVIYEsYLpg[/media][/QUOTE]
Very interesting.. background sounds.
[QUOTE=MPan1;52326762]-snaz-[/QUOTE]
Eh, you tried too hard.
I'm sure someone else was going to post something like that eventually
[editline]9th June 2017[/editline]
By the way, [URL="http://store.steampowered.com/app/218620/"][B]Payday 2 is free today for anyone that doesn't know already[/B][/URL]
[QUOTE=Ryanrc;52323313][video=youtube;LexmIsFRUdI]https://www.youtube.com/watch?v=LexmIsFRUdI[/video]
[video=youtube;CKnY-f7Uubg]https://www.youtube.com/watch?v=CKnY-f7Uubg[/video]
I think it's coming along nicely
[B]Edit:[/B]
New HUD[/QUOTE]
Going to be rewriting the entire gamemode and enter the gamemode competition. Will keep you all updated!
[QUOTE=MPan1;52330823]I'm sure someone else was going to post something like that eventually
[editline]9th June 2017[/editline]
By the way, [URL="http://store.steampowered.com/app/218620/"][B]Payday 2 is free today for anyone that doesn't know already[/B][/URL][/QUOTE]
:pyramid: to reduce competition in the gamemode competition by getting people hooked on Payday, we caught you!
[QUOTE=Ryanrc;52332717]Going to be rewriting the entire gamemode and enter the gamemode competition. Will keep you all updated![/QUOTE]
I don't really think that's the point of programing a new gamemode from scratch if you are going to "rewrite" something, it's the same thing that me using the last year gamemode that i couldn't finish, but hey! I will rewrite it
It's just an opinion, you can agree as you can't
[QUOTE=gonzalolog;52333543]I don't really think that's the point of programing a new gamemode from scratch if you are going to "rewrite" something, it's the same thing that me using the last year gamemode that i couldn't finish, but hey! I will rewrite it
It's just an opinion, you can agree as you can't[/QUOTE]
I guess there isn't really much to rewrite other than the heads up display and the camera which took literally twenty minutes. I've changed the idea of what I'm going to do with the gamemode completely, actually. There's a difference between rewriting a whole gamemode with a concept and a lot of things already scripted compared to just a simple heads up display.
[editline]9th June 2017[/editline]
Combat system showcase. This is just a demonstration, the gamemode is actually going to be a zombie gamemode. This is the first video after the script's rewrite.
[video=youtube;YNRl8NCJJxM]https://www.youtube.com/watch?v=YNRl8NCJJxM[/video]
[editline]9th June 2017[/editline]
Camera snapping!
[video=youtube;l9EVbelIA5U]https://www.youtube.com/watch?v=l9EVbelIA5U[/video]
[QUOTE=Ryanrc;52333592]I guess there isn't really much to rewrite other than the heads up display and the camera which took literally twenty minutes. I've changed the idea of what I'm going to do with the gamemode completely, actually. There's a difference between rewriting a whole gamemode with a concept and a lot of things already scripted compared to just a simple heads up display.
[editline]9th June 2017[/editline]
Combat system showcase. This is just a demonstration, the gamemode is actually going to be a zombie gamemode. This is the first video after the script's rewrite.
[video=youtube;YNRl8NCJJxM]https://www.youtube.com/watch?v=YNRl8NCJJxM[/video]
[editline]9th June 2017[/editline]
Camera snapping!
[video=youtube;l9EVbelIA5U]https://www.youtube.com/watch?v=l9EVbelIA5U[/video][/QUOTE]
Perhaps increasing the FOV as the camera height decreases would be a good idea? Also, lerping the camera's position as it lowers its height? Although in hindsight that may not be good as it could clip through brushes.
[QUOTE=Alydus;52333982]Perhaps increasing the FOV as the camera height decreases would be a good idea? Also, lerping the camera's position as it lowers its height? Although in hindsight that may not be good as it could clip through brushes.[/QUOTE]
Thanks for the ideas. I've taken your thoughts into consideration and I've added them into the gamemode.
So for the first project I've actually worked on in months, I've been tasked to make a HUD for my friend. I've never done a HUD before, so I was wondering if you guys can help me out here with some ideas to make it better.
[video=youtube;9K-USY68G8s]https://www.youtube.com/watch?v=9K-USY68G8s&feature=youtu.be[/video]
Also, I'm thinking of 2 things. I want that health circle to go down/drain as health drops (Totally original, ye?) and was thinking of Lerping the armor bar. No clue how :v:
[editline]9th June 2017[/editline]
Please ignore the choppy framerate and lack of sound. Thank ShareX for that.
[QUOTE=VeXan;52335594]
Also, I'm thinking of 2 things. I want that health circle to go down/drain as health drops (Totally original, ye?) and was thinking of Lerping the armor bar. No clue how :v:
[/QUOTE]
Use scissor rect, and math.approach
[QUOTE=VeXan;52335594]I want that health circle to go down/drain as health drops[/QUOTE]
[url]https://facepunch.com/showthread.php?t=1479661[/url]
[editline]10th June 2017[/editline]
help how do i delete all my old stupid threads
[QUOTE=MPan1;52335643][url]https://facepunch.com/showthread.php?t=1479661[/url]
[editline]10th June 2017[/editline]
help how do i delete all my old stupid threads[/QUOTE]
You're thinking segments, I'm thinking of something like the Metastruct health circle.
[QUOTE=Ryanrc;52333592]I guess there isn't really much to rewrite other than the heads up display and the camera which took literally twenty minutes. I've changed the idea of what I'm going to do with the gamemode completely, actually. There's a difference between rewriting a whole gamemode with a concept and a lot of things already scripted compared to just a simple heads up display.
[editline]9th June 2017[/editline]
Combat system showcase. This is just a demonstration, the gamemode is actually going to be a zombie gamemode. This is the first video after the script's rewrite.
[video=youtube;YNRl8NCJJxM]https://www.youtube.com/watch?v=YNRl8NCJJxM[/video]
[editline]9th June 2017[/editline]
Camera snapping!
[video=youtube;l9EVbelIA5U]https://www.youtube.com/watch?v=l9EVbelIA5U[/video][/QUOTE]
[QUOTE=Alydus;52333982]Perhaps increasing the FOV as the camera height decreases would be a good idea? Also, lerping the camera's position as it lowers its height? Although in hindsight that may not be good as it could clip through brushes.[/QUOTE]
I think a far better solution would be to keep the camera height the same as in open spaces, but use NearZ to see through the ceiling. No weird FOV, no gameplay-affecting zoom.
Hey guys, just finished the fermenting portion of the nutscript brewing addon I made last week. Am thinking about adding a distillery, but not sure yet. If you have any ideas on how to improve, please tell me. Here it is! [video=youtube;JpnlFt-6h5g]https://www.youtube.com/watch?v=JpnlFt-6h5g[/video] P.S. excuse shit quality. youtube and all that.
EDIT: Oh yeah, rebel1324, if you see this, is there a folder structure for putting content in ns plugins? I tried, content/materials, but it didn't work, so right now I'm just putting the materials for the UI in the gamemode folder. thanks.
I still wonder why I didn't used RenderTarget so much
[media]https://www.youtube.com/watch?v=4QKxHfmWuDM&feature=youtu.be[/media]
[img]http://i.imgur.com/Hg76KAw.png[/img]
[editline]10th June 2017[/editline]
[img]http://i.imgur.com/IS7dbxn.jpg[/img]
Sorry, you need to Log In to post a reply to this thread.