Jump to content
  • Advertisement
Sign in to follow this  
zander

Windows Game Scripting

This topic is 4861 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am programming a 2d rpg using C++ and win32 API / DirectX8. I am trying to write a script that will read in a file that contains the character's inventory, and then store the armor items into one array of strings and the miscellaneous items into another array of strings, while keeping track of the number of each item there is (which is listed in the file of course). My question is this: what is the best way to go about making a script for this? I was trying to use the namespace std fstream fileinput but it was not working. It has always worked for me with DOS applications but its not working in windows. The code is accurate, but its just giving me funky behavior. Do I have to use the windows API for file management in a windows program to get accurate file input? Or is there another solution? -Alex

Share this post


Link to post
Share on other sites
Advertisement
Try posting the code and possibly an example of how the data is formated in the file, and what output/input you are currently getting. The more info the better.

It would help in determining the problem.


On a side note, your use of the term 'script' is odd. Even though what you are doing is obvious (programming a win32 app with C++) the term script is generally thought of differently than your intention.

It's a silly thing, but using a compiled language is general referred to as 'programming,' and using an interpretted language is generally though of as 'scripting.'

It's not a big deal.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!