Theme Creation

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

Re: Theme Creation

Postby Kryo » 25 Feb 2012, 01:46

thygrrr wrote:The themes are 4 MB each, so maybe not. But I wanted to move themes into Appdata and then we and others can distribute them as installables (dont have to be MSIs, could be ZIPs. I'll work something out. Because themes have so much control over the ui, they need to be updated along with the lobby.

Maybe we can, rather than PNGs, use JPGs for the larger images.


well if we already talk about file size: while the update always be handled via a full client download (18mb currently)? or will you try to have a update tool that will only download changed files?
Kryo
Evaluator
 
Posts: 518
Joined: 12 Sep 2011, 15:13
Has liked: 0 time
Been liked: 0 time
FAF User Name: Kryo

Re: Theme Creation

Postby thygrrr » 25 Feb 2012, 10:58

It's not that easy, trust me. Either you need some program component that runs with admin rights, or you have to create incremental MSI patches (MSPs).

It's not a priority but some improvement will come in that area.
I waited ten years for Supreme Commander (1997-2007)
and have not a single day felt disappointed with it!

Image
User avatar
thygrrr
Contributor
 
Posts: 783
Joined: 18 Nov 2011, 17:08
Location: Germany
Has liked: 2 times
Been liked: 3 times

Re: Theme Creation

Postby ozonex » 25 Feb 2012, 14:58

if i use jpg and gif files theme size will be reduced to 1mb or even less, but they dont work at the moment
FAF Map Editor Alpha v0.605 > Get it now!
User avatar
ozonex
Priest
 
Posts: 358
Joined: 16 Feb 2012, 20:11
Location: Poland
Has liked: 197 times
Been liked: 263 times
FAF User Name: ozonex

Re: Theme Creation

Postby thygrrr » 25 Feb 2012, 16:39

Interesting, I'll see how I can get them to work.
I waited ten years for Supreme Commander (1997-2007)
and have not a single day felt disappointed with it!

Image
User avatar
thygrrr
Contributor
 
Posts: 783
Joined: 18 Nov 2011, 17:08
Location: Germany
Has liked: 2 times
Been liked: 3 times

Re: Theme Creation

Postby Ze_PilOt » 25 Feb 2012, 16:46

You need to pack these dll :

site-packages\PyQt4\plugins\imageformats\qjpeg4.dll
site-packages\PyQt4\plugins\imageformats\qgif4.dll

Don't ask my why png is working without.
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
User avatar
Ze_PilOt
Supreme Commander
 
Posts: 8985
Joined: 24 Aug 2011, 18:41
Location: fafland
Has liked: 18 times
Been liked: 376 times
FAF User Name: Ze_PilOt

Re: Theme Creation

Postby thygrrr » 25 Feb 2012, 20:16

WOW, SVG SUPPORT! O.O

Will be packaged in the next builds, moved it to my _lib dir for setup.py.
I waited ten years for Supreme Commander (1997-2007)
and have not a single day felt disappointed with it!

Image
User avatar
thygrrr
Contributor
 
Posts: 783
Joined: 18 Nov 2011, 17:08
Location: Germany
Has liked: 2 times
Been liked: 3 times

Re: Theme Creation

Postby thygrrr » 04 Mar 2012, 18:46

If your lobby crashes with an error at startup, DELETE YOUR THEMES (all of them) and restart!
I waited ten years for Supreme Commander (1997-2007)
and have not a single day felt disappointed with it!

Image
User avatar
thygrrr
Contributor
 
Posts: 783
Joined: 18 Nov 2011, 17:08
Location: Germany
Has liked: 2 times
Been liked: 3 times

Re: Theme Creation

Postby Lu_Xun_17 » 09 Mar 2012, 11:26

really nice themes there!
User avatar
Lu_Xun_17
Contributor
 
Posts: 860
Joined: 31 Aug 2011, 22:56
Has liked: 17 times
Been liked: 224 times
FAF User Name: LuXy

Re: Theme Creation

Postby thygrrr » 21 Mar 2012, 22:02

Themes will change in the next version(s):
  • they go into %COMMONAPPDATA%/FAForever/themes (C:\ProgramData\FAForever\themes for most of your)
  • they require a copy of the "version" file from the latest install of the lobby or they will be deactivated for safety (so people don't get crashes before they can even login)

I will create an installable demo theme soon (this might or might not turn into an official theme pack, we are looking for a maintainer for this!). I recommend AdvancedInstaller or any other software that makes decent install packages. :)

Note: Currently, themes will be made incompatible by every new build. This will change in 0.7 or 0.8 when existing GUI elements will have less drastic changes per patch.
I waited ten years for Supreme Commander (1997-2007)
and have not a single day felt disappointed with it!

Image
User avatar
thygrrr
Contributor
 
Posts: 783
Joined: 18 Nov 2011, 17:08
Location: Germany
Has liked: 2 times
Been liked: 3 times

Re: Theme Creation

Postby thygrrr » 22 Mar 2012, 00:37

Okay, here's a theme in installable form, plus a new version of the client:
faf-uef-theme.zip
(432 KiB) Downloaded 354 times


Client:
http://faforever.com/faf/FAForeverLobby-376.msi


Please note this is for reference use by theme creators, this may crash hard depending on what you try! :] The theme will also instantly break as soon as a different client version is installed (it will refuse to load it, safely). Later versions, probably starting with 0.7 or so, will use a special UI versioning scheme so themes can stay valid for more patch levels. There are simply too many tricky UI changes going on while we are in beta so I have to invalidate themes every time or risk locking a lot of people out by accident.

Good news: I also added a "Reload Stylesheet" option to the theme menu so you can quickly check most changes while editing your stylesheet (no reconnect needed).

Caveat for theme creators: If you look into the client.css file of the sample installer of ozonex's UEF Theme I added, you will see a placeholder named "%THEMEPATH%" used in image urls, that's important and points to the directory your theme was loaded from (so people can rename your themes and qt knows where to find your images). Don't hardcode the paths in there please (themes might fail terribly on windows XP otherwise).

Speaking of WindowsXP, I need a volunteer to test this on XP for me. :)
I waited ten years for Supreme Commander (1997-2007)
and have not a single day felt disappointed with it!

Image
User avatar
thygrrr
Contributor
 
Posts: 783
Joined: 18 Nov 2011, 17:08
Location: Germany
Has liked: 2 times
Been liked: 3 times

PreviousNext

Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest