• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

Archived

This topic is now archived and is closed to further replies.

LordElectro

Script Language (which do YOU recommend?)

19 posts in this topic

I''ve decided that rather than doing a scripting language from scratch (overkill), I''ll modify an already available one. Currently I''m going with Lua, since it has met all my demands in theory: free (even for commercial use) source code included simple but powerful language, quick to integrate with project easy to add new functions Other languages I have looked into: Python Small Language Anyway, I am mainly looking for simple and fast. I don''t need C++ here, just a simple script language. Decisions, loops, etc. Anyone have to say anythinga bout Lua or other language? Btw, I am working on a game engine, not MS Word, keep that in mind
Get Banner At: http://www.crosswinds.net/~druidgames/resist.jpg
0

Share this post


Link to post
Share on other sites
I don''t really use any scripting languages, but I read something I''ve never even thought of in a LaMothe book the other day:

Instead of having to make a compiler or interpreter of your own and screwing around with lex and yacc, you could just use your own programming compiler like Visual C++. Just write preprocessor macros for commands, etc. after the design process is complete-- and yes you should design it.

I haven''t tried it, but when I get around to it, I will...
0

Share this post


Link to post
Share on other sites
Python has some advantages due to it''s popularity. One of those advantages is being able to walk into a book store and buy a book on it. Another is the extensive variety of extensions that have been implemented in it. Hopefully whoever is going to be using it in your game isn''t going to be doing COM, Sockets or GUI calls, but it does provide a wellspring of examples and ideas on how to interface to your game. I don''t know anything about the other two languages you mentioned, but the ability to create classes is a big plus. If the other support this as well then it doesn''t give Python an advantage, but if they don''t it certainly does. The classes let you abstract the interface to your game. That means you can have a rather complex set of rules on how and when you game engine can be called while still presenting it in a simple and straight forward manner. The COM extensions to Python seem a good example of that.
0

Share this post


Link to post
Share on other sites
Hmmm, a book on Python? See that is partly why the language scared me off, it''s big enough to need a book. I didn''t explain myself too well in my first post, but i dont think that my purposes justify such a massive language. Im just doing a 2D tile engine that I hope will be one of the better (if not the best ) out there. It will be very strongly script oriented, because the not-often-used method of handling and storing tiles in my design makes for tiles that can take advantage of hard-coded stuff for common abilities, while taking advantages of scripting for some really neat stuff. To give you an idea, say I use this engine to write some cave exploring game, where u hunt down treasure while avoiding monsters and stuff. I go and put it up for download, and a fan could literally go and turn this game into PacMan without having to touch the .exe. All done through clever scripting. So in other words, I''m trying to do for a 2D tile world what Half-Life has done for the FPS world.

Don''t mistake me for trying to create a whole game construction kit. It''s simply a game that is very flexible, much like Half-Life, to the point where you CAN make your "own game", but that''s not what the product is being released as. There will be a full IDE that allows map making, scripting, tile building, object/creature creation all in one program.

I might also sell licenses to the engine for a few bucks or even free on the side, in which case someone could expand on it and make a whole RPG system or something, but that''s another story.

Now that I''m done rambling about it being really versatile, why don''t I get back on topic? Sounds good! Okay, so now, Python has books on it. That is big, too big. I just want a basic scripting languages that actually works, because all that Lex/Yacc stuff was giving me a headache and I couldn''t shake the feeling that I was overworking myself needlessly. I just want a core scripting language, simple ifs, loops, etc, so I can expand it. The way the engine works, you can do a LOT with the most basic of programming constructs. I''ve already basically "learned" Lua in like two days, so I''m liking it. ANd it works and everything. But if someone has had bad experiences with it, id rather know now.















Get Banner At: http://www.crosswinds.net/~druidgames/resist.jpg
0

Share this post


Link to post
Share on other sites
Lua is great, don''t be ashamed to use it! If it makes you feel any better, there are a few commercial games out that use it, like MDK2 and Baldur''s Gate. It''s simple, fast, and expandable so you can''t really go wrong.
Dan
0

Share this post


Link to post
Share on other sites
Hey, think you could post some the (if any) links you have about Lua ? I''m pretty interested in using it, but the reference wasn''t too helpful in showing examples of useful implementation (I understand the basic syntax from reading over it though).

"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
Resist Windows XP''s Invasive Production Activation Technology!
http://druidgames.cjb.net/
0

Share this post


Link to post
Share on other sites
Well I''d go with whatever suits you.

Is the language flexible enough to fit your needs?

Is it easy enough to read?

Can you modify it if you ever wanted to without permission from the original author?

Is it free, and if not, how much is it?

Is it fun to use? Seriously. If you don''t like using it, don''t use it. That''s why I turned away from making Jedi Knight mods-- because COG (the scripting language used) is too difficult to understand. And I use C++ for crying out loud.
0

Share this post


Link to post
Share on other sites
That is an interesting perspective. I can''t say that I have ever heard anyone argue that readily available documentation was a bad thing. I suppose to each their own.
0

Share this post


Link to post
Share on other sites
Alright, I''m expecting to get flamed for this, given all those resist windows XP banners above, but if you program in windows, can''t you just use the windows scripting engine to parse and interpret java script or VB script? This saves you the time of having to learn a new language©
0

Share this post


Link to post
Share on other sites
One scripting language which I came across which seems pretty useful and powerful is seer. Not sure if anyone has had any experience of this one, I know it was used on a adventure game tool. Also I''m not sure about the licensing of it etc but well worth checking out.....

http://home.elka.pw.edu.pl/~ppodsiad/seer/

oh btw it''s based on C/C++.
0

Share this post


Link to post
Share on other sites
quote:
Original post by LilBudyWizer

That is an interesting perspective. I can''t say that I have ever heard anyone argue that readily available documentation was a bad thing. I suppose to each their own.


It''s the size of the documentation. Although it isn''t more than a week of reading for me at the most, I want to make this scripting language accessible to people with little or even no programming language. Plus I''ll have to write a custom manual for it and everything. For example, Some Guy mentioned Jedi Knight''s scripting engine was a turn off because it is too complex. I want to avoid the pitfall. Even a basic programming language is mind bogglingly powerful. Anything complex I want to implement I can do by adding functions whose use is completely optional instead of adding more and more syntax on to the shoulders of people who may not even know what a variable is.


And to whoever posted about MDK2 and Balduer''s Gate using Lua, if that is the case, then I certainly can use Lua too. THX A LOT

Oh and here''s a link to Lua''s main site, it''s got all the documentation and stuff. I''ve only had minor problems adding it to projects (the server was down when I was playing with it, so I wasn''t able to read that I have to put the include files in extern "C", so that caused me a bit of frustration).
http://www.tecgraf.puc-rio.br/lua/home.html


Get Banner At: http://www.crosswinds.net/~druidgames/resist.jpg
0

Share this post


Link to post
Share on other sites
quote:
Original post by invective

Alright, I''m expecting to get flamed for this, given all those resist windows XP banners above, but if you program in windows, can''t you just use the windows scripting engine to parse and interpret java script or VB script? This saves you the time of having to learn a new language©


RESIST M$!!!

Seriously, either choice you mention is useless for several reasons. Neither langauge is fast enough, and both have very awkward syntax.

java-script isn''t the greatest langauge period, and I have never seen a freely available parser for it (dont give me some stuff about some embedded IE functions, since I am aiming for portable code M$ provided stuff is useless).

As for VBScript, I have an extreme hatred for VB period. It''s syntax is horrible, it has a lot of little quirks, it requires M$, and im pretty sure it wouldn''t meet the speed requirements of my game.

So there''s your lecture Learning a new language is not a problem, if you know how to program, you know how to program. And if a programmer had trouble learning a scripting language, then the language is useless to the public, hence it''s worthless.



Get Banner At: http://www.crosswinds.net/~druidgames/resist.jpg
0

Share this post


Link to post
Share on other sites
java-script is pretty fun to work with (it is very forgiving) but it is slow. I use it a lot on my websites and such (just look at the source code, everything I reuse is stored in manager.js and theme.js). I''ve even written a low-performance database in java-script before, but I probably wouldn''t have done that if CGI was an option at the time.

I hate VBScript, that is the only reason I don''t like ASP too much, is that it has some unholy link with VBScript.

"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
Resist Windows XP''s Invasive Production Activation Technology!
http://druidgames.cjb.net/
0

Share this post


Link to post
Share on other sites
Ahh, it did it again. I write "Javascript" (that should come out, I use the Latin-Iso dealies) but it turns it into java-script (notice the lowered casing of the first letter), trying to make it look like I can''t type or something...

"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
Resist Windows XP''s Invasive Production Activation Technology!
http://druidgames.cjb.net/
0

Share this post


Link to post
Share on other sites
quote:
Original post by Null and Void

java-script is pretty fun to work with (it is very forgiving) but it is slow. I use it a lot on my websites and such (just look at the source code, everything I reuse is stored in manager.js and theme.js). I''ve even written a low-performance database in java-script before, but I probably wouldn''t have done that if CGI was an option at the time.



Once i learnt PHP/mySQL, i have had trouble finding much use for java-script anymore. At most, it''s good for scripting a little navigation menu for navigating a large set of dynamic data. Most of everything else that a website really needs that is traditionally done through stuff like JS (and none of those damn gimmicks!) is better done through a server side script. Then you are guarenteed compatibility with all browsers, and you can do sooo much more server side.

And personally i havent found JS forgiving, especially in the area of browser compatiblity, which is a big issue for me on many of my websites. Anyway, i''ve gotten a bit off topic here




Get Banner At: http://www.crosswinds.net/~druidgames/resist.jpg
0

Share this post


Link to post
Share on other sites
I was just giving you a hard time. I knew what you meant, but I think you are looking at it wrong. It isn''t any idiot that is going to make entertaining mods for your game. Most people just play mods, they don''t create them. If you haven''t played with UnrealEd or one of the other more popular game editors then I would suggest you do so. It is a very time consuming task to learn to use one, much less actually create an entertaining level. Two things you should notice is that it is very time consuming to design just a simple level and second is that what makes it time consuming isn''t just laying things out, but also learning what all the differant scripts do and how to use them. You might also notice that the scripts themselves are pretty simple and you can do a great deal without ever changing a single script.
0

Share this post


Link to post
Share on other sites
quote:
Original post by LilBudyWizer

That is an interesting perspective. I can''t say that I have ever heard anyone argue that readily available documentation was a bad thing. I suppose to each their own.


I didn''t say that. If you misread my post I said, "Is it easy enough to read?" That''s the only thing I can think of where you could have gotten that.

Every language allows you to comment, so why would I say that? It''s up to YOU to document your code well.

I hate you guys. I hate you so very very much...
0

Share this post


Link to post
Share on other sites
quote:
Original post by LilBudyWizer

I was just giving you a hard time. I knew what you meant, but I think you are looking at it wrong. It isn''t any idiot that is going to make entertaining mods for your game. Most people just play mods, they don''t create them. If you haven''t played with UnrealEd or one of the other more popular game editors then I would suggest you do so. It is a very time consuming task to learn to use one, much less actually create an entertaining level. Two things you should notice is that it is very time consuming to design just a simple level and second is that what makes it time consuming isn''t just laying things out, but also learning what all the differant scripts do and how to use them. You might also notice that the scripts themselves are pretty simple and you can do a great deal without ever changing a single script.


Yea, true. But the more complicated the script language, the more people you alienate. Not only because it requires more understanding of programming, but also because people are naturally lazy. If a scripting language takes too much time to learn to use, even ppl with the proper ability wont bother, because there''s other stuff to do. Many mod makers started scripting a particular game just out of curiosity. The more time it takes to do anything "COOL" in the game, the less people will get into it. There are so many other games out there, it has to be worth the time invested, and the initial investment most ppl are willing to make is small.




Get Banner At: http://www.crosswinds.net/~druidgames/resist.jpg
0

Share this post


Link to post
Share on other sites
quote:
Original post by Null and Void
I hate VBScript, that is the only reason I don''t like ASP too much, is that it has some unholy link with VBScript.



I totally agree with you on that. ASP uses VBScript. That''s why I use PHP instead. It''s syntax is more like C/C++. anyhow, that''s not the subject of the thread but I still had to get my word in. ( sorry about that )

"And that''s the bottom line cause I said so!"

Cyberdrek
Headhunter Soft
A division of DLC Multimedia

Resist Windows XP''s Invasive Product Activation Technology!
0

Share this post


Link to post
Share on other sites