Read wpak cfgs from one folder per archive
Files now load from mb.data/wpak/<archive>/<file>, matching MBDATA's data/wpak layout and the client's Config/Config.wpak naming, so more archives can sit beside Config/ later. All nine current files are in wpak/Config/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c63212b900
commit
098f5d2c38
10 files changed
+12
-11
No files matched your search
@@ -18,7 +18,7 @@ import java.util.ArrayList;
|
||||
|
||||
public class CharCreateRuneParser {
|
||||
|
||||
private static final String fileName = "CharCreateRuneList.cfg";
|
||||
private static final String fileName = "Config/CharCreateRuneList.cfg";
|
||||
|
||||
public static CharCreateRuneList parseCharCreateRuneFile() {
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ import java.util.HashMap;
|
||||
|
||||
public class CompoundCurveParser {
|
||||
|
||||
private static final String fileName = "CompoundCurves.cfg";
|
||||
private static final String fileName = "Config/CompoundCurves.cfg";
|
||||
|
||||
// Segments run back to back on one line, so the param count per simple curve
|
||||
// is what tells where the next segment starts.
|
||||
|
||||
@@ -21,7 +21,7 @@ import java.util.HashMap;
|
||||
|
||||
public class EffectParser {
|
||||
|
||||
private static final String fileName = "Effects.cfg";
|
||||
private static final String fileName = "Config/Effects.cfg";
|
||||
|
||||
public static HashMap<String, EffectTemplate> parseEffectsFile() {
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ import java.util.HashMap;
|
||||
|
||||
public class ModTypeParser {
|
||||
|
||||
private static final String fileName = "ModTypes.cfg";
|
||||
private static final String fileName = "Config/ModTypes.cfg";
|
||||
|
||||
public static HashMap<String, ModTypeTemplate> parseModTypesFile() {
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import java.util.HashMap;
|
||||
|
||||
public class PowActionCostParser {
|
||||
|
||||
private static final String fileName = "PowActionCostInfo.cfg";
|
||||
private static final String fileName = "Config/PowActionCostInfo.cfg";
|
||||
|
||||
public static HashMap<String, PowActionCostTemplate> parsePowActionCostFile() {
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import java.util.HashMap;
|
||||
|
||||
public class PowerActionParser {
|
||||
|
||||
private static final String fileName = "PowerActions.cfg";
|
||||
private static final String fileName = "Config/PowerActions.cfg";
|
||||
|
||||
public static HashMap<String, PowerActionTemplate> parsePowerActionsFile() {
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ import java.util.HashSet;
|
||||
|
||||
public class PowerParser {
|
||||
|
||||
private static final String fileName = "Powers.cfg";
|
||||
private static final String fileName = "Config/Powers.cfg";
|
||||
private static final int headerSize = 22;
|
||||
|
||||
// Keys the client's loader doesn't know and skips; "POWEREND=" is a typo for CURVE= on one power
|
||||
|
||||
@@ -19,7 +19,7 @@ import java.util.HashMap;
|
||||
|
||||
public class SkillParser {
|
||||
|
||||
private static final String fileName = "Skills.cfg";
|
||||
private static final String fileName = "Config/Skills.cfg";
|
||||
|
||||
public static HashMap<String, SkillTemplate> parseSkillsFile() {
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ import java.util.ArrayList;
|
||||
|
||||
public class StartingKitParser {
|
||||
|
||||
private static final String fileName = "StartingKitTable.cfg";
|
||||
private static final String fileName = "Config/StartingKitTable.cfg";
|
||||
private static final int maxKitItems = 10;
|
||||
|
||||
public static ArrayList<StartingKitTemplate> parseStartingKitFile() {
|
||||
|
||||
@@ -18,11 +18,12 @@ import java.util.ArrayDeque;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
// Reads the client's wpak cfg files (an mbEditorPro export of Config.wpak) into
|
||||
// tokenized lines and XxxBEGIN/XxxEND blocks. Each parser maps the tokens itself.
|
||||
// Reads the client's wpak cfg files (an mbEditorPro export) into tokenized lines and
|
||||
// XxxBEGIN/XxxEND blocks. Each parser maps the tokens itself.
|
||||
|
||||
public class WpakFileReader {
|
||||
|
||||
// One folder per archive, as the client names them: wpak/Config/Powers.cfg is Powers.cfg in Config/Config.wpak
|
||||
public static final String wpakPath = ConfigManager.DEFAULT_DATA_DIR + "wpak/";
|
||||
|
||||
// Lines starting with '#' or '*' are comments (PowerActions_LoadCfg 0x578EC0).
|
||||
|
||||
Reference in new issue
Block a user