Page 28 of 49

Posted: 20 Jun 2007, 10:39
by Drezil

Code: Select all

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at aflobby.CChannel$ComboBoxRenderer.getListCellRendererComponent(CChannel.java:149)
        at javax.swing.plaf.synth.SynthComboBoxUI.paintCurrentValue(SynthComboBoxUI.java:175)
        at javax.swing.plaf.synth.SynthComboBoxUI.paint(SynthComboBoxUI.java:150)
        at javax.swing.plaf.synth.SynthComboBoxUI.update(SynthComboBoxUI.java:135)
        at javax.swing.JComponent.paintComponent(JComponent.java:758)
        at javax.swing.JComponent.paint(JComponent.java:1022)
        at javax.swing.JComponent.paintChildren(JComponent.java:859)
        at javax.swing.JComponent.paint(JComponent.java:1031)
        at javax.swing.JComponent.paintChildren(JComponent.java:859)
        at javax.swing.JComponent.paint(JComponent.java:1031)
        at javax.swing.JComponent.paintChildren(JComponent.java:859)
        at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1026)
        at javax.swing.JComponent.paint(JComponent.java:1031)
        at javax.swing.JComponent.paintChildren(JComponent.java:859)
        at javax.swing.JComponent.paint(JComponent.java:1031)
        at javax.swing.JComponent.paintChildren(JComponent.java:859)
        at javax.swing.JComponent.paint(JComponent.java:1031)
        at javax.swing.JComponent.paintToOffscreen(JComponent.java:5104)
        at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1386)
        at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1317)
        at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:301)
        at javax.swing.RepaintManager.paint(RepaintManager.java:1132)
        at javax.swing.JComponent._paintImmediately(JComponent.java:5052)
        at javax.swing.JComponent.paintImmediately(JComponent.java:4862)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:727)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:683)
        at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:663)
        at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:128)
