Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 11/20/19 in all areas

  1. 1 point
    Oops, my mistake i mixed up the checks... it does indeed check for 1 element (a 4 bytes float). This is the struct for cell attributes in aegis, and the check against water level uses h1 struct AttrCell { float h1; float h2; float h3; float h4; int flag; }; *Edit*: corrected the code in previous post
  2. 1 point
    The athena way is what aegis uses, it reads the 4th dword in the cell info struct and compares it with the map water level read from the RSW, the code roughly looks like this (quick draft so i apologize if it's not so clear). { std::ifstream gat_fs(filename, std::ios::binary); VALIDATE_MAGIC(gat_fs, "GRAT", 4); gat_fs.read(reinterpret_cast<char *>(&m_verMajor), sizeof(char)); gat_fs.read(reinterpret_cast<char *>(&m_verMinor), sizeof(char)); gat_fs.read(reinterpret_cast<char *>(&m_width), sizeof(int)); gat_fs.read(reinterpret_cast<char *>(&m_height), sizeof(int)); m_cells.resize(m_width * m_height); gat_fs.read(reinterpret_cast<char *>(m_cells.data()), m_cells.size()); std::for_each(m_cells.begin(), m_cells.end(), [idx = 0](struct CAttrCell &cell) mutable { if (cell.flag == 1 || cell.flag == 5) m_TileInfo[idx] |= SVR_CELL_BLOCK; if (cell.flag != 1) m_TileInfo[idx] |= SVR_CELL_ARROW; if (cell.h1 > m_waterLevel) // m_waterLevel from RSW m_TileInfo[idx] |= SVR_CELL_WATER; ++idx; }); return 0; }
  3. 1 point

    Version 1.0

    210 downloads

    My First Recolor Ever with the Ugly Monster.. Please Rate the recolors.
  4. 1 point

    Version 1.0

    254 downloads

    Elemental Practice Targets by Request(http://herc.ws/board/topic/5492-elemental-practice-targets/) This Download contains sprite only. Elemental Practice Targets are the monsters, and contains 10 Sprites: 1)Emperium Practice Target 2)Fire Practice Target 3)Ghost Practice Target 4)Holy Practice Target 5)Neutral Practice Target 6)Poison Practice Target 7)Shadow Practice Target 8)Undead Practice Target 9)Water Practice Target 10)Wind Practice Target 11)Earth Practice Target Credits to Rytech, for uploading these files on eathena.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.