Scripters of Interlopers, What do you guys use?

Grab your favourite IDE and tinker with the innards of game engines

Which languages have you used?

Lua
4
31%
Squirrel
1
8%
Python
8
62%
 
Total votes : 13

Scripters of Interlopers, What do you guys use?

Postby stoopdapoop on Wed Feb 20, 2013 8:32 am

I've been looking at scripting languages to integrate into a project of mine. I first decided on lua (over python), but then I rediscovered squirrel and it looks really promising.

What I really want to do is get an idea of what people are familiar with(if anything).

I know that the newer source games offer it as a scripting language, but I was wondering if anybody is actually familiar with it. The feature set looks really good, but I'm worried that if nobody uses it, then it might be hard to convince skilled artist-writers-designers-whatever to help me out if I ever need it. Lua seems pretty universal, but I'd much rather use Squirrel if I can get away with it.
I'm Brown
Image
User avatar
stoopdapoop
Veteran
Veteran
 
Joined: Sun Aug 21, 2005 2:14 am
Location: Ann Arbor, MI

Re: Scripters of Interlopers, What do you guys use?

Postby zombie@computer on Wed Feb 20, 2013 4:01 pm

look what your users want and implement that. From a programmers perspective the differences between the languages are small (featureset is similar, syntax equally confusing, speed overall slow as shit), but from an artist/scripter, its easier to start with a language they already have experience in / know.
When you are up to your neck in shit, keep your head up high
zombie@computer
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Fri Dec 31, 2004 5:58 pm
Location: Lent, Netherlands

Re: Scripters of Interlopers, What do you guys use?

Postby nub on Thu Feb 21, 2013 6:51 am

As far as I know, LUA is really slow. I don't know how extensively you'd be using it, but games like Natural Selection 2 which run almost entirely on LUA have performance issues because of it. NS2 is very CPU intensive.
User avatar
nub
Veteran
Veteran
 
Joined: Tue Nov 15, 2005 1:11 am
Location: Charlotte, NC, US

Re: Scripters of Interlopers, What do you guys use?

Postby SM Sith Lord on Thu Feb 21, 2013 10:16 pm

As long as it's powerful enough for you, I'd go with the easiest one for you to implement.
SM Sith Lord
Been Here A While
Been Here A While
 
Joined: Sat Nov 25, 2006 4:25 pm
Location: Los Angles, CA

Re: Scripters of Interlopers, What do you guys use?

Postby Garrador on Fri Feb 22, 2013 9:02 pm

How about ruby?
You click on Build or type
make (or some equivalent), and you are astonished, then mortified, as you realize that the whole world is being
recompiled and relinked!
- Scott Meyers
User avatar
Garrador
Veteran
Veteran
 
Joined: Fri May 12, 2006 10:39 pm
Location: Norway

Re: Scripters of Interlopers, What do you guys use?

Postby stoopdapoop on Sat Feb 23, 2013 5:45 am

zombie@computer wrote:look what your users want and implement that. From a programmers perspective the differences between the languages are small (featureset is similar, syntax equally confusing, speed overall slow as shit), but from an artist/scripter, its easier to start with a language they already have experience in / know.


Yeah, I agree wholeheartedly, the reason I'm asking loper's what they have experience with is because I don't actually have an "users" as it stands, and I'm just trying to see what people have experience with. While I personally like squirrel (no GC, easy to implement, basically made for game scripting), I'll ditch the thought in a heartbeat if nobody's ever heard of it.

SM Sith Lord wrote:As long as it's powerful enough for you, I'd go with the easiest one for you to implement.


well, the thing is that I wouldn't really be using it, it's for other people.

nub wrote:As far as I know, LUA is really slow. I don't know how extensively you'd be using it, but games like Natural Selection 2 which run almost entirely on LUA have performance issues because of it. NS2 is very CPU intensive.


I've heard that NS2 has CPU problems, but I seriously doubt that it's because of LUA. LUA is more than fast enough for limited scriping, there's no way that the interpreting cost is preventing the game from running reasonably. It's easy to point at lua and say "Lua is slower than other languages, and the game uses Lua for some things, so that must be why it's slow" but that line of reasoning is very flawed.

Garrador wrote:How about ruby?


I'm trying to latch onto whatever seems most popular at the moment, and Ruby aint it :P
I'm Brown
Image
User avatar
stoopdapoop
Veteran
Veteran
 
Joined: Sun Aug 21, 2005 2:14 am
Location: Ann Arbor, MI

Re: Scripters of Interlopers, What do you guys use?

Postby Garrador on Sat Feb 23, 2013 7:17 am

Ruby aint popular? :P Well thats a new one. Always been, and has been around for ages ;)

Anyway then, good luck on the hunt for a lang!
You click on Build or type
make (or some equivalent), and you are astonished, then mortified, as you realize that the whole world is being
recompiled and relinked!
- Scott Meyers
User avatar
Garrador
Veteran
Veteran
 
Joined: Fri May 12, 2006 10:39 pm
Location: Norway

Re: Scripters of Interlopers, What do you guys use?

Postby stoopdapoop on Sat Feb 23, 2013 7:41 am

Garrador wrote:Ruby aint popular? :P Well thats a new one. Always been, and has been around for ages ;)

Anyway then, good luck on the hunt for a lang!


Well, I meant popular among people who don't consider themselves programmers. I don't know of any software besides RPGmaker that uses ruby as it's scriping language. Plus, Lua's been around longer than ruby :P
I'm Brown
Image
User avatar
stoopdapoop
Veteran
Veteran
 
Joined: Sun Aug 21, 2005 2:14 am
Location: Ann Arbor, MI

Re: Scripters of Interlopers, What do you guys use?

Postby Garrador on Sat Feb 23, 2013 11:04 am

Sure sure! I dont argue with that ;) I just find Ruby easier and more flexible than Lua, although lua has a lot of nice ways of directly accessing C++ calls and whatnot. Not that familiar with Lua, but it (as mentioned above) seems to be much slower. As far as I'm concerned, a scripting language is only implemented to be able to easily change up characteristics on characters, weapons and gameplay elements without having to recompile. Doing too much in a scripting language will certainly hog the cpu.

Anyway, what kind of project are you developing??
You click on Build or type
make (or some equivalent), and you are astonished, then mortified, as you realize that the whole world is being
recompiled and relinked!
- Scott Meyers
User avatar
Garrador
Veteran
Veteran
 
Joined: Fri May 12, 2006 10:39 pm
Location: Norway

Re: Scripters of Interlopers, What do you guys use?

Postby Plague on Sat Feb 23, 2013 7:20 pm

stoopdapoop wrote:
nub wrote:As far as I know, LUA is really slow. I don't know how extensively you'd be using it, but games like Natural Selection 2 which run almost entirely on LUA have performance issues because of it. NS2 is very CPU intensive.


I've heard that NS2 has CPU problems, but I seriously doubt that it's because of LUA. LUA is more than fast enough for limited scriping, there's no way that the interpreting cost is preventing the game from running reasonably. It's easy to point at lua and say "Lua is slower than other languages, and the game uses Lua for some things, so that must be why it's slow" but that line of reasoning is very flawed.


I believe it was in fact an unoptimized Lua VM that was the culprit behind a lot of the CPU issues.
Not that Lua itself is the issue but as with any scripting language its how well you implement it.
Contact. The EU welcomes the pain free. That's emotional impact.
I actually think limitation is good for creativity. If we had an engine that could do everything, we would be in trouble. It gives us focus. ~~ Randy Lundeen
User avatar
Plague
Veteran
Veteran
 
Joined: Tue Jun 22, 2010 7:12 pm

Re: Scripters of Interlopers, What do you guys use?

Postby zombie@computer on Sat Feb 23, 2013 7:42 pm

Since you are taking suggestions, have you considered javascript? its relatively new as basis for games (or scripts for games) but everybody knows javascript. Even my dog could use javascript to some extent.

Yeah, not really an option for large codebases as you need to implement it from the ground up, still, fun to think about it. In a few years time most games will be created using javascript.
When you are up to your neck in shit, keep your head up high
zombie@computer
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Fri Dec 31, 2004 5:58 pm
Location: Lent, Netherlands

Re: Scripters of Interlopers, What do you guys use?

Postby Garrador on Sun Feb 24, 2013 7:52 pm

Interesting suggestion. Found a nice article: http://cplus.about.com/b/2009/01/26/usi ... ations.htm

Google's V8 javascript written in c++, compiles to machine code and seems quite easy to implement.
You click on Build or type
make (or some equivalent), and you are astonished, then mortified, as you realize that the whole world is being
recompiled and relinked!
- Scott Meyers
User avatar
Garrador
Veteran
Veteran
 
Joined: Fri May 12, 2006 10:39 pm
Location: Norway

Re: Scripters of Interlopers, What do you guys use?

Postby ScarT on Sun Feb 24, 2013 7:58 pm

I know Garry considered Javascript for Garry's mod at a point, but decided against it because there was so much Lua shit around already. Javascript would be really interesting.
User avatar
ScarT
Senior Member
Senior Member
 
Joined: Sat Apr 02, 2005 7:33 pm
Location: Denmarkian Land

Re: Scripters of Interlopers, What do you guys use?

Postby Stormy on Sun Feb 24, 2013 8:16 pm

I think in the source community, at least, lua would be the way to go. It's the only one I have heard of being used in a source game and most people who 'mod' garrys mod claim to use it. It would be the most accessible to users of a source mod, I would think. But do people really bother modding mods? Are you making a mod?

That being said, I really enjoyed working on wolfires phoenix engine with angelscript, and David did a few posts on choosing a scripting language, and he considered lua as well. http://blog.wolfire.com/2010/01/Choosing-a-scripting-language Have a read of that, might prove food for thought.
User avatar
Stormy
May Contain Skills
May Contain Skills
 
Joined: Sun Nov 28, 2010 6:03 am
Location: Cairns, QLD, AUS

Re: Scripters of Interlopers, What do you guys use?

Postby marks on Mon Feb 25, 2013 9:12 pm

Dudes, Python isn't really that slow.
User avatar
marks
Creative Assembly
Creative Assembly
 
Joined: Tue Aug 16, 2005 5:07 pm
Next

Return to Programming

Who is online

Users browsing this forum: No registered users