wins1ey
0bc15df466
Update OnStart, OnSplit, OnReset to call when performed manually
2024-06-10 14:01:34 +01:00
wins1ey
e7cd28af5f
Update global function, variable and table capitalisations in auto splitters
...
Functions such as 'split' must now be 'Split'
Variables such as 'refreshRate' must now be 'RefreshRate'
The 'state' table must now be 'State'
2024-06-08 16:01:05 +01:00
wins1ey
c4a692a902
Clean up format of console output for memory tables
2024-06-08 01:26:58 +01:00
wins1ey
4081c06339
Improve parsing of state table in auto splitters
...
It now allows for it to be formatted like
state = {
["AmidEvil-Win64-Shipping"] = {
Start = { 'byte', 0x2BAFFD0 },
Loading = { 'byte', 0x2E76B0C },
MenuStage = { 'byte', 0x2F75F14 },
Paused = { 'byte', 0x2B95A68 },
["Steam"] = {
Start = { 'byte', 0x2BB3470 },
Loading = { 'byte', 0x2B7DDD4 },
MenuStage = { 'byte', 0x2F79424 },
Paused = { 'byte', 0x2B98F08 }
}
}
}
This allows you to set values for when no version is defined, alongside
ones for specific versions
2024-06-08 01:25:41 +01:00
wins1ey
1508096d60
Clear lua stack properly
2024-06-08 01:16:43 +01:00
wins1ey
086be29818
Define process and memory mappings in state table
2024-06-07 16:56:42 +01:00
wins1ey
5713dab60e
Push global table 'vars' to auto splitter script
2024-06-06 23:05:32 +01:00
wins1ey
162611db25
Set memory maps in auto splitter instead of calling readAddress
2024-06-06 23:01:21 +01:00
wins1ey
e1a030f20e
Fix auto splitter runtime to call init when game opens
2024-06-06 14:34:36 +01:00
wins1ey
64005a55aa
Update lua runtime to open libs after file
...
This stops the user from calling any function, for e.g. 'print', outside
of the functions stated in the documentation
2024-06-05 22:36:18 +01:00
wins1ey
3ddba87a90
Improve console output when finding process
2024-06-05 21:47:34 +01:00
wins1ey
042b7b2d72
Update runtime so process is defined as variable
...
Define `process = "{game_name}"` in startup instead of calling
`process()` at the top of the auto splitter.
The auto splitter script will now keep running if the game is closed and
will try and find the new game process before continuing, instead of
running the entire script again from the start.
2024-06-05 20:30:46 +01:00
wins1ey
a42a53a258
Add onSplit, onStart and onReset functions
...
Also refactored some of the other functions and removed unneeded ones.
2024-06-05 18:37:50 +01:00
wins1ey
9222283404
Refactor run_auto_splitter into more functions
2024-06-05 17:18:09 +01:00
wins1ey
b3d6be65dd
Update auto splitter to only run 'start', 'reset' and 'split' if timer has started
2024-06-05 16:07:45 +01:00
wins1ey
7be3953d6b
Improve auto splitter order of execution and console output
2024-06-05 15:23:12 +01:00
dependabot[bot]
ba10e054e2
Bump resources from ddbf1be to f3f9529 ( #55 )
2024-06-05 11:41:18 +00:00
wins1ey
083e389ac3
Update call_va to not check return type if nothing is returned ( #54 )
2024-06-04 17:35:20 +01:00
wins1ey
11d3e61cc8
Change Gtk application name to LibreSplit from LS ( #53 )
2024-06-04 11:45:44 +01:00
wins1ey
131b3d4533
Update main.css to use CSS format for font ( #52 )
2024-06-04 11:45:24 +01:00
Liam Dempsey
44acbd59f3
Show a helpful popup for malformed json ( #49 )
...
* Add error popup for malformed json
* Add file, line no, and col no to parse error popup
* Allocate sufficient space for null terminator
2024-06-04 11:38:19 +01:00
wins1ey
a9dd557637
Update format.yml to run on PR ( #51 )
2024-06-04 01:04:18 +01:00
wins1ey
69136dddb0
Revert "Change build.yml to only run on push ( #48 )" ( #50 )
...
This reverts commit 48999acb4a .
2024-06-04 01:00:44 +01:00
wins1ey
48999acb4a
Change build.yml to only run on push ( #48 )
2024-06-03 19:20:42 +01:00
wins1ey
b816975157
Add .clang-format ( #47 )
2024-06-03 15:03:23 +01:00
wins1ey
7a3501837e
Run 'make format'
2024-06-03 14:50:56 +01:00
wins1ey
8c600cf202
Update format.yml to run on push
2024-06-03 14:50:49 +01:00
wins1ey
cff2920472
Created format.yml workflow
2024-06-03 14:50:49 +01:00
wins1ey
43c6b1d753
Added 'format' rule to Makefile
2024-06-03 14:50:49 +01:00
wins1ey
c44e9b2624
Created .clang-format
2024-06-03 14:50:49 +01:00
dependabot[bot]
28ef2afa6c
Bump resources from 846b6ef to ddbf1be ( #46 )
2024-06-02 21:02:44 +00:00
wins1ey
a260630256
Rename LAST to LibreSplit ( #42 )
2024-06-02 22:01:11 +01:00
wins1ey
81a99b64f2
Update submodule url
2024-06-02 21:55:17 +01:00
wins1ey
56a97b3320
Update image urls in README.md
2024-06-02 21:42:58 +01:00
wins1ey
bd0ba235bf
Rename last_process to game_process
2024-06-02 21:39:41 +01:00
wins1ey
2ef27d1c56
Change LAST to last and LS to ls
2024-06-02 21:39:41 +01:00
wins1ey
c4091dfda4
Rename last_directory to libresplit_directory
2024-06-02 21:37:14 +01:00
wins1ey
60fbc7ad44
Merge branch 'main' into libresplit
2024-06-02 20:26:22 +01:00
wins1ey
318c78ef22
Auto Splitters: Add optional cache for memory mappings ( #45 )
2024-06-02 20:25:18 +01:00
EXtremeExploit
8d88cd17d6
Auto Splitters: Add optional cache for memory mappings
2024-05-13 15:14:09 -03:00
Pedro Montes Alcalde
79d6bc2e08
Delete extra state call before loop ( #44 )
2024-05-12 20:55:39 -03:00
wins1ey
9f1a9654c2
Move gschema file out of src directory
2024-04-27 14:18:53 +01:00
wins1ey
d98b920664
Change main.css to new standard theme instead of installing it in $(PREFIX)/share
2024-04-27 14:15:01 +01:00
wins1ey
fcf2ad24cd
Rename libresplit.css to main.css
2024-04-27 14:10:26 +01:00
wins1ey
c479aa2910
Remove unnecessary comments
2024-04-11 14:34:33 +01:00
wins1ey
6c3779f89d
Rename LAST to LibreSplit
2024-04-11 14:34:33 +01:00
wins1ey
37411d80ac
Replace Lua with LuaJIT and restrict loaded libraries for auto splitters ( #34 )
2024-04-11 14:31:55 +01:00
wins1ey
9eb6581499
Rename functions[] to disabled_functions[] in auto-splitter.c
2024-04-11 14:09:15 +01:00
wins1ey
7f5bcf67a1
Update resources to support LuaJIT bitwise operations
2024-04-11 13:04:17 +01:00
wins1ey
758c521032
Merge branch 'main' into luajit
2024-04-11 12:57:33 +01:00