View unanswered posts | View active topics It is currently Fri Apr 17, 2026 11:02 pm



Reply to topic  [ 92 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7  Next
 Publishing Weapon M tonight... 
Author Message
Boo! inc.

Joined: Fri Jan 04, 2002 3:00 am
Posts: 221
Location: Canada
Unread post Re: Publishing Weapon M tonight...
Now i'm having database locked issues. hmm on multiple databases. just one instance open too. closed them out. open again and locked. right now i have 3 different databases locked haha


Sat Jan 05, 2013 9:21 pm
Profile
Boo! inc.

Joined: Fri Jan 04, 2002 3:00 am
Posts: 221
Location: Canada
Unread post Re: Publishing Weapon M tonight...
Last login: Sat Jan 5 18:18:34 on ttys000
james-goudies-imac:~ jamesgoudie$ /Users/jamesgoudie/Desktop/java-WeaponM.sh ; exit;
629 [AWT-EventQueue-0] INFO krum.weaponm.WeaponM - Weapon M started Sat Jan 05 18:23:21 PST 2013
762 [AWT-EventQueue-0] INFO krum.weaponm.script.ScriptManager - searching for scripts in ./scripts
792 [AWT-EventQueue-0] INFO krum.weaponm.script.loader.ClassFileScriptLoader - searching for class file scripts in [./scripts]
873 [AWT-EventQueue-0] INFO krum.weaponm.script.loader.ClassFileScriptLoader - found 11 Java script classes
905 [AWT-EventQueue-0] INFO krum.weaponm.script.ScriptManager - found 11 scripts
5784 [AWT-EventQueue-0] INFO krum.weaponm.database.DatabaseManager - database loaded from /Users/jamesgoudie/Documents/Tradewars/test.wmd
18775 [AWT-EventQueue-0] INFO krum.weaponm.database.DatabaseManager - database saved
18783 [AWT-EventQueue-0] INFO krum.weaponm.database.DatabaseManager - database closed
34582 [AWT-EventQueue-0] ERROR krum.weaponm.gui.OpenDatabaseAction - error opening database
java.io.IOException: Lock file /Users/jamesgoudie/Documents/Tradewars/ice practice.wmd.lock exists.
at krum.weaponm.database.DatabaseManager.open(DatabaseManager.java:52)
at krum.weaponm.gui.OpenDatabaseAction.actionPerformed(OpenDatabaseAction.java:55)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:723)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:682)
at java.awt.EventQueue$3.run(EventQueue.java:680)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:696)
at java.awt.EventQueue$4.run(EventQueue.java:694)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:693)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)


Sat Jan 05, 2013 9:24 pm
Profile
Boo! inc.

Joined: Fri Jan 04, 2002 3:00 am
Posts: 221
Location: Canada
Unread post Re: Publishing Weapon M tonight...
ok, update:

I found 2 files in my directory where i keep the database files. they were .lock files so i removed them and the database loaded up fine after that.

don't know why they showed up though.


Sat Jan 05, 2013 9:28 pm
Profile
Chief Warrant Officer

Joined: Sat Nov 17, 2001 3:00 am
Posts: 175
Unread post Re: Publishing Weapon M tonight...
Tweety wrote:
ok, update:

I found 2 files in my directory where i keep the database files. they were .lock files so i removed them and the database loaded up fine after that.

don't know why they showed up though.


I hit that _all_ the time. When a database is open, it creates that file, then when closed, it removes it. The idea is to make sure two instances aren't opening the same database at the same time, but in practice, you rarely do that but, at least when developing, often shut it down w/o closing properly.

If Mongoose is ameniable, I'd love to rework the persistence to auto-save, or even fancier, auto detect new games, but that would take significant core changes.


Sat Jan 05, 2013 9:36 pm
Profile WWW
Chief Warrant Officer

Joined: Sat Nov 17, 2001 3:00 am
Posts: 175
Unread post Re: Publishing Weapon M tonight...
Tweety wrote:
here is a screen cap. and also some stub java scripts. hehe they don't do much at all right now but they give you a feel of the menu system with them.

https://docs.google.com/open?id=0BzF9tOZQT158WThUc1d1RTJkODQ


the scripts are again just stubs. don't expect them to work hehe


Well that turned out to be much more work than I anticipated, but thanks to your data, it should be fixed. A build can be found at the usual place: http://linode.twdata.org/weaponm/weapon ... dalone.jar

BTW, you should also consider adding a preferred key binding by overriding getPreferredKeyBinding(). For example, if you wanted to bind a script to Control-T, return
Code:
KeyStroke.getKeyStroke(KeyEvent.VK_T, KeyEvent.CTRL_MASK, false);


Sat Jan 05, 2013 10:59 pm
Profile WWW
Commander
User avatar

Joined: Mon Oct 29, 2001 3:00 am
Posts: 1096
Location: Tucson, AZ
Unread post Re: Publishing Weapon M tonight...
mrdon wrote:
Seriously, SF is soo crap . . .


I'm beginning to see that. They were pioneers in the industry, and then they started trying to "reinvent" themselves with all this Web 2.0 crap. They should have just stuck with the good thing they had going.

_________________
Suddenly you're Busted!


Sun Jan 06, 2013 1:21 am
Profile WWW
Commander
User avatar

Joined: Mon Oct 29, 2001 3:00 am
Posts: 1096
Location: Tucson, AZ
Unread post Re: Publishing Weapon M tonight...
Tweety wrote:
how would i go about outputting data to a file for you mongoose? i'm guessing it is an option i can do with java when i load the program.


http://www.mathinfo.u-picardie.fr/asch/ ... ction.html

It occurs to me that I could save you the trouble by logging stack traces automatically.

I really appreciate all the testing you guys are doing. I wish you'd been involved from the beginning. :D I'm looking into hosting on BitBucket or GitHub... tired of SourceForge's crap. Then I can get down to the business of fixing all these things.

_________________
Suddenly you're Busted!


Sun Jan 06, 2013 1:27 am
Profile WWW
Boo! inc.

Joined: Fri Jan 04, 2002 3:00 am
Posts: 221
Location: Canada
Unread post Re: Publishing Weapon M tonight...
mrdon wrote:
Tweety wrote:
here is a screen cap. and also some stub java scripts. hehe they don't do much at all right now but they give you a feel of the menu system with them.

https://docs.google.com/open?id=0BzF9tOZQT158WThUc1d1RTJkODQ


the scripts are again just stubs. don't expect them to work hehe


Well that turned out to be much more work than I anticipated, but thanks to your data, it should be fixed. A build can be found at the usual place: http://linode.twdata.org/weaponm/weapon ... dalone.jar

BTW, you should also consider adding a preferred key binding by overriding getPreferredKeyBinding(). For example, if you wanted to bind a script to Control-T, return
Code:
KeyStroke.getKeyStroke(KeyEvent.VK_T, KeyEvent.CTRL_MASK, false);



the keystroke thing is cool. you won't like this, but it does the same as the last version hehe


Sun Jan 06, 2013 1:31 am
Profile
Chief Warrant Officer

Joined: Sat Nov 17, 2001 3:00 am
Posts: 175
Unread post Re: Publishing Weapon M tonight...
Tweety wrote:
the keystroke thing is cool. you won't like this, but it does the same as the last version hehe


Hmm...your stuff loads perfectly for me... perhaps I didn't update the jar properly? Anyway, I just finished an auto-update version of Weapon M via heroku, and am getting close to having a simple OSX installer. The end goal is to make it easy to install + always have the latest and greatest.


Sun Jan 06, 2013 2:05 am
Profile WWW
Boo! inc.

Joined: Fri Jan 04, 2002 3:00 am
Posts: 221
Location: Canada
Unread post Re: Publishing Weapon M tonight...
thats cool. i guess you and mongoose have to send stuff to eachother huh. too bad you don't have a central place where changes are made.

I would help, or try to help. but i don't want to make changes that would affect everyone that resulted in bad results ;)

I was working on a mac program for myself before. since i wanted to learn cocoa. now i'm slowly having to pick up on my java from years and years ago haha.

luckly almost every programming language is similar to the next.


Sun Jan 06, 2013 2:13 am
Profile
Boo! inc.

Joined: Fri Jan 04, 2002 3:00 am
Posts: 221
Location: Canada
Unread post Re: Publishing Weapon M tonight...
I thought i'd see if MCIC is being calculated. so bought product at the two ports i was interested in.

i have a copy from mrdon now. so maybe something was changed. but lexer and script do'nt seem to be spitting out data. ansi does in debug.

i was trying to figure out why MCIC didn't update and we curious if the database was dealing with them. hey mongoose. are you calculating mcic yet in the products? or just added the option for later?


Sun Jan 06, 2013 3:40 am
Profile
Commander
User avatar

Joined: Mon Oct 29, 2001 3:00 am
Posts: 1096
Location: Tucson, AZ
Unread post Re: Publishing Weapon M tonight...
Just added it for later. I only got as far as working out the precise formula for planet trading at equipment-buying ports.

_________________
Suddenly you're Busted!


Sun Jan 06, 2013 4:16 am
Profile WWW
Chief Warrant Officer

Joined: Sat Nov 17, 2001 3:00 am
Posts: 175
Unread post Re: Publishing Weapon M tonight...
Well, for the brave, I create a crappy installer though it only really supports Linux and OSX (kinda):

http://weapon-m.herokuapp.com/download/ ... taller.jar

I had some problems on OSX 10.7 (Lion) where the launcher script, start.sh, had to be executed from the command line then it kept picking up an old Java version causing an empty window to load. I worked around it by setting JAVA_HOME to the location of my installed Java 7. Will look into it more later.

The good news is that if you get it running, you won't have to install again as it auto-updates itself on every startup. This will allow us to roll out new features instantly without the headaches of supporting multiple versions. If you have a Heroku account, give it to me and I'll give you access to deploy new versions. Eventually, I'd also like to enable cloud storage, giving players the ability to play from any computer with the same data. We'll see....

Edit: forgot to mention a change that was necessary for a more standalone app: We now have a home directory for scripts, database files and the like. In Windows, this is %APPDATA%/Weapon M and in the rest, $HOME/.weaponm If you want to have your copy pick up the new scripts directory, you'll need to remove or edit your preferences xml.


Sun Jan 06, 2013 5:11 am
Profile WWW
Boo! inc.

Joined: Fri Jan 04, 2002 3:00 am
Posts: 221
Location: Canada
Unread post Re: Publishing Weapon M tonight...
it worked on mountain lion sort of. I had to run the start.sh script from the terminal like you said. then the downloading and verifying happened.

it doesn't however launch the main app screen. i have to run the weapon-m-standalone.jar file manually. and too bad the nifty icns don't assign ;) but i think the start.sh script is what i should run so that it checks for updates. it doesn't work correctly though on mountain lion.

I just get WeaponM in the menu bar up top. i can open the about weaponM. just no terminal screen.

I do like the idea of the whole package building the directories for databases, and logs, etc

My launcher.log:
Code:
2013/01/06 02:34:17:799 INFO r.a: ------------------ VM Info ------------------
2013/01/06 02:34:17:807 INFO r.a: -- OS Name: Mac OS X
2013/01/06 02:34:17:808 INFO r.a: -- OS Arch: x86_64
2013/01/06 02:34:17:808 INFO r.a: -- OS Vers: 10.8.2
2013/01/06 02:34:17:808 INFO r.a: -- Java Vers: 1.6.0_37
2013/01/06 02:34:17:808 INFO r.a: -- Java Home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
2013/01/06 02:34:17:808 INFO r.a: -- User Name: jamesgoudie
2013/01/06 02:34:17:808 INFO r.a: -- User Home: /Users/jamesgoudie
2013/01/06 02:34:17:808 INFO r.a: -- Cur dir: /Applications/Weapon M
2013/01/06 02:34:17:809 INFO r.a: ---------------------------------------------
2013/01/06 02:34:18:098 INFO r.a: ---------------- Proxy Info -----------------
2013/01/06 02:34:18:098 INFO r.a: -- Proxy Host: null
2013/01/06 02:34:18:099 INFO r.a: -- Proxy Port: null
2013/01/06 02:34:18:099 INFO r.a: ---------------------------------------------
2013/01/06 02:34:18:102 WARNING r.a: Ignoring invalid color [hexValue=WeaponM.png, exception=java.lang.NumberFormatException: For input string: "WeaponM.png"]
2013/01/06 02:34:18:116 INFO r.a: Able to lock for updates: true
2013/01/06 02:34:18:150 INFO r.a: Verifying application: http://weapon-m.herokuapp.com/download/
2013/01/06 02:34:18:150 INFO r.a: Version: -1
2013/01/06 02:34:18:150 INFO r.a: Class: krum.weaponm.WeaponM
2013/01/06 02:34:18:152 INFO r.a: Dropping status 'm.validating'.
2013/01/06 02:34:18:218 INFO r.a: Attempting to refetch 'digest.txt' from 'http://weapon-m.herokuapp.com/download/digest.txt'.
2013/01/06 02:34:18:797 INFO r.a: No signers, not verifying file [path=digest.txt]
2013/01/06 02:34:18:804 INFO r.a: Resources verified.
2013/01/06 02:34:18:806 INFO r.a: Didn't find any custom environment variables, not setting any.
2013/01/06 02:34:18:806 INFO r.a: Running /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java
  -classpath
  /Applications/Weapon M/./weapon-m-standalone.jar
  -Xdock:icon=/Applications/Weapon M/./../desktop.icns
  -Xdock:name=Weapon M
  -Dcom.threerings.getdown=true
  krum.weaponm.WeaponM
336 [AWT-EventQueue-0] INFO krum.weaponm.WeaponM - Weapon M started Sun Jan 06 02:34:19 PST 2013432 [AWT-EventQueue-0] INFO krum.weaponm.script.ScriptManager - searching for scripts in ./scripts466 [AWT-EventQueue-0] INFO krum.weaponm.script.loader.ClassFileScriptLoader - searching for class file scripts in []477 [AWT-EventQueue-0] INFO krum.weaponm.script.loader.ClassFileScriptLoader - found 0 Java script classes488 [AWT-EventQueue-0] INFO krum.weaponm.script.ScriptManager - found 0 scriptsjava.lang.UnsupportedClassVersionError: prefuse/Display : Unsupported major.minor version 51.0   at java.lang.ClassLoader.defineClass1(Native Method)   at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)   at java.lang.ClassLoader.defineClass(ClassLoader.java:615)   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)   at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)   at java.net.URLClassLoader.access$000(URLClassLoader.java:58)   at java.net.URLClassLoader$1.run(URLClassLoader.java:197)   at java.security.AccessController.doPrivileged(Native Method)   at java.net.URLClassLoader.findClass(URLClassLoader.java:190)   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)   at java.lang.ClassLoader.loadClass(ClassLoader.java:247)   at krum.weaponm.gui.GUI.<init>(GUI.java:143)   at krum.weaponm.WeaponM.<init>(WeaponM.java:44)   at krum.weaponm.WeaponM$1.run(WeaponM.java:72)   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:702)   at java.awt.EventQueue.access$400(EventQueue.java:82)   at java.awt.EventQueue$2.run(EventQueue.java:663)   at java.awt.EventQueue$2.run(EventQueue.java:661)   at java.security.AccessController.doPrivileged(Native Method)   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)   at java.awt.EventQueue.dispatchEvent(EventQueue.java:672)   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)   at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


Sun Jan 06, 2013 5:36 am
Profile
Chief Warrant Officer

Joined: Sat Nov 17, 2001 3:00 am
Posts: 175
Unread post Re: Publishing Weapon M tonight...
Tweety wrote:
the keystroke thing is cool. you won't like this, but it does the same as the last version hehe


Ok, now that we have a proper launcher that ensures you are always up to date, what's this nonsense about the script menu still not ordering correctly? This os what it looks like for me:
Attachment:
scripts-menu.png
scripts-menu.png [ 28.63 KiB | Viewed 9958 times ]


Sun Jan 06, 2013 11:48 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 92 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7  Next

Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.