generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Dragon Knowledge Hoarding #16

Previous Thread :: Next Thread 
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
02 Jul 2016 05:44 PM
Oh boy there's a point when I would really love to do these regularly but I mostly just run out of content and I'm also incredibly busy working on Valkyrie and Drako. Grammars are nasty things. Nasty nasty things.


The pairs function makes a new version of next every time you call it. It's bad. Using pairs should be an outlawed practice unless readability demands it.

You can stop your game from having any lag by deleting everything in ReplicatedStorage, Lighting, Workspace, StarterGui, ReplicatedFirst and StarterPlayer*
You're welcome.

Sayhisam1 has been working on a game where all of the map is handled client-side. https://www.roblox.com/games/361448527/Bloxi-Dash-Dev-Test-Site-1-1-7

Autocarrot has been writing horrible code. https://www.roblox.com/games/2663325/CTF-Sword-Champions-BETA

DustAuric has been learning FilteringEnabled. https://www.roblox.com/games/344452224/Abilities-testing

I've been writing Drako again and for the life of me this is not working out well. Does anybody know of a good way to parse a grammar into an easily parsable datastructure with scoping without having to resort to using an iterative parser with a lexer because I really don't want to have to do that.


Challenge #16:
Write your own gmatch function. cnt you're exempt from this one.


That will be all. Maybe some time I'll get you some updates on what's actually happening with the Valkyrie site and funding and stuff.
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
02 Jul 2016 05:47 PM
What's Drako?
Report Abuse
DurstAuric is online. DurstAuric
Joined: 12 May 2009
Total Posts: 8066
02 Jul 2016 05:52 PM
Thanks for the mention, not too sure if "Dust"Auric was intentional, but I'm cool with that. Have you tried out the place itself; any thought/feedback? (I'm needing to improve things.)


-=[ RAP: 336,399 || DurstAuric; the narb of ROBLOX ]=-
Report Abuse
GraphicsSettings is not online. GraphicsSettings
Joined: 12 Sep 2013
Total Posts: 2883
02 Jul 2016 05:54 PM
Nice Durst, I'll be sure to check it out.
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
02 Jul 2016 06:08 PM
function custom_gmatch(str, pattern)
local i = 1
return function()
local start,fin = str:find(pattern, i)
if start then
i = fin+1
return str:sub(start, fin)
end
return nil
end
end
Report Abuse
HexC3D is not online. HexC3D
Joined: 30 Jun 2012
Total Posts: 10044
02 Jul 2016 06:08 PM
Reminds me of "where are they now" thing.

Criticizing people has always been apart scripters custom.
Glad to see somethings haven't changed.



Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
02 Jul 2016 08:59 PM
Drako is something you may possibly have seen being mentioned by myself and Gskw occasionally.

When I get bored and I have nothing to do* I write the spec and grammar for Drako, which is supposed to be a language with C-style syntax rather than Lua/Ruby-style (Lua) or Python/Ruby-style (Moonscript). It's supposed to transpile into Lua, have strong typing, encourage good standards, and optimise your code into an unreadable mess.
Report Abuse
cntkillme1 is not online. cntkillme1
Joined: 16 Feb 2012
Total Posts: 592
02 Jul 2016 09:07 PM
Wars yours doesn't handle captures

Lunate is too lazy to commit stuff she's changed about drako to github report her!11
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
03 Jul 2016 05:53 AM
Hey it would be completely unfair on both git and github given how many times I've nuked what I have to just try again.
Report Abuse
MiniNob is not online. MiniNob
Joined: 14 May 2013
Total Posts: 822
03 Jul 2016 06:40 AM
Making an iterative lexer is actually not hard.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
03 Jul 2016 06:49 AM
Yes but as the language becomes a lot more complex there's a lot of looking ahead involved so instead I want to instead convert the stuff into a nested datastructure with an LPEG grammar instead of lexing it linearly and going through it linearly.
Report Abuse
MiniNob is not online. MiniNob
Joined: 14 May 2013
Total Posts: 822
03 Jul 2016 07:06 AM
You don't need to look ahead, you can just iterate multiple times
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
03 Jul 2016 07:09 AM
:c

I'm too lazy.
Report Abuse
cntkillme1 is not online. cntkillme1
Joined: 16 Feb 2012
Total Posts: 592
03 Jul 2016 07:31 AM
Yeah let's just do 100 passes!11
Report Abuse
MiniNob is not online. MiniNob
Joined: 14 May 2013
Total Posts: 822
03 Jul 2016 07:37 AM
Actually two passes is enough for parsing most grammars
Report Abuse
cntkillme1 is not online. cntkillme1
Joined: 16 Feb 2012
Total Posts: 592
03 Jul 2016 07:38 AM
I know, but that's not the point. She keeps redesigning the language afaik so it would make no sense to even start it.
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
03 Jul 2016 10:59 AM
'so instead I want to instead'

Gj eLunate xD
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
03 Jul 2016 12:33 PM
Maybe I'll make the language solid enough to actually go somewhere with the grammar.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
03 Jul 2016 03:33 PM
Bump
Report Abuse
AutoCarrot is not online. AutoCarrot
Joined: 24 Oct 2013
Total Posts: 5588
03 Jul 2016 03:54 PM
Most of the sever side frame work (Where the horrible work) wasn't written by me. I did the client sided stuff (Which is mostly broken). The other scripter, ThePC8110 is atrocious though




WolfgangVonPrinz // Private Drive - Residents Only
Report Abuse
ThePC8110 is not online. ThePC8110
Joined: 04 Jun 2011
Total Posts: 486
03 Jul 2016 04:00 PM
Yeah I'm probably the worst scripter on Roblox.
Report Abuse
AutoCarrot is not online. AutoCarrot
Joined: 24 Oct 2013
Total Posts: 5588
03 Jul 2016 04:00 PM
(He's actually way better than me, but I like to slag him off to make me feel better about my lack of size)


WolfgangVonPrinz // Private Drive - Residents Only
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
03 Jul 2016 04:39 PM
I raised an eyebrow at that.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
03 Jul 2016 07:15 PM
Shiny grinding.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
04 Jul 2016 04:59 AM
Bumping :c
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image