These are chat archives for ZaneDubya/UltimaXNA

2nd
Apr 2016
Marcelo Paez
@paezao
Apr 02 2016 02:23 UTC
hey any of you guys tried reading art.mul before?
Jeff Boulanger
@jeffboulanger
Apr 02 2016 03:32 UTC
Aren't we doing that?
Marcelo Paez
@paezao
Apr 02 2016 16:37 UTC
@jeffboulanger Im trying to do it on a project im working on
Jeff Boulanger
@jeffboulanger
Apr 02 2016 16:38 UTC
Either reference the code in uxna or the code in openuo :)
Marcelo Paez
@paezao
Apr 02 2016 16:38 UTC
oh openUO
good idea
where at in openUO?
ah found it
similar to ultimaxna
Jeff Boulanger
@jeffboulanger
Apr 02 2016 16:43 UTC
D
What format are you trying to read into
Marcelo Paez
@paezao
Apr 02 2016 16:43 UTC
did you code that?
gonna display it on screen using SDL
Jeff Boulanger
@jeffboulanger
Apr 02 2016 16:44 UTC
Yes I did
Marcelo Paez
@paezao
Apr 02 2016 16:44 UTC
cool
so basically
im trying to read a texture first
since it seems to be simpler
so it says textures can be 64x64 or 128x128
Jeff Boulanger
@jeffboulanger
Apr 02 2016 16:45 UTC
K that texture code is specific to paradox3d I think
Oh ya
U mean texmaps
Marcelo Paez
@paezao
Apr 02 2016 16:45 UTC
yes
but thats in pixels right
Jeff Boulanger
@jeffboulanger
Apr 02 2016 16:45 UTC
Yes
Marcelo Paez
@paezao
Apr 02 2016 16:46 UTC
so x 2 to get it in bytes
8192 bytes
Jeff Boulanger
@jeffboulanger
Apr 02 2016 16:46 UTC
Been a while I don't remember if texmaps r 16 or 32 bbp
Marcelo Paez
@paezao
Apr 02 2016 16:47 UTC
short
so 16
Jeff Boulanger
@jeffboulanger
Apr 02 2016 16:47 UTC
K
according to this lol
Marcelo Paez
@paezao
Apr 02 2016 16:50 UTC
*cur++ = (ushort)(bin.ReadUInt16() ^ 0x8000);
what does that do?
the ^ operator
lol
it worked!
Aleksandr Denisov
@alerdenisov
Apr 02 2016 16:51 UTC
this is XOR
Marcelo Paez
@paezao
Apr 02 2016 16:51 UTC
ahh nice
why is it used there?
Aleksandr Denisov
@alerdenisov
Apr 02 2016 16:52 UTC
what are you doing?
Marcelo Paez
@paezao
Apr 02 2016 16:52 UTC
trying to create a uo client in rust
and sdl
Aleksandr Denisov
@alerdenisov
Apr 02 2016 16:52 UTC
Oh..)
Marcelo Paez
@paezao
Apr 02 2016 16:52 UTC
well now Im trying to read mul files and draw on screen
Aleksandr Denisov
@alerdenisov
Apr 02 2016 16:53 UTC
why rust?
just contribute to UltimaXNA :)
Marcelo Paez
@paezao
Apr 02 2016 16:53 UTC
I would
but windows only :(
it kills it for me
and rust is great =D
Aleksandr Denisov
@alerdenisov
Apr 02 2016 16:54 UTC
Yes it is
Marcelo Paez
@paezao
Apr 02 2016 16:54 UTC
you use it>
Aleksandr Denisov
@alerdenisov
Apr 02 2016 16:54 UTC
but I think it isnt ready to game dev
a little
Marcelo Paez
@paezao
Apr 02 2016 16:55 UTC
why dont you think its ready for game dev?
Aleksandr Denisov
@alerdenisov
Apr 02 2016 16:55 UTC
Because It's very young and haven't much infrastructure
Marcelo Paez
@paezao
Apr 02 2016 16:55 UTC
its going well
ah sure
work is being done though
Aleksandr Denisov
@alerdenisov
Apr 02 2016 16:56 UTC
everything need to be done from scratch
Marcelo Paez
@paezao
Apr 02 2016 16:56 UTC
vulkan bindings
etc
gfx
sdl
it sure is still in its infancy though
Marcelo Paez
@paezao
Apr 02 2016 17:20 UTC
hey jeff
do you know anything about the way art.mul date is setup?
I mean did they ignore alpha pixels and just saved the colored ones?
Jeff Boulanger
@jeffboulanger
Apr 02 2016 17:21 UTC
It's run length encoded and I believe black is transparent
Oh alpha is 1 bit
It's 1 5 5 5
I believe
Marcelo Paez
@paezao
Apr 02 2016 17:22 UTC
yes
thats right
thing is they just save colored pixels
so you have to setup your pixels in a way to form the diamond shaped texture
Jeff Boulanger
@jeffboulanger
Apr 02 2016 17:24 UTC
No it's run length encoded
Marcelo Paez
@paezao
Apr 02 2016 17:24 UTC
what does that mean? sorry
Jeff Boulanger
@jeffboulanger
Apr 02 2016 17:25 UTC
look it up to much to explain from my phone
Marcelo Paez
@paezao
Apr 02 2016 17:25 UTC
okay np :D
ahh okay
I know what that is
gumps are RLE
Jeff Boulanger
@jeffboulanger
Apr 02 2016 17:41 UTC
ya a lot of things are :)