angered-ghandi / OpenAOE

An open source reimplementation of Age of Empires (1997)
Other
66 stars 6 forks source link

Unknown filetype (0x20706C73) encountered in border.drs #12

Closed phrohdoh closed 8 years ago

phrohdoh commented 8 years ago

It is very possible that I have a bogus dataset (it came from an MP-only rip)

cargo run --release -- \
                "$HOME/Desktop/Age of Empires/Scenario/Border Patrol (4-Player).scn" \
                -d "$HOME/Desktop/Age of Empires/"
     Running `target/release/open_aoe /Users/thill/Desktop/Age\ of\ Empires/Scenario/Border\ Patrol\ (4-Player).scn -d /Users/thill/Desktop/Age\ of\ Empires/`
Found "language.dll" at "/Users/thill/Desktop/Age of Empires/language.dll"
Found "data/border.drs" at "/Users/thill/Desktop/Age of Empires/Data/border.drs"
Found "data/empires.dat" at "/Users/thill/Desktop/Age of Empires/Data/Empires.dat"
Found "data/graphics.drs" at "/Users/thill/Desktop/Age of Empires/Data/graphics.drs"
Found "data/interfac.drs" at "/Users/thill/Desktop/Age of Empires/Data/interfac.drs"
Found "data/sounds.drs" at "/Users/thill/Desktop/Age of Empires/Data/sounds.drs"
Found "data/terrain.drs" at "/Users/thill/Desktop/Age of Empires/Data/terrain.drs"
Found "data/tileedge.dat" at "/Users/thill/Desktop/Age of Empires/Data/TILEEDGE.DAT"
"/Users/thill/Desktop/Age of Empires/"
Loading "/Users/thill/Desktop/Age of Empires/Data/border.drs"...
thread '<main>' panicked at 'unknown file type encountered in DRS archive: 0x20706C73', crates/file_formats/drs/src/drs.rs:100
stack backtrace:
   1:        0x10c32196b - std::sys::backtrace::tracing::imp::write::h3800f45f421043b8
   2:        0x10c3234c5 - std::panicking::default_hook::_$u7b$$u7b$closure$u7d$$u7d$::h0ef6c8db532f55dc
   3:        0x10c3230fe - std::panicking::default_hook::hf3839060ccbb8764
   4:        0x10c318067 - std::panicking::rust_panic_with_hook::h5dd7da6bb3d06020
   5:        0x10c323a86 - std::panicking::begin_panic::h9bf160aee246b9f6
   6:        0x10c318ac8 - std::panicking::begin_panic_fmt::haf08a9a70a097ee1
   7:        0x10c2a06fc - _<drs..DrsFileType as std..convert..From<u32>>::from::h98c83a9b5bfaa9e4
   8:        0x10c290704 - open_aoe_resource::drs_manager::DrsManager::preload_drs::h5bdbf54dd8e9b2f5
   9:        0x10c28da50 - open_aoe_resource::drs_manager::DrsManager::preload::h119be42057531b0e
  10:        0x10c22e4ca - open_aoe::main::h571448b8769fdeb1
  11:        0x10c322ced - std::panicking::try::call::hbbf4746cba890ca7
  12:        0x10c325d6b - __rust_try
  13:        0x10c325d05 - __rust_maybe_catch_panic
  14:        0x10c322b11 - std::rt::lang_start::hbcefdc316c2fbd45
error: Process didn't exit successfully: `target/release/open_aoe /Users/thill/Desktop/Age of Empires/Scenario/Border Patrol (4-Player).scn -d /Users/thill/Desktop/Age of Empires/` (exit code: 101)
make: *** [play] Error 101
tmba:openaoe thill $ ag "in DRS archive"
crates/file_formats/drs/src/drs.rs
100:            _ => panic!("unknown file type encountered in DRS archive: 0x{:X}", binary_val),
phrohdoh commented 8 years ago

I have confirmed my DRSes are completely bogus by attempting to view SLPs with genie (which I have had success using with data right off the original discs previously), so this can be closed.