Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Creating a Config file

Author
Message
Poof Master
14
Years of Service
User Offline
Joined: 14th Jan 2010
Location:
Posted: 5th May 2010 01:12
Didn't really know what to name this post but basically I want to make a program that will allow players of my game to change specific variables so they can mod it. IE the experience points you get for killing something or the damage you do or maybe the gravity of the level. I know there are some posts on writing to a txt file and what not but I was thinking of doing something more along the lines of how unreal script does which basically they define which variables they want and looks a little like this:



Now I know you can't define variables like that but this is basically how unreal script does theres. Would there be a way to do this and what would be the difficulties behind a program like this. I'm really just looking to do this as I work on my main project so if anyone knows that this is going to be a big task or would be pretty difficult please let me know before I start trying to dive into it.

Any suggestions or help would be greatly appreciated.
Freedom Fighters
14
Years of Service
User Offline
Joined: 2nd Nov 2009
Location:
Posted: 5th May 2010 09:32
why not have a text file with the vairble or a ini file?
and set the variables to read the values from it?

Problem Solution That Never Fails: "Build A Bridge And Get Over It"
entomophobiac
21
Years of Service
User Offline
Joined: 1st Nov 2002
Location: United States
Posted: 5th May 2010 10:16 Edited at: 5th May 2010 10:16
This is what you use a scripting language for, among other things. There are multiple standard ways to implement them.

Check these things out:

Lua: http://code.google.com/p/luaforwindows/

GameMonkey: http://www.somedude.net/gamemonkey/

XML: http://www.xml.com/pub/a/1999/11/cplus/
Poof Master
14
Years of Service
User Offline
Joined: 14th Jan 2010
Location:
Posted: 5th May 2010 22:51
Awesome thanks for the links. That's something I definitely want to have for later when my game is a little farther along.

Login to post a reply

Server time is: 2024-07-07 01:57:05
Your offset time is: 2024-07-07 01:57:05