Commit Graph

30 Commits

Author SHA1 Message Date
b3261454d9 basic log helper and also starting mod loading fucking finally god 2024-11-15 22:08:36 -06:00
4f93992fba Mod directory flag 2024-11-14 15:21:36 -06:00
f702065a7c a lot of pointless changes but also a basic tick system 2024-11-14 09:12:23 -06:00
b03e194a34 split each request/response type into its own file 2024-10-29 13:14:08 -05:00
c892acab80 mostly just refactoring socket stuff 2024-10-28 00:13:05 -05:00
92fed87080 just for fun: a test game loop that cycles world width/height from 0-100 once a second; client prints them too btw 2024-10-27 23:48:51 -05:00
307323e561 simulation thread created and socket response handler actually uses the mutex now 2024-10-27 23:41:10 -05:00
693c238664 forgot the socket_thread_body return value handling 2024-10-27 23:02:08 -05:00
bb71248414 attempt to start multithreading by creating the socket thread 2024-10-27 22:56:53 -05:00
a87b6c1152 client send request and server handles and response to it 2024-10-23 14:35:07 -05:00
c32af03d20 response serialisation/deserialisation 2024-10-22 20:25:27 -05:00
3470d4bebc starting work on request/response handling 2024-10-17 21:26:25 -05:00
bfbba84b5c i forgor that common lib is technically a system lib so it should be in <> and not "" 2024-10-17 15:14:16 -05:00
c31078ebd5 refactor a lot of the code because it was getting messy 2024-10-13 15:04:35 -05:00
aab6b41d18 more efficient entity array serialisation 2024-10-11 00:08:47 -05:00
578f4446b4 (de)serialise entities too but it does even the uninitialised ones too due to the array thing 2024-10-10 23:46:14 -05:00
9ec7f392c7 entity registr{ant,y} (de)serialisation 2024-10-10 23:07:43 -05:00
3efa5479f2 (de)serialisation in server/client goes world_t -> const char *, rather than world_t -> json_t -> const char * 2024-10-10 17:31:07 -05:00
8d5fc464cb serialise and deserialise very basic json data, and send it between server and client 2024-10-10 00:58:13 -05:00
f1b30b697e comply with -std=c17 2024-10-08 18:40:20 -05:00
f64646b40b do all the world initialisation stuff i previously did plus some temporary serverside rendering so i know it works 2024-10-06 01:11:49 -05:00
0c80ea5f10 refactor server sockets so they're a bit cleaner 2024-10-06 00:33:01 -05:00
f2478951a2 open a socket on server/client that just echos; also fixed a critical bug in the daemon(++ -> -- lol) so now it actually daemonises 2024-10-05 03:58:16 -05:00
9d255f7948 add a default set of initialisation options for cli flags 2024-10-05 02:07:11 -05:00
867bbb1c37 clean up server/main by moving cli option handling to separate files 2024-10-05 01:56:59 -05:00
2db264c027 mainly just make spacing look nicer lol 2024-10-05 01:35:07 -05:00
96ce1aa0fe just making things look a bit nicer 2024-10-04 00:15:23 -05:00
174ed1ed30 we do a lil daemonisation >:-) 2024-10-04 00:05:43 -05:00
391db5c444 common/src/*.h -> common/include/ 2024-10-02 19:42:30 -05:00
8b04672d34 prepare for daemonisation by splitting into a client/server/common design 2024-10-02 15:43:44 -05:00