These are chat archives for ZaneDubya/UltimaXNA

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