Skip to content

Commit 8f5d68a

Browse files
committed
Adapt to new inventory gauge form reported this week
Adapt to appearance of the inventory capacity gauge found in session-recording-2025-10-26T01-10-35.
1 parent c42f50d commit 8f5d68a

7 files changed

Lines changed: 21 additions & 6 deletions

File tree

implement/applications/eve-online/eve-online-combat-anomaly-bot/Bot.elm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{- EVE Online combat anomaly bot version 2025-10-24
1+
{- EVE Online combat anomaly bot version 2025-10-29
22
33
This bot uses the probe scanner to find combat anomalies and kills rats using drones and weapon modules.
44

implement/applications/eve-online/eve-online-combat-anomaly-bot/EveOnline/ParseUserInterface.elm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3253,14 +3253,17 @@ getSubstringBetweenXmlTagsAfterMarker marker =
32533253
parseNumberTruncatingAfterOptionalDecimalSeparator : String -> Result String Int
32543254
parseNumberTruncatingAfterOptionalDecimalSeparator numberDisplayText =
32553255
let
3256+
expectedSeparators : List String
32563257
expectedSeparators =
3257-
[ ",", ".", "", " ", "\u{00A0}", "\u{202F}" ]
3258+
[ ",", ".", "", "'", " ", "\u{00A0}", "\u{202F}" ]
32583259

3260+
groupsTexts : List String
32593261
groupsTexts =
32603262
expectedSeparators
32613263
|> List.foldl (\separator -> List.concatMap (String.split separator))
32623264
[ String.trim numberDisplayText ]
32633265

3266+
lastGroupIsFraction : Bool
32643267
lastGroupIsFraction =
32653268
case List.reverse groupsTexts of
32663269
lastGroupText :: _ :: _ ->
@@ -3269,6 +3272,7 @@ parseNumberTruncatingAfterOptionalDecimalSeparator numberDisplayText =
32693272
_ ->
32703273
False
32713274

3275+
integerText : String
32723276
integerText =
32733277
String.join ""
32743278
(if lastGroupIsFraction then

implement/applications/eve-online/eve-online-framework-test/tests/ParseMemoryReadingTest.elm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ inventory_capacity_gauge_text =
6767

6868
-- Add case with more than two groups in number
6969
, ( " 3.444.555,0 / 12.333.444,6 m³", Ok { used = 3444555, maximum = Just 12333444, selected = Nothing } )
70+
71+
-- 2025-10-29 scenario shared by Tim Bbil at https://forum.botlab.org/t/eve-mining-bot-is-stuck-on-i-do-not-see-the-mining-hold-capacity-gauge/5272
72+
, ( "0/5'000.0 m³", Ok { used = 0, maximum = Just 5000, selected = Nothing } )
7073
]
7174
|> List.map
7275
(\( text, expectedResult ) ->

implement/applications/eve-online/eve-online-mining-bot/Bot.elm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{- EVE Online mining bot version 2025-10-24
1+
{- EVE Online mining bot version 2025-10-29
22
33
This bot automates the complete mining process, including offloading the ore and traveling between the mining spot and the unloading location.
44

implement/applications/eve-online/eve-online-mining-bot/EveOnline/ParseUserInterface.elm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3253,14 +3253,17 @@ getSubstringBetweenXmlTagsAfterMarker marker =
32533253
parseNumberTruncatingAfterOptionalDecimalSeparator : String -> Result String Int
32543254
parseNumberTruncatingAfterOptionalDecimalSeparator numberDisplayText =
32553255
let
3256+
expectedSeparators : List String
32563257
expectedSeparators =
3257-
[ ",", ".", "", " ", "\u{00A0}", "\u{202F}" ]
3258+
[ ",", ".", "", "'", " ", "\u{00A0}", "\u{202F}" ]
32583259

3260+
groupsTexts : List String
32593261
groupsTexts =
32603262
expectedSeparators
32613263
|> List.foldl (\separator -> List.concatMap (String.split separator))
32623264
[ String.trim numberDisplayText ]
32633265

3266+
lastGroupIsFraction : Bool
32643267
lastGroupIsFraction =
32653268
case List.reverse groupsTexts of
32663269
lastGroupText :: _ :: _ ->
@@ -3269,6 +3272,7 @@ parseNumberTruncatingAfterOptionalDecimalSeparator numberDisplayText =
32693272
_ ->
32703273
False
32713274

3275+
integerText : String
32723276
integerText =
32733277
String.join ""
32743278
(if lastGroupIsFraction then

implement/applications/eve-online/eve-online-warp-to-0-autopilot/Bot.elm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{- EVE Online warp-to-0 auto-pilot version 2025-10-24
1+
{- EVE Online warp-to-0 auto-pilot version 2025-10-29
22
33
This bot makes your travels faster and safer by directly warping to gates/stations. It follows the route set in the in-game autopilot and uses the context menu to initiate jump and dock commands.
44

implement/applications/eve-online/eve-online-warp-to-0-autopilot/EveOnline/ParseUserInterface.elm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3253,14 +3253,17 @@ getSubstringBetweenXmlTagsAfterMarker marker =
32533253
parseNumberTruncatingAfterOptionalDecimalSeparator : String -> Result String Int
32543254
parseNumberTruncatingAfterOptionalDecimalSeparator numberDisplayText =
32553255
let
3256+
expectedSeparators : List String
32563257
expectedSeparators =
3257-
[ ",", ".", "", " ", "\u{00A0}", "\u{202F}" ]
3258+
[ ",", ".", "", "'", " ", "\u{00A0}", "\u{202F}" ]
32583259

3260+
groupsTexts : List String
32593261
groupsTexts =
32603262
expectedSeparators
32613263
|> List.foldl (\separator -> List.concatMap (String.split separator))
32623264
[ String.trim numberDisplayText ]
32633265

3266+
lastGroupIsFraction : Bool
32643267
lastGroupIsFraction =
32653268
case List.reverse groupsTexts of
32663269
lastGroupText :: _ :: _ ->
@@ -3269,6 +3272,7 @@ parseNumberTruncatingAfterOptionalDecimalSeparator numberDisplayText =
32693272
_ ->
32703273
False
32713274

3275+
integerText : String
32723276
integerText =
32733277
String.join ""
32743278
(if lastGroupIsFraction then

0 commit comments

Comments
 (0)