Skip to content

Commit d2fcfa0

Browse files
committed
4.0.2
1 parent 9b9f48d commit d2fcfa0

File tree

8 files changed

+25
-6
lines changed

8 files changed

+25
-6
lines changed

changelog.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
Version 4.0.0
1+
Version 4.0.2
2+
3+
- Goto, Jump and OpenMarket now use ID suggestions instead of name ones.
4+
- The Goto commands suggestions now filter out some entities that should never be of interest.
5+
- Fixed a crash with the goto command.
6+
- Fixed an issue where the console could no longer be opened after using the EndCombat command.
7+
8+
9+
10+
Version 4.0.1
211

312
- Added optional lunalib settings support with a bunch of settings to customise the new UI.
413
- Added tab cycling (disbled by default).

console.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"modVersion": {
66
"major": 4,
77
"minor": 0,
8-
"patch": 1
8+
"patch": 2
99
},
1010

1111
#Link towards a direct download, fetched from the online version file

jars/lw_Console.jar

468 Bytes
Binary file not shown.

mod_info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "Console Commands",
44
"author": "LazyWizard, Lukas04",
55
"utility": "true",
6-
"version": "4.0.1",
6+
"version": "4.0.2",
77
"description": "An in-game developer's console, by default summoned with control+backspace.\n\nFor a complete list of commands enter 'help'. For more information on a specific command enter 'help <command>'. Enter 'settings' to customize the console's appearance and behavior, including the key used to summon it.\n\nThis should be compatible with all mods and doesn't require a new game.",
88
"gameVersion": "0.98a-RC5",
99
"jars": [

src/org/lazywizard/console/commands/EndCombat.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import org.lazywizard.console.BaseCommand;
77
import org.lazywizard.console.CommonStrings;
88
import org.lazywizard.console.Console;
9+
import org.lazywizard.console.overlay.v2.panels.ConsoleOverlayPanel;
910
import org.lazywizard.lazylib.CollectionUtils;
1011

1112
public class EndCombat implements BaseCommand
@@ -46,6 +47,9 @@ public CommandResult runCommand(String args, CommandContext context)
4647
}
4748
}
4849

50+
if (ConsoleOverlayPanel.getInstance() != null) {
51+
ConsoleOverlayPanel.getInstance().close();
52+
}
4953
Global.getCombatEngine().endCombat(0f, victor);
5054
return CommandResult.SUCCESS;
5155
}

src/org/lazywizard/console/commands/GoTo.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ public CommandResult runCommand(String args, CommandContext context)
7979
@Override
8080
public List<String> getSuggestions(int parameter, List<String> previous, CommandContext context) {
8181
if (parameter != 0 || !context.isInCampaign()) return new ArrayList<>();
82-
return Global.getSector().getCurrentLocation().getAllEntities().stream().map(it -> it.getName()).toList();
82+
83+
List<String> blacklist = List.of("magiclib_campaign_trail_custom_entity", "nex_mining_gui_dummy", "luna_campaign_renderer", "orbital_junk");
84+
85+
return Global.getSector().getCurrentLocation().getAllEntities().stream()
86+
.filter(it -> !blacklist.contains(it.getCustomEntitySpec() != null ? it.getCustomEntitySpec().getId() : it.getId() ))
87+
.map(it -> it.getId())
88+
.toList();
8389
}
8490
}

src/org/lazywizard/console/commands/Jump.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,6 @@ public CommandResult runCommand(String args, CommandContext context)
130130
@Override
131131
public List<String> getSuggestions(int parameter, List<String> previous, CommandContext context) {
132132
if (parameter != 0 || !context.isInCampaign()) return new ArrayList<>();
133-
return Global.getSector().getStarSystems().stream().map(it -> it.getBaseName()).toList();
133+
return Global.getSector().getStarSystems().stream().map(it -> it.getId()).toList();
134134
}
135135
}

src/org/lazywizard/console/commands/OpenMarket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ public CommandResult runCommand(String args, CommandContext context)
4747
@Override
4848
public List<String> getSuggestions(int parameter, List<String> previous, CommandContext context) {
4949
if (parameter != 0) return new ArrayList<>();
50-
return Global.getSector().getEconomy().getMarketsCopy().stream().map(it -> it.getName()).toList();
50+
return Global.getSector().getEconomy().getMarketsCopy().stream().map(it -> it.getId()).toList();
5151
}
5252
}

0 commit comments

Comments
 (0)