Skip to content

Commit 11a3028

Browse files
Course building fixes
1 parent ececd0f commit 11a3028

2 files changed

Lines changed: 39 additions & 1 deletion

File tree

tools/course-building/course-export.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,44 @@ Before we can export and play the new course, we need to define each hole's par,
2626
7. Once you have your course laid out. You're ready to export your course build!
2727

2828

29+
### Export Course
30+
31+
1. You'll first need to assign an AssetBundle to your main course scene.
32+
33+
1. In Unity, locate and select your scene in your project folder.
34+
2. At the bottom of the Inspector you should see an `AssetBundle` section. Click the dropdown and add create a new asset bundle.
35+
3. Enter a unique name/slug for your course (all lowercase and no spaces). (e.g. `spacerange` or `the_moon_gc`)
36+
37+
38+
2. Then you can export your asset bundle using the Export Tool.
39+
40+
1. Select **Tools > OpenGolfSim > Export Course Build**{: .label }
41+
42+
2. Select an output folder to export your build files to. We recommend creating a new folder with a version number, to easily differentiate between your exports. (e.g. `the_moon_gc_v1`)
43+
44+
3. Click the **Export**{: .label } button to begin the export. This step can take a long time, but once finished you should have a folder with some `.unity3d` files in it.
45+
46+
47+
### Playing Your Course
48+
49+
1. Move or copy the folder containing your exported course files into the `ogs_courses` directory, which should be located at:
50+
51+
#### Windows
52+
```
53+
C:\Users\USERNAME\AppData\Roaming\opengolfsim-desktop\ogs_courses
54+
```
55+
56+
#### MacOS
57+
```
58+
/Users/USERNAME/Library/Application Support/opengolfsim-desktop/ogs_courses
59+
```
60+
61+
2. Start (or restart) the OpenGolfSim desktop app, and you should see your course with some generic details now in your library.
62+
63+
64+
{: .note }
65+
> Due to a technical bug, you may need to remove the mac build on windows, or the windows build on mac from your export folder before attempting to load it into OGS. If your course renders as pink, it's likely using the wrong version.
66+
2967
---
3068
3169

tools/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ You'll need the official OGS color palette installed in Inkscape so you can set
5353

5454
## Install Course Terrain Tool
5555

56-
[Course Terrain Tool](/tools/course-building/terrain.md) is an open-source tool created by OpenGolfSim to source and process real-world lidar point-cloud data into usable terrain data for your golf course. It also downloads and processes satellite and hill-shade imagery to aid in course design.
56+
[Course Terrain Tool](/tools/utilities/course-terrain-tool) is an open-source tool created by OpenGolfSim to source and process real-world lidar point-cloud data into usable terrain data for your golf course. It also downloads and processes satellite and hill-shade imagery to aid in course design.
5757

5858
<a href="/tools/utilities/course-terrain-tool" target="_blank" class="btn">Download Course Terrain Tool</a>
5959

0 commit comments

Comments
 (0)