• 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.
Sign in to follow this  
Followers 0
Sixoul

Would LUA, xml, or some scripting language be for me?

3 posts in this topic

So I'm working on a game in C++ and I was debating whether I should use lua or xml to help me. I'll need a way to store all my data for the characters. It'll be a small pokemon like rpg. So everything has stats, moves it can learn when it levels up, experience to next level, etc etc.

 

I could set that up in an array, record, or something to hold all of this. But I was wondering if xml or lua would be possible to do this as well and make life easier for me. But as I looked more into it I thought this might give the user too much access if I set it up wrong.

 

What kind of instance would using lua or xml be proper time to use it? Could I use it to hold the config settings?

0

Share this post


Link to post
Share on other sites

You can surely use Lua for something like this. It's probably a bit overpowered for such a purpose but it's a pragmatic solution to the problem. If you want to go one step further, you might also be able to implement item-specific behaviour in Lua, which would be quite cool and make your game easily moddable.

 

XML would be another option, but my personal taste is to use as little XML as possible, because it's hard to read and write (again, personal taste) by hand.

 

I wouldn't care about giving the user to much access. Unless you have some legal reasons to protect your data, just don't. Just be happy about the fact that people will be able to mod your game, which can be a great amplifier for your community.

 

I usually implement my configuration files using Lua, because that gives me a lot of possibilities and flexibility at a very low price (in terms of implementation effort needed).

0

Share this post


Link to post
Share on other sites

I could set that up in an array, record, or something to hold all of this. But I was wondering if xml or lua would be possible to do this as well and make life easier for me. But as I looked more into it I thought this might give the user too much access if I set it up wrong.
 
What kind of instance would using lua or xml be proper time to use it? Could I use it to hold the config settings?


I find Lua to be highly useful for this kind of data description. XML is as well; however, it is unwieldy to type by hand, and is typically chosen as an intermediate output from a data-authoring tool rather than a first-choice for by-hand authoring. (Of course, such a tool can easily output Lua as well...)

Don't worry about giving the user too much access. Even a custom binary format is probably going to be cracked, if the game is interesting enough to motivate people to do so. You can crunch your data to binary (Lua provides a compiler to pre-compile scripts to a binary format) then run it through a simple encryption/decryption process at save/load time if it is really a concern; just be aware that if there is sufficient motivation to do so, your formats will still be cracked and your game modded by people who enjoy that sort of thing.
0

Share this post


Link to post
Share on other sites

If the bulk of the stats are the same across all types of creatures it's best to make a table based format which can be imported / exported from common spread sheet programs like google docs or access. This allows you to keep the data organized. If a creature needs a custom non-standard attribute or property u can probably extend your system to support custom scripts ( Lua ) in the place of of a standard property / stat.. 

1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0