Into the Mind of a Dev
« Spawning EntitiesLights and Clients and Servers »

Saving and Loading

Permalink 06/07/11 15:37, by Blaine Myers, Categories: Development

Today I made progress on the ability of the game to save and load data. Previously it could only load data, but now it can save. This has actually created some interesting caveats, as it is questionable as to what data should be saved. Currently the game is only saving basic data about the level and about the entities, though it has the potential to save a lot more data. I also eliminated the .pinfo XML files from the engine. These were files that described additional PhysX data for the game. I combined the important parts of that file into the entity dictionary file format (.edict) because it seemed more fitting for those descriptors to be in those files since they only affected entities.

The groundwork has been laid for saving, but I’m going to have to decide further what I wanted to do with the saving ability. For example, how much PhysX data should be saved. Clearly it would be nice to save velocities and torque since it would be very weird to save a game with an object flying through the air, then load it with the object standing still in the air. I’m also running into problems with the way the player entity is saved, because the player controlled entity is treated differently throughout the game than the other entities. What I’m thinking is to create a special save tag for saving the player entity. Then when a client connects it uses that data to load the player entity. Doing so would also solve some other hard-coded items that are currently in place.

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)

Search

This blog chronicles the development of the Emergence Game engine. The Emergence Game Engine will be a fully functional 3D game engine with support for the latest technologies in video game development. This blog features the remarks of the lead programmer, Blaine Myers, as he comments on the struggles and joys of developing a 3D game engine.

Categories

Recent Posts

XML Feeds

multiblog platform

©2012 by Blaine Myers

Contact | Help | Blog theme by Asevo | free blog software