Author Topic: Save Games and 3D Map Editor  (Read 2829 times)

MoLAoS

  • Local Moderator
  • Ornithopter
  • ********
  • Posts: 433
    • View Profile
Save Games and 3D Map Editor
« on: 17 June 2014, 06:01:05 »
Okay, so I've been working on the save function. Just on a whim. I got it to work by commenting out a few functions that caused crashes. Now I'm churning through those problems. Basically the game was not saving some data in the unit save function and then tried to load it, causing a crash. I am attempting to implement the saving and loading of every currently non-processed variable.

I have long shifts at work the next few days, somewhat compensated by being pissed off by and screwed over by EU4, thus causing me to stop playing. I believe I'll have scenarios properly saving including all new game data by the weekend. If it goes reasonably fast I'll be able to put some serious hours into working in the other parts of the map editor that aren't finished. The parts I have work pretty well except they can't save. Honestly the way the map save files themselves are set up I can't see any benefit to messing with the map editor file. The only thing its really good for is the parts you can't do anywhere else and I'm gonna work on that if I can. Basically the starting positions and all that jazz. Maybe mass placing trees and terrain for finer editing later in 3D.

I'll try and put up a video when I'm done of me fuzzing a map.

MoLAoS

  • Local Moderator
  • Ornithopter
  • ********
  • Posts: 433
    • View Profile
Re: Save Games and 3D Map Editor
« Reply #1 on: 18 June 2014, 01:57:40 »
Okay, according to testing and going through unit files, I currently have a max of 55 items I need to incorporate into the save function. Then I'll be on the load function with slightly more things to deal with. Once that is completed, saves, in scenarios should be mostly done. Certain parts of scenarios may not work correctly, but my projects take place almost purely in scenarios and mostly don't use any Lua stuff.

Once savegames/scenarios function correctly I'll try and see if the map editor has any special issues that need to be worked on in savegames.

Following that stuff should all be working properly and I can push ahead on finishing the actual game content. Still not certain how I'm gonna deal with the need for flower and herb models, but I'll handle that later.

MoLAoS

  • Local Moderator
  • Ornithopter
  • ********
  • Posts: 433
    • View Profile
Re: Save Games and 3D Map Editor
« Reply #2 on: 19 June 2014, 02:05:21 »
Alright, as far as I can tell the save function is functioning perfectly for all relevant unit data. Now I must slave away at the load function. Then I can get started on the map editor specific parts. I'm off the next two days so unless EVE interferes with my free time I should be finished then.

MoLAoS

  • Local Moderator
  • Ornithopter
  • ********
  • Posts: 433
    • View Profile
Re: Save Games and Success
« Reply #3 on: 20 June 2014, 07:22:08 »
I have done it. Save games are now functioning properly. I still have a couple vectors to add to the save/load code, but that's nothing compared to my odyssey to cause units to appear in the right spot with the correct units loaded into them, with the correct stats and resources and so forth. Took me 12 hours to finish off.

Tomorrow the  3d map editor should be made functional.

 

anything