Saving (and Loading!)
Hi all - Steve here. I’m a programmer working on Off Grid - and I’ve had the pleasure of working on save systems recently. :)
Ha! This is really one of the short straws of game development. When I was at Sony, it was almost a rite of passage; these were the days that not only did you have to save and load, but you were responsible for ensuring things didn't die when the memory card (remember those?) was pulled out mid-operation.
Prior to this month, we had the beginnings of a save system in place, but were aware that certain things didn't seem to be working quite as they should - so I took a look.
What I discovered was that we kept a save in memory as well as writing it to disk. This is a good thing - loading a checkpoint is faster. But a side effect was that there were two code paths to reinstating a save - to load it from disk, or to just reference the save data as game data. The danger with this is that the in-memory data can reference 'live' game data, which means the save on disk diverges with this during gameplay. Lots of copying data later, the bits that weren't working quite correctly now seem much happier.
The other work I've done was on a system level. Saving and loading requires making a list of all the files available. Previously, we loaded all of these into memory - but as we cannot know how big they're going to be, this will eventually cause us all sorts of problems. I've instead created a header at the top of each save file, containing the information we need to present to the player. Load the first 1000 bytes or so of each file, grab the header, close the file.
Saving and loading done then? Certainly not! We will still have new data that needs to be added to our save structure, and I bet there are still some bugs in there. But I'm confident that we are on firmer ground than we were a month ago.
Til next time!
Steve
[ 2018-05-26 08:18:40 CET ] [ Original post ]
Off Grid
Semaeopus
Developer
Semaeopus
Publisher
Coming soon
Release
🎹🖱️Keyboard + Mouse
🎮 Full Controller Support
No user reviews
(0 reviews)
The Game includes VR Support
Off Grid is a 3rd person stealth hacking game where data is your most powerful weapon. Off Grid forgoes combat for hacking tools and ingenuity, and is completely moddable.
Gameplay utilises unique mechanics that allow you to manipulate the world and people around you with the data they unwittingly leave behind. It’s a stealth game where the player can truly hack and manipulate objects in the environment.
Players, modders, and hackers will be able to use the game to create new and interesting levels with stories about surveillance, hacking and the internet of things.Features:
- Stealth and hacking gameplay based on use of data and environments rather than weapons and combat
- Hack into lifelike simulated networks and data with realistic hacking techniques and tools including SSH, sidejacking, and social engineering of the AI
- Contemporary storyline and missions related to real-world events surrounding data privacy and mass surveillance
- Fully moddable content encouraging players to create new and interesting levels, whether complete fantasy or mimicking hacking in the real world around them
- Outstanding audio and original soundtrack from Jonas Jensen and Lyndon Holland, the BAFTA-winning composer from the game Virginia
MINIMAL SETUP- OS: Ubuntu 16.4 or equivalent
- Processor: Intel Core i5 2300 or AMD FX6120Memory: 6 GB RAM
- Memory: 6 GB RAM
- Graphics: GeForce GTX 550 Ti or Radeon HD 6770
- Storage: 10 GB available space
RECOMMENDED SETUP- OS: RISC architecture is gonna change everything
- Processor: P6 chip. Triple the speed of the Pentium
- Graphics: 3Dfx Voodoo capable GFX cardSound Card: The Sound Blaster 1.0 ( "Killer Kard")Additional Notes: 28.8 KBPS Modem
8.39$ (16%)
5.03$ (16%)
25.19$ (16%)
35.59$ (11%)
8.59$ (14%)
16.79$ (16%)
42.44$ (15%)
8.75$ (78%)
12.42$ (17%)
17.79$ (11%)
33.97$ (15%)
8.27$ (17%)
50.96$ (15%)
6.83$ (66%)
5.83$ (81%)
4.95$ (62%)
16.79$ (16%)
2.61$ (74%)
12.59$ (16%)
6.00$ (70%)
11.34$ (81%)
26.69$ (11%)
12.27$ (18%)
4.59$ (77%)
4.95$ (17%)
12.74$ (15%)
8.46$ (15%)
19.95$ (20%)
8.59$ (14%)
16.79$ (16%)
5.78$ (66%)
3.28$ (78%)
19.8$ (67%)
10.79$ (10%)
22.95$ (62%)
11.99$ (40%)
33.19$ (17%)
1.6$ (90%)
1.8$ (85%)
1.88$ (81%)
24.49$ (30%)
7.5$ (50%)
4.5$ (77%)
19.99$ (20%)
32.0$ (60%)
3.92$ (87%)
9.99$ (50%)
0.5$ (90%)
2.0$ (90%)
12.79$ (36%)
3.84$ (76%)
3.0$ (75%)
2.55$ (83%)
17.0$ (57%)
1.5$ (90%)
4.46$ (70%)
3.04$ (70%)
4.05$ (73%)
2.75$ (45%)
2.55$ (83%)
FANATICAL BUNDLES
Time left:
4 days, 5 hours, 47 minutes
Time left:
0 days, 5 hours, 47 minutes
Time left:
21 days, 5 hours, 47 minutes
Time left:
356445 days, 21 hours, 47 minutes
Time left:
3 days, 5 hours, 47 minutes
Time left:
32 days, 5 hours, 47 minutes
Time left:
18 days, 5 hours, 47 minutes
Time left:
28 days, 5 hours, 47 minutes
Time left:
27 days, 5 hours, 47 minutes
Time left:
34 days, 5 hours, 47 minutes
HUMBLE BUNDLES
by buying games/dlcs from affiliate links you are supporting tuxDB
🔴 LIVE
involuntarymillenial
Super Metroid
Maprando - Expert Tricky for a quick SM fix - Super Metroid Randomizer
rachums
The Sims 2
Sims 2 Sneaky Stream!
Vet
After Dark Linux Stream w/ Big Daddy Santa Vet (IFKYK) | Cyberpunk 207...
valiantcheese
Fossil Sweeper
Makin' a nice game about digging up fossils
travisvroman
Software and Game Development
Game Dev using my custom engine, Ep. 2: Have a track but... physics? !...
hypnotik_games
Software and Game Development
Godoting Jamming - !tts !anomalies !free_tts Raids:
sconebonevideo
Bugs Bunny: Crazy Castle 3
Bones Bunny Crazy Castle 3! | 1st Playthrough Day2 !nobs | Real Hardwa...
wafflesoup
Timespinner
4 yeaf Affiliate anniversary! 4 game solo multiworld
ca2software
Software and Game Development
[ Ubuntu 24.10 ] [ C++ ] Making more stable ca2 for GTK4 where CLion ...
b4ux1t3
Software and Game Development
Building a Dashboard for Paperless NGX in F# with Falco!
jujut8
Sky: Children of the Light
[PT-BR / ENG] Edem, pedradas e rocamboles #linux !distro !kofi
somemediocregamertv
Poppy Playtime
The next chapter unfolds | Chapter 1-4 | Lets give Huggy a BIG squeeze
chiefgyk3d
Just Chatting
Tinkering with my new Tangara | Fun, News, Tech Talk , Cybersecurity ,...
urushiyowa
Software and Game Development
[DX7][C++][GTK4][Gmodule][Libtool][Cairomm][Drawing] Update de gtk2 3...
gamesnolinux
Dota 2
Suporte Arte. Only Sup 5 Witch Doctor, Crystal Maiden , Lion, Shadow...
greenteamgames
Hardspace: Shipbreaker
Finishing up Beulah, then play-testing some Stars Reach later
Xf4ct
The Last of US parte 1 - Solus Linux - #reincio #03
pullarity
Stoneshard
Witcher build starts now!!! | Birthday Stream | !boop | This is Linux
agentsnail47
HITMAN World of Assassination
New Featured Contracts by @street_surg30n
onibakuman
Parasite Eve II
\_( )_/ start with pe2 randomizer - afterwards masku will guide us o...
omn0mn0m
Co-working & Studying
Short study stream then Marvel Rivals xdx
monsieurpl
Lego & Brickbuilding
Prends tes Reactine, on continue le chat en LEGOs! !linux !youtube Te...
het_tanis
Science & Technology
Linux Security - hands on labs.