• The gPhone
    25 replies, posted
Yeah that thing I kept posting in WAYWO for 3 months is finally ready to be released being 99% functional. Since Facepunch consists of more developers than users, I'll discuss the coding aspect here (the workshop has non-coding information). The entire visual aspect of the phone is Derma which makes me believe I have written more Derma in 3 months than any man should have to; but using derma makes copying the iPhone's design fairly easy. It even uses Garry's drag n drop system for moving around homescreen icons which looks cool as long as long as you stay out of the [URL="https://github.com/Exho1/gPhone/blob/master/lua/gphone/cl_phone.lua#L438"]spaghetti code[/URL] and [URL="Its not entirely done yet and I still have some things to clean up but its stable and optimized (no mas net.Read/WriteTable)."]hacky fixes[/URL] I used to make it work. Beyond all the the terrible duct tape holding it together, its probably the coolest thing I have ever made! As for app creation, basically I looked at Pointshop's system and invented a bastard child of it to manage apps ( no semicolon functions??? ) but it works. You create a table called APP, which I've found can also be used during run-time to hold variables, and declare what you need from the example and then start adding Derma. You use the APP.Paint function to draw the background for the phone screen (otherwise it will be see through) and then the APP.Run function to add your Derma and whatever else you need for the app to function. You store all top-level (parented to the screen) Derma panels in the 'objects' or 'gApp["_children_"]' table so that they can be automatically removed when the app closes. [url]https://github.com/Exho1/gPhone/blob/master/lua/gphone/apps/_example.lua[/url] So yeah, enjoy [img]http://i.gyazo.com/1d3f5b10be03079ea07216601c2fd751.png[/img] [url]https://github.com/Exho1/gPhone[/url] [url]http://steamcommunity.com/sharedfiles/filedetails/?id=407945478[/url] [url=https://garrysmods.org/download/10/gphone][img]https://garrysmods.org/download/10/button.png[/img][/url]
Looks awesome, testing it tonight.
I am getting this error when ever I try to open it. [gPhone] lua/gphone/apps/settings.lua:614: '<name>' expected near 'end' 1. unknown - lua/gphone/apps/settings.lua:0 The phone however acts normally once you force it pasts the tutorial. Other than that it works nicely. Good job.
[QUOTE=Caki;47323693]I am getting this error when ever I try to open it. [gPhone] lua/gphone/apps/settings.lua:614: '<name>' expected near 'end' 1. unknown - lua/gphone/apps/settings.lua:0 The phone however acts normally once you force it pasts the tutorial. Other than that it works nicely. Good job.[/QUOTE] Alright thanks, I'll fix that later Edit: Fixed! Had a string that wasn't closed
Nice!
its fucking godlike
[QUOTE=BatyaMedic;47329192]its fucking godlike[/QUOTE] Haha thanks! I spent a lot of time on it
Free is for me. Also I saw a similar addon ways back and wanted to use it on my server. It's DarkRP compatible? Other than that I tried it, very neat :smile:
Nahhh, all the stuff I make for it will be free
It's always a glorious day when people release their awesome WAYWO projects.
I added a new app, Flappy Garry. Its a crime against nature but I hope you enjoy it
Is there any way to change the color of the phone or possibly set the texture of the phone. That would be pretty cool having skins for the phone.
I only just looked at this really fast so maybe it wouldnt be so simple, but it looks like the phone is made up of images, you could probably just create custom ones and maybe make an app to select which one, i don't think it'd be too hard
[QUOTE=TpsTheHunter;47357791]Is there any way to change the color of the phone or possibly set the texture of the phone. That would be pretty cool having skins for the phone.[/QUOTE] Settings app -> General -> Color
change resource.AddFile( "materials/vgui/gphone/gPhone.png" ) for resource.AddFile( "materials/vgui/gphone/gphone.png" ) HTTP ERROR downloading [url]http://*********.com_/rp/materials/vgui/gphone/gPhone.png[/url]
[QUOTE=Exho;47358513]Settings app -> General -> Color[/QUOTE] No idea how that passed by me.. Other than that, it surpasses the rPhone hands down.
Nice work Exho, looks amazing :)
Thank you for your contribution :smile:
I'm attempting to fix up my gPhone multiplayer system (only implemented in gPong) that I wrote early on in the phone's development, its quite an adventure. The file had been commented out for a couple months so the code was archaic and frankly just bad; it even contained a system which was a precursor to the current request/response system I have for stuff like phone calls. So I pretty much had to rewrite 80% of it in order to get the code and functions up to date with the rest of the phone. As of now I can properly play against myself over the server ( my moves are transmitted to the other paddle ) but playing against other players has a couple errors and bugs which I'll try to fix. Now because of the nature of multiplayer, I have to send a lot of data from player1 -> server -> player2 and back which does cause lag so I'll likely add a config option to enable/disable multiplayer if I implement it in the phone. Its really a proof of concept that it can be done. [url]https://github.com/Exho1/gPhone/tree/multiplayer[/url]
I just submitted two pull requests on the GitHub [url=https://github.com/Exho1/gPhone/pulls]here[/url] after [url=https://github.com/Exho1/gPhone/issues/22]this[/url] was posted... Hope you accept it as lots of devs who make apps probably had this problem! Thanks
[QUOTE=Exho;47736910]I'm attempting to fix up my gPhone multiplayer system (only implemented in gPong) that I wrote early on in the phone's development, its quite an adventure. The file had been commented out for a couple months so the code was archaic and frankly just bad; it even contained a system which was a precursor to the current request/response system I have for stuff like phone calls. So I pretty much had to rewrite 80% of it in order to get the code and functions up to date with the rest of the phone. As of now I can properly play against myself over the server ( my moves are transmitted to the other paddle ) but playing against other players has a couple errors and bugs which I'll try to fix. Now because of the nature of multiplayer, I have to send a lot of data from player1 -> server -> player2 and back which does cause lag so I'll likely add a config option to enable/disable multiplayer if I implement it in the phone. Its really a proof of concept that it can be done. [url]https://github.com/Exho1/gPhone/tree/multiplayer[/url][/QUOTE] Can you post a video of you using the phone ?
Looks nice :)
[QUOTE=Ziipen;50458647]Looks nice :)[/QUOTE] Appreciated :)
[QUOTE=Exho;50498115]Appreciated :)[/QUOTE] :)
It isn't overpriced-- and every new model of the phone actually adds new, useful features? wtf -rep [IMG]https://i.gyazo.com/727e79ba3c5696d710edace8a402d020.png[/IMG]
Sorry, you need to Log In to post a reply to this thread.