Editing Source files

57 views
Skip to first unread message

Topason

unread,
Jul 17, 2015, 7:23:07 AM7/17/15
to solaris-s...@googlegroups.com
George,

I am currently editing and testing out how to change the Rules levels for equipment in SSW.  I am currently looking at Mixed tech.  Can you point me to the correct source file that dictates what rules level mixed tech is used?


George Blouin

unread,
Jul 18, 2015, 6:44:18 PM7/18/15
to solaris-skunk-werks
Heya James,

I finally got the files re-loaded (newest Netbeans doesn't like the old projects apparently).   In SSWLib/Components there is an AvailableCode class that is used for RangedWeapons to be able to set who/what/when/where etc.  I don't see that being used for the Equipment class though.

Is that what you are looking for?

George

On Fri, Jul 17, 2015 at 5:23 AM, Topason <top...@gmail.com> wrote:
George,

I am currently editing and testing out how to change the Rules levels for equipment in SSW.  I am currently looking at Mixed tech.  Can you point me to the correct source file that dictates what rules level mixed tech is used?


--
You received this message because you are subscribed to the Google Groups "Solaris Skunk Werks" group.
To unsubscribe from this group and stop receiving emails from it, send an email to solaris-skunk-w...@googlegroups.com.
To post to this group, send email to solaris-s...@googlegroups.com.
Visit this group at http://groups.google.com/group/solaris-skunk-werks.
For more options, visit https://groups.google.com/d/optout.

Topason

unread,
Jul 19, 2015, 8:38:40 AM7/19/15
to solaris-s...@googlegroups.com
I want to change Mixed tech from experimental to advanced per TRO Protypes. It's one of the last changes that need to be made

George Blouin

unread,
Jul 19, 2015, 10:12:27 AM7/19/15
to solaris-skunk-werks
Mixed Tech itself?  Ooh..hmm ok looks like it's in frmMain BuildTechBaseSelector method (ln 999).  

George

On Sun, Jul 19, 2015 at 6:38 AM, Topason <top...@gmail.com> wrote:
I want to change Mixed tech from experimental to advanced per TRO Protypes.  It's one of the last changes that need to be made
--
You received this message because you are subscribed to the Google Groups "Solaris Skunk Werks" group.

Topason

unread,
Jul 19, 2015, 3:47:52 PM7/19/15
to solaris-s...@googlegroups.com
Or another way to ask:

How does SSW knows that mixed tech is experimental??

George Blouin

unread,
Jul 19, 2015, 7:01:53 PM7/19/15
to solaris-skunk-werks
Seems to be here

private void BuildTechBaseSelector() {
        switch( CurMech.GetEra() ) {
            case AvailableCode.ERA_STAR_LEAGUE:
                cmbTechBase.setModel( new javax.swing.DefaultComboBoxModel( new String[] { "Inner Sphere" } ) );
                break;
            default:
                if( CurMech.GetRulesLevel() >= AvailableCode.RULES_EXPERIMENTAL ) {
                    cmbTechBase.setModel( new javax.swing.DefaultComboBoxModel( new String[] { "Inner Sphere", "Clan", "Mixed" } ) );
                } else if( CurMech.GetRulesLevel() == AvailableCode.RULES_INTRODUCTORY ) {
                    cmbTechBase.setModel( new javax.swing.DefaultComboBoxModel( new String[] { "Inner Sphere" } ) );
                } else {
                    cmbTechBase.setModel( new javax.swing.DefaultComboBoxModel( new String[] { "Inner Sphere", "Clan" } ) );
                }
                break;
        }
        try {
            cmbTechBase.setSelectedIndex( CurMech.GetTechbase() );
        } catch( Exception e ) {
            Media.Messager( "Could not set the Techbase due to changes.\nReverting to Inner Sphere." );
            cmbTechBase.setSelectedIndex( 0 );
        }
    }
Where it checks the GetRulesLevel against EXPERIMENTAL.
George



On Sun, Jul 19, 2015 at 1:47 PM, Topason <top...@gmail.com> wrote:
Or another way to ask:

How does SSW knows that mixed tech is experimental??
--
You received this message because you are subscribed to the Google Groups "Solaris Skunk Werks" group.

Topason

unread,
Aug 7, 2015, 11:43:30 AM8/7/15
to Solaris Skunk Werks
And where is frmMain at?  I do not see it in the Src folder


On Sunday, July 19, 2015 at 10:12:27 AM UTC-4, Skyhigh wrote:
Mixed Tech itself?  Ooh..hmm ok looks like it's in frmMain BuildTechBaseSelector method (ln 999).  

George
On Sun, Jul 19, 2015 at 6:38 AM, Topason <top...@gmail.com> wrote:
I want to change Mixed tech from experimental to advanced per TRO Protypes.  It's one of the last changes that need to be made

--
You received this message because you are subscribed to the Google Groups "Solaris Skunk Werks" group.
To unsubscribe from this group and stop receiving emails from it, send an email to solaris-skunk-werks+unsub...@googlegroups.com.

George Blouin

unread,
Aug 7, 2015, 11:44:36 AM8/7/15
to solaris-skunk-werks
frmMain would be in the SSW project itself under the main source directory.

On Fri, Aug 7, 2015 at 9:43 AM, Topason <top...@gmail.com> wrote:
And where is frmMain at?  I do not see it in the Src folder

On Sunday, July 19, 2015 at 10:12:27 AM UTC-4, Skyhigh wrote:
Mixed Tech itself?  Ooh..hmm ok looks like it's in frmMain BuildTechBaseSelector method (ln 999).  

George
On Sun, Jul 19, 2015 at 6:38 AM, Topason <top...@gmail.com> wrote:
I want to change Mixed tech from experimental to advanced per TRO Protypes.  It's one of the last changes that need to be made

--
You received this message because you are subscribed to the Google Groups "Solaris Skunk Werks" group.
To unsubscribe from this group and stop receiving emails from it, send an email to solaris-skunk-w...@googlegroups.com.
To post to this group, send email to solaris-s...@googlegroups.com.
Visit this group at http://groups.google.com/group/solaris-skunk-werks.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Solaris Skunk Werks" group.
To unsubscribe from this group and stop receiving emails from it, send an email to solaris-skunk-w...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages