Skip to content

Commit

Permalink
Updated Asset Library linkks, howto for GDExtension, and more
Browse files Browse the repository at this point in the history
  • Loading branch information
Gramps committed Dec 22, 2023
1 parent 138003d commit a405cce
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 6 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/classes/main.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ These are only available in the main [GodotSteam branches](https://github.com/Co

You can pass true to the third argument to have GodotSteam connect and use run_callbacks internally so you do not have to do this manually anymore. If nothing is passed, it will not run callbacks internally.

**Note:** This function **does not** contain the second or third argument in **GDNative**. Also, this function **does not** contain the third argument in **GDExtension**.

------
[:fontawesome-brands-steam: Read more in the official Steamworks SDK documentation](https://partner.steamgames.com/doc/api/steam_api#SteamAPI_Init){ .md-button .md-button--store target="_blank" }

Expand All @@ -83,6 +85,8 @@ These are only available in the main [GodotSteam branches](https://github.com/Co

You can pass true to the third argument to have GodotSteam connect and use run_callbacks internally so you do not have to do this manually anymore. If nothing is passed, it will not run callbacks internally.

**Note:** This function **does not** contain the second or third argument in **GDNative**. Also, this function **does not** contain the third argument in **GDExtension**.

### steamShutdown

!!! function "steamShutdown"
Expand Down
4 changes: 2 additions & 2 deletions docs/howto/gdextension.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ For those of you who are comfortable compiling or want to give it a shot, here a
- Alternatively, clone this repository into your **GDExtension** folder:
- Use ````git clone -b gdextension https://github.com/CoaguCo-Industries/GodotSteam.git````
- [x] Download the [Steamworks SDK](https://partner.steamgames.com); this requires a Steam developer account.
- [x] Download the [Godot cpp](https://github.com/godotengine/godot-cpp), the 4.0 branch.
- [x] Download the [Godot cpp](https://github.com/godotengine/godot-cpp), the 4.2 branch (or whatever 4.x version you need).
- Unpack the **godot_cpp** into the **GDExtension** folder.
- **Alternatively**, you can just use these commands inside the **GDExtension** folder to clone them:
````
git clone --recursive -b 4.0 https://github.com/godotengine/godot-cpp
git clone --recursive -b 4.2 https://github.com/godotengine/godot-cpp
````
- [x] CD into the **godot-cpp** folder and compile the bindings (make sure your slashes are OS appropriate):
````
Expand Down
8 changes: 7 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@ Make sure you **don't mix and match** the pre-compiled editors with the plug-ins
[:fontawesome-solid-file-zipper: GitHub Drop-in ZIP](https://github.com/CoaguCo-Industries/GodotSteam-Server/zipball/gdnative-plugin){ .md-button .md-button--primary target="\_blank" }

!!! compile "GDExtension Plug-ins"
Get integrating Steamworks into your game with the GDExtension plug-in via Godot Engine 4.x
Get integrating Steamworks into your game with the GDExtension plug-in via Godot Engine 4.2.x

[:simple-godotengine: Godot Asset Library](https://godotengine.org/asset-library/asset/2445){ .md-button .md-button--primary target="\_blank" }
[:fontawesome-solid-file-zipper: GitHub Drop-in TAR](https://github.com/CoaguCo-Industries/GodotSteam/tarball/gdextension-plugin){ .md-button .md-button--primary target="\_blank" }
[:fontawesome-solid-file-zipper: GitHub Drop-in ZIP](https://github.com/CoaguCo-Industries/GodotSteam/zipball/gdextension-plugin){ .md-button .md-button--primary target="\_blank" }

Get integrating Steamworks into your game with the GDExtension plug-in via Godot Engine 4.1.x

[:simple-godotengine: Godot Asset Library](https://godotengine.org/asset-library/asset/1972){ .md-button .md-button--primary target="\_blank" }
[:fontawesome-solid-file-zipper: GitHub Drop-in TAR](https://github.com/CoaguCo-Industries/GodotSteam/tarball/gdextension-plugin){ .md-button .md-button--primary target="\_blank" }
Expand Down
12 changes: 9 additions & 3 deletions docs/tutorials/initializing.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,15 @@ Before we go any further, it is recommended that you enable logging in your proj

Of course, if you have a custom logging system, don't worry about this.

To enable logging in the Godot editor, go to: **Projects > Project Settings > Logging > File Logging** and check **Enable File Logging**. This will start placing logs in your project's user data folder. Where are these, you might ask? [Check out the official Godot Engine documentation to find the locations.](https://docs.godotengine.org/en/stable/tutorials/io/data_paths.html?highlight=user%20data){ target="\_blank" }
=== "Godot 2.x, 3.x"
To enable logging in the Godot editor, go to: **Projects > Project Settings > Logging > File Logging** and check **Enable File Logging**. This will start placing logs in your project's user data folder. Where are these, you might ask? [Check out the official Godot Engine documentation to find the locations.](https://docs.godotengine.org/en/stable/tutorials/io/data_paths.html?highlight=user%20data){ target="\_blank" }

![Enable Logging](../assets/images/tutorial-initializing-logging.png){ loading=lazy }
![Enable Logging](../assets/images/tutorial-initializing-logging.png){ loading=lazy }

=== "Godot 4.x"
To enable logging in the Godot editor, go to: **Projects > Project Settings > Debug > File Logging** and check **Enable File Logging**. This will start placing logs in your project's user data folder. Where are these, you might ask? [Check out the official Godot Engine documentation to find the locations.](https://docs.godotengine.org/en/stable/tutorials/io/data_paths.html?highlight=user%20data){ target="\_blank" }

![Enable Logging](../assets/images/tutorial-initializing-logging-godot4.png){ loading=lazy }

---

Expand Down Expand Up @@ -177,7 +183,7 @@ print("Did Steam initialize?: %s " % initialize_response)
```
However, you must pass the first two arguments which are whether you want the local user's statistics and achievements pulled during initialization and the game's app ID.

**Note:** This only works in GodotSteam 3.22 or newer for Godot 3.x and in GodotSteam 4.5 or newer for Godot 4.x.
**Note:** This only works in GodotSteam 3.22 or newer for Godot 3.x and in GodotSteam 4.5 or newer for Godot 4.x. This argument, however, does not exist in the GDExtension version.

---

Expand Down

0 comments on commit a405cce

Please sign in to comment.