Skip to content

Commit

Permalink
Added links to change logs, updated ugc and stats classes, some tuts …
Browse files Browse the repository at this point in the history
…updates
  • Loading branch information
Gramps committed Feb 1, 2024
1 parent f7ae957 commit 5d54156
Show file tree
Hide file tree
Showing 16 changed files with 63 additions and 15 deletions.
9 changes: 7 additions & 2 deletions docs/assets/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,11 @@ label span.twemoji {
word-break: break-word;
text-decoration: underline;
}
.md-typeset a:hover {
.md-typeset a:hover,
.md-typeset a:focus,
.md-typeset a:active {
color: #478cbf;
text-decoration: underline;
text-decoration: none;
}
.md-typeset pre {
color: #fff;
Expand Down Expand Up @@ -993,6 +995,9 @@ html .md-footer-meta.md-typeset a:is(:focus, :hover) {
white-space:nowrap;
min-width:10em;
}
.md-typeset .tabbed-labels--linked > label > a {
padding: 0 !important;
}
.md-typeset .tabbed-labels::before {
background: #478CBF !important;
}
Expand Down
2 changes: 1 addition & 1 deletion docs/changelog/gdextension.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Godot 4.x GDExtension Change-Log

A history of all changes to the ***gdextension*** branch.
A history of all changes to [the ***gdextension*** branch.](https://github.com/CoaguCo-Industries/GodotSteam/tree/gdextension){ target="\_blank" }

---

Expand Down
2 changes: 1 addition & 1 deletion docs/changelog/gdnative.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# GDNative Change-Log

A history of all changes to the ***gdnative*** branch.
A history of all changes to [the ***gdnative*** branch.](https://github.com/CoaguCo-Industries/GodotSteam/tree/gdnative){ target="\_blank" }

---

Expand Down
2 changes: 1 addition & 1 deletion docs/changelog/godot2.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Godot 2.x Change-Log

A history of all to the ***godot2*** branch.
A history of all to [the ***godot2*** branch.](https://github.com/CoaguCo-Industries/GodotSteam/tree/godot2){ target="\_blank" }

---

Expand Down
2 changes: 1 addition & 1 deletion docs/changelog/godot3.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Godot 3.x Change-Log

A history of all to the ***godot3*** branch.
A history of all to [the ***godot3*** branch.](https://github.com/CoaguCo-Industries/GodotSteam/tree/godot3){ target="\_blank" }

---

Expand Down
2 changes: 1 addition & 1 deletion docs/changelog/godot4.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Godot 4.x Change-Log

A history of all changes to the ***godot4*** branch.
A history of all changes to [the ***godot4*** branch.](https://github.com/CoaguCo-Industries/GodotSteam/tree/godot4){ target="\_blank" }

---

Expand Down
2 changes: 1 addition & 1 deletion docs/changelog/multiplayer_peer.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Multiplayer Peer Change-Log

A history of all changes to the ***multiplayer-peer*** branch.
A history of all changes to [the ***multiplayer-peer*** branch.](https://github.com/CoaguCo-Industries/GodotSteam/tree/multiplayer-peer){ target="\_blank" }

---

Expand Down
2 changes: 1 addition & 1 deletion docs/changelog/server3.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Server 3.x Change-Log

A history of all changes to the ***server3*** branch.
A history of all changes to [the ***server3*** branch.](https://github.com/CoaguCo-Industries/GodotSteam-Server/tree/godot3){ target="\_blank" }

---

Expand Down
2 changes: 1 addition & 1 deletion docs/changelog/server4.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Server 4.x Change-Log

A history of all changes to the ***server4*** branch.
A history of all changes to [the ***server4*** branch.](https://github.com/CoaguCo-Industries/GodotSteam-Server/tree/godot4){ target="\_blank" }

---

Expand Down
2 changes: 1 addition & 1 deletion docs/changelog/server_gdextension.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Server GDExtension Change-Log

A history of all changes to the ***server gdextension*** branch.
A history of all changes to [the ***server gdextension*** branch.](https://github.com/CoaguCo-Industries/GodotSteam-Server/tree/gdextension){ target="\_blank" }

---

Expand Down
2 changes: 1 addition & 1 deletion docs/changelog/server_gdnative.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Server GDNative Change-Log

A history of all changes to the ***server gdnative*** branch.
A history of all changes to [the ***server gdnative*** branch.](https://github.com/CoaguCo-Industries/GodotSteam-Server/tree/gdnative){ target="\_blank" }

---

Expand Down
6 changes: 5 additions & 1 deletion docs/classes/ugc.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ Functions to create, consume, and interact with the [Steam Workshop](https://pa
* processed (uint64)
* total (uint64)

You may notice that data comes back in ***processed*** and ***total*** in status 2; unsure if this is a bug or intended.

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

Expand Down Expand Up @@ -1330,7 +1332,9 @@ These callbacks require you to run ```Steam.run_callbacks()``` in your ```_proce
**Returns:**

* result (int)
* accept_tos (bool)
* need_to_accept_tos (bool)

If **need_to_accept_tos** comes back true, you should direct the user to accept the legal agreement.

---
[:fontawesome-brands-steam: Read more in the official Steamworks SDK documentation](https://partner.steamgames.com/doc/api/ISteamUGC#SubmitItemUpdateResult_t){ .md-button .md-button--store target="_blank" }
Expand Down
2 changes: 1 addition & 1 deletion docs/classes/user_stats.md
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ Provides functions for accessing and submitting stats, achievements, and leaderb

**Returns:** int

The current leaderboard details max value.
The current leaderboard details max value. This can only go as high as k_cLeaderboardDetailsMax / 256.

**Note:** This is a GodotSteam specific function.

Expand Down
9 changes: 9 additions & 0 deletions docs/tutorials/external.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ We have quite a few tutorials and many more in the works but the more the merrie

[ :simple-godotengine: 'Godot Auto Export' by Mr.Eliptik](https://mreliptik.dev/godot-auto-export){ .md-button .md-button--resource target="\_blank" }

{==
## Debugging Resources
==}

[ :simple-steam: 'Debugging the Steamworks API' by Valve ](https://partner.steamgames.com/doc/sdk/api/debugging){ .md-button .md-button--resource target="\_blank" }

[ :simple-steam: 'How to debug Windows games on Steam Deck' by Valve ](https://partner.steamgames.com/doc/steamdeck/debugging){ .md-button .md-button--resource target="\_blank" }

[ :simple-godotengine: 'Overview of debugging tools' by Godot ](https://docs.godotengine.org/en/stable/tutorials/scripting/debug/overview_of_debugging_tools.html){ .md-button .md-button--resource target="\_blank" }

{==
## Steam-related Godot Tools
Expand Down
24 changes: 23 additions & 1 deletion docs/tutorials/leaderboards.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,29 @@ For the most part you are just looking for a success of 1 to tell that it worked
- **score_changed:** if the score was changed (0 if false, 1 if true)
- **new_rank:** the new global rank of this player
- **prev_rank:** the previous rank of this player


### Passing Extra Details

If you want to pass extra details, here are some neat hints from ***sepTN***:

> You can add small data as detail, for example embedding the character name (as a string) into that leaderboard entry. If you try to put detail that has a bigger size than possible, it will simply ignore it. To retrieve it, you need to process it again because Steam will spit out arrays (PackedInt32Array).
Here is some code that was shared:

=== "Godot 2.x / 3.x"

```
# Godot 2 and 3 have no equivalent for to_int32_array I am aware of. Any corrections welcome!
#
Steam.uploadLeaderboardScore(score, keep_best, var2bytes(details), handle)
```

=== "Godot 4.x"

```
Steam.uploadLeaderboardScore(score, keep_best, var_to_bytes(details).to_int32_array(), handle)
```

{==
## Downloading Scores
==}
Expand Down
8 changes: 8 additions & 0 deletions docs/tutorials/workshop.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,11 @@ func _on_item_updated(p_result : int, p_accept_tos : bool) -> void:
if p_accept_tos:
Steam_Workshop.open_tos()
```

{==
## Weird Issues
==}

***KarpPaul*** had some information about getting "access is denied" from `getQueryUGCResult`:

> Regarding the issue that I had with steamworks (Steam.getQueryUGCResult returns "access is denied" when the workshop is set visible to developers and customers). I talked to steam support and they were not able to reproduce the error. I checked the ipc log and indeed everything looks normal - no access denied results in steam logs. However, the error is still in the game. No idea why this happens and how, maybe I am doing smth wrong. I wonder if anybody else will encounter this.... anyway, it is not critical, so I just make my workshop visible to everyone and decide to ignore the issue for now.

0 comments on commit 5d54156

Please sign in to comment.