bfops/playform

ttf panic when starting client

acerix opened this issue · 5 comments

I can't figure out this error when I try to launch the client:

thread '<main>' panicked at 'assertion failed: !p.is_null()', src/playform-master/client/lib/src/ttf.rs:97

Am I missing a font? I have sdl2_ttf installed.

Also, both client and server are running with over 100% CPU usage at this point: http://imgur.com/FIxFDR8

Let me know how I can provide more info. Thanks!

bfops commented

Oops, I should fix that error message. It means no font was found. Are you running from the root directory or from the client/bin directory? It looks for the fonts in a fonts folder in the current directory.

I have the client binary installed as /usr/bin/playform, and run it from my home directory with the command: "playform".

I just installed ttf-ubuntu-font-family and ttf-opensans, but it didn't help. Is there another font package I need?

bfops commented

The text is removed in master.

bfops commented

Ah I haven't paid any attention to how cargo install works. I've just been using cargo build and cargo run. I think it should work now though!

Awesome, it works now! Thanks!