at *snip*
when using the chat (i'll get that exception every time when any component should be rendered).

Posted: 20 Jun 2007, 11:41
by AF
Whats happening is AFLobby starts the channel class for the first tiem and sees that the array of smileys doesnt exist yet.

So it attempts to fill them in, finds that you havent got any smileys and skips.

Then Swing tries to draw the smiley combobox. There are no smileys and there are no entries. So when spring calls my custom renderer, my custom renderer crashes, because there must always be at least 1 smiley.

Moral or the story:

Always read the changelog.

Drezil, I moved smileys into the *aflobby/images/smileys/ folder out of the JAR archive. You need to install package1.zip rather than just overwritting the contents of package2.zip.

I repeat

INSTALL BOTH PACKAGE1 AND 2 .ZIP OR AFLOBBY WILL CRASH, READ THE README

Posted: 21 Jun 2007, 11:14
by Drezil
another issue:
when the server exits the game, spring is exited. but then aflobby relaunches spring (without syncing to the host of course).
this is not a major problem, but it overrides the infolog.txt every time :(

Posted: 21 Jun 2007, 12:28
by AF
Ok that will be my next priority to fix as 2 others have reported it and it isnt a very nice thing to happen.

On a side note, I got a pm from somebody asking for some help installing aflobby so I replied with the following message:
Ah if you need help Ill have to make ammendments to the readme.

You've gotten package2.zip right (unless its in a subfolder)

For me I would ahve it in /home/af/.aflobby/ so smileys would be stored in /home/af/.aflobby/images/smileys/ etc.

For package2.zip and aflobby.jar etc, you extract it to the folder spring is in, so aflobby.jar and libjavaunitsync.so are in the same folder as the spring program itself. My laptop runs ubuntu but its 450mhz so I haven't got an install of linux spring to work with as an example, but as long as package1.zip is extracted directly into the spring folder such that youve got:

*spring path*/aflobby.jar
*spring path*/libjavaunitsync.so
*spring path*/spring binary
*spring path*/the lib folder in the package1.zip/a few jar files
*spring path*/other random spring things

Btw, under Linux, is the spring binary just "spring"? With no file extensions? If so 'll add a check for it. Under windows AFLobby warns the user that it might not be installed correctly if it cant find spring.exe in the immediate directory.

Thanks for helping raise my awareness, anything to help clear up any confusion for new users.
I hope this clears up one or two things for anyone with any similair problems.

As a side note, that last query I made in the message, could anyone shed some light on that? I'd assume 'spring' is the filename hence I'd not have the bug in the previous post above this to fix, but windows accepts 'spring' too even if its actually called Spring.exe.

Posted: 21 Jun 2007, 12:40
by Kloot
Just "spring" yes, there's no extension.

Posted: 21 Jun 2007, 12:44
by AF
Then in the next build I'll make a copy of the windows check for spring.exe and modify it to do the same but for Linux.

Posted: 21 Jun 2007, 14:17
by Drezil
if you have installed spring out of the reposity (add a "deb http://www.osrts.info/~tvo/deb edgy spring"-line to the /etc/apt/sources.list and run "apt-get install spring" or use things like synaptic), then spring ist installed in many different subdirs (/usr/share/games/spring, /usr/games etc.) where the stuff belongs. ;)

then you have the spring-executable automatically included in your PATH-Variable and you can install aflobby to wherever you want.
for example my setup:
~/AFLobby/*aflobbystuff like the jar, the shell-script and so on*
~/.aflobby/*all user-stuff like minimaps, imgs and so on*

if i had more than 1 user on my system then aflobby would be placed in sth. like /usr/share/games/spring/lobby/AFLobby and the aflobby.sh would be linked in /ust/games/aflobby.sh so every user could start the one installation but got still is "own" local data in ~/.aflobby.

one minor note: can you make the aflobby.sh make an execitable in the next versions? its annoying to do a "chmod +x aflobby.sh" every time i extract it .. ;)

Posted: 21 Jun 2007, 15:09
by AF
You'd have to provide me with such an executable.

Posted: 21 Jun 2007, 15:31
by AF
http://www.darkstars.co.uk/randomfiles/ ... build2.zip

-Fix: warning windows don't to scroll to the bottom of the text when first shown
-Fix: the hosts ingame status is now checked when it changes preventing relaunches of spring
-Fix: ingame flag is only set to false if the hosts status change to out of game preventing spring relaunching
-Fix: The internal messaging system has had a few minor changes that affect the entire program, this should improve source code readability and make it easier to change event names and prevent mistakes.
-Fix: Login progress events have been changed internally
-Fix: The Linux check for spring file has been removed from build 2 due to false positives in build 1

Posted: 21 Jun 2007, 17:13
by Mastablasta
Drezil wrote:if you have installed spring out of the reposity (add a "deb http://www.osrts.info/~tvo/deb edgy spring"-line to the /etc/apt/sources.list and run "apt-get install spring" or use things like synaptic), then spring ist installed in many different subdirs (/usr/share/games/spring, /usr/games etc.) where the stuff belongs. ;)

then you have the spring-executable automatically included in your PATH-Variable and you can install aflobby to wherever you want.
for example my setup:
~/AFLobby/*aflobbystuff like the jar, the shell-script and so on*
~/.aflobby/*all user-stuff like minimaps, imgs and so on*

if i had more than 1 user on my system then aflobby would be placed in sth. like /usr/share/games/spring/lobby/AFLobby and the aflobby.sh would be linked in /ust/games/aflobby.sh so every user could start the one installation but got still is "own" local data in ~/.aflobby.

one minor note: can you make the aflobby.sh make an execitable in the next versions? its annoying to do a "chmod +x aflobby.sh" every time i extract it .. ;)
I installed using the guide here: http://spring.clan-sy.com/wiki/SetupGui ... erivatives
And I only have 1 user on ubuntu.
I have the stuff from package1 (minimaps images sounds) in username/AF/.aflobby
The package2 (aflobby.sh and stuff) is in username/.spring
when i try to use the aflobby.sh i get:

"echo make sure AFLobby and libunitsync.so is in your current working folder

java -Djava.library.path=. -jar aflobby.jar"

So am I putting stuff in the wrong place if so where does it need to go?
(Im new to linux so i have no idea what a pathvariable is or where you mean by ~ ) :o thanks for the help

Posted: 21 Jun 2007, 17:20
by Relative
The contents from package2.zip need to go here:

/usr/share/games/spring

You might need root access to write to this directory.

Then in the terminal:

Code: Select all

cd /usr/share/games/spring
bash aflobby.sh
I just finished writing a new readme for AF, so in the next build should have it, which will make everything easier for all of us.

Posted: 21 Jun 2007, 17:59
by Mastablasta
Relative wrote:The contents from package2.zip need to go here:

/usr/share/games/spring

You might need root access to write to this directory.

Then in the terminal:

Code: Select all

cd /usr/share/games/spring
bash aflobby.sh
I just finished writing a new readme for AF, so in the next build should have it, which will make everything easier for all of us.
This worked I can open AFlobby now, but the the terminal stays open behind and says

"make sure AFLobby and libunitsync.so is in your current working folder
heapsize=66650112"

and when i click the join/host button nothing happens

Posted: 21 Jun 2007, 18:05
by Relative
Mastablasta wrote:
"make sure AFLobby and libunitsync.so is in your current working folder
heapsize=66650112"

and when i click the join/host button nothing happens
The first bit is meant to happen, its just a warning read from the script, so don't worry about that. Everyone gets that.

Not sure about the second thing. Do you mean that when you try to join a battle or host one the battle lobby window doesn't open?

Posted: 21 Jun 2007, 18:06
by AF
The script says that message when ran regardless, its a general warning to all users, and safe to remove. Although its best the window stays open because if AFLobby crashes the stacktrce is displayed in the command window, but if it isnt there the info is lost and it cant be fixed.

Posted: 21 Jun 2007, 18:13
by Mastablasta
Relative wrote: Not sure about the second thing. Do you mean that when you try to join a battle or host one the battle lobby window doesn't open?
Yes, I can see a list of open/closed/passworded games and when i highlight any of them and click join nothing happens at all, no battle lobby or anything. Same thing happens when I try to host a game.

Posted: 21 Jun 2007, 18:16
by Relative
Mastablasta wrote:
Relative wrote: Not sure about the second thing. Do you mean that when you try to join a battle or host one the battle lobby window doesn't open?
Yes, I can see a list of open/closed/passworded games and when i highlight any of them and click join nothing happens at all, no battle lobby or anything. Same thing happens when I try to host a game.
Me and AF are in the lobby right now, so you can talk to us there. Is there anything in the terminal?

Posted: 21 Jun 2007, 18:23
by Mastablasta
If the lobby is under the channels tab then there is another problem, It says loading channel list and doesn't ever load.

and this is in the terminal

make sure AFLobby and libunitsync.so is in your current working folder
heapsize=66650112
JSync Setup
Exception in thread "Timer-3" java.lang.NullPointerException
at aflobby.CChannel.<init>(CChannel.java:72)
at aflobby.JChannelView.NewEvent(JChannelView.java:1652)
at aflobby.LMain.ProcessEvents(LMain.java:539)
at aflobby.LMain.Update(LMain.java:416)
at aflobby.UpdateTask.run(LMain.java:38)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)

Posted: 21 Jun 2007, 18:29
by Relative
Mastablasta wrote:If the lobby is under the channels tab then there is another problem, It says loading channel list and doesn't ever load.
What version do have you installed, did you take alpha 23b off the first post, because that's not the newest version. What java do you have installed? You need Java Sun 1.6 and the open source Java cgi doesn't work.

Posted: 21 Jun 2007, 18:40
by Mastablasta
I have the latest version of AFlobby not off the first post and i don't really know what java version i have add/remove programs says i have Sun Java 6 Webstart and Synaptic says i have Java-common aswell as Java6. Where do i check to seethe java you are talking about or is this the right one?

Posted: 21 Jun 2007, 18:43
by Relative
In Synaptic you need "sun-java6-jre". If you already have that you are fine on that front. We'll wait for AF about the terminal output.