[Linux Lobby] AFLobby Beta 3.9.7 - Page 2

[Linux Lobby] AFLobby Beta 3.9.7

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I dont use linux so you'll have to find a second person who can rcreate this error.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I've tested out some window resizing code in the next version and it seems to work well, save a few graphical issues, for example the close button at the top doesnt stay at the right as the window gets wider.
User avatar
det
Moderator
Posts: 737
Joined: 26 Nov 2005, 11:22

Post by det »

AFLobby wont work with Java5 as the GTK support is completely broken. Java6 has no graphical issues for me. I do have a problem when I enter my information and click the login button, however.
Exception in thread "Timer-2" java.lang.NumberFormatException: For input string: "*"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.parseInt(Integer.java:497)
at aflobby.JConnection.ProcessEvents(JConnection.java:143)
at aflobby.JConnection.Update(JConnection.java:252)
at aflobby.JCUpdateTask.run(JConnection.java:31)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

As I said before, betalord changed the protocol and as such the TASSERVER command sent at startup is no longer compatible with AFLobby alpha 11.3 or older.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Image

I have a few UI improvements for alpha 12. See in that screenshot at the top, the click here to view pages? Clicking it pulls out a page with thumbnails of every single page or window in AFLobby all grouped into categories.

As you can see I've resized that page too, and it works, although some items arent quite correctly placed, thats being worked on.

Screenshot taken in Vista Business edition.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Image

Further progress
own3d
Posts: 129
Joined: 25 Aug 2006, 16:31

Post by own3d »

AF wrote:Image

Further progress
I saw this and collected a few possible icons for it all 128x128 which is the biggest they come
http://www.ashu39.dsl.pipex.com/possibleicons.zip
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I was meant to ahve thumbnails. It was setup to create an image out of each JView component and then draw it, but they all show up as white boxes =(

So I thought about icons but its nice to know someone pre-empted me.

I like splash.png and the keyboard. Not so sure about the styles but fiddling the colour scheme of the files would work. Perhaps if they're made semi translucent white with a few simplifications of details.

Anyways, right now the feature is fully functional save the thumbnail glitch.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

ImageImageImage

Download alpha12 here

Changelog

- Battle Sync with tasclient
- Battle window Map picker
- GUI colour changes
- Pull down page switcher
- Protocol support changes for TASServer 0.33
- Numerous small fixes
- Minimap loading progress screen
- Minimap showing in battle window
- Main Window resizing
- UI resizing and alignment fixes
- Pages are now only need as and when they're needed
- Java UnitSync bindings
- New version notification
Last edited by AF on 12 Feb 2007, 02:38, edited 1 time in total.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

User avatar
Relative
Posts: 1371
Joined: 15 Oct 2006, 13:17

Post by Relative »

I think I'm missing some dependences or I have done something wrong. Do you have a readme file or some instructions. When I try to run the .jar I get this:

Image

Running ubuntu edgy 6.10

Edit: If I hover over areas I can find "log into lobby" etc..., but it's still a little borked. Also, I cannot seem to log in, when I press "go" nothing happens.

Edit 2: Command line output

Code: Select all

~/Desktop/AFLobby_alpha12.zip_FILES$ java -jar "AFLobby.jar"
/usr/share/themes/Human/gtk-2.0/gtkrc:70: Engine "ubuntulooks" is unsupported, ignoring
/usr/share/themes/Human/gtk-2.0/gtkrc:240: Priority specification is unsupported, ignoring
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: javax/swing/GroupLayout$Group
        at aflobby.LMain.AddView(LMain.java:626)
        at aflobby.LMain.formWindowOpened(LMain.java:439)
        at aflobby.LMain.access$300(LMain.java:54)
        at aflobby.LMain$3.windowOpened(LMain.java:152)
        at java.awt.Window.processWindowEvent(Window.java:1187)
        at java.awt.Window.processEvent(Window.java:1148)
        at java.awt.Component.dispatchEventImpl(Component.java:3955)
        at java.awt.Container.dispatchEventImpl(Container.java:2024)
        at java.awt.Window.dispatchEventImpl(Window.java:1778)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Are you using Sun Java or another Java vm? And does it correct itself temporarily when you resize the window?

Perhaps its soemthign todo with the java runtime, I use Java 6, so if someone on windows could test using java 5 if thats what you're using.

I changed the main viewpoint to a latered pane and then put the old pane inside it so that I could use several main views, such as the page picker screen.

By the way does anybody notice that these sorts of graphical issues mainly arise with ubuntu users? I've not noticed any reports outside ubuntu of these things.
User avatar
Relative
Posts: 1371
Joined: 15 Oct 2006, 13:17

Post by Relative »

AF wrote:Are you using Sun Java or another Java vm?
How do I find out, I used http://www.getautomatix.com/ to get java. All I know is that I am using Java 5 runtime.
And does it correct itself temporarily when you resize the window?
I am unable to resize it.
By the way does anybody notice that these sorts of graphical issues mainly arise with ubuntu users? I've not noticed any reports outside ubuntu of these things.
That might be simply because ubuntu is the most popular desktop flavor right now.
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Post by BrainDamage »

running mandriva 2007 here, and sun java 6; the grafics works (& i can resize the window)

i'm stuck in the login screen as well, i think it cannot find the correct unitsync library/bindings in linux.

here's the stdout report after i try to login.
Exception in thread "Timer-5" java.lang.UnsatisfiedLinkError: no unitsync in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at aflobby.JUnitSync.LoadUnitSync(JUnitSync.java:29)
at aflobby.JSync.Setup(JSync.java:38)
at aflobby.JChannelView.Initialize(JChannelView.java:74)
at aflobby.JChannelView.<init>(JChannelView.java:50)
at aflobby.JLoginPanel.NewEvent(JLoginPanel.java:227)
at aflobby.LMain.ProcessEvents(LMain.java:552)
at aflobby.LMain.Update(LMain.java:451)
at aflobby.UpdateTask.run(LMain.java:49)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
Last edited by BrainDamage on 12 Feb 2007, 13:02, edited 1 time in total.
User avatar
Relative
Posts: 1371
Joined: 15 Oct 2006, 13:17

Post by Relative »

I'm getting Java 6 runtime right now. I'll get back to you once I'm done.

Edit: All visuals are perfect under Java 6, but I cannot log in. It just stays on a "logging in" screen. If I input the incorrect password or username it can identity it saying that it is incorrect. So it is connecting to the server.

Do I need to place the .jar in a certain directory?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

ah yes, kloot said he'd get a version of unitsync with java bindings.

If you cant wait, look in the Mac OS C thread towards the end where I've linked to the necessary file that needs compiling into unitsync.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

http://www.darkstars.co.uk/randomfiles/ ... itSync.cpp
compile unitsync.so with this file added in. You'll need to have the java jdk to build it for JNI.h, but do share it if you build it!
own3d
Posts: 129
Joined: 25 Aug 2006, 16:31

Post by own3d »

Relative wrote:
AF wrote:Are you using Sun Java or another Java vm?
How do I find out, I used http://www.getautomatix.com/ to get java. All I know is that I am using Java 5 runtime.
And does it correct itself temporarily when you resize the window?
I am unable to resize it.
By the way does anybody notice that these sorts of graphical issues mainly arise with ubuntu users? I've not noticed any reports outside ubuntu of these things.
That might be simply because ubuntu is the most popular desktop flavor right now.
Repeated exactly on my install ubuntu 6.10 running gnome I will test under kde its still this GTK problem when is JAVA 6 comming out?
User avatar
Relative
Posts: 1371
Joined: 15 Oct 2006, 13:17

Post by Relative »

own3d wrote: Repeated exactly on my install ubuntu 6.10 running gnome I will test under kde its still this GTK problem when is JAVA 6 comming out?
It's not out officially yet for some unknown reason (ubuntu can be slow at this sort of thing) for (k)(x)ubuntu, but you can install it manually by getting it at java sun. That's what I did.
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

JNI-aware UnitSync.so available here

Dump the file next to AFLobby.jar and rename it to 'unitsync.so', that should give you a fully functional lobby.
Post Reply

Return to “Linux”