-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shock tuning script (+ scripting improvements) #2920
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Purpose: To be able to monitor shock forces in slow motion mode. Requested from Discord. Estimate: 1 man day. The improved imgui-AngelScript bindings got merged elsewhere already. Work to be done: Just script work. Each shock needs more detailed display. |
ohlidalp
force-pushed
the
shock-tuning
branch
from
September 28, 2024 20:19
bde11c5
to
e2da21b
Compare
Uses DearIMGUI graphs to visualize shock spring/damp/velo values.
Also improved quality of life: editor now recognizes _AUTOSAVE suffix and loads under orig name.
The STOP/RUN button now recognizes the crash and resets. The exceptions panel now stays open and shows the errors. There are new buttons [clear] per line and [clear all]. Unrelated: cleaned lots of older DBG messages.
ohlidalp
force-pushed
the
shock-tuning
branch
from
September 29, 2024 01:45
e2da21b
to
d59f967
Compare
This snowballed into a big grooming of scripts: - all individual scripts, including all examples, had to be fixed. - a helper class `CloseWindowPrompt` was added to 'imgui_utils.as' - Bindings of 'ImGuiCol_' enum were added to the game, copypasted constants were removed from all scripts. - a copypasted helper `getDummyFullscreenWindow()` was also added to 'imgui_utils.as' - related because it uses ImGuiCol_ constant. - the Tutorial script in script_editor.as was updated to use `CloseWindowPrompt` from 'imgui_utils.as' - the separate example script was removed.
ohlidalp
force-pushed
the
shock-tuning
branch
from
September 29, 2024 03:16
d59f967
to
4141d0c
Compare
ohlidalp
changed the title
Shock tuning script
Shock tuning script (+ scripting improvements)
Sep 29, 2024
Tested by Jesser on Discord: https://discord.com/channels/136544456244461568/189904947649708032/1290075341250891897 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New features:
ImGuiCol_
enum finally bound to AngelScript, all copypasted defs were removed.getShockCount(), getShockSpringRate(), getShockDamping()
,getShockNode1/2()
andgetShockVelocity()
, added toBeamClass
in the scripting API.loadscript example_game_shockTuning.as