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 » Scripting Helpers
Home Search
 

Re: Question about 'require'/'dofile'

Previous Thread :: Next Thread 
plistra is not online. plistra
Joined: 12 Mar 2014
Total Posts: 859
17 Aug 2014 09:23 PM
Would I be able to 'require' a file written in a different language?
Say I had a program written in C, could I do:

require 'test'
or
dofile 'test.c'

Is there any way for me to do this?
Report Abuse
plistra is not online. plistra
Joined: 12 Mar 2014
Total Posts: 859
17 Aug 2014 09:24 PM
PS, this isn't ROBLOX lua related.
I AM NOT trying to run C code in ROBLOX.
I'm just trying to make a very basic game in LOVE2d.
Report Abuse
nicemike40 is not online. nicemike40
Joined: 19 Dec 2008
Total Posts: 1814
17 Aug 2014 10:01 PM
You're better off posting in the LOVE forums or stackoverflow.

As it is, I don't think you can compile C code directly from a Lua file, but maybe directly integrate the C code into Lua somehow? Not sure how with LOVE.
Report Abuse
fireheart568 is not online. fireheart568
Joined: 04 Jan 2009
Total Posts: 1285
17 Aug 2014 10:04 PM
A) Roblox only supports LUA at the time of this writing
B) Roblox is a Run-Time Environment, so there is no compiling at all
C) If this isn't related to Lua, it doesn't belong in this forum, although there is another one for it
Report Abuse
nicemike40 is not online. nicemike40
Joined: 19 Dec 2008
Total Posts: 1814
17 Aug 2014 10:20 PM
Read his posts fireheart
Report Abuse
fireheart568 is not online. fireheart568
Joined: 04 Jan 2009
Total Posts: 1285
17 Aug 2014 10:22 PM
Ah, didn't see the 2nd post.

In that case, ignore A and B, but read C.
Report Abuse
plistra is not online. plistra
Joined: 12 Mar 2014
Total Posts: 859
22 Aug 2014 12:24 AM
@fireheart.
There are certain things I can do in Lua which I can't do in C, and certain things I can do in C that I can't do in Lua.
Considering that 'dofile' and 'require' are both in the Lua library, and not the C one, this post is technically on-topic, so it belongs here. It may not be related to RBLX Lua, but it's still lua.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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