GMod - What are you working on? January 2015 (#41)
781 replies, posted
[QUOTE=Melted Bu11et;47044987]I am so jealous of your derma skills :([/QUOTE]
Hey thanks! The phone is like 90% derma so I've had to write more derma than any man should. After that I just override the paint functions on all of em
[QUOTE=FPtje;47045301]"a UI would limit advanced features."[/QUOTE]
I think I'll just have to make one and show you :)
[QUOTE=bobbleheadbob;47046559]I think I'll just have to make one and show you :)[/QUOTE]
[url=http://www.thecodingbeast.com/tools?id=customcheck]Online job generators that do have some advanced features[/url] have them in limited form: given presets. These presets usually revolve around usergroups and other jobs: ("[I]customCheck = ply is donator or admin[/I]") or "[I]there must be at least one mayor[/I]". I'm very curious how you would deal with [url=http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields]all advanced fields[/url] in an intelligent way. Like I said before, people probably won't like typing functions in a text box.
It's a challenge, I can tell you. I'm curious about what you'll come up with.
Honestly, FPtje, it wouldn't be too difficult to make an addon-system so that jobs can be created and saved in TEXT format with the ui allowing the user to create, modify, and remove jobs with a lot of features. It could be stand-alone and work with CreateTeams function with all of the added functionality ( such as pre-defined dropdown options for customCheck such as admin-only, group-x-only, etc.. )
It would be tedious but it wouldn't be too difficult. People would probably enjoy something like that.
What about a [url=http://facepunch.com/showthread.php?t=1362673]Luabee[/url]-based job maker?
[QUOTE=Acecool;47046670]Honestly, FPtje, it wouldn't be too difficult to make an addon-system so that jobs can be created and saved in TEXT format with the ui allowing the user to create, modify, and remove jobs with a lot of features. It could be stand-alone and work with CreateTeams function with all of the added functionality ( such as pre-defined dropdown options for customCheck such as admin-only, group-x-only, etc.. )
It would be tedious but it wouldn't be too difficult. People would probably enjoy something like that.[/QUOTE]
My previous post explains that those already exist online. I won't settle for presets.
Also,
[QUOTE=FPtje;47043013][...] I cannot put these in the job creator because [U]there will always be server owners who want logic that the UI wouldn't be able to handle[/U]. Having advanced users write their functions in a text box is not user friendly.
I've also thought about having a custom syntax somewhere in the data folder, but it would be hard to support the advanced stuff. Many people start by making a simple job and later they decide that they want advanced stuff. They ask on the forums and often get a reply. [U]It would be a disappointment for them if they had to rewrite their jobs in Lua when they want to have advanced stuff[/U]. Also, copying stuff from existing jobs becomes harder when there are two different formats. Inevitably [U]I will also get the question which format is better. [/U]
[/QUOTE]
[QUOTE=FPtje;47045301]I would have to make a lua parser to be able to edit jobs in hindsight, especially if they've been edited with advanced features. That or I make a simple parser that is only able to parse jobs that the ui has written to the file. That simple parser would have to give a "fuck you, can't read this" error if jobs are edited, even if the edits are correct.
[/QUOTE]
[editline]31st January 2015[/editline]
[QUOTE=bobbleheadbob;47046705]What about a [url=http://facepunch.com/showthread.php?t=1362673]Luabee[/url]-based job maker?[/QUOTE]
Now [I]THAT's[/I] an interesting take on things. I'm curious.
If a server owner is able to write advanced logic, I don't think the rest of the job creation will be a problem for them. Why would someone use a job creator if they already know how programming works.
[QUOTE=Wyozi;47046885]If a server owner is able to write advanced logic, I don't think the rest of the job creation will be a problem for them. Why would someone use a job creator if they already know how programming works.[/QUOTE]
Because they're lazy.
[QUOTE=Wyozi;47046885]If a server owner is able to write advanced logic, I don't think the rest of the job creation will be a problem for them. Why would someone use a job creator if they already know how programming works.[/QUOTE]
I think he's worried about those who have only enough Lua rope to hang themselves with.
[QUOTE=Wyozi;47046885]If a server owner is able to write advanced logic, I don't think the rest of the job creation will be a problem for them. Why would someone use a job creator if they already know how programming works.[/QUOTE]
It's not that binary. Look at this example:
[url]http://forum.darkrp.com/threads/making-admin-on-duty-invincible.3769/[/url]
(What he wants can be done by using the [url=http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields]PlayerLoadout field[/url] of custom jobs)
People may not be experienced enough to write the logic themselves, but people on the DarkRP forums might be. Also, they can look up examples on Google and the DarkRP wiki.
Alright here is a picture of the folders with that fancy blur that actually was made by Chessnut! The crashing was cause I left in a piece of code for reference (not commented) and it tried to create a new homescreen over and over again
[t]http://i.gyazo.com/0bc7dda871eed8607bbe16c9f0b80a69.png[/t]
[QUOTE=Exho;47047354]Alright here is a picture of the folders with that fancy blur that actually was made by Chessnut! The crashing was cause I left in a piece of code for reference (not commented) and it tried to create a new homescreen over and over again
[t]http://i.gyazo.com/0bc7dda871eed8607bbe16c9f0b80a69.png[/t][/QUOTE]
It's cool. For realism's sake, the iphone's folder blur is a [B][U][I]LOT[/I][/U][/B] stronger.
The experiment begins:
[url]https://github.com/FPtje/simplerr/blob/master/simplerr.lua[/url]
[QUOTE=FPtje;47049351]The experiment begins:
[url]https://github.com/FPtje/simplerr/blob/master/simplerr.lua[/url][/QUOTE]
Ok seriously now, [B]seriously[/B], this should be built in and toggled with a convar. This would [B]REALLY [/B]help new learners with more than just DarkRP.
Hell, this would help [B]anyone[/B]. Every now and then I get an error which confuses me, and even though I understand it by reading it a several times, this would be so much more convenient.
[editline]no but srs[/editline]
Edited for emphasis.
[QUOTE=bobbleheadbob;47049495]Ok seriously now, [B]seriously[/B], this should be built in and toggled with a convar. This would [B]REALLY [/B]help new learners with more than just DarkRP.
Hell, this would help [B]anyone[/B]. Every now and then I get an error which confuses me, and even though I understand it by reading it a several times, this would be so much more convenient.
[editline]no but srs[/editline]
Edited for emphasis.[/QUOTE]
I'm happy with your enthusiasm, but my script comes with major caveats: only common errors are caught and translated. Especially with runtime errors, anyone can call error. Not all syntax errors are caught either. Also, error messages start with the file that includes the erroring file. There's little I can do about that.
The good news that (in DarkRP at least), Lua autorefresh still seems to magically work for the safely included files. I have no idea why, but I'm fine with it.