Jump to content

Recommended Posts

Posted

I would use a sqlite3 database, because then you can also load and save only parts of a level. And then use blowfish2 for encryption.

  • Upvote 1

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Posted

Most of the c# serialization coolness is from reflection. C++ doesn't so much have that. There is some cheezy ms proprietary reflection thing... I would be curious to see if c++ has an automapper.

Posted

I recommend against serialization.

  • There's always data you don't want to include, or data that doesn't translate well.
  • Your class structure WILL change and invalidate all your serialized data.

 

Just write your save routine and decide what data is important. Don't look for a magic routine to make life easier.

 

</offsoapbox>

  • Upvote 1

Let's build cool stuff and have fun. :)

Posted

Your class structure WILL change and invalidate all your serialized data.

This is a very real and serious drawback with serialization as a save mechanism!

Intel Core i5 2.66 GHz, Asus P7P55D, 8Gb DDR3 RAM, GTX460 1Gb DDR5, Windows 7 (x64), LE Editor, GMax, 3DWS, UU3D Pro, Texture Maker Pro, Shader Map Pro. Development language: C/C++

Posted

Why not just use your xml file but put it in a password protected zip and stream it from there?

I don't know, it just doesn't 'feel' right to do it that way. That may be a bit vague. It will probably work just fine.
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...