Commit Graph

61 Commits

Author SHA1 Message Date
pww918
13360bbcc3 Max heat padding ticks on user side set to 50 2024-11-20 18:29:57 +04:00
Louis Hong
ca6fcc2d06 follow-up on 0cda801: also clamp against negative paddings bringing goals below 0 2024-11-14 03:47:35 -08:00
Louis Hong
0cda801165 heat solver: Fixed index going out of bounds
When attempting solving impossible heat goals and ranges, algo runs out of prebaked DX1 values.
1. Fixed incorrect loop condition that caused the out of bounds.
2. Clamped the heat goal so they also never attempt to solve impossible heat goals.

Stacktrace
----------
java.lang.ArrayIndexOutOfBoundsException: Index 27 out of bounds for length 27
    at com.toofifty.easygiantsfoundry.HeatActionSolver.relativeSolve(HeatActionSolver.java:188)
    at com.toofifty.easygiantsfoundry.HeatActionSolver.heatingSolve(HeatActionSolver.java:136)
    at com.toofifty.easygiantsfoundry.HeatActionSolver.solve(HeatActionSolver.java:288)
    at com.toofifty.easygiantsfoundry.FoundryOverlay3D.drawHeatChangerPreviewOverlay(FoundryOverlay3D.java:244)
2024-11-14 03:41:44 -08:00
Louis Hong
40e3a15099 minor: fixed outdated javadoc 2024-11-09 11:30:34 -08:00
Louis Hong
703dd6ff97 mould helper: moved scrolling to tick end. mould helper bugging out when selecting best moul because race condition between game tick widget update and client thread scroll script. 2024-11-09 11:30:18 -08:00
Louis Hong
723ca31093 heat range: the stage ranges are inclusive. showing incorrect out of range when is in range.
additional note on previous commit f58e5ad (don't want to force push an ammend)
the race condition caused an invalid state which showing incorrect prediction when race condition occurs - when the menu click and the heat/cool ticks occurs simultaniously.
2024-11-09 11:27:27 -08:00
Louis Hong
f58e5ad868 ui/client thread race condition: moved lava/waterfall state machine logic into the client thread
so it's synced with the client thread.
2024-11-09 09:33:43 -08:00
Louis Hong
74d8f531d6 lava/waterfall: added one additional tick to default heat padding 2024-11-09 06:56:47 -08:00
Louis Hong
47842501b7 made config settings effective for hovering over lava/waterfall action info 2024-11-09 02:40:32 -08:00
Louis Hong
914113b1fb hovering lava/waterfall now shows prediction preview & added more menu actions that may inturpt state machine 2024-11-09 02:20:30 -08:00
Louis Hong
dd73d961c0 stored preform stage added & heat/cool prediction state machine filters only gameobject actions
previously, when preform is stored in storage, plugin assumes it's time to talk to kovac for new commision.

previously, any menu action will interupt and stop the heat/cooling statemachine state.
2024-11-09 01:28:17 -08:00
Louis Hong
319f77af3c heat/cool prediction: continued important algorithm bug fix for prediction. Added configurable padding ticks for afk/inefficiency. 2024-11-02 17:28:55 -07:00
Louis Hong
9d7304a436 comments and renaming for easier to read code 2024-10-30 22:58:33 -07:00
Louis Hong
14130b3987 last known mould/crucible score now clear after picking up preform (stage == 0) 2024-10-29 06:02:49 -07:00
Louis Hong
f1edc659fa mould/preform score: unboxed Integer into int using -1 representing unset state (instead of null). 2024-10-29 03:27:56 -07:00
Louis Hong
3c2075fc6e mould/preform overlay: toggling "Mould Info Overlay" will correctly turn off mould/preform score overlay. 2024-10-29 01:06:11 -07:00
Louis Hong
1e41e5733d heat/cool prediction: fixed embarassing off-by-1 bug! removed the "margin of error" config convering up this bug. 2024-10-29 00:47:36 -07:00
Louis Hong
475cb1c1f0 sword & mould score: sword score = mould score + crucible score - (mistake * 10)
This score is displayed over the title of mould, the mould panel title, and over the preform in stage == 2.

*mistakes are not tracked right now.
2024-10-28 01:32:24 -07:00
Louis Hong
2a821017f2 fix crucible: fixed incorrect metal score calculations 2024-10-26 12:19:16 -07:00
pww918
a48d4e160b Fix style format 2024-09-18 11:32:17 +04:00
pww918
164aa72b06 Fix missing imports 2024-09-18 11:29:23 +04:00
Patrick Watts
23de7b31c7 Merge branch 'master' into master 2024-09-18 11:22:40 +04:00
Tal Skverer
30ef327abb Adds consideration to the number of Smith's Outfit pieces currently worn by the player. 2024-06-30 11:48:59 +03:00
Louis Hong
00f8fc92d7 deleted unused code and renamed "border alpha"
https://github.com/Toofifty/easy-giantsfoundry/pull/34#issuecomment-1962937496
https://github.com/Toofifty/easy-giantsfoundry/pull/34#issuecomment-1962926300
2024-02-25 06:23:44 -08:00
Louis Hong
db62e7c655 Changed crucible quality to only display integers 2024-02-25 05:40:13 -08:00
Louis Hong
23752b2ef6 Crucible Overlay, Tools action overlay, Lava/waterfall prediction
Added crucible content and alloy quality calculation and overlay
Added tools action/heat status overlay
Added lava/waterfall action prediction and overlay
Added border highlighting
2024-02-23 04:56:59 -08:00
geeckon
64d3c5c121 Add bonus action tracker 2024-02-10 23:44:37 +02:00
Patrick
59b63cae33 Update reputation from more reliable varp 2023-08-15 01:07:46 +04:00
Patrick
f7ab23f07c Add config options to customize colors 2023-08-15 00:34:20 +04:00
Patrick
63a3cb52b1 Fix color dependency for drawing heat changers 2023-08-15 00:33:13 +04:00
Patrick
cf2194422b Always display overlay for title and reputation 2022-07-14 15:29:24 +04:00
Patrick
33c98058a5 Fix point tracking 2022-07-14 15:28:38 +04:00
Patrick
d8725fb3a8 Rename points to reputation for player view 2022-07-14 14:45:21 +04:00
Patrick
137c598c52 remove space 2022-07-14 14:43:33 +04:00
Patrick
47ced20608 Refactor reputation tracking 2022-07-14 14:42:46 +04:00
Robin Davidsson
4067c1a9e3 Added Foundry Points 2022-07-12 00:43:33 +02:00
Vanillj
9264432d57 Added heat threshold 2022-07-04 23:44:29 +02:00
Patrick
debb840aef Minor import cleanup 2022-06-23 23:22:22 +04:00
Patrick
32da036fab Minor import cleanup / final vars 2022-06-23 23:19:06 +04:00
Patrick
6481791892 Add bonus notifications with configs 2022-06-23 22:47:20 +04:00
Patrick
61b4b572a4 Remove anim check for kovac highlight - redundant after osrs update 2022-06-23 22:46:41 +04:00
Patrick
8a9c80ed81 Clean up and fix info panel configs 2022-06-23 22:28:26 +04:00
Patrick
eac082b05e Refactor Bonus Widget 2022-06-23 19:49:16 +04:00
Patrick
9dd3f3c6b6 Add config options for all parts of the info panel 2022-06-23 19:41:05 +04:00
Patrick
8bb93d80cf Change default value of notifications to on 2022-06-23 19:25:32 +04:00
Patrick
c89f1fe181 Add configs for all 3d highlight overlays 2022-06-23 19:24:51 +04:00
Patrick
1a30693d0f Add config to FoundryOverlay3D 2022-06-23 19:02:21 +04:00
Patrick
b3c2966365 Clean up minor code change 2022-06-23 18:40:21 +04:00
Patrick
411b0333fe Shorten config names and descriptions 2022-06-23 18:32:24 +04:00
Vanillj
919ae6feb7 Changed notification booleans, disabled by default and trigger logic 2022-06-23 01:33:18 +02:00