Salatiel | 2021-05-24 00:01
Browser/NodeJS tool to create ogz maps using JSON (OGZ-Editor)
10
points ]
 (1 vote)
This tool allows you to edit mapvars, entities and basic geometry using JavaScript objects, with an option to export to .ogz.
OGZ-Editor is an interface for JSOCTA, a bunch of javascript classes for reading, formatting and converting javascript
objects to the sauer raw map format.

Examples


Map Variables
"mapvars": {
  "maptitle": "a beautiful map",
  "atmo": 1,
  "cloudlayer": "skyboxes/clouds01",
  "cloudfade": 0.9,
  "cloudscrollx": 0.01,
  "sunlight": [255, 100, 255],
  "sunlightyaw":  300,
  "sunlightpitch": 32
}

Entities
"entities": [
  {
    "position": [480, 496, 512],
    "attributes": ["mapmodel", 0, 10, 0, 0, 0]
  },
  {
    "position": [472, 496, 512],
    "attributes": ["particles", 0, 0, 100, [100, 255, 255], 0]
  },
  {
    "position": [488, 496, 512],
    "attributes": ["particles", 0, 0, 100, [100, 255, 255], 0]
  },
  {
    "position": [480, 496, 528],
    "attributes": ["light", 245, 35, 35, 150, 0]
  }
]

Geometry (octree)
"geometry": [
  {"solid": {"textures": [1]}},
  [
    "solid",
    "empty",
    [
      "solid",
      "solid",
      [
        "solid",
        "empty",
        [
          "solid"
        ]
      ]
    ]
  ]
]

Not that beautiful, but you get the idea :D
the editor can be accessed here: salatielsauer.github.io/OGZ-Editor/, to use in nodejs you will need to download the scripts/jsocta.js file and include it in your project with require ("./jsocta.js"). if you don't want to generate the data manually with the editor or install nodejs, you can access all classes and methods through your browser's developer tools console, just press F12 while on the OGZ-Editor page.

There is a more detailed guide in the github readme.

mapversion 33, lightmaps, blendmaps, materials and corner/edge editing are not supported, I still don't know what their structure looks like, any help is welcome!

10
points
 (1 vote)
AttachmentSize
ogzeditor_result0.png144.55 KB
ogzeditor_result1.png170.11 KB
ogzeditor_result2.png112.91 KB
ogzeditor_result3.png24.23 KB
User login
Users on Quadropolis
1 guest & no users online
32
points ]
 (4 votes)
Created 2012-08-30 04:30
9 years 2 weeks ago
10
points ]
 (1 vote)
Created 2019-10-16 01:26
1 year 48 weeks ago
9
points ]
 (1 vote)
Created 2021-06-17 22:42
12 weeks 6 days ago
30
points ]
 (3 votes)
Created 2020-11-30 04:00
41 weeks 3 days ago
10
points ]
 (1 vote)
Created 2021-05-24 00:01
16 weeks 3 days ago
MisanthropX
83
points ]
 (9 votes)
Created 2019-12-05 20:57
1 year 40 weeks ago
20
points ]
 (2 votes)
Created 2020-12-20 03:04
38 weeks 4 days ago
29
points ]
 (3 votes)
Created 2020-12-10 12:49
40 weeks 8 hours ago
30
points ]
 (3 votes)
Created 2020-12-04 12:05
40 weeks 6 days ago
20
points ]
 (2 votes)
Created 2020-12-03 17:12
41 weeks 3 hours ago
30
points ]
 (3 votes)
Created 2020-06-13 21:05
1 year 13 weeks ago
50
points ]
 (5 votes)
Created 2020-01-23 12:57
1 year 33 weeks ago
68
points ]
 (7 votes)
Created 2020-10-11 13:46
48 weeks 4 days ago
64
points ]
 (7 votes)
Created 2018-12-04 15:12
2 years 41 weeks ago
Gangler
36
points ]
 (4 votes)
Created 2020-10-22 00:50
47 weeks 20 hours ago
LURKing
13
points ]
 (2 votes)
Created 2020-11-22 21:21
42 weeks 3 days ago
LURKing
37
points ]
 (4 votes)
Created 2020-11-18 21:08
43 weeks 23 hours ago
Shuzomi
30
points ]
 (3 votes)
Created 2020-11-15 18:16
43 weeks 4 days ago
Im_Percynator
Created 2020-11-15 07:21
43 weeks 4 days ago
micai
24
points ]
 (3 votes)
Created 2020-11-11 18:27
44 weeks 1 day ago
Who's new
  • letic86
  • BATMAN
  • WASP
  • Im_Percynator
  • micai