Holo Themed Skin

Talk about graphics, 3D models, nice sprite sheets, music, sound effects and anything related to the presentation of your game (not code :)).

Re: Holo Themed Skin

Postby exq_bytes » Tue Oct 15, 2013 1:02 pm

I'm getting the above error too. It only occurs when trying to use the xhdpi skins. Here's the error reported:

Code: Select all
Exception in thread "LWJGL Application" com.badlogic.gdx.utils.SerializationException: Error reading file: ui/Holo-dark-xhdpi.json
   at com.badlogic.gdx.scenes.scene2d.ui.Skin.load(Skin.java:96)
   at com.badlogic.gdx.scenes.scene2d.ui.Skin.<init>(Skin.java:73)
   at com.bc.memorytestandroid.Menu.<init>(Menu.java:39)
   at com.bc.memorytestandroid.Game.create(Game.java:37)
   at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:132)
   at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:112)
Caused by: com.badlogic.gdx.utils.SerializationException: Error reading file: ui/Holo-dark-xhdpi.json
   at com.badlogic.gdx.utils.Json.fromJson(Json.java:640)
   at com.badlogic.gdx.scenes.scene2d.ui.Skin.load(Skin.java:94)
   ... 5 more
Caused by: com.badlogic.gdx.utils.SerializationException: Error loading bitmap font: ui/Roboto-Thin-xhdpi.fnt
   at com.badlogic.gdx.scenes.scene2d.ui.Skin$3.read(Skin.java:464)
   at com.badlogic.gdx.scenes.scene2d.ui.Skin$3.read(Skin.java:442)
   at com.badlogic.gdx.utils.Json.readValue(Json.java:817)
   at com.badlogic.gdx.scenes.scene2d.ui.Skin$1.readValue(Skin.java:410)
   at com.badlogic.gdx.utils.Json.readValue(Json.java:787)
   at com.badlogic.gdx.scenes.scene2d.ui.Skin$2.readNamedObjects(Skin.java:431)
   at com.badlogic.gdx.scenes.scene2d.ui.Skin$2.read(Skin.java:420)
   at com.badlogic.gdx.scenes.scene2d.ui.Skin$2.read(Skin.java:416)
   at com.badlogic.gdx.utils.Json.readValue(Json.java:817)
   at com.badlogic.gdx.scenes.scene2d.ui.Skin$1.readValue(Skin.java:410)
   at com.badlogic.gdx.utils.Json.fromJson(Json.java:638)
   ... 6 more
Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Error loading font file: ui/Roboto-Thin-xhdpi.fnt
   at com.badlogic.gdx.graphics.g2d.BitmapFont$BitmapFontData.<init>(BitmapFont.java:971)
   at com.badlogic.gdx.graphics.g2d.BitmapFont.<init>(BitmapFont.java:107)
   at com.badlogic.gdx.scenes.scene2d.ui.Skin$3.read(Skin.java:455)
   ... 16 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 2
   at com.badlogic.gdx.graphics.g2d.BitmapFont$BitmapFontData.<init>(BitmapFont.java:836)
   ... 18 more
exq_bytes
 
Posts: 339
Joined: Sun Jun 10, 2012 5:58 pm

Re: Holo Themed Skin

Postby mars3142 » Thu Oct 17, 2013 4:56 pm

I found the error with the new nightlies. The hint, that only the XHDPI package is corrupt, helped a lot...

The file Roboto-Thin-xhdpi.fnt line 2 is

Code: Select all
common lineHeight=59 base=47 scaleW=256 scaleH=512 pages=2 packed=0

but the font has no 2 pages, so change this line into

Code: Select all
common lineHeight=59 base=47 scaleW=256 scaleH=512 pages=1 packed=0

and it worked with the nightlies.

Thanks for this hint ;)
mars3142
 
Posts: 49
Joined: Thu Apr 25, 2013 7:25 am
Location: Hamburg/Germany

Re: Holo Themed Skin

Postby exq_bytes » Thu Oct 17, 2013 7:19 pm

Excellent, cheers for that.
exq_bytes
 
Posts: 339
Joined: Sun Jun 10, 2012 5:58 pm

Re: Holo Themed Skin

Postby Ajmalk » Sun Oct 27, 2013 2:16 pm

Hey why is there such a large padding around labels when using this font? And how do I change that? I want the labels to be as close to each other as possible with no space between them.
Ajmalk
 
Posts: 2
Joined: Sun Oct 28, 2012 12:39 pm

Re: Holo Themed Skin

Postby jrenner » Mon Jan 27, 2014 5:18 am

I used an altered version of this skin in my game: http://www.superior-tactics.com
Superior Tactics - tactical spaceship battles RTS
Google Play: https://play.google.com/store/apps/deta ... r.superior
jrenner
 
Posts: 520
Joined: Sun Apr 14, 2013 5:09 am

Re: Holo Themed Skin

Postby mars3142 » Sun Feb 16, 2014 10:36 am

Can the font be converted into UTF-8, because the nightlies use it.

See viewtopic.php?f=11&t=12516 for more information.

PS: You can test it with german umlauts (ÄÖÜ), which are not visible with the nightlies.
mars3142
 
Posts: 49
Joined: Thu Apr 25, 2013 7:25 am
Location: Hamburg/Germany

Re: Holo Themed Skin

Postby cabrimmr » Tue Mar 11, 2014 10:08 am

Hi, thank you for sharing it. It is great. I find the font a bit blurred, am I doing something wrong? or is it meant to be in this way?
cabrimmr
 
Posts: 151
Joined: Wed Feb 12, 2014 7:50 am
Location: Moon, the unseen side

Re: Holo Themed Skin

Postby HolyCow » Tue Apr 29, 2014 10:59 am

I was looking for it! Thanks!
HolyCow
 
Posts: 10
Joined: Tue Apr 29, 2014 10:56 am

Re: Holo Themed Skin

Postby AndrewM16921 » Sun Aug 24, 2014 3:14 am

Great skin, thanks for making it!
AndrewM16921
 
Posts: 11
Joined: Sat Mar 26, 2011 10:58 pm

Re: Holo Themed Skin

Postby wolfieee » Thu Sep 15, 2016 12:31 am

How would I take the "raw" files, switch out the fonts, then build new skins?

I see the raw files can be had here: https://github.com/czyzby/gdx-skins/tree/master/holo

But I don't see any scripts or info on how to go from raw to skin ...

(I need glyphs not supplied in the existing font files)
wolfieee
 
Posts: 230
Joined: Sun May 20, 2012 1:59 am

PreviousNext

Return to Game Art

Who is online

Users browsing this forum: No registered users and 3 guests