Closed jezek closed 2 years ago
I've managed to make graphics tiles work with Windows client. But before merging I have some questions and depending on the answer there could be some more things to do.
Thank you for your time.
Nice work. Here are some answers.
@mhirki Thanks for answer.
I'll continue work on the numbers 1, 6 and 8 from my questions. Number 7 can be done later.
Nice job! So /lib/xtra/graf is now /lib/xtra/graphics, the BMP files are deprecated, and you have an example graphical font we can add to that folder for now?
Yes, I've made some tiles and mappings. It contains bitmaps for all floor characters I could test. I'll add it into next PR I have to make, cause I found an error I introduced to server when converted all the char to char32_t in previous commits. I forgot to rewrite the unmappings ([rf]_char_mod) from an array[255] to dictionary (as in client). I have the fix ready, just need it to test.
Btw, I recompiled the client and I get a packet error when trying to login to existing (not updated) servers. It seems some protocol backward compatibility is missing or not working correctly. Or maybe that is the error you spoke of. (Edit: with both, Linux and Windows client. In Windows client this will result in nulled/garbled stats and everything typical.)
Edit 2: Oh, it's probably just because of the protocol changes that assume 4.8.1 for both, server and client, without bumping the version to something like 4.8.1.0.0.1, so I'll just update the servers and that's that. No problem, we can keep 4.8.1.0.0.0, no need to bump it since this is a non-official version anyway.
So, the new code is now live on our servers actually!
@CBlueGH
So, the new code is now live on our servers actually!
So let's hope, nobody maps a character to some big number, or the server crashes... the fix is in #28
So the crashes you experienced should not occure because of the mapping. Was it the versioning?
Changes mainly to ./src/client/main-win.c to make usage of graphics tiles work in Windows client. All other files contains mostly cosmetic, comments or doc changes.
Can be tested with https://github.com/jezek/tomenet-graphic-tiles