「死守」SP Item 的獲得條件及地方
透過錯誤經驗,分享科技與遊戲當中的技術,提醒自己及瀏覽此網誌的人,避免踏進相同的陷阱。
本網誌只提供技術概要及合法軟件連結(如有)。
如閣下因下載、安裝、設定資料等操作,導致任何損失,請自行承擔風險及處理,在下不會負責。
2010-06-04
Bio Hazard Outbreak File 2 / Resident Evil Outbreak File 2 記憶 (Flashback) SP Items
「記憶」SP Item 的獲得條件及地方
Bio Hazard Outbreak File 2 / Resident Evil Outbreak File 2 異界 (Underbelly) SP Items
「異界」SP Item 的獲得條件及地方
2010-06-03
Bio Hazard Outbreak File 2 / Resident Evil Outbreak File 2 咆哮 (Wild Things) SP Items
「咆哮」SP Item 的獲得條件及地方
利用 Java 將 Zip 格式解壓縮 (Use Java to decompress a ZIP file)
import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.zip.ZipEntry; import java.util.zip.ZipInputStream;
public static void decompress(File source, File destination) throws IOException{ if (!destination.exists() || destination.isDirectory()){ destination.mkdirs(); ZipInputStream zis = new ZipInputStream(new FileInputStream(source)); byte[] buffer = new byte[1024]; for (ZipEntry zip; (zip = zis.getNextEntry()) != null;){ File file = new File(destination, zip.getName()); if (zip.isDirectory()){ file.mkdirs(); } else { FileOutputStream fos = new FileOutputStream(file); for (int length; (length = zis.read(buffer)) > 0;){ fos.write(buffer, 0, length); } fos.close(); } zis.closeEntry(); } zis.close(); } }
Labels:
decompression
,
Java
,
programming
,
unzip
利用 Java 將檔案與資料夾壓縮成 Zip 格式 (Use Java to compress file(s) or directory(ies) as ZIP format)
import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.zip.Deflater; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream;
public static void compress(File source, File destination) throws IOException{ compress(source, destination, null, Deflater.DEFAULT_COMPRESSION); } public static void compress(File source, File destination, String comment, int level) throws IOException{ ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(destination)); zos.setComment(comment); zos.setLevel(level); compress(zos, source.getParent(), source); zos.flush(); zos.close(); } private static void compress(ZipOutputStream zos, String rootpath, File source) throws IOException{ String filename = source.toString().substring(rootpath.length() + 1); if (source.isFile()){ zos.putNextEntry(new ZipEntry(filename)); FileInputStream fis = new FileInputStream(source); byte[] buffer = new byte[1024]; for (int length; (length = fis.read(buffer)) > 0;){ zos.write(buffer, 0, length); } fis.close(); zos.closeEntry(); } else if (source.isDirectory()){ zos.putNextEntry(new ZipEntry(filename + "/")); zos.closeEntry(); File[] files = source.listFiles(); for (File file : files){ compress(zos, rootpath, file); } } }
Labels:
compression
,
Java
,
programming
,
zip
2010-05-27
Bio Hazard Outbreak / Resident Evil Outbreak 決意 (Decision, Decision) SP Items
「決意」SP Item 的獲得條件及地方
Labels:
Bio Hazard Outbreak
,
Game
,
Resident Evil Outbreak
Bio Hazard Outbreak / Resident Evil Outbreak 獄炎 (Hellfire) SP Items
「獄炎」SP Item 的獲得條件及地方
Labels:
Bio Hazard Outbreak
,
Game
,
Resident Evil Outbreak
Bio Hazard Outbreak / Resident Evil Outbreak 巢窟 (The Hive) SP Items
「巢窟」SP Item 的獲得條件及地方
Labels:
Bio Hazard Outbreak
,
Game
,
Resident Evil Outbreak
Bio Hazard Outbreak / Resident Evil Outbreak 零下 (Below Freezing Point) SP Items
「零下」SP Item 的獲得條件及地方
Labels:
Bio Hazard Outbreak
,
Game
,
Resident Evil Outbreak
2010-05-26
Bio Hazard Outbreak / Resident Evil Outbreak 發生 (Outbreak) SP Items
「發生」SP Item 的獲得條件及地方
Labels:
Bio Hazard Outbreak
,
Game
,
Resident Evil Outbreak
Bio Hazard Outbreak / Resident Evil Outbreak SP Items List
所有 SP Item 的獲得條件
Labels:
Bio Hazard Outbreak
,
Game
,
Resident Evil Outbreak
2010-05-24
Bio Hazard 4 / Resident Evil 4 武器與子彈 (Weapons and Bullets)
遊戲中所有武器與子彈的組合、圖像及名單
及本人對武器與子彈的主觀分析與描述
及本人對武器與子彈的主觀分析與描述
Labels:
Bio Hazard 4
,
Game
,
Resident Evil 4
2010-05-18
利用 Java 獲取文件的編碼類型 (Use Java to get the file encoding)
import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException;
Labels:
Java
,
programming
Bio Hazard Outbreak / Resident Evil Outbreak 回復藥物 (Recover Items)
遊戲中所有回復藥物的組合、圖像及名單
Labels:
Bio Hazard Outbreak
,
Game
,
Resident Evil Outbreak
2010-05-17
Bio Hazard Outbreak / Resident Evil Outbreak 物品 (Items)
遊戲中所有物品的組合、圖像及名單
Labels:
Bio Hazard Outbreak
,
Game
,
Resident Evil Outbreak
訂閱:
文章
(
Atom
)