sm64coopdx/docs/lua
Agent X 4b84a87c6f
Mod storage, network_discord_id_from_local_index and other small changes (#200)
* Mod storage & network_discord_id_from_local_index

Introducing mod storage, a key/value system for saving things like high scores or settings or anything like that to AppData\Roaming\sm64ex-coop\sav\mod-name.sav (Windows example)
You can currently save only strings meaning if you want to save a number you'd need to do
mod_storage_save("score", tostring(score))
and then
score = tonumber(mod_storage_load("score"))
To handle types like that.
network_discord_id_from_local_index() returns the discord ID of a player by local index.
Some misc changes I made were removing the unsed ini.h include in save_file.c and making the autogen converters output LF line endings instead of CRLF on windows.

* Prevent getting id if using direct connect

* Update djui_panel_player.c

Why does this bother me?

Co-authored-by: djoslin0 <djoslin0@users.noreply.github.com>
2022-09-26 19:28:26 -07:00
..
examples Doc stuff (#182) 2022-09-12 20:01:45 -07:00
guides Improve guide readability (#202) 2022-09-26 19:10:17 -07:00
constants.md Expose level_trigger_warp and related constants (#197) 2022-09-19 19:51:27 -07:00
functions-2.md Handle RM_Scroll_Texture and editor_Scroll_Texture behaviors from RM2C hacks (#173) 2022-08-25 17:46:33 -07:00
functions-3.md Mod storage, network_discord_id_from_local_index and other small changes (#200) 2022-09-26 19:28:26 -07:00
functions-4.md `save_file_erase_current_backup_save` and more (#189) 2022-09-26 19:14:53 -07:00
functions.md Mod storage, network_discord_id_from_local_index and other small changes (#200) 2022-09-26 19:28:26 -07:00
globals.md Added gActiveMods global to lua 2022-04-22 18:44:59 -07:00
lua.md Reformat platform save file locations 2022-09-12 20:04:37 -07:00
structs.md Color type and palette/color functions (#199) 2022-09-26 19:11:51 -07:00