Sphereserver / Source

http://spherecommunity.net
Apache License 2.0
108 stars 58 forks source link

SAY on Linux Build #171

Closed youhide closed 4 years ago

youhide commented 5 years ago

try speech (SAY) something on linux build... got a weird behavior console prints only one char and on screen random even we cant pass commands on char like .gm

Screen Shot 2018-10-12 at 12 32 55 Screen Shot 2018-10-12 at 12 33 15 Screen Shot 2018-10-12 at 12 33 38

correct here is "hideOut"

Screen Shot 2018-10-12 at 12 32 38

Fernandomr88 commented 5 years ago

image

all messed up

coruja747 commented 5 years ago

usually these weird chars means incompatibility between 32/64bit arch

sphere is 32bit, so try check if your installed packages used by sphere are 32bit, and if you're compiling using gcc/cmake try check if "-march=i686 -m32" is set on compiler flags to force it build using 32bit

youhide commented 5 years ago

@coruja747 Im not compiling it, get it from sphere downloads page... btw I try compiling it too... same behaviour. 😢

Fernandomr88 commented 5 years ago

I compiled an older version from 2017 in the same computer, it worked. this last one didn't. So I tried to download the compiled version from sphere website, same problem. Not only speak but player name, gump text, all messed up.

coruja747 commented 5 years ago

try using these builds to check if works 720: https://ci.appveyor.com/api/buildjobs/6f9r3nlnpxgsdgj5/artifacts/SphereSvr-Linux32.tar.gz 721: https://ci.appveyor.com/api/buildjobs/fb5x6eu9wxq7df16/artifacts/SphereSvr-Linux32.tar.gz

youhide commented 5 years ago

try using these builds to check if works 720: https://ci.appveyor.com/api/buildjobs/6f9r3nlnpxgsdgj5/artifacts/SphereSvr-Linux32.tar.gz 721: https://ci.appveyor.com/api/buildjobs/fb5x6eu9wxq7df16/artifacts/SphereSvr-Linux32.tar.gz

same thing :(

youhide commented 5 years ago

this must be fixed my son

Lord British appreciate your help!

coruja747 commented 5 years ago

Probably it's something related to your OS, I'm testing here on ubuntu 18 and it seems to be working fine. Try use these commands to make sure the system have full support to run 32bit apps

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get dist-upgrade
coruja747 commented 4 years ago

Fixed https://github.com/Sphereserver/Source/commit/fe0d8f63a872038b2cadc213b9dc937cf4ecf8fd

This was caused by wchar_t, for some unknown reason wchar_t works fine on some PC's but sometimes even this same PC running the same OS doesn't have proper wchar_t headers, and without wchar_t declared correctly sphere won't be able to parse correctly texts based on wide-chars. I just updated the WCHAR typedef from "wchar_t" to "unsigned short" which is a universal value compatible with any OS and now it seems to be working fine