Skip to content

Instantly share code, notes, and snippets.

/* eodata.cpp
* EOSERV is released under the zlib license.
* See LICENSE.txt for more info.
*/
#include "eodata.hpp"
#include "console.hpp"
#include "packet.hpp"
diff --git a/config/files.ini b/config/files.ini
index 5ab9b96..e98e9d8 100644
--- a/config/files.ini
+++ b/config/files.ini
@@ -6,6 +6,7 @@
## EIF, ENF, ESF, ECF (string)
# pub file locations
+# "001" will be replaced with the appropriate file number automatically
EIF = ./data/pub/dat001.eif
diff --git a/src/map.cpp b/src/map.cpp
index 6b05380..7cff42f 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -1495,18 +1495,67 @@ void Map::Attack(Character *from, Direction direction)
break;
}
+ // 0 = 1x1
+ // 1 = 3x3
diff --git a/config/files.ini b/config/files.ini
index e4761da..93e3405 100644
--- a/config/files.ini
+++ b/config/files.ini
@@ -11,6 +11,11 @@ ENF = ./data/pub/dtn001.enf
ESF = ./data/pub/dsl001.esf
ECF = ./data/pub/dat001.ecf
+## AutoSplitPubFiles (bool)
+# Automatically split large pub files in to multiple smaller files
@tehsausage
tehsausage / v29 patches.txt
Created February 13, 2022 21:51
v29 patches
+1BC6
v28 -> v29 (1C -> 1D)
afk attack limit:
+8E987 -> 81 BE 8C 02 00 00 FA 00 00 00 00
edited -> ................. B8 0B ........
anti-leak:
+47469 -> 80 BA 2D 04 00 00 00 0F 84 5D 30 01 00 8B 0D 14 B0 6C 00
edited -> 66 81 BA 2C 04 00 00 00 01 0F 85 5B 30 01 00 90 90 8B C8
@tehsausage
tehsausage / endless.exe patch.txt
Last active February 14, 2022 01:01
EO big packet patch
; Change packet substring index from 2 to 4
+9FA3D -> B9 02
edited -> B9 04
; Change packet substring bounds from (2, len-2) to (4, len-4)
+9FAA0 -> C1 FE BA 03
edited -> C1 FC BA 05
; more of the above...
+9FAE8 -> BA 03
@tehsausage
tehsausage / Instructions.txt
Last active August 6, 2020 10:19
debian package checkpoint-based metapackaging
Scripts to generate meta-packages based on packages installed between two checkpoints.
Step 1) Run 'pkg-snap-before.sh'
Step 2) Install packages
Step 3) Run 'pkg-snap-after.sh'
Step 4) Run 'pkg-snap-generate.sh my-meta-package' to generate and install.
Example session:
#include "map_renderer.hpp"
#include "common.hpp"
#include "common_alsmart.hpp"
#include "draw_buffer.hpp"
#include "gfx_manager.hpp"
Map_Renderer::Map_Renderer(GFX_Manager& gfx)
: m_gfx(gfx)
{ }
/* $Id$
* EOSERV is released under the zlib license.
* See LICENSE.txt for more info.
*/
#include "npc_ai_hw2016_apozen.hpp"
#include "../character.hpp"
#include "../config.hpp"
#ifndef INT_PACK_HPP
#define INT_PACK_HPP
#include <cstdint>
#include <type_traits>
inline std::uint16_t int_pack_16(std::uint8_t a, std::uint8_t b)
{
const std::uint16_t x[] = {a, b};