Its Here! Sots 2 Tech Tree Java App!

Research and Development in SotS2.
ZedF
Board Ninja
Board Ninja
Posts: 12335
Joined: Sun Aug 27, 2006 7:13 pm

Re: Its Here! Sots 2 Tech Tree Java App!

Post by ZedF » Tue Mar 05, 2013 12:15 pm

I found the problem. It needs to be associated with my x86 Java install and not my x64 Java install.
Zed's TARs (sample):
Fractious Allies -- Hiver vs. Hiver, with allies
Who Let The Bugs Out -- Hiver vs. Tarka and Zuul
Tarka Ascendant -- Tarka vs. Hiver and Zuul

Strategy & Tactics Forum Archive -- More posts on strategy, tactics, and TARs

User avatar
BlueTemplar
Posts: 3130
Joined: Wed Aug 29, 2007 9:15 am

Re: Its Here! Sots 2 Tech Tree Java App!

Post by BlueTemplar » Mon Mar 11, 2013 4:16 pm

Tech Probabilities - The overall combined probability that this tech will be available for each race, considering all links and requirements

Graviton Beam Liir tech chances : 48%
Pre-requisite for Graviton Beams : Gravity Control
Gravity Control Liir tech chances : 25% ???

User avatar
BlueTemplar
Posts: 3130
Joined: Wed Aug 29, 2007 9:15 am

Re: Its Here! Sots 2 Tech Tree Java App!

Post by BlueTemplar » Thu Jul 11, 2013 9:01 pm

Farsense has higher tech chances than link chances (for all races)! Maybe this bug is related to LifeSense being a core tech that can be researched either via Empathy or Clairvoyance?

User avatar
Arkalius
Posts: 441
Joined: Tue Jun 20, 2006 6:06 am

Re: Its Here! Sots 2 Tech Tree Java App!

Post by Arkalius » Tue Sep 16, 2014 9:50 pm

It's been a long while and I'm not sure many people still browse this forum... At any rate, it's clear to me now that my algorithm for calculating overall probability for techs has some flaws. It is incorrectly assuming certain probabilities are independent when they may not be, and this is creating flawed results in some cases. I've been wracking my brain trying to come up with a plan for an improved algorithm but I'm having trouble sorting it out.

Anyway, I just wanted to let people know that some of the total probabilities for techs are likely incorrect and that I will try to update the app if I can to fix the problem. I don't know when or if this will happen, and I realize not many people probably care anymore, but this incompleteness is bugging me so I'm compelled to attempt to fix it :)
-Arkalius

Check out my SotS2 tech tree java app!
For the SotS prime player, grab the original tech tree java app.

User avatar
Karu
Posts: 420
Joined: Sun Apr 21, 2013 11:49 am

Re: Its Here! Sots 2 Tech Tree Java App!

Post by Karu » Tue Sep 16, 2014 10:47 pm

Lurking are many. Writing not so many.
And your tool is still used :)

An update is allways welcome of cause ^_^



Sincerly

User avatar
marshb
Posts: 2567
Joined: Fri Apr 03, 2009 6:25 pm

Re: Its Here! Sots 2 Tech Tree Java App!

Post by marshb » Wed Sep 17, 2014 12:04 am

More Please! :thumbsup:
Our lives are not our own. From womb to tomb, we are bound to others. Past and present. And by each crime and every kindness, we birth our future.

Orison of Sonmi-451

User avatar
Hawawaa
Posts: 1473
Joined: Fri Sep 09, 2011 11:37 pm

Re: Its Here! Sots 2 Tech Tree Java App!

Post by Hawawaa » Thu Sep 18, 2014 6:32 pm

I care! Love this app! :D

User avatar
ancient demise
Posts: 161
Joined: Wed Jun 11, 2008 4:07 am

Re: Its Here! Sots 2 Tech Tree Java App!

Post by ancient demise » Wed Nov 12, 2014 9:20 pm

Hi Arkalius,

I am having trouble getting your app to run correctly (win 7 x64, jre V8 update 25)

I am sure it is something simple I am missing so sorry in advance. I did try it first on a version 7 jre but that had the same result.
It first seemed to load correctly but all I saw on the screen is the dropdown for techtree and two blank frames. Loading the default directory and custom data did nothing.

I did try loading it in cmd.exe and this is what I got

Code: Select all

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.


E:\Program Files (x86)\Steam\steamapps\common\sword of the stars ii\Modding>java
 -jar "SotS2 Tech Tree.jar"
java.lang.NullPointerException
        at com.samfahmie.sots2tech.TechTree.createTechMap(TechTree.java:345)
        at com.samfahmie.sots2tech.TechTree.loadGameData(TechTree.java:200)
        at com.samfahmie.sots2tech.TechTree.<init>(TechTree.java:103)
        at com.samfahmie.sots2tech.TechTree.main(TechTree.java:429)


So I tried loading the default directory again:

Code: Select all


java.lang.NullPointerException
        at com.samfahmie.sots2tech.TechTree.createTechMap(TechTree.java:345)
        at com.samfahmie.sots2tech.TechTree.loadGameData(TechTree.java:200)
        at com.samfahmie.sots2tech.TechTree$ActionHandler.actionPerformed(TechTr
ee.java:69)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.AbstractButton.doClick(Unknown Source)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$400(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)


And then loading custom data just to see what happenes...

Code: Select all



java.lang.NullPointerException
        at com.samfahmie.sots2tech.TechTree.createTechMap(TechTree.java:345)
        at com.samfahmie.sots2tech.TechTree.loadCustomData(TechTree.java:136)
        at com.samfahmie.sots2tech.TechTree$ActionHandler.actionPerformed(TechTr
ee.java:71)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.AbstractButton.doClick(Unknown Source)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$400(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)



On another note, your SotS prime tech tree app works fine for me!
"Most discipline is hidden discipline, designed not to liberate but to limit. Do not ask 'Why.' Be cautious with 'How.' 'Why' leads inexorably to paradox. 'How' traps you in a universe of cause and effect. Both deny the infinite."
---The Apocrypha of Arrakis; Frank Herbert, Heretics of Dune

kinngrimm
Posts: 2
Joined: Mon Jul 15, 2013 11:11 am

Re: Its Here! Sots 2 Tech Tree Java App!

Post by kinngrimm » Sat Mar 07, 2015 2:08 pm

Arkalius wrote:...I don't know when or if this will happen, and I realize not many people probably care anymore,

a few do :)

Arkalius wrote: but this incompleteness is bugging me so I'm compelled to attempt to fix it :)

please be compelled :insane:

User avatar
marshb
Posts: 2567
Joined: Fri Apr 03, 2009 6:25 pm

Re: Its Here! Sots 2 Tech Tree Java App!

Post by marshb » Sat Mar 07, 2015 4:25 pm

kinngrimm wrote:
Arkalius wrote:...I don't know when or if this will happen, and I realize not many people probably care anymore,

a few do :)

Arkalius wrote: but this incompleteness is bugging me so I'm compelled to attempt to fix it :)

please be compelled :insane:

What he said! :insane:
Our lives are not our own. From womb to tomb, we are bound to others. Past and present. And by each crime and every kindness, we birth our future.

Orison of Sonmi-451

Post Reply

Return to “The Tech”

Who is online

Users browsing this forum: No registered users and 3 guests