Post by chadgolf on Mar 21, 2019 22:28:16 GMT -5
I might be able to make some more interfaces for automatic planting or allowing you to plant quickly in 2D, but I need some volunteers to do some tedious work for me.
I've started mapping the object ids for trees here:
docs.google.com/spreadsheets/d/1Bs4tccWmqcM7NKebsszCG24UoQ7dslzO7aqI1Me4lVA/edit?usp=sharing
Since readable descriptions like I did with trees aren't always clear, here's what I'd like community members to add to the document:
For every plantable object (trees, plants, global plants, buildings, golf carts, etc), I need the following information put into document on the appropriate tab:
Small screenshot either of the menu or in game, Category, Type, Theme
So for a tree, it would be:
Small screenshot of a tree, 0, 0, true
To find this information, here's what you need to do:
Make a new course in the editor, clear it of all objects.
Now, starting at the center of the plot, start planting objects in order every 10 feet or so and go directly to an edge of the plot. Write down a short description/name of the object as you plant in order (example Lopsided Maple, Curved Palm Tree). Stop when you want to see the code or you reach the end of the plot. Save and exit the game.
Now Using the designer tools, select Import Course and import your course file.
Now in Windows Explorer, go to unpacked/course_description and open course_description.json in notepad.
Press Control + A and then Control + C to select and copy the entire text.
Paste this text into:
jsonlint.com/
and press validate:
Scroll down until you see a bunch of things that look like this, you're looking for Key: category, type, theme
If you want to be sure you're reading the same order as you placed them, the position x and z should start around 0.0 and 0.0 and then either grow toward 1000.0 or grow toward -1000.0 if you started in the center and moved toward an edge.
Now edit the spreadsheet and put the description of the item, the category number, the type number, and if theme is true or false. You can go back in an add screenshots later, that's a finer touch for us to all understand exactly which object is which.
You may need to do this FOR EVERY THEME if the items change in the themes... I had to do it for frees and it took forever. You have to plant IN THE DESIGNER. FROM A FRESH COURSE each time. If you just change the theme or reuse a course, you'll get the wrong values.
THE TYPE NUMBERS WILL PROBABLY NOT BE THE SAME ORDER THAT THEY ITEMS ARE IN THE MENUS.
I recommend trying a few or trying some trees and looking at my results table to make sure you got it, then moving onto the other objects I haven't done.
By getting this information, it'll let me auto plant more things from OSM or help make planting faster.
Thanks!
I've started mapping the object ids for trees here:
docs.google.com/spreadsheets/d/1Bs4tccWmqcM7NKebsszCG24UoQ7dslzO7aqI1Me4lVA/edit?usp=sharing
Since readable descriptions like I did with trees aren't always clear, here's what I'd like community members to add to the document:
For every plantable object (trees, plants, global plants, buildings, golf carts, etc), I need the following information put into document on the appropriate tab:
Small screenshot either of the menu or in game, Category, Type, Theme
So for a tree, it would be:
Small screenshot of a tree, 0, 0, true
To find this information, here's what you need to do:
Make a new course in the editor, clear it of all objects.
Now, starting at the center of the plot, start planting objects in order every 10 feet or so and go directly to an edge of the plot. Write down a short description/name of the object as you plant in order (example Lopsided Maple, Curved Palm Tree). Stop when you want to see the code or you reach the end of the plot. Save and exit the game.
Now Using the designer tools, select Import Course and import your course file.
Now in Windows Explorer, go to unpacked/course_description and open course_description.json in notepad.
Press Control + A and then Control + C to select and copy the entire text.
Paste this text into:
jsonlint.com/
and press validate:
Scroll down until you see a bunch of things that look like this, you're looking for Key: category, type, theme
{
"Key": {
"category": 0,
"type": 0,
"theme": true
},
"Value": {
"items": [{
"position": {
"x": 0.0,
"y": "-Infinity",
"z": 0.0
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"scale": {
"x": 1.0,
"y": 1.0,
"z": 1.0
}
}],
"clusters": []
}
}
If you want to be sure you're reading the same order as you placed them, the position x and z should start around 0.0 and 0.0 and then either grow toward 1000.0 or grow toward -1000.0 if you started in the center and moved toward an edge.
Now edit the spreadsheet and put the description of the item, the category number, the type number, and if theme is true or false. You can go back in an add screenshots later, that's a finer touch for us to all understand exactly which object is which.
You may need to do this FOR EVERY THEME if the items change in the themes... I had to do it for frees and it took forever. You have to plant IN THE DESIGNER. FROM A FRESH COURSE each time. If you just change the theme or reuse a course, you'll get the wrong values.
THE TYPE NUMBERS WILL PROBABLY NOT BE THE SAME ORDER THAT THEY ITEMS ARE IN THE MENUS.
I recommend trying a few or trying some trees and looking at my results table to make sure you got it, then moving onto the other objects I haven't done.
By getting this information, it'll let me auto plant more things from OSM or help make planting faster.
Thanks!