It is currently Tue Oct 22, 2019 4:09 pm

All times are UTC




Post new topic Reply to topic  [ 40 posts ]  Go to page Previous  1, 2, 3
Author Message
PostPosted: Thu Jun 16, 2016 1:53 pm 
Offline
Obduction Backer

Joined: Mon Oct 22, 2012 6:07 pm
Posts: 1268
Location: Central Europe
old syntax = JSON
new syntax = YAML

_________________
KI #46116. Donate to help the Cavern stay open!
Want to know what’s going on in the Cavern? Visit the GoMe site.

MacOS wrappers, D’ni Lessons, DniTools, goodies.


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 16, 2016 2:09 pm 
Offline
Obduction Backer

Joined: Mon Jun 04, 2007 9:38 pm
Posts: 303
Location: France
It's what I did.

The example content Jahmen gaves me 1 year ago:
[Reveal] Spoiler:
Code:
{
"guid": "7921d9c9-d9f8-4d5f-ba53-21c3b750a2a4",
"name": "Simon Templer's Kadish Quest",
"markers": [
{
"text": "4 letter name with a dash in it.",
"age": "Kadish",
"coords": [
68.81651306152344,
174.77679443359375,
0.44860178232192993
]
},
{
"text": "I was wandering through the cavern city",
"age": "Kadish",
"coords": [
56.62507629394531,
188.29901123046875,
16.009910583496094
]
},
{
"text": "and ran into a player named ? ???",
"age": "Kadish",
"coords": [
167.31703186035156,
230.59422302246094,
17.10062026977539
]
},
{
"text": "He spoke to me about a Lost Journal",
"age": "Kadish",
"coords": [
245.07713317871094,
17.496679306030273,
1.5085852146148682
]
},
{
"text": "White",
"age": "Kadish",
"coords": [
238.6979217529297,
88.87791442871094,
2.5822198390960693
]
},
{
"text": "placed name letter markers in the vault.",
"age": "Kadish",
"coords": [
728.9129638671875,
-116.51184844970703,
-50.21784210205078
]
}
],
"creator": "I-Spy"
}


The same content after using my converter:
[Reveal] Spoiler:
Code:
creator: I-Spy
guid: 7921d9c9-d9f8-4d5f-ba53-21c3b750a2a4
markers:
-   age: Kadish
    coords: [68.81651306152344, 174.77679443359375, 0.44860178232192993]
    text: "4 letter name with a dash in it."
-   age: Kadish
    coords: [56.62507629394531, 188.29901123046875, 16.009910583496094]
    text: "I was wandering through the cavern city"
-   age: Kadish
    coords: [167.31703186035156, 230.59422302246094, 17.10062026977539]
    text: "and ran into a player named ? ???"
-   age: Kadish
    coords: [245.07713317871094, 17.496679306030273, 1.5085852146148682]
    text: "He spoke to me about a Lost Journal"
-   age: Kadish
    coords: [238.6979217529297, 88.87791442871094, 2.5822198390960693]
    text: "White"
-   age: Kadish
    coords: [728.9129638671875, -116.51184844970703, -50.21784210205078]
    text: "placed name letter markers in the vault."
name: Simon Templer's Kadish Quest


_________________
Image TheScar.fr (In French or English.)
For some maps to find the Minkata Kivas, take a look at this folder of my Cloud.
Also, feel free to use any idea from this folder for MO:UL (currently 1 idea).
/?t - "jukebox"


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 16, 2016 5:38 pm 
Offline
Obduction Backer

Joined: Mon Oct 22, 2012 6:07 pm
Posts: 1268
Location: Central Europe
I tested importing both your version and an unmodified conversion from the JSON; both work and look the same.
[Reveal] Spoiler:
Code:
---
  name: "Simon Templer's Kadish Quest"
  markers:
    -
      text: "4 letter name with a dash in it."
      age: "Kadish"
      coords:
        - 68.81651306152344
        - 174.77679443359375
        - 0.44860178232192993
    -
      text: "I was wandering through the cavern city"
      age: "Kadish"
      coords:
        - 56.62507629394531
        - 188.29901123046875
        - 16.009910583496094
    -
      text: "and ran into a player named ? ???"
      age: "Kadish"
      coords:
        - 167.31703186035156
        - 230.59422302246094
        - 17.10062026977539
    -
      text: "He spoke to me about a Lost Journal"
      age: "Kadish"
      coords:
        - 245.07713317871094
        - 17.496679306030273
        - 1.5085852146148682
    -
      text: "White"
      age: "Kadish"
      coords:
        - 238.6979217529297
        - 88.87791442871094
        - 2.5822198390960693
    -
      text: "placed name letter markers in the vault."
      age: "Kadish"
      coords:
        - 728.9129638671875
        - -116.51184844970703
        - -50.21784210205078
  creator: "I-Spy"

Note that according to the specifications, in YAML
Code:
coords: [68.81651306152344, 174.77679443359375, 0.44860178232192993]

is equivalent to
Code:
coords:
    - 68.81651306152344
    - 174.77679443359375
    - 0.44860178232192993

_________________
KI #46116. Donate to help the Cavern stay open!
Want to know what’s going on in the Cavern? Visit the GoMe site.

MacOS wrappers, D’ni Lessons, DniTools, goodies.


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 16, 2016 6:55 pm 
Offline
Obduction Backer

Joined: Mon Jun 04, 2007 9:38 pm
Posts: 303
Location: France
If it works on MO:ULa with the JSON to YAML converter, it's nice.
But does it still works with the special caracters that we can use when building a quest? If it does, it's perfect.

Note: Of course, we still have to remove the old "guid" code.

_________________
Image TheScar.fr (In French or English.)
For some maps to find the Minkata Kivas, take a look at this folder of my Cloud.
Also, feel free to use any idea from this folder for MO:UL (currently 1 idea).
/?t - "jukebox"


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 16, 2016 7:19 pm 
Offline
Obduction Backer

Joined: Mon Oct 22, 2012 6:07 pm
Posts: 1268
Location: Central Europe
I think your observation is still valid: the colon ( : ) is a special character in YAML, so a line that uses it should be enclosed in quotes.

Probably quotes too should be enclosed, i.e.: "Some text" :arrow: '"Some text"'

Accented characters might work, but I advise against using them, as you shouldn’t normally be able to type them.

The GUID of course should be removed too, unless editing an already existing quest (and it might still be safer to remove it anyway).

Maybe you could post your code on GitHub?

_________________
KI #46116. Donate to help the Cavern stay open!
Want to know what’s going on in the Cavern? Visit the GoMe site.

MacOS wrappers, D’ni Lessons, DniTools, goodies.


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 16, 2016 7:50 pm 
Offline
Obduction Backer

Joined: Mon Jun 04, 2007 9:38 pm
Posts: 303
Location: France
Houla lol I don't know at all how github works, and as it's full "technical english", I think, I will not understand how it works.
Anyway, I'm not a developer, or a very very little one.
But if someone wants to post my code on it, there's no problem at all; just remove "TheScar" of the code, please. :)
It was just a first try, there's probably some things to change, but feel free to use it (anybody).
Or, as I said, I can try to make it better, to secure it and to upload it on my website.
(I'll move soon, I'll not have time to work on it in the next month.)

_________________
Image TheScar.fr (In French or English.)
For some maps to find the Minkata Kivas, take a look at this folder of my Cloud.
Also, feel free to use any idea from this folder for MO:UL (currently 1 idea).
/?t - "jukebox"


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 16, 2016 7:57 pm 
Offline
Obduction Backer

Joined: Mon Oct 22, 2012 6:07 pm
Posts: 1268
Location: Central Europe
I made another test, and this is how the Marker Editor saves the marker texts:
[Reveal] Spoiler:
Code:
creator: Korov'ev
guid: xxxxxxxxxxxxxxxxxxxxxxxx
markers:
-   age: Personal
    coords: [22.330049514770508, -31.966373443603516, 6.036035060882568]
    text: 'Line with : a colon'
-   age: Personal
    coords: [21.200645446777344, -24.462984085083008, 6.343643665313721]
    text: '"Line with double quotes"'
-   age: Personal
    coords: [20.94312286376953, -17.290250778198242, 7.5108208656311035]
    text: '''Line with single quotes'''
-   age: Personal
    coords: [19.77613639831543, -9.537178993225098, 9.499707221984863]
    text: Line with ' mixed " unclosed quotes
-   age: Personal
    coords: [18.698759078979492, -2.3794331550598145, 11.375096321105957]
    text: Line (with) parentheses
-   age: Personal
    coords: [24.88277816772461, 0.9554716348648071, 12.452468872070312]
    text: Line [with] square brackets
-   age: Personal
    coords: [27.58291244506836, -10.264277458190918, 9.389837265014648]
    text: Line {with} curly brackets
name: Characters

To summarize, if you have quotes in your marker text, make a dummy quest in-game and export it to see how the editor want it :)

Also, one or more of £ $ % & @ # break the KI, so they should be avoided.

_________________
KI #46116. Donate to help the Cavern stay open!
Want to know what’s going on in the Cavern? Visit the GoMe site.

MacOS wrappers, D’ni Lessons, DniTools, goodies.


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 16, 2016 8:09 pm 
Offline
Obduction Backer

Joined: Mon Jun 04, 2007 9:38 pm
Posts: 303
Location: France
Thanks for your tests, it can/will help; I'll keep the last one to test/update my code. :)
But, can you confirm me that the example code Jahmen gaves me was a "complete" old marker game?
I meant, nothing is missing in it?
Jahmen was not sure and I don't have any old marker game on my computer than his example file.

_________________
Image TheScar.fr (In French or English.)
For some maps to find the Minkata Kivas, take a look at this folder of my Cloud.
Also, feel free to use any idea from this folder for MO:UL (currently 1 idea).
/?t - "jukebox"


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 16, 2016 9:13 pm 
Offline
Obduction Backer

Joined: Mon Oct 22, 2012 6:07 pm
Posts: 1268
Location: Central Europe
Yes, as far as I know it has all the possible tags (creator, guid, name, markers [age, coords, text]).

_________________
KI #46116. Donate to help the Cavern stay open!
Want to know what’s going on in the Cavern? Visit the GoMe site.

MacOS wrappers, D’ni Lessons, DniTools, goodies.


Top
 Profile  
Reply with quote  
PostPosted: Fri Jun 17, 2016 12:09 am 
Offline
Obduction Backer

Joined: Mon Jun 04, 2007 9:38 pm
Posts: 303
Location: France
Ok, thanks! :)

_________________
Image TheScar.fr (In French or English.)
For some maps to find the Minkata Kivas, take a look at this folder of my Cloud.
Also, feel free to use any idea from this folder for MO:UL (currently 1 idea).
/?t - "jukebox"


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 40 posts ]  Go to page Previous  1, 2, 3

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to: