Jump to content
  • Advertisement


Sign in to follow this  
  • entries
  • comments
  • views

Focus issue and Scripting

Sign in to follow this  


Well, now that I have started adding the GUI stuff to the program there has been issues with getting focus. It only happens at about one out of five launches so I am sort of confused about why it is happening. Other then that I've been catching up on homework that I haven't been doing for the last week... there is BIG task.

For a while now I have been parsing a text file: map.data to get the information for the base map. Once the map is loaded you can save and open the map in a serialized format. The problem is that I cannot get the graphics to serailize. Once I figure out how to do that I can have a format that holds all the information about the current state of the game, as well as hold all the graphics. Once this is working, I get a simple method to compress and uncompress on save and load. This way there is simply one file that holds all information about a game you are going to release to other people. This prevents people from having to make sure that they have the right graphics installed on their system (a common problem with rm2k). If I can get the music and sound to also be serialzed I am all set :)

Anyway, since I have been parsing my map.data file I have made a simple scripting language that is unnamed because it only handels a few methods inside my application. For instance:
tracker.Add_Tile 0 0 tile_grass_01.png
adds a tile at <0,0> and with the graphic located in the graphics directory. Now my eventual plan is to either get jython or rhino running as my scripting language. The other idea that I had instead of a scripting language was to just include the java compiler for windows/linux/mac (with the option of choosing your own) so that all the scripts are simply compiled when you hit the build scipt button on an event dialog.

So right now I am on the fence about including a scripting language or just including a java compiler to do the work. What do you guys think?
Sign in to follow this  


Recommended Comments

Guest Anonymous Poster


> So right now I am on the fence about including a scripting language or just including a java compiler to do the work. What do you guys think?

You should check http://www.beanshell.org/ and http://groovy.codehaus.org/. I think they are great things.

Share this comment

Link to comment

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
  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!