bfops / playform

Voxel sandbox project in Rust
http://playformdev.blogspot.ca/
MIT License
212 stars 24 forks source link

ttf panic when starting client #174

Closed acerix closed 8 years ago

acerix commented 8 years ago

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 8 years ago

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.

acerix commented 8 years ago

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 8 years ago

The text is removed in master.

bfops commented 8 years ago

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!

acerix commented 8 years ago

Awesome, it works now! Thanks!