91 Commits

Author SHA1 Message Date
fusion32
638244fd07 small cleanup + fix sigaction flags 2025-07-18 18:40:57 -03:00
fusion32
6d498fe17d fix most init and parsing bugs + critical bug with dynamic strings
With an appropriate query manager, the server now starts up and
seems to work but won't properly handle connections until we fix
the problem with threads and signals described in `TODO.md`.
2025-07-16 17:22:39 -03:00
fusion32
e65dc561ac implement crypto.cc with OpenSSL + fix config loading
I considered reversing the original `vlong` implementation but
OpenSSL is just simpler, more secure, and most importantly, is
already there. I also made it so the key is now stored in a PEM
file (`tibia.pem`) so it can be easily swapped without re-compiling.

  This was the last piece to build and run a working executable,
except that we now need to implement a query manager for the server
to communicate with. I was able to fix a small problem with loading
the config before hitting the problem with the query manager, which
was expected.

  The next task should be getting a query manager up and running
before starting phase two of upgrading and fixing the server itself.
2025-07-03 10:46:43 -03:00
fusion32
e782274ade query.cc 2025-07-02 13:28:45 -03:00
fusion32
aaf198773f beginning of query.cc 2025-07-01 20:41:31 -03:00
fusion32
11ae3d0e42 merged dbfuncs.cc into crplayer.cc 2025-07-01 15:39:01 -03:00
fusion32
d5a1438756 minor cleanup 2025-07-01 09:35:07 -03:00
fusion32
5cfe00df82 reader.cc 2025-07-01 09:26:39 -03:00
fusion32
6243967f1f fix operator= for TChannel, TParty, and THouse
I had focused on copying the `vector` fields for theses structs
but, being the copy operator, you need to copy everything over.
2025-07-01 07:21:10 -03:00
fusion32
6c8aa85b8b writer.cc 2025-06-30 19:23:09 -03:00
fusion32
c09d30cb14 houses.cc 2025-06-29 18:25:23 -03:00
fusion32
e59667ec6b moveuse.cc 2025-06-27 18:57:29 -03:00
fusion32
ea319bc2fb finish crnonpl.cc 2025-06-25 10:09:17 -03:00
fusion32
8bc2e5dc3a most of crnonpl.cc 2025-06-24 15:02:38 -03:00
fusion32
bdfcbb2f0e receiving.cc 2025-06-23 06:34:16 -03:00
fusion32
c4dfe97e95 sending.cc 2025-06-22 00:52:27 -03:00
fusion32
efeb10adcc connections.cc 2025-06-21 03:35:13 -03:00
fusion32
7dff6dfd60 finish communication.cc 2025-06-20 18:19:12 -03:00
fusion32
083047d123 small change to ReceiveCommand for increased connection reliability 2025-06-20 15:33:58 -03:00
fusion32
d3b92e110a more work on communication.cc 2025-06-20 06:00:16 -03:00
fusion32
bd3a6a0460 beginning of communication.cc 2025-06-19 03:13:48 -03:00
fusion32
e5b8aadd49 finish crplayer.cc 2025-06-18 18:57:37 -03:00
fusion32
b912ba995c TPlayer constructor and destructor 2025-06-17 20:10:41 -03:00
fusion32
56bdec5760 all crplayer.cc functions outside TPlayer 2025-06-17 03:13:05 -03:00
fusion32
0612480d9b party functions 2025-06-16 01:30:08 -03:00
fusion32
5bdedeecea channel functions 2025-06-15 22:25:12 -03:00
fusion32
3cc587ab8d more work on operate.cc 2025-06-15 17:35:06 -03:00
fusion32
33464579f6 impl Look and Talk... 2025-06-14 04:47:08 -03:00
fusion32
15b40c7915 more work on operate.cc 2025-06-13 03:35:56 -03:00
fusion32
7d298e5a41 more work on operate.cc 2025-06-12 04:17:13 -03:00
fusion32
05ec30b994 more work on operate.cc 2025-06-12 02:09:27 -03:00
fusion32
60b89174c6 some announce functions 2025-06-11 03:30:51 -03:00
fusion32
b167d45f88 first look at operate.cc 2025-06-11 01:58:18 -03:00
fusion32
81a5d53bc5 finish info.cc 2025-06-10 19:19:09 -03:00
fusion32
699341773d most info.cc functions 2025-06-10 03:32:22 -03:00
fusion32
cd8f3f412c finish cract.cc 2025-06-09 01:19:20 -03:00
fusion32
eaa3536c02 impl TCreature::Move which was absolute hell + some tidying up 2025-06-08 19:54:40 -03:00
fusion32
ab9f606371 more cract.cc functions 2025-06-08 02:16:45 -03:00
fusion32
0590a5f1b3 implement monster raids 2025-06-07 23:52:37 -03:00
fusion32
3d7fcfc4a6 race loading 2025-06-07 17:15:40 -03:00
fusion32
bd145c3ebf implement TFindCreatures and KillStatistics 2025-06-07 01:46:11 -03:00
fusion32
76f6ecb7c8 some work on crmain.cc and cract.cc + merge creature headers 2025-06-06 19:36:18 -03:00
fusion32
850fa1c0e1 declare all creature types 2025-06-05 12:33:58 -03:00
fusion32
f080f1e4bc reduce clutter with struct dividing comments 2025-06-05 12:12:39 -03:00
fusion32
ebfa80ab57 merge creature headers 2025-06-05 12:00:34 -03:00
fusion32
3c8bcba6b5 finish magic.cc 2025-06-05 02:00:10 -03:00
fusion32
2c91caa1dd finish most spells 2025-06-04 12:02:51 -03:00
fusion32
f898f3bb67 more spells 2025-06-04 00:55:23 -03:00
fusion32
dbee845a5c more spells 2025-06-03 16:00:35 -03:00
fusion32
a1e062c8b2 more spells 2025-06-03 02:08:15 -03:00