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
 

[ Content Deleted ]

Previous Thread :: Next Thread 
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
14 Jul 2011 04:20 PM
[ Content Deleted ]
Report Abuse
poopyguy7 is not online. poopyguy7
Joined: 30 Jan 2010
Total Posts: 283
14 Jul 2011 04:22 PM
Cool.
Report Abuse
Merlin11188 is not online. Merlin11188
Joined: 20 Dec 2007
Total Posts: 4158
14 Jul 2011 04:28 PM
I made this with _G.incldue and _G.create (I think). Although, I like yours better :D
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
14 Jul 2011 04:29 PM
[ Content Deleted ]
Report Abuse
camo2 is not online. camo2
Joined: 15 Oct 2006
Total Posts: 443
14 Jul 2011 04:30 PM
I wouldn't need it, but this seems pretty nice.
Report Abuse
Camoy is not online. Camoy
Joined: 21 May 2009
Total Posts: 6207
14 Jul 2011 04:36 PM
Would be better if you didn't need to litter the global environment with those definitions. Should put it in another closure.

_G.export('myLib', function()
fn = function() return 'hi' end
end)

_G.import('myLib')
print(fn())

OR

_G.import('myLib', function()
fn()
end)
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
14 Jul 2011 04:39 PM
[ Content Deleted ]
Report Abuse
Merlin11188 is not online. Merlin11188
Joined: 20 Dec 2007
Total Posts: 4158
14 Jul 2011 04:40 PM
Camoy, that's exactly like mine:
_G.create("myLibrary", {function blarg()
print("HI")
end})

_G.RemoveG()
include("myLibrary")
blarg()

>HI
Report Abuse
Camoy is not online. Camoy
Joined: 21 May 2009
Total Posts: 6207
14 Jul 2011 04:40 PM
I think one call with a closure would be better. :3
Report Abuse
Camoy is not online. Camoy
Joined: 21 May 2009
Total Posts: 6207
14 Jul 2011 04:41 PM
@Merlin
Don't worry, we all have them. I have one (REALLY OLD) named "Include Classes". I wonder if I posted it on here :/
Report Abuse
Merlin11188 is not online. Merlin11188
Joined: 20 Dec 2007
Total Posts: 4158
14 Jul 2011 04:41 PM
actually that line might be blarg=function()
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
14 Jul 2011 04:41 PM
[ Content Deleted ]
Report Abuse
Camoy is not online. Camoy
Joined: 21 May 2009
Total Posts: 6207
14 Jul 2011 04:43 PM
Yeah, I found the thread.
http://www.roblox.com/Forum/ShowPost.aspx?PostID=27770901

Back when we had global *sadfaic*
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
14 Jul 2011 04:45 PM
[ Content Deleted ]
Report Abuse
Camoy is not online. Camoy
Joined: 21 May 2009
Total Posts: 6207
14 Jul 2011 04:45 PM
Well "I" have global, you guys have _G. Ha :P
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
14 Jul 2011 04:46 PM
[ Content Deleted ]
Report Abuse
Camoy is not online. Camoy
Joined: 21 May 2009
Total Posts: 6207
14 Jul 2011 04:47 PM
Whoops did I say that out loud.
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
14 Jul 2011 04:50 PM
[ Content Deleted ]
Report Abuse
Ozzypig is not online. Ozzypig
Joined: 27 Mar 2008
Total Posts: 4906
14 Jul 2011 04:50 PM
I had implemented something like this in jrLua, only it's a library system. After you included jrLua in a script (using shared.jrlua() or _G.jrlua()) then you could load/create libraries based on rules.

shared.jrlua()
lib("KK")
Song.new(Song.parse(...))

Of course, it's hard to give a good example when most of the existing libraries are made for practical reasons.

Check it out if you haven't, because it works great and maybe you could make a system that improves it.
http://www.roblox.com/jrLua-2-0-0-Public-item?id=55760188

~Ozzy
Report Abuse
Camoy is not online. Camoy
Joined: 21 May 2009
Total Posts: 6207
14 Jul 2011 04:58 PM
This are pretty funny:
http://www.roblox.com/Forum/ShowPost.aspx?PostID=270293
http://www.roblox.com/Forum/ShowPost.aspx?PostID=286326

--

On a side note, why does it say Zuka is online ._.
http://www.roblox.com/Forum/ShowPost.aspx?PostID=231619
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
15 Jul 2011 09:12 AM
[ Content Deleted ]
Report Abuse
Vitouliss14 is not online. Vitouliss14
Joined: 18 Mar 2009
Total Posts: 7918
15 Jul 2011 09:20 AM
@Camoy

You don't want to know why Zuka is online.
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