September 18, 2019, 11:26:22 AM

Author Topic: Logic Question  (Read 12333 times)

Offline Derron

  • Hero Member
  • *****
  • Posts: 2408
Re: Logic Question
« Reply #105 on: February 24, 2019, 07:38:01 AM »
Why not check "last modified" dates of such savegames - and display this (together with "internal savegame time") on the select-your-savegame screen.

It does not matter if your savegames are stored "offline" as soon as the interpretation of the data happens "online".


- your server-software might be updated in a way that your eg. PHP installation was updated
- the deserialized savegame data might get interpreted in a different way now (depends on how you store it)

My assumption is that not your local stored savegame got modified - but the game server. Either modified - or using updated "engines" leading to issues. Now you loaded and maybe even "saved" over your old savegame (instead of backupping it first).

If not: backup the savegame file, load it, save it again - and compare these files for differences. If they now differ then your game server corrupted the data.


Maybe your game server even just stumbled over something during deserialization of your savegame and borked up data that way - most propably.


bye
Ron

Offline Matty

  • Hero Member
  • *****
  • Posts: 730
    • MattiesGames
Re: Logic Question
« Reply #106 on: February 24, 2019, 07:13:37 PM »
I'll make it simple for you Derron.

Client side game only javascript no php.
Single save file stored and interpreted locally.
Names stored as plain text strings.
Only 1 save file.
Names changed from eg Roger to eg Amanda.

All code written by me for game.

Names saved as  raw text in 1 single file. 


Offline Derron

  • Hero Member
  • *****
  • Posts: 2408
Re: Logic Question
« Reply #107 on: February 24, 2019, 07:31:03 PM »
You use "localstorage" - which is shared across all scripts on your DOMAIN.

So if you used "localstorage" in any other game on your domain/website - and eg. use the same variable names - then you override stuff as soon as you save in one of the other games. This might lead to odd behaviour.

-> either save your game data in an own table/map ("gametitle_data") and access it from there
-> or prefix all your variables "gametitle_squad" etc.

Just have had a look - your "Star Scavengers" uses the very same technique - if you played it meanwhile and saved - you borked up your other savegame.


bye
Ron

Offline Matty

  • Hero Member
  • *****
  • Posts: 730
    • MattiesGames
Re: Logic Question
« Reply #108 on: February 24, 2019, 11:41:17 PM »
Ta...perfect - that explains it.

Offline Matty

  • Hero Member
  • *****
  • Posts: 730
    • MattiesGames
Re: Logic Question
« Reply #109 on: February 27, 2019, 05:45:40 AM »
Thanks again Derron - that was an easy fix (append 'ss' to the front of all the star scavengers saves)

I'll do likewise from now on with all my game saves and so on (append 2 letter initial to save game localStorage key values)


Offline Matty

  • Hero Member
  • *****
  • Posts: 730
    • MattiesGames
Re: Logic Question
« Reply #110 on: March 03, 2019, 07:54:07 PM »
Dreamland..

See attached.


Offline Rick Nasher

  • Hero Member
  • *****
  • Posts: 773
Re: Logic Question
« Reply #111 on: March 16, 2019, 09:56:34 PM »
You sound poetic and dark. Reminds me of Jim Morrisons and The Doors texts.
I take great comfort in his songs whenever I feel bad.


I think you are a great coder and very creative person. That kind of artistic genius usually comes at a price though. Just look at Van Gogh for instance. But don't end up like them - keep your head cool and clear and all will be fine.

Stay cool.  8)
_______________________________________
 B3D + physics + shaders + X-platform = AGK!
:D ..ALIENBREED *LIVES* (thanks to Qube).. :D
_______________________________________

Offline Matty

  • Hero Member
  • *****
  • Posts: 730
    • MattiesGames
Re: Logic Question
« Reply #112 on: March 21, 2019, 10:09:18 PM »
Thanks Rick....

Here's an image below of how much I've written on my journal since 2016....quite a bit of writing....


Offline Rick Nasher

  • Hero Member
  • *****
  • Posts: 773
Re: Logic Question
« Reply #113 on: March 23, 2019, 08:22:44 AM »
I'd say. I do not know where people find the time to write.
Would love to but just no chance.
_______________________________________
 B3D + physics + shaders + X-platform = AGK!
:D ..ALIENBREED *LIVES* (thanks to Qube).. :D
_______________________________________

Offline Matty

  • Hero Member
  • *****
  • Posts: 730
    • MattiesGames
Re: Logic Question
« Reply #114 on: April 04, 2019, 05:58:42 PM »
Wow.

I just woke at 330am to hear someone let off what were likely two firecrackers right outside my bedroom window.  Two loud bangs and flashes and that was it...never like that around here.

Offline Matty

  • Hero Member
  • *****
  • Posts: 730
    • MattiesGames
Re: Logic Question
« Reply #115 on: April 04, 2019, 09:00:55 PM »
From my journal...attached...


Offline Rick Nasher

  • Hero Member
  • *****
  • Posts: 773
Re: Logic Question
« Reply #116 on: April 07, 2019, 04:42:49 PM »
Very good to hear you are doing better Matty.
Keep it up even though the road is full of ups and downs.
_______________________________________
 B3D + physics + shaders + X-platform = AGK!
:D ..ALIENBREED *LIVES* (thanks to Qube).. :D
_______________________________________

Offline Matty

  • Hero Member
  • *****
  • Posts: 730
    • MattiesGames
Re: Logic Question
« Reply #117 on: April 12, 2019, 10:34:52 PM »
Ambassador, the Centauri delegate is here to see you

(big fan of babylon 5....or perhaps just woke up!)


Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 2112
Re: Logic Question
« Reply #118 on: April 13, 2019, 03:21:22 AM »
Yay, it's one of those narcissistic selfies where they look at themselves rather than the camera :P

All jokes aside you look like a happy cool dude  8) - keep it up  ;D
Until the next time...

Offline Matty

  • Hero Member
  • *****
  • Posts: 730
    • MattiesGames
Re: Logic Question
« Reply #119 on: June 07, 2019, 11:17:51 AM »
Hey everybody....does anyone know what this purple substance could be that has been dropped onto my car roof in a diagonal line today?

I arrived home from the library (parked outdoors, no trees nearby) to find it splashed across the roof of my car in a diagonal line - it's some kind of purple substance.

Interestingly, the splashes are kind of 'a half and a not half' if you look closely, like they are circular but there is a semi circle which is 'fuller' than the other semicircle. And they're all like that going across the roof of the car.