Skip to content

Commit

Permalink
fixed chat parser dnd and zone causing crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
zmilla93 committed Dec 14, 2024
1 parent 6c37cbe commit d0fbca7
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<groupId>github.zmilla93</groupId>
<artifactId>slimtrade</artifactId>
<version>0.5.0-pre2</version>
<version>0.5.0-pre3</version>
<packaging>jar</packaging>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/github/zmilla93/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class App {
private static LockManager lockManager;
public static UpdateManager updateManager;

public static ChatParser chatParser;
// public static ChatParser chatParser;
public static ChatParser chatParserPoe1;
public static ChatParser chatParserPoe2;

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/github/zmilla93/core/utility/ZUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ public static ArrayList<String> getCommandList(String input, PasteReplacement pa
commands.add(builder.toString().trim());
for (int i = 0; i < commands.size(); i++) {
String clean = commands.get(i);
clean = clean.replaceAll("\\{zone}", App.chatParser.getCurrentZone());
// FIXME : {zone} replacement
// clean = clean.replaceAll("\\{zone}", App.chatParser.getCurrentZone());
clean = clean.replaceAll("\\{message}", pasteReplacement.message);
if (!clean.startsWith("@") && !clean.startsWith("/"))
clean = "@" + pasteReplacement.playerName + " " + clean;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/github/zmilla93/gui/menubar/MenubarDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ public void click(MouseEvent e) {
public void rebuild() {
if (SaveManager.settingsSaveFile.data.menubarStyle == MenubarStyle.ICON) buildIconButtons();
else buildTextButtons();
if (App.chatParser != null) updateDndButton();
// FIXME : Update DND Button
// if (App.chatParser != null) updateDndButton();
updateScannerButton();
TradeUtil.applyAnchorPoint(this, SaveManager.overlaySaveFile.data.menubarLocation, SaveManager.overlaySaveFile.data.menubarAnchor);
}
Expand Down
38 changes: 38 additions & 0 deletions src/main/resources/patch_notes/v0.5.0-pre3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
**This version is not well tested.**

## Known Issues
- Save file is not backwards compatible, backup "SlimTrade" folder if you care (Options > Information > Settings Folder)
- When using game detection, bounds are not saved. Detection is rerun at launch (and can be triggered from options)
- Changing client.txt file requires a restart
- Currency icons & translations only use POE1 data
- Theme & UI improvements incomplete

## pre3
- Fixed popup marco buttons not working

## Path of Exile 2
- SlimTrade now works seamlessly with Path of Exile 1 & 2
- Added currency icons & currency translations for POE 2 (updated for POE1)

## Game Window
- Added a new window detection system for UI alignment, replacing the old stash alignment window
- Unpinned windows are centered in the game window, rather than your first monitor

## Cloud Gaming
- Added partial support for GeForce Now (other platforms upon request)
- Features that require access to game files DO NOT work (trade popups, chat scanner, history)
- All other features should work (game macros, cheat sheets, stash/npc searching)
- Things might be buggy

## Additional Changes
- Many small UI improvements
- Adjusted the way windows are displayed on top of the game window
- Fixed a crash on systems that don't support a system tray
- Fixed preferred font changed the first time you saved after installing
- Possible improvements for Mac & Linux (untested)

## How to Install
- Make sure you have [Java](https://www.java.com) installed
- Download and run 'SlimTrade.jar' from below

*Having issues? Check the [troubleshooting guide](https://github.com/zmilla93/SlimTrade/wiki/Troubleshooting).*

0 comments on commit d0fbca7

Please # to comment.