Skip to content

Commit

Permalink
Merge pull request #52 from apple1417/master
Browse files Browse the repository at this point in the history
make it a bit clearer that the sample settings are not suitable for use
  • Loading branch information
apple1417 authored Nov 25, 2024
2 parents 514605f + b752e2c commit 4df8620
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,18 @@ LOG(INFO, "Some log message"); // Both in the log file and console
## Configuration
There are a few pieces of sdk behaviour you can configure, via an `unrealsdk.toml`. By default this
should be placed next to the dll, though you can also specify a custom location via the
`UNREALSDK_CONFIG_FILE` environment variable.
`UNREALSDK_CONFIG_FILE` environment variable. You are not expect to provide a full configuration,
some settings change behaviour simply by being defined, you should only set the ones you need. If
the defaults work you may not even need a config file to begin with.
Since it's somewhat expected your project may have to ship with some default settings, an
`unrealsdk.user.toml` can also be used to add some user specific settings. The two files are merged,
fixing conflicts as follows:
- If a value is a table in both files, it's recursively merged
- Otherwise, whatever value is in the user file overwrites the base file.
`unrealsdk.user.toml` can also be used to add some user specific settings. The values in the user
file overwrite those from the base, unless both values are tables, in which case they're merged
recursively.
See [`unrealsdk.toml.example`](unrealsdk.toml.example) for a full description of what settings are
supported.
[`supported_settings.toml`](supported_settings.toml) has full descriptions of all supported
settings. *Do not* try make a copy of this file as the basis of your config, some of the values
within it are intentionally bogus, as there's no sane default, and using them will likely crashes.
<br>
Expand Down
13 changes: 11 additions & 2 deletions unrealsdk.toml.example → supported_settings.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# This file shows all settings which the sdk uses.
# Note that not all settings are used under all build configurations - for example UE3 doesn't
# support FText, so `ftext_get_display_string_vf_index` is of course unused.

# DO NOT make a copy of this file as the basis of your config. Some values are intentionally bogus
# as there's no sane default to set them to (e.g. virtual function indexes), and will likely cause
# crashes if used.

# You are not expected to provide all settings, you should only set those you need. Some settings
# will change behaviour simply by being defined. For example, if `uproperty_size` is set, the sdk
# will not attempt to auto detect it, and will instead assume the provided value is accurate.

# Not all settings are used under all build configurations - for example UE3 doesn't support FText,
# so `ftext_get_display_string_vf_index` is of course unused.

[unrealsdk]
# If true, creates an external console window mirroring what is written to the game's console.
Expand Down

0 comments on commit 4df8620

Please sign in to comment.