sm64coopdx/autogen
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
..
lua_constants Allow coop mods to use the backup save slot independently of the normal one 2022-04-10 00:30:47 -07:00
lua_definitions Mod storage, network_discord_id_from_local_index and other small changes (#200) 2022-09-26 19:28:26 -07:00
autogen.sh Added the ability to spawn particles from Lua 2022-03-09 21:25:07 -08:00
common.py Color type and palette/color functions (#199) 2022-09-26 19:11:51 -07:00
convert_constants.py Mod storage, network_discord_id_from_local_index and other small changes (#200) 2022-09-26 19:28:26 -07:00
convert_functions.py Mod storage, network_discord_id_from_local_index and other small changes (#200) 2022-09-26 19:28:26 -07:00
convert_structs.py Mod storage, network_discord_id_from_local_index and other small changes (#200) 2022-09-26 19:28:26 -07:00
extract_constants.py Update to Refresh 13 (#19) 2022-03-13 00:17:10 -08:00
extract_functions.py Added a bunch of camera functions to Lua 2022-03-25 23:46:37 -07:00
extract_object_fields.py
extract_structs.py Added DynOS warp functions to Lua API 2022-03-11 18:11:32 -08:00
gen_sound.py