Skip to content

Commit

Permalink
workflow and readme changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dregu committed Feb 11, 2021
1 parent 8797518 commit 7775850
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
move build\bin\Release\injector.exe Overlunky\Overlunky.exe
move README.md Overlunky\README.txt
move examples Overlunky\Scripts
7z a Overlunky_${{ steps.get_version.outputs.VERSION }}.zip Overlunky\Overlunky.exe Overlunky\injected.dll Overlunky\README.txt
7z a Overlunky_${{ steps.get_version.outputs.VERSION }}.zip Overlunky\
- name: Upload artifacts
uses: actions/upload-artifact@v2
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,22 @@ Current features and their *default* keyboard shortcuts. Note: There's a LOT of
- **F5**: Game state
+ See and change a lot of variables from the game state
+ **Ctrl+P**: Toggle game engine pause
- **F8**: Scripts
+ You can load, edit and set options for Lua scripts here
- **F9**: Options
+ Lots of options. **Check the ini for hotkeys, I'm tired of updating this.**
- **F11**: Hide overlay
- **Ctrl+Shift+U**: Change UI color
- **Ctrl+Shift+I**: ImGui internal metrics and settings
- **Ctrl+Shift+S**: Save options, hotkeys and UI colors
- **Ctrl+Shift+L**: Load options, hotkeys and UI colors
- **Ctrl+Shift+D**: Detach active tab in tabbed interface
- **Enter**: Run active tool
- **Escape**: Return focus to game from an input

### Scripts
Lua scripting is buggy and unfinished and the **API will change**, so don't go around making and releasing huge things. They will break. Also there's no documentation, but a few examples. Everything you really need is in `script.cpp` and `rpc.hpp` though. Scripts are loaded from `Spelunky 2/Overlunky/Scripts` by default, but you can change this in the ini.

## Troubleshooting
- If your game crashes when launching Overlunky or it just closes and you don't ever see the overlay in game:
+ Make sure you are running the latest version of each. We don't support old game versions and sometimes not the too recent ones either. The latest somewhat tested version can be found at the top if this document.
Expand Down
5 changes: 5 additions & 0 deletions src/injected/ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2437,6 +2437,11 @@ void render_script_files()

void render_scripts()
{
ImGui::PushTextWrapPos(0.0f);
ImGui::TextColored(
ImVec4(1.0f, 0.3f, 0.3f, 1.0f),
"Note: The Lua API is unstable, not ready and it WILL change, probably a lot. You can play around with it, but don't be surprised if none of your scripts work next week.");
ImGui::PopTextWrapPos();
ImGui::PushItemWidth(-1);
for (int i = 0; i < g_scripts.size();)
{
Expand Down

0 comments on commit 7775850

Please sign in to comment.