
Me ranting for 8 Min straight about Game Engine Dev and Serialization
● My Discord Channel: http://bit.ly/discord-uniday-us
That's just the tip of the iceberg. The point that I was explaining in the video is that, for everything in the engine, I currently need to do 4 things (and later, 5): (1) serialize it to save to disk, (2) deserialize it from disk and properly initialize the stuff in memory, (3) display that in the editor's UI, (4) reflect it for Python API that I don't even get to show in the video but trust me it's bad, (5) in the future, reflect it as well to the visual scripting API. The code for all that it's very simple, most of it basically only needs the field offset, size, type and address and some "simple" handling code... but I still fails really, really, really hard to simplify this so I don't need to write the same thing five times in a row. And as I said, that's just the tip of the iceberg, because the other major issue is that every time I change how the classes looks like, it will inevitably change how they are serialized, meaning that the previously serialized bytes won't make any sense anymore, making it impossible to open your projects without getting everything corrupted (yes I had a flag to avoid corrupting stuff, but it just means that the engine will not load the asset at all). The best world would me something like a json file, that can handle changes (like reordering, additions and deletions) just fine. But guess what? If I can't even do the part one, which is remove the need to write the same stuff 5 times, adding json will just add even more redundant code. And as I showed in the video, cave engine is not a simple project anymore, it's a ~130.000 Lines of Code giant already. So it's not trivial to rewrite it. Sorry for the vent, but this thing have been keeping me awake at night for at least several years already.
If you feel the pain, consider buying me a Coffee (Patreon) or at least donating some money for the migraine medicines that I take while trying to figure this stuff out:
http://bit.ly/patreon-uniday
························································
► Uniday Studio
By: Guilherme Teres Nunes

















![[게임 개발 일지 110] 상호작용, 소환창 수정 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/HEIS-fMYscs/hqdefault.jpg)
![[게임 개발 일지 112] 검사 파티 공격 모션 수정 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/2dINfOQ2kfE/hqdefault.jpg)
![[게임 개발 일지 109] 던전 관리창 수정 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/KV3qkO-dA6A/hqdefault.jpg)




























![[게임 개발 일지 124] 뱀파이어 수녀님 이동 메커니즘 상세 설명 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/tGj3ydtLHGA/hqdefault.jpg)


![던전에 총을 들고 오는 탱커? 이건 반칙 아닌가요? [게임 개발 일지 126] #게임 #1인개발 #indiedev](https://img.youtube.com/vi/RsRNGGwluto/hqdefault.jpg)


















![[게임 개발 일지 122] 뱀파이어 수녀님 스프라이트 시트 구성 과정 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/C56YfTT1ZeQ/hqdefault.jpg)




















![[게임 개발 일지 126] 양 네크로맨서 전투 구현 과정 찐막 구현 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/PkWJ7YDfCd0/hqdefault.jpg)

















![[게임 개발 일지 116] 유령 강아지 구현 과정 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/SgjsVnw3vP4/hqdefault.jpg)

















































![[게임 개발 일지 117] 그림자 고양이 구현 과정 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/3cKKibNQHdU/hqdefault.jpg)



























![[게임 개발 일지 120] 광원지 업그레이드! #게임 #1인개발 #indiedev](https://img.youtube.com/vi/SeLc4Zp6cjc/hqdefault.jpg)








![[게임 개발 일지 115] 형광다람쥐 전투 구현 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/8Z-k2N5Q3Ck/hqdefault.jpg)



























![[게임 개발 일지 125] 뱀파이어 수녀님 공격 메커니즘 구현 과정 상세 설명 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/o0zOC1CY46k/hqdefault.jpg)






















![[게임 개발 일지 123] 뱀파이어 수녀님 순찰 메커니즘 구현 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/OYNTwQ97bcw/hqdefault.jpg)





















































![[게임 개발 일지 118] 미믹 구현 과정 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/WuVcQ6Ckoog/hqdefault.jpg)



![[게임 개발 일지 119] 보물창고 업그레이드! #게임 #1인개발 #indiedev](https://img.youtube.com/vi/_qiSCs5ZiCg/hqdefault.jpg)














![[게임 개발 일지 121] 수원지 업그레이드! #게임 #1인개발 #indiedev](https://img.youtube.com/vi/Sgg87VfToQ0/hqdefault.jpg)





































































































