Package skyproc.exceptions

Examples of skyproc.exceptions.BadParameter


    BSA(String filePath, boolean load) throws FileNotFoundException, IOException, BadParameter {
        this.filePath = filePath;
        in.openFile(filePath);
        if (!in.extractString(0, 3).equals("BSA") || in.extractInt(1, 4) != 104) {
            throw new BadParameter("Was not a BSA file of version 104: " + filePath);
        }
        offset = in.extractInt(0, 4);
        archiveFlags = new LFlags(in.extract(0, 4));
        folderCount = in.extractInt(0, 4);
        folders = new HashMap<>(folderCount);
View Full Code Here


     */
    public void setChanceNone(final int in) throws BadParameter {
  if (in >= 0 && in <= 100) {
      subRecords.setSubData("LVLD", in, 1);
  } else {
      throw new BadParameter("Chance none set outside range 0-100: " + in);
  }
    }
View Full Code Here

      SPGlobal.logSync(header, "Loading nif file");
  }
  if (!in.getString(20).equals("Gamebryo File Format")) {
      byte first = in.extract(1)[0];
      if (!in.extractString((int) first, 20).equals("Gamebryo File Format")) {
    throw new BadParameter(fileName + " was not a NIF file.");
      }
  }

  in.extractLine();
View Full Code Here

TOP

Related Classes of skyproc.exceptions.BadParameter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.