scrollrack-devel Mailing List for Scroll Rack
Brought to you by:
svalente
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(4) |
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Salvatore V. <sva...@MI...> - 2007-08-19 02:27:41
|
On Wed, 2007-08-01 at 12:26 -0700, Daenyth Blank wrote: > I've been trying for about the past year to get scrollrack running, > but I can't figure out what is needed. Can you either provide a > bundled release with all the deps included, add scrollrack to some > package managers (preferably archlinux's pacman), or at least give us > a list of dependencies so that we can get them on our own? The only bundled release that I'm qualified to make is RPM, which I've done. The dependencies are listed on the Download page on the web site. They're SWT and Smack. build-classpath, where it exists, is a simple shell script that finds a jar file in the filesystem, and outputs its full pathname. If you don't have build-classpath, then you just have to tell scrollrack.sh where to find SWT and smack. For example, replace this line: swt=`build-classpath swt-gtk-3.1` with: swt=/usr/lib/java/swt3.1-gtk.jar If your distribution does not come with SWT or Smack, then you have to download them. For example, you can unpack them in your home directory, and do something like this: swt=/home/sal/lib/swt-3.3/swt.jar You may also need to edit this line: arg=-Djava.library.path=/usr/lib/eclipse You may need to change the path to something else, depending on what version of SWT you're using, and where it's installed. Sal |
From: Russ A. <rr...@st...> - 2007-08-01 21:25:02
|
"Daenyth Blank" <da...@gm...> writes: > I've been trying for about the past year to get scrollrack running, but > I can't figure out what is needed. Can you either provide a bundled > release with all the deps included, add scrollrack to some package > managers (preferably archlinux's pacman), or at least give us a list of > dependencies so that we can get them on our own? I got it working with JDK 5, ant, SWT 3.1, and the latest Smack, but building against the latest Smack does require the following patch. (While this gets it to build, the Jabber support appears not to work, but I think the regular network client should. I haven't been in a position to test after I got it going.) The wrapper script changes below are for Debian unstable. All the right packages are already available except for Smack, which isn't packaged for Debian. Only in scrollrack-0.8: bin diff -ru scrollrack-0.8.orig/client/net/sourceforge/scrollrack/JabberConnection.java scrollrack-0.8/client/net/sourceforge/scrollrack/JabberConnection.java --- scrollrack-0.8.orig/client/net/sourceforge/scrollrack/JabberConnection.java 2006-11-27 09:28:37.000000000 -0800 +++ scrollrack-0.8/client/net/sourceforge/scrollrack/JabberConnection.java 2007-07-19 20:10:28.000000000 -0700 @@ -121,7 +121,7 @@ { if ((opponent == null) || (connection == null)) return; - Message message = new Message(opponent, Message.Type.NORMAL); + Message message = new Message(opponent, Message.Type.normal); // message.setThread(thread); message.setBody(text); connection.sendPacket(message); @@ -139,7 +139,7 @@ private void disconnect(Object event) { - connection.close(); + connection.disconnect(); connection = null; opponent = null; challengers.clear(); diff -ru scrollrack-0.8.orig/scrollrack.sh scrollrack-0.8/scrollrack.sh --- scrollrack-0.8.orig/scrollrack.sh 2006-10-06 22:16:15.000000000 -0700 +++ scrollrack-0.8/scrollrack.sh 2007-07-19 20:19:44.000000000 -0700 @@ -1,11 +1,14 @@ #!/bin/sh -scrollrack=`build-classpath scrollrack` -swt=`build-classpath swt-gtk-3.1` -smack=`build-classpath smack` +#scrollrack=`build-classpath scrollrack` +#swt=`build-classpath swt-gtk-3.1` +#smack=`build-classpath smack` + +arg=-Djava.library.path=/usr/lib/jni +cp="/usr/lib/java/swt3.1-gtk.jar:/usr/lib/java/swt.jar:/usr/lib/java/swt-gtk.jar:/usr/lib/jni:/home/eagle/Desktop/smack_3_0_4/smack.jar:." -arg=-Djava.library.path=/usr/lib/eclipse -cp="${scrollrack}:${swt}:${smack}" class=net.sourceforge.scrollrack.Game +LD_LIBRARY_PATH=/usr/lib/jni; export LD_LIBRARY_PATH + exec java "$arg" -cp "$cp" "$class" "$@" -- Russ Allbery (rr...@st...) <http://www.eyrie.org/~eagle/> |
From: Daenyth B. <da...@gm...> - 2007-08-01 19:26:40
|
I've been trying for about the past year to get scrollrack running, but I can't figure out what is needed. Can you either provide a bundled release with all the deps included, add scrollrack to some package managers (preferably archlinux's pacman), or at least give us a list of dependencies so that we can get them on our own? |
From: Brian A. <bri...@gm...> - 2006-12-08 18:49:34
|
I am unable to install scrollrack. I have installed all packages that refer to swt. I have installed smack, and the scrollrack package. At first I received this error: /usr/bin/scrollrack: line 3: build-classpath: command not found /usr/bin/scrollrack: line 4: build-classpath: command not found /usr/bin/scrollrack: line 5: build-classpath: command not found Exception in thread "main" java.lang.NoClassDefFoundError: net/sourceforge/scrollrack/Game I was able to correct this by installing the free-java-sdk package on ubuntu. I now receive this error: ./scrollrack ./scrollrack: line 3: build-classpath: command not found ./scrollrack: line 4: build-classpath: command not found ./scrollrack: line 5: build-classpath: command not found java.lang.ClassNotFoundException: net.sourceforge.scrollrack.Game not found in java.lang.ClassLoader$1{urls=[file:/usr/bin/./,file:/usr/bin/./], parent=null} at java.net.URLClassLoader.findClass (URLClassLoader.java:841) at java.lang.ClassLoader.loadClass (ClassLoader.java:360) at java.lang.ClassLoader$1.loadClass (ClassLoader.java:1285) at java.lang.ClassLoader.loadClass (ClassLoader.java:304) at java.lang.VirtualMachine.main (VirtualMachine.java:99) Perhaps a more detailed list of package requirments are in order? I am not certain exactly how to install swt by the link on the eclipse webpage, as it is a .zip file and not tar.gz or any sort of package. Any help with this would be appreciated. |
From: Aaron C. <as...@gm...> - 2006-11-10 12:57:06
|
Hey Devs, I was thinking of starting work on the booster drafting capabilities of Scrollrack. I was wondering if you had any particular way that you want it to be developed? This is what i'm thinking: 1. The host selects *File > Open New Draft Room...* 2. The host then selects the following options: 1. The packs to draft 2. Time limit per pick 3. Booster or Rochester draft 4. Port to Listen on (default to the normal NetDraft port) 5. Select a single game or a single elimination format 3. When the host clicks *Open Room*, a new socket opens to listen for connecting players 4. When the appropriate number of people join, the host can *Start Draft* 5. A number of random packs are generated for each pack chosen when starting the room, for each player* 6. The first pack is opened and the cards placed in a DraftCards zone, a card is added to a DraftPick zone when picked 7. The cards in the DraftCards zone are then passed to the player on the left or right 8. When all these are completed, the cards are added to a new deck as sideboard cards and UID for the cards in the deck is generated to prevent cheating 9. The host can automatically pair players or manually pair them. 10. The deck editor opens, displaying the drafted deck 11. The deck is then created and sent to the draft host encrypted and compared to the UID generated from the picked cards 12. A new game for each player is then set up by the host (maybe holding giving the opponents ID to them before they connect to each other) 13. Once the draft is completed and the games start the host can close the window and start another draft if they are finished What do you think? Aaron Cross |
From: Aaron C. <as...@gm...> - 2006-11-06 15:39:17
|
Hello Devs, I've started working on creating the deck editor for scrollrack and it's going very well so far. I should have it finished by tomorrow night and i can send a *.diff or a patch file to this list for approval. At the moment i have a toolbar with no icons and i need the following: - New (might just use the green refresh button) - Load (maybe an open folder icon) - Save (a disk) - Print (a printer) - Apply Filters (a tick) - Clear Filters (a "no-go" sign or a red cross) Do you know where i can find icons that will be suitable for ScrollRack? Also, i've completed the card list searching feature but my algorithm needs some serious work. I tried just searhcing from the start everytime but as you can imagine with 8000+ items it can take ages in some cases. I present my code for review; txtCardName.addModifyListener( *new* org.eclipse.swt.events.ModifyListener() { //internal class to handle the card search /* * handles the modify text event */ *public* *void* modifyText(org.eclipse.swt.events.ModifyEvent e) { *int* cardId; CardBase cardBase = m_game.cardbase; *if* (txtCardName.getText().length() <= 1) { //if this is a new search start from the beginning *for* (cardId = 0; cardId < cardBase.size(); cardId++ ) { *if* (cardBase.get(cardId).name.toUpperCase().startsWith( txtCardName.getText().toUpperCase())) { lstCardList.setSelection(cardId); m_numberOfPrevSearchChars = txtCardName.getText().length(); *return*; } } } *else * { /* * If it's not a new search start looking either forward * or backwards of the current selection depending depending * on the change to the search; * * remove a char = search backwards * add a char = search forwards */ *if* (txtCardName.getText().length() > m_numberOfPrevSearchChars) { *for* (cardId = lstCardList.getSelectionIndex(); cardId < cardBase.size(); cardId++ ) { *if* (cardBase.get(cardId).name.toUpperCase().startsWith( txtCardName.getText().toUpperCase())) { lstCardList.setSelection(cardId); m_numberOfPrevSearchChars = txtCardName.getText().length(); *return*; } } } *else * { *for* (cardId = lstCardList.getSelectionIndex(); cardId > -1; cardId-- ) { *if* (cardBase.get(cardId).name.toUpperCase().startsWith( txtCardName.getText().toUpperCase())) { lstCardList.setSelection(cardId); m_numberOfPrevSearchChars = txtCardName.getText().length(); *return*; } } } } //if we get here we've found nothing. dont select anything m_numberOfPrevSearchChars = txtCardName.getText().length(); lstCardList.setSelection(-1); } }); The general idea is to search forward only if the next character is "greater" than the last one, searching backwards when you delete characters. Any ideas for optimisation? Also, anyone who wants to contact me can do so on MSN at "dafatdude" at "hotmail" dot "com" Cheers, Aaron |
From: Salvatore V. <sva...@MI...> - 2006-10-12 20:31:48
|
Hello and welcome to scrollrack-devel at lists.sourceforge.net. |