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: Do you think ROBLOX C++ Might be possible?

Previous Thread :: Next Thread 
Robodude is not online. Robodude
Joined: 29 Aug 2006
Total Posts: 3382
14 Oct 2011 06:27 PM
C++ programming is pretty advanced, maybe roblox could somehow construct it into the structure of scripting in roblox. That would be pretty cool.
Report Abuse
myrkos is not online. myrkos
Joined: 06 Sep 2010
Total Posts: 8072
14 Oct 2011 06:28 PM
pointless, it would be
Report Abuse
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6906
14 Oct 2011 06:29 PM
no.

too many 'security issues'

:l
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
14 Oct 2011 06:29 PM
Seriously?

I told you that C++ isn't a scripting language and your other thread was against the rules, and you went and posted another thread about C++?

You're either extremely stupid or you actually want to get yelled at and possibly banned.
Report Abuse
Robodude is not online. Robodude
Joined: 29 Aug 2006
Total Posts: 3382
14 Oct 2011 06:32 PM
@Arceaus

Who the hell are you? I'm trying to consider something and your just trolling about every thread I'm making because I'm from RT. And who would ban me or yell at me? You? Where's your badge?
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
14 Oct 2011 06:33 PM
Wait, you actually are from RT?

Hey, I'm getting better at that.

Anyways, the mods would ban you, not me. If you haven't noticed, I don't have a moderator badge so I can just report you. That's how the moderation system works, see?
Report Abuse
Robodude is not online. Robodude
Joined: 29 Aug 2006
Total Posts: 3382
14 Oct 2011 06:34 PM
Yes, I see. But I can get you banned for trolling/flaming my every post. Have a nice day.
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
14 Oct 2011 06:36 PM
Actually, you can't. I'm trying to help you by telling you what you did wrong. If you're too ignorant to accept my generosity, maybe I should just go ahead and report you.
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
14 Oct 2011 06:36 PM
C++ is a low level programming language, it wouldn't work, also, there would be lots of security issues (As Arceus already stated).
Report Abuse
Robodude is not online. Robodude
Joined: 29 Aug 2006
Total Posts: 3382
14 Oct 2011 06:44 PM
Your trolling, not being generous. Anyone can see that.
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
14 Oct 2011 06:47 PM
If you're really stupid enough to think that generosity is the same thing as trolling, you must live in a really bad part of the world.
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
14 Oct 2011 06:54 PM
[ Content Deleted ]
Report Abuse
BlueTaslem is not online. BlueTaslem
Joined: 11 May 2008
Total Posts: 11060
14 Oct 2011 06:56 PM
Of course not.
Stop asking stupid questions.
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
14 Oct 2011 07:14 PM
[ Content Deleted ]
Report Abuse
bunnybunn264 is not online. bunnybunn264
Joined: 04 Oct 2010
Total Posts: 5409
14 Oct 2011 07:39 PM
security

in C, you could just boom this game
forget exploits

pointers
memory leaks (Roblox has enough already, it's crashed my computer several times)

v--Off-Topic--v
ArceusInator is just being a troll. This is normal. Pay him no mind. He has no authority.
Report Abuse
Danster5oo is not online. Danster5oo
Joined: 27 Aug 2010
Total Posts: 10003
14 Oct 2011 07:40 PM
R++

-The naked old man who is possibly chocolate...
Report Abuse
Varp is not online. Varp
Joined: 18 Nov 2009
Total Posts: 5333
14 Oct 2011 07:45 PM
It seems very unlikely, since it wouldn't be easy. It is possible, however, since all concepts in C++ can be mapped to Lua. It's just that the code in C and the code in Lua would probably not look at all similar, unless the program only dealt with primitive, non-pointer types. I'm sure there's a more elegant way and that this is some weird byproduct of my brain, but I'd create "pointers" like:

void func(){
int a = 5;
int* b = &a;
int** c = &b;
**c = 4
*c = new int(2);
int d = a + *b + **c;
}

would have to translate to something crazy like:

local mem = {}
function new(v)
local r = #mem
mem[r] = v
return r
end
function alloc(n,p)
for i = 1,n do
mem[p+i] = 0
end
end
function dealloc(n,p)
for i = 1,n do
mem[p+i] = nil
end
end
...
function func()
local memstart = #mem
alloc(memstart,4) --create space for 4 local variables.
mem[memstart + 1] = 5 --int a = 5; - simply puts a literal into memory
mem[memstart + 2] = memstart + 1 --int* b = &a; - puts the address of a into memory
mem[memstart + 3] = memstart + 2 --int** c = &b;
mem[mem[mem[memstart + 3]]] = 4 --**c = 4; mem[memstart + 3] is c, and mem[x] is *x
mem[mem[memstart + 3]] = new(2)
mem[memstart + 4] = mem[memstart + 1] + mem[mem[memstart + 2]] + mem[mem[mem[memstart + 3]]]
dealloc(memstart,4)
end

And then, for things like classes, you could just use arrays of values (no need to waste time with "names" and such - you can assign each member a number, and just index the array. Member functions can just be stored in memory, and assigned a constant address there. They aren't variable, and needn't be associated with the variable. Virtual functions can add the vtable pointer to each instance of a class. Overloaded operators can be treated the same way as normal functions. The copy constructor & assignment operator also may need to be treated as functions).

Or maybe if you just compiled to Lua bytecode, all these issues would go away. I don't know enough about it to say whether you'd need such extensive changes. It's not a security threat to implement C++, in any case - it can be compiled in ways that intrinsically sandbox it.
Report Abuse
GoldenUrg is not online. GoldenUrg
Joined: 23 Aug 2009
Total Posts: 6428
14 Oct 2011 08:15 PM
I agree; C++ could be mapped to Lua but the whole point of Lua is that it compiles fast. Why would you want to lag the game more with a C++ compiler? Also, scripts are rarely complex enough to need those kind of language constructs.

Report Abuse
bunnybunn264 is not online. bunnybunn264
Joined: 04 Oct 2010
Total Posts: 5409
14 Oct 2011 08:21 PM
People don't take advantage of Lua's capabilities with object-oriented programming enough yet.
Report Abuse
nickmaster24 is not online. nickmaster24
Joined: 04 Oct 2008
Total Posts: 8906
14 Oct 2011 08:24 PM
I don't think it would happen...

C++ is a programming language and Lua is scripting; they have two different types of use.

~¡Todos los días estoy barajando!~
Report Abuse
wii4 is not online. wii4
Joined: 27 Nov 2007
Total Posts: 929
14 Oct 2011 08:49 PM
man, i think you must be pretty stupid, number one you need to COMPILE c++, using a interpreter for a med level language is a bad choice. youll notice that lua is embeded most of the time into the C++ code
e.g:

extern "C"
{
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
}

and you basicly write your own interpreting system. now if roblox was to have a c++ interpreter i hope you enjoy text games. i think you fail to grasp the concept that C++ is a general purpose language and that if you want graphics you have to use APIs such as SDL,OpenGL,Allegro,etc.

To answer the question here, ii do not think this would be possible and i think you should google this first.
Report Abuse
bunnybunn264 is not online. bunnybunn264
Joined: 04 Oct 2010
Total Posts: 5409
14 Oct 2011 08:52 PM
I enjoy text games. Have you heard of NetHack?
Report Abuse
XlegoX is not online. XlegoX
Joined: 16 Jun 2008
Total Posts: 14955
14 Oct 2011 08:54 PM
It wouldn't be useful. Simply a optionally strongly typed scripting language with proper module support would be nice.
Report Abuse
bunnybunn264 is not online. bunnybunn264
Joined: 04 Oct 2010
Total Posts: 5409
14 Oct 2011 08:56 PM
^

Do you happen to know of any statically-typed scripting languages?
Report Abuse
Sorcus is not online. Sorcus
Forum Moderator
Joined: 29 Nov 2010
Total Posts: 3775
14 Oct 2011 09:01 PM
I think adding C# might be nice, if anything.

inb4python

~Sorcus
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