Commit Graph

83 Commits

Author SHA1 Message Date
hayden 720e3762c4 i honestly dont remember what changes this is, sorry to anyone reading this. i am committing currently so i can work on this at a different place. 2019-08-21 14:40:10 -05:00
hayden 09412cbd97 big refractor: i got rid of all typedefs for
structs after reading some stuff online. took
me a few hours, but i managed to get it working
2019-08-20 11:26:44 -05:00
hayden 43143c2caf made some progress on the nbt parsing, finally managed to decompress the gzip data
moved around some of rxis libraries that i use, now they are just placed in with the rest of my c files
2019-08-20 08:46:54 -05:00
hayden 877895e373 adding some stuff i've been working on for the last few days so i can work on it from another computer. this commit is very broken don't try and use it. 2019-08-15 12:00:21 -05:00
hayden 5b37dbc457 switched from "#pragma once" to traditional header guards 2019-08-07 17:21:50 -05:00
hayden 61268f53b8 a ton of general changes, honestly at this point
it is a little difficult to keep track of. i hope
my codebase isn't getting out of control :(
2019-08-07 15:57:05 -05:00
hayden d2ac88c9e9 general bugfixes, as well as the addition of a plugin.h header 2019-08-05 17:10:02 -05:00
hayden a6561b8c9a got rid of the cmake based builds, and moved to a plain old makefile! :D 2019-08-05 16:18:43 -05:00
hayden e2a274613b added a basic nbt api, but havent added any implimentation yet 2019-08-05 13:58:24 -05:00
hayden dcf0d87251 added the beginning of the main loop, however since we arent dealing with entities yet there is no need for it to actually do anything. instead of developing this further, i will instead be focusing on setting up the world manager 2019-08-04 18:10:41 -05:00
hayden d034d6c85f made a few minor changes to the connection file, and added a listener for when connections are closed to make sure i am freeing up everything 2019-08-03 19:56:05 -05:00
hayden e66f41cc6d offline login is now fully working, although nothing actually happening since the world stuff isnt setup yet 2019-08-03 19:34:03 -05:00
hayden ab027590d1 added offline login handling (still buggy 2019-08-03 16:58:15 -05:00
hayden 56c62b7193 fixed a few memory leaks with valgrind 2019-08-03 13:34:20 -05:00
hayden 51d907d7f8 added licence text to every source file 2019-08-03 10:48:28 -05:00
hayden 2c83a62df7 removed files 2019-08-03 10:38:55 -05:00
hayden 327ff3a413 added a config.h based configuration system (yay suckless!) 2019-08-03 10:38:13 -05:00
hayden a7ffcab9db updated readme! :D 2019-08-03 09:54:56 -05:00
hayden 9a4aac3e33 moved all the network files out of the network folder, and changed include statements accordingly 2019-08-03 09:52:57 -05:00
hayden f05f44896d moved all the util files into one catch-all util file, and updated all include statements 2019-08-03 09:50:13 -05:00
hayden 69112851ea finally got server ping working again!! 2019-08-03 09:03:39 -05:00
hayden 6bf7f814c8 big packet rewrite, more rewriting to come 2019-08-02 22:27:00 -05:00
hayden 03660adbaf little readme update 2019-08-01 00:13:33 -05:00
hayden d058cb7e9e updated the generic packet functions to fit with the new system, but the individual functions still need to be changed in order for the code to compile 2019-08-01 00:06:18 -05:00
hayden 33f1ab2a31 removed struct names in favor of typedefs in order to better fit the c standard (_t is not allowed at the end of struct names) 2019-07-31 14:46:12 -05:00
hayden f3d729d015 added the new PacketType lookup table to the packet_read function, and reformatted a few things elsewhere 2019-07-31 13:58:43 -05:00
hayden a9099f5f70 added a lookup table for packet functions. it is very very ugly, but alot less ugly then 5 switch statements of the same size 2019-07-31 13:44:45 -05:00
hayden b1bd301e80 added all 1.14.3 serverbound packets to the id to PacketType lookup table. (it is very ugly) 2019-07-31 11:29:24 -05:00
hayden 93d820525f added every 1.14.3 packet to the PacketType to id lookup table 2019-07-31 10:57:05 -05:00
hayden 34ea76fcf7 added all the 1.14.3 packet types to the PacketType enum 2019-07-31 09:26:34 -05:00
hayden 1cd996a990 added "#pragma once" to error.h 2019-07-31 08:47:18 -05:00
hayden 1915e08e90 started a massive overhaul to the protocol system (again). THINGS ARE VERY MESSY THIS WILL NOT COMPILE 2019-07-30 19:08:43 -05:00
hayden 65f21447e5 added handle functions for the serverbound packets 2019-07-30 16:18:33 -05:00
hayden 5959a83942 changed link in the README.txt file 2019-07-30 15:58:59 -05:00
hayden 570a605965 rename readme (for real this time) 2019-07-30 15:56:08 -05:00
hayden 36dfa3c525 rename readme 2019-07-30 15:54:52 -05:00
hayden daeaf29996 added a license, and updated the readme 2019-07-30 15:53:49 -05:00
hayden e3b86fed78 moved the code over to the new system, and everything compiles but there are still alot of bugs to fix. 2019-07-22 23:51:37 -05:00
hayden cdd04b9432 further progress on the new packet handling system. THIS COMMIT WILL NOT COMPILE 2019-07-21 21:30:12 -05:00
hayden 7f5b4e2759 added "pragma once" to all header files 2019-07-20 19:26:49 -05:00
hayden 4989a794fd started on new seperate packet files. THIS COMMIT WILL NOT COMPILE 2019-07-20 19:24:49 -05:00
hayden f2aa076f37 simple comment change, right before the whole packet system is overhauled 2019-07-20 18:20:17 -05:00
hayden 8de3c5c539 updated the readme 2019-07-18 17:43:26 -05:00
hayden 02c96effe3 finally got the status messages working!!! 2019-07-18 17:42:35 -05:00
hayden 316a6b7097 got the protocol working for a minute, but it quickly broke again when I implimented a second packet 2019-07-17 18:57:03 -05:00
hpope 22dbaf469e added a new field to the packet struct to track what protocol state it is ment for 2019-07-17 16:57:36 -05:00
hpope b6c189f15a fixed (?) the packet writing code. 2019-07-17 11:34:57 -05:00
hayden a872a0e149 commiting what i have now to show to someone else 2019-07-16 00:43:08 -05:00
hayden c58d6182f3 fixed the segmentation fault! 2019-07-15 22:42:42 -05:00
hayden 0aaa87732b added the packet writing functionality for the status response, but there is an annoying segfault error that i have to fix 2019-07-15 22:16:36 -05:00