2014年6月1日 星期日

Battle Isle 1 (1991,DOS) PART 11-15 Walkthrough 狂島浴血 11-15 關 (過關實錄)

狂島浴血 第十一關-第十五關 過關實錄

Part 11. VALEY 第十一關 總時間(time) 26:58

Part 12. TESTY 第十二關 總時間(time) 47:25

Part 13. TERRA 第十三關 總時間(time) 57:05

Part 14. SLAVE 第十四關 總時間(time) 1:02:47

Part 15. NEVER 第十五關 總時間(time) 42:28

Battle Isle 1 (1991,DOS) PART 6-10 Walkthrough 狂島浴血 6-10 關 (過關實錄)

狂島浴血 第六關-第十關 過關實錄

Part 6. RUSTY 第六關 總時間(time) 24:22


Part 7. FIFTH 第七關 總時間(time) 35:29

Part 8. VESUV 第八關 總時間(time) 32:29

Part 9. MAGIC 第九關 總時間(time) 44:11

Part 10. SPACE 第十關 總時間(time) 39:12

Battle Isle 1 (1991,DOS) PART 1-5 Walkthrough 狂島浴血 1-5 關 (過關實錄)

狂島浴血過關紀錄實況
Battle Isle 1 - 1991

Part 1. CONRA  第一關 總時間(time) 5:41

Part 2. PHASE 第二關 總時間(time) 7:44

Part 3. EXOTY 第三關 總時間(time) 9:02

Part 4. MOUNT 第四關 總時間(time) 18:54

Part 5. FIGHT 第五關 總時間(time) 20:46


2013年11月14日 星期四

sscanf with Android NDK

It seems that there are some bug in sscanf() with Android NDK-r9.

When read a line from a text file, i use the strtok() to tokenize the string, and call sscanf() to convert the token into hex value. There are some chance to get 0 from sscanf() , although it is not always occurred.

To solve the problem in NDK, i write a simple function to convert the token into hex,  the code is as follow listing:

// sscanf has bug in Android NDK
static unsigned char convertToHex( char c ) {
    if ( c >= '0' && c <= '9' ) {
        return c - '0';
    }
    if ( c >= 'A' && c <= 'F' ) {
        return c - 'A' + 10;
    }
    if ( c >= 'a' && c <= 'f' ) {
        return c - 'a' + 10;
    }
    return 0;
}
static unsigned char bytesToHex( char *token ) {
    unsigned char tmp ;
    unsigned char tmp1;
    unsigned char tmp2;
    tmp1 = convertToHex( token[0] );
    tmp2 = convertToHex( token[1] );
    tmp = tmp1 << 4 | tmp2;
    return tmp ;
};

2013年11月7日 星期四

AES-CTR-128 with OpenSSL on Android and Windows

I have some OpenSSL experience during Content Protection Project development. In this post, there some non-confidential technical skill could be shared to you.

For Developing the Content Encryption, the AES-CTR-128 was used.

To use the AES-CTR-128 easily with OpenSSL 0.9.8e
Copy aes_core.c and aes_ctr.c and related header files from OpenSSL source.

And the code sinppet should look like this:

#include

AES_key aes_key
input         : in_blk
output      : out_blk

unsigned char *key = "1234567812345678"
unsigned char nonce_counter[16];
unsigned char stream_block[16];
size_t tmp = 0;
int size = 0;

set up the AES key with AES-128
AES_set_encrypt_key(key, 128, &aes_key);

use AES-CTR-128 algorithm to encrypt content
AES_ctr128_encrypt(
   in_blk,
   out_blk,
   size,
  &aes_key,
  nonce_counter,
  stream_block,
  &tmp);


the decryption code snippet:
AES_ctr128_encrypt(
out_blk,
dec_out_blk,
size,
&aes_key,
nonce_counter,
stream_block, &tmp);


android_ndk demo 

visual_studio_2010_demo





Chrome Global Dark Style

一個 Chrome 的 Plugin 可以讓網頁瀏覽變成黑底白字
http://userstyles.org/styles/23516/midnight-surfing-global-dark-style




2012年9月15日 星期六

BASSMIDI 讓DOSBox發出更棒的MIDI音樂!

某次在 http://www.gamebase.com.tw/forum/30032骨灰集散地上面看到安裝外部MIDI Driver可以讓Dosbox模擬 Ronald MT-32,拜讀之後我很興奮的趕快去嘗試,遊戲的聲音真的不一樣了,這是聲霸卡所不能比擬的好聲音啊~~~聽到美少女夢工廠悠揚的音樂,銀河英雄傳說3高昂壯闊的交響樂,深深改變了玩Game感覺,這個Driver甚至連以前的FC上面的音樂也變得格外好聽。

 但是奇怪怎麼還是有些 Midi 沒有聲音啊~~~~ 就心血來潮在網路上找看看有沒有其他的 Midi Driver,就發現了一個萬用型MIDI模擬器BASSMIDI,已掛載不同SoundFont模擬不同MIDI音源器的效果.網址在下面,網站裡面有提供不同MIDI音效卡的SoundFont,其實我不知道如何確切描述SoundFont是甚麼東西,不過它應該是一個紀錄不同樂器所發出的聲音的檔案吧~

Bassmidi 的網址如下 http://www.mudlord.info/bassmididrv/BASSMIDI_Driver_Installation_and_Configuration.htm

Bassmidi的安裝方式
1. 下載 Bassmidi 的安裝檔案並解開安裝 http://www.mudlord.info/bassmididrv/bassmididrv.exe

2. 下載 SoundFont ,並且解開放到適當的位置 在此推薦幾個不錯的

SoundFont "Roland SC-55 v1.1 http://www.mediafire.com/?a6qn1tc811b2ce1

OPL-3 FM 128M" Sound Blaster 16 FM Synthesis SoundFont http://woolyss.com/chipmusic/chipmusic-soundfonts/OPL-3_FM_128M.zip

Gravis Ultrasound Classic Patch Set v1.6b http://www.rarek.ceron.pl/gus.htm

3. 重新開機,然後啟動 Bassmidi 的控制台 BASSMIDI Driver Configuration Utility 4

. 新增 SoundFont file,注意一下最底層的SoundFont會被優先使用喔!,然後就打開你的Dosbox好好享受提供Midi音樂的遊戲吧

附註:

對於在Windows上面模擬 Ronald MT-32有興趣的玩家可以參考下面這個網址: http://www.dearhoney.idv.tw/?p=243
MT-32的ROM可以從海盜灣上面抓取, Driver的由下面這個網址去下載http://sourceforge.net/projects/munt

另外再 Windows7上面的玩家,如果要改變系統預設的Midi Driver請到http://akkordwechsel.de/15-windows-vista-und-der-midi-mapper/ 去下載 Putzlowitschs Vista MIDI-Mapper Control-Panel Version 0.93 就可以直更改 系統預設的 Midi Driver

附註:

OPL-3 FM 128M 下載後解開的格式為 sfpack 
sfArk ( sfpack ) 的格式 要利用 sfpack 這隻程式去轉成 sf2 
轉換程式的網址如下