[Linux Lobby] AFLobby Beta 3.9.7 - Page 19

[Linux Lobby] AFLobby Beta 3.9.7

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

Moderator: Moderators

cowking
Posts: 16
Joined: 07 Mar 2007, 16:33

Post by cowking »

own3d wrote:Autopackage fell on its face long ago, the best solution is just a binary in an archive as before but maybe packaged with spring so its just 1 linux download?
I agree. AF thanks for keeping up the good work!
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I've fixed a bug with pm windows that lets you have multiple pm windows for the same user via logging in and out. There's also logged in and out messages on pm windows and aflobby now goes back to the login page on a disconnect and pops up a message.

Also I forgot to mention the agreement on registering now shows proper RTF formatting.

I'm going to add 'user went ingame' messages too in pm windows, and the small white spaces next to messages in multiline messages are going to become timestamps instead.

I also fixed channel messages and line accumulation (emulated multiline messages), and gray timestamps have now been added in the space between now and the previous paragraph along with a row of pretty icons!

Image

After that I have the following checklist:

- Change the start tab so it looks presentable
- Call unitsync for spring version and handle checking for updates so tobis test server can be used
- Create a settings panel with a tasclient perform list script
- add the /say command for use in above list
- add a /sendtraffic command for above list
- makes the battle window set the minimap to not found if the min changes and the user doesnt have the new map.
- turn urls into hyperlinks and open them in the default browser using the new class I added.
- add a button under exit channel labelled 'join on login' for autoadding to the above list.

And I know sometimes what I write makes me sound like I'm being an ass, so thanks for putting up with me ^_^.

And big thanks to relative/hellcom for the torrent of bug reports and daily tests.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

AF wrote:http://www.darkstars.co.uk/randomfiles/ ... ndings.cpp

Updated with spring version and some line ending fixes.
Committed.

Do you test the version from buildbot (test installer) at times to check it works correctly?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

no, I still have the java class named as JUnitsync so relative can carry on using it, I dont want to rename and start using your buildbot builds untill somebody has a linux build of the new unitsync to give to linux testers. Otherwise people will just get masses of JNI error windows.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Added user went ingame came out of game emssages to pm windows, timestamps done, added the extra commands, fixed a connection class bug I found testing cookiebot.

I also added a settings tab and the logon script, aka perform list in tasclient, only this ones more flexible and can have protocol commands sent, channel messages, and comments(if a line isnt command its a comment).

I've also added a button to channels that adds /j channelname to the end of the list.

Image

And here's the new settings panel, more tabs wil be added as new options are added.

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

Post by AF »

todo:

- make AFLobby get spring version n# and handle REQUESTUPDATE
- pretty up the start tab
- turn urls into hyperlinks

I'll need a linux build of unitsync to complete the first one.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Image

1 down two to go.
User avatar
Relative
Posts: 1371
Joined: 15 Oct 2006, 13:17

Post by Relative »

Looks like you are pulling an all nighter :wink: Good Luck
User avatar
clericvash
Posts: 1394
Joined: 05 Oct 2004, 01:05

Post by clericvash »

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

Post by AF »

The start tab shows the TASServer stats page now.

Now someone needs to build unitsync for linux using the new JNI bindings in the svn.
own3d
Posts: 129
Joined: 25 Aug 2006, 16:31

Post by own3d »

I can compile unitsync just not sure about how to do these bindings, any hints?
User avatar
Relative
Posts: 1371
Joined: 15 Oct 2006, 13:17

Post by Relative »

A little stack trace for you. Lobby locked up, not sure what action may of caused it to occur, and have not been able to recreate this particular one.

Code: Select all

[Loaded java.io.InterruptedIOException from shared objects file]
[Loaded javax.swing.SystemEventQueueUtilities$RunnableCanvas from shared objects file]
[Loaded javax.swing.SystemEventQueueUtilities$RunnableCanvasGraphics from shared objects file]
[Loaded sun.awt.X11.XDestroyWindowEvent from shared objects file]
[Loaded java.awt.Component$FlipBufferStrategy from shared objects file]
JSync Setup
Exception in thread "Timer-0" java.lang.NullPointerException
        at aflobby.CProtocol.ProcessEvents(CProtocol.java:132)
        at aflobby.CProtocol.Update(CProtocol.java:262)
        at aflobby.JCUpdateTask.run(CProtocol.java:34)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
[Loaded sun.reflect.GeneratedMethodAccessor10 from __JVM_DefineClass__]
[Loaded sun.reflect.GeneratedMethodAccessor11 from __JVM_DefineClass__]
[Loaded sun.misc.Signal$1 from /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/rt.jar]
[Loaded java.io.DeleteOnExitHook from shared objects file]
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Compile the unitsync in svn. You'll need java 6 dev kit/JDK to build it.

Relative, that stack trace makes no sense when you look at the code

Code: Select all

    ArrayList<CEvent> events = new ArrayList<CEvent>();
    void ProcessEvents (){
        if(events.isEmpty ()){
            return;
        }
        ArrayList<CEvent> temp = new ArrayList<CEvent>();
        for(int i = 0; i < events.size (); i++){
            temp.add (events.get (i)); // why didnt it crash here?
        }
        //temp.addAll(events);
        events.clear (); // or here?
        Iterator<CEvent> i = temp.iterator (); // or here?
        while(i.hasNext ()){ // line 132
            CEvent e = i.next (); // a single line was added in a function further up so this is probs the crashpoint
            if(e.data[0].equalsIgnoreCase ("JDISCONNECTED")==true){
                try {
                    wait (50);
This will need a newer beta 1 build to be tested but I cant see why it'd crash. Itd crash if 'i' was null, which means 'temp' is null or empty, but that cant be possible because events has to be empty for that to happen and there's a check at the start of the functionf ro that =s.. Unless a null object was added to events.
Lippy
Posts: 327
Joined: 16 Jul 2006, 00:24

Post by Lippy »

Hey, AF, is it possible to integrate Kloot's nice linux configuration utility; http://spring.clan-sy.com/phpbb/viewtop ... n+settings
or maybe you could add something similar yourself. It would be nice to keep everything in 1 package.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Its not java so no, however I would do that for beta 2
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post by PauloMorfeo »

PauloMorfeo wrote:
paulo@portatil:~/Desktop/nova pasta$ sh aflobby.sh make sure AFLobby and libunitsync.so is in your current working folder
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
at java.awt.Toolkit.getDefaultToolkit(libgcj.so.7)
at java.awt.EventQueue.invokeLater(libgcj.so.7)
at javax.swing.SwingUtilities.invokeLater(libgcj.so.7)
at aflobby.Main.main(Main.java:87)
Caused by: java.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkToolkit
at java.lang.Class.forName(libgcj.so.7)
at java.lang.Class.forName(libgcj.so.7)
at java.awt.Toolkit.getDefaultToolkit(libgcj.so.7)
...3 more
...
Found out what must be wrong:
paulo@portatil:~$ java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.0 (Ubuntu 4.1.0-1ubuntu8)

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
No wonder it doesn't works. Java 1.4 instead of the minimum required of Java 1.5...

What i don't understand is that it seems that i have the Java from Sun also installed, that one 1.5 or 1.6(?), which is what Netbeans needs to execute. I must have chosen to install both the "open" java as well as Sun's Java and, now, calling "java" from the command line is linking to the "open" one (1.4).
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

odd

btw:

return input.replaceAll ("(http:|ftp:|teamspeak:|https:|ftps:|file|www\\.|ftp\\.|://)[a-z0-9/~_:#?&=\\.-]*[a-z0-9/]","<a href=\"$0\">$0</a>").replaceAll ("href=\"www.","href=\"http://www.");

this rgex messes up <img> tags could someone fix it so that it doesnt foober them up?
own3d
Posts: 129
Joined: 25 Aug 2006, 16:31

Post by own3d »

I have a (linux) unitsync with the Java bindings right here:
http://www.ashu39.dsl.pipex.com/unitsync.tar.gz
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

thankyou.

Todo:
- the requestupdate stuff and spring version checking
- fix urls and the regex
User avatar
Relative
Posts: 1371
Joined: 15 Oct 2006, 13:17

Post by Relative »

The new AFLobby you gave me doesn't seem to work with either the new or old unitsync.

Code: Select all

Exception in thread "Timer-4" java.lang.UnsatisfiedLinkError: aflobby.CUnitSyncJNIBindings.Init(ZI)I
        at aflobby.CUnitSyncJNIBindings.Init(Native Method)
        at aflobby.CSync.Setup(CSync.java:76)
        at aflobby.LoginTask.run(JLoginPanel.java:20)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
Post Reply

Return to “Linux”