Author Topic: Upgrading game data v1.2 to v1.3  (Read 1778 times)

xavius

  • Newbie
  • *
  • Posts: 22
    • View Profile
Upgrading game data v1.2 to v1.3
« on: January 02, 2015, 04:17:59 am »
Hi,

It has been a long time since I got the time to develop my game but here I am.

I am having difficulties to update from v1.2 to v1.3. I used the map upgrade from the editor but all my maps that contain entities will just crash the editor when loading and without getting any error. I checked further by trying to run them with the game executable. Here is what I get for one map (see attached)

I checked the dat file and got to the lines in question:
switch{
  layer = 0,
  x = 1544,
  y = 1608,
  name = "secret_chest1",
  subtype = "1",
  needs_block = false,
  inactivate_when_leaving = false,
}

The second argument is suppose to be the ground type if I understood correctly. In my map, it is the x position of the entity itself.

What should I do to change this and be compatible with v1.3?

Thank you!


Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1177
    • View Profile
Re: Upgrading game data v1.2 to v1.3
« Reply #1 on: January 02, 2015, 08:03:23 am »
Hi,
Did the editor say that the upgrade was successful? It seems that your switch "secret_chest_1" still has the old syntax. The old syntax uses subtype = "1" and the new syntax uses subtype = "walkable".

Can you send me your project before and after the upgrade ? I would like to fix your data files, check if the upgrade fails and why, and also why there is a crash (a syntax error in a map file should never crash the editor, but show an error instead).
« Last Edit: January 02, 2015, 08:04:56 am by Christopho »

xavius

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Upgrading game data v1.2 to v1.3
« Reply #2 on: May 09, 2015, 07:54:49 pm »
My god, it has been a long time. Already to version 1.4.2!

I had a computer failure, took me time to get the money to buy a new one.

Yes Christopho, I can send you the project. What is your E-mail? I will give you the link.

Thank you again!

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1177
    • View Profile
Re: Upgrading game data v1.2 to v1.3
« Reply #3 on: May 09, 2015, 11:01:29 pm »
Hi again!
I sent you a personal message with my email adress.

xavius

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Upgrading game data v1.2 to v1.3
« Reply #4 on: May 10, 2015, 12:50:23 am »
I sent you the link.