Help with SWGaide & Basilisk needed

Moderator: Forum Moderator

Wieli
Novice Crafter
Posts: 23
Joined: Fri Apr 01, 2011 7:03 am

Re: Help with SWGaide & Basilisk needed

Post by Wieli » Sun Aug 05, 2012 7:57 pm

Hydro- What library do you build with ?

User avatar
HydroTek
Intermediate Crafter
Posts: 138
Joined: Sat Jun 16, 2007 1:43 am
Location: Indiana USA

Re: Help with SWGaide & Basilisk needed

Post by HydroTek » Mon Aug 06, 2012 7:09 am

Sry guys, been a busy weekend ..I DL the version 6 of the JDK since that is what Aide is written with, tho version 7 should work fine.

I may have a hint on your logging issue ..I just ran into it tonight, gotta test some to be sure. I think the logging is set to the console in Eclipse, ..before you compile the Jar, you need to set it to file. Have you generated the JavaDoc yet ..much reading in there. There is a section in there that tells the error logging levels.

I found the place where Aide sets the max levels, but have not tested yet.

oh yeah, set the path to the JDK to get Eclipse to compile correctly.

kk sleep now 3am
If it's stuck :x ...force it ...if it breaks, :shock: you needed a new one anyway :)
Characters(Legends): HydroTek, Ditty, and Talo ..give a shout if you see me in game

Wieli
Novice Crafter
Posts: 23
Joined: Fri Apr 01, 2011 7:03 am

Re: Help with SWGaide & Basilisk needed

Post by Wieli » Mon Aug 06, 2012 6:33 pm

Hey HydroTek, thanks for the help. I have been testing to change the LogLevel in both the .INI file and in the LogLevel class and changed it to 4, still no change.
I'm not sure where i would be able to set logging to file instead of console. I think this is only for logging when running the application within Eclipse? The writing to log when the application is built should be within the code. But i could be completely wrong here.

User avatar
HydroTek
Intermediate Crafter
Posts: 138
Joined: Sat Jun 16, 2007 1:43 am
Location: Indiana USA

Re: Help with SWGaide & Basilisk needed

Post by HydroTek » Wed Aug 08, 2012 3:09 am

Look at SWGConstants.java ..change this to false before you compile, if you need to run Aide outside of Eclipse. Otherwize the errors are posted to the console in Eclipse.

Code: Select all

/**
	 * A flag which denotes if developer debugging is turned on, that is, all
	 * error and exception messages are written to System.err for easier
	 * readability and traceability while developing in an IDE, etc. Otherwise
	 * all such output to file as for a normal user.
	 */
	// DEVELOPER_NOTE: set this flag true while developing, to get the output
	// from stdout and stderr to the console in Eclipse rather than to file.
	public static final boolean DEV_DEBUG = true;
As far as player levels go, what is with the professions.xml file listing levels from 100 to 100000? All professions stop at 10000 max, except for Bounty Hunter ..need input from Sobuno to see if this is correct.
If it's stuck :x ...force it ...if it breaks, :shock: you needed a new one anyway :)
Characters(Legends): HydroTek, Ditty, and Talo ..give a shout if you see me in game

Wieli
Novice Crafter
Posts: 23
Joined: Fri Apr 01, 2011 7:03 am

Re: Help with SWGaide & Basilisk needed

Post by Wieli » Wed Aug 08, 2012 4:16 pm

HydroTek - That fixed everything for me.... I can now read the logs. HUGE THANKS FOR THIS!

When it comes to the levels. I just changed the Max_level=90 to Max_level=10000

Right now it dont get me any warnings. i know that this is not an solution, but its not giving errors doing ith either. And im not sure how this effects other parts of the program.

Wieli
Novice Crafter
Posts: 23
Joined: Fri Apr 01, 2011 7:03 am

Re: Help with SWGaide & Basilisk needed

Post by Wieli » Wed Aug 08, 2012 8:11 pm

It aslo seems that many of AS/WS Schematics have the wrong cathegory in the XML files which means that we get alot of warnings for "missing Category"

User avatar
HydroTek
Intermediate Crafter
Posts: 138
Joined: Sat Jun 16, 2007 1:43 am
Location: Indiana USA

Re: Help with SWGaide & Basilisk needed

Post by HydroTek » Wed Aug 08, 2012 10:18 pm

One thing that bugs me ..I cant get Aide to run from inside Eclipse, only by compiling and running from outside. I just get the "cant run SwgAide from the directory that is not the directory where java is" or something like that. I messed with renaming and such and can throw that error at will, but I don't see where I am getting it wrong inside Eclipse ...any thoughts? ..Sure would be nice to be able to run debug ../sigh.

Im sure it is just a noob thing in the settings.

Oh yeah, same settings on the XP and Win7 and still win7 throws errors, still working on this part. dang security stuff :roll:
If it's stuck :x ...force it ...if it breaks, :shock: you needed a new one anyway :)
Characters(Legends): HydroTek, Ditty, and Talo ..give a shout if you see me in game

User avatar
HydroTek
Intermediate Crafter
Posts: 138
Joined: Sat Jun 16, 2007 1:43 am
Location: Indiana USA

Re: Help with SWGaide & Basilisk needed

Post by HydroTek » Thu Aug 09, 2012 4:01 am

UPDATE: So after I posted, got to thinking about the working directory in Eclipse ...changed mine to the root of my projects, and had Eclipse move Aide to a new folder ..the program errors went away 8) . K, now I can run debug in Eclipse ..found the error with Aide stopping (it was looking for SWGAide.jar in the working directory) /facepalm Hydro.

Made a "new text file" and called it SWGAide.jar ..well hello :idea: ..Aide runs just fine from inside Eclipse(Win7) now ..on to fixing real problems for a change.

Looks like the next thing is "professions" ..as Sobuno added to the profession list ..we will need to add those to Aide as well, I think this will "fix" a lot of the errors. There are a few places that professions are used in list boxes, I am hoping that the info is from a central location, rather than hard coded in, if not then it should be changed to a central location.
If it's stuck :x ...force it ...if it breaks, :shock: you needed a new one anyway :)
Characters(Legends): HydroTek, Ditty, and Talo ..give a shout if you see me in game

Zarrak Galactic
Novice Crafter
Posts: 28
Joined: Sat Aug 02, 2008 4:23 pm
Location: Vancouver, BC Canada
Contact:

Re: Help with SWGaide & Basilisk needed

Post by Zarrak Galactic » Thu Aug 09, 2012 4:25 am

Woohoo! Sounds like progress! I still have the program on both Win7 and XP so let me know if I need to test anything.

Meanwhile, I'll just lurk and cross my fingers hehe

Go go!!

Wieli
Novice Crafter
Posts: 23
Joined: Fri Apr 01, 2011 7:03 am

Re: Help with SWGaide & Basilisk needed

Post by Wieli » Thu Aug 09, 2012 2:46 pm

HydroTek wrote:UPDATE: So after I posted, got to thinking about the working directory in Eclipse ...changed mine to the root of my projects, and had Eclipse move Aide to a new folder ..the program errors went away 8) . K, now I can run debug in Eclipse ..found the error with Aide stopping (it was looking for SWGAide.jar in the working directory) /facepalm Hydro.

Made a "new text file" and called it SWGAide.jar ..well hello :idea: ..Aide runs just fine from inside Eclipse(Win7) now ..on to fixing real problems for a change.

Looks like the next thing is "professions" ..as Sobuno added to the profession list ..we will need to add those to Aide as well, I think this will "fix" a lot of the errors. There are a few places that professions are used in list boxes, I am hoping that the info is from a central location, rather than hard coded in, if not then it should be changed to a central location.
I had the same problem, that is the reason i have been waiting the help with the logs for so long.. I figured this out yesterday by mistake so i can now also debug inside eclipse..

Professions - I have updated this file and added all the professions. We still get errors since many of the professions have a level=0 which SWGAide dont like. This is proffesions like "Lightsaber" "combat prowess" etc. and we cant just take those away because SWGAide still scrapes those anyway and just leaves an error. Hydro - if you want to take a look at this let me know and i send you the file. I have just done the data entry so nothing fancy. All error for schematic with wrong ID is gone though.

Schematics - Since many of the Schematics have the wrong Category ID i'm a little stuck here too at the moment.

TradeTab - I have figured out exactly why and where in the code there is a problem. making it impossible to see mails in the sale/purchase tab. I'm really bad at the coding bit though so it goes really slow changing in the code (its just a small fix) i just don't understand yet how to fix it.



The thing that bugs me the most is that i find the problems, but im not good enough programmer to fix them:P

Wieli
Novice Crafter
Posts: 23
Joined: Fri Apr 01, 2011 7:03 am

Re: Help with SWGaide & Basilisk needed

Post by Wieli » Thu Aug 09, 2012 2:51 pm

Here is the profession list, The professions in the bottom have no Schematics, and therefor i cant find their ID so i had to make one up. There is properly a better solution for this. If i didn't add those professions i still got error.

This code goes into swg.model.SWGProfessions.java

Code: Select all

public enum SWGProfession {
    
    // DO NOT AUTO-SORT this type: the order of the enums are Traders first,
    // alphabetical second, that is, auto-sort would spoil the Trader first

    /**
     * A constant which denotes <i>all&nbsp;</i> professions.
     */
    ALL("All", 0),
    /**
     * A constant for BE.
     */
    BIO_ENGINEER("Bio-Engineer", 19),
    /**
     * A constant for Armorsmith.
     */
    ARMORSMITH("Armorsmith", 20),
    
    /**
     * A constant for Shipwright.
     */
    SHIPWRIGHT("Shipwright", 47),
    
    
    /**
     * A constant for Scout.
     */
    SCOUT("Scout", 2),
    
    /**
     * A constant for Medic.
     */
    
    MEDIC("Medic", 3),
    /**
     * A constant for Artisan.
     */
    
    ARTISAN("Artisan", 4),
    
    /** 
    * A constant for Jedi.
     */
    JEDI("Jedi", 39),

    /**
     * A constant for Spy.
     */
    SMUGGLER("Smuggler", 27),
    
    /**
     * A constant for Chef.
     */
    CHEF("Chef", 22),
    /**
     * A constant for Architect.
     */
    ARCHITECT("Architect", 24),
    /**
     * A constant for WS.
     */
    WS("Weaponsmith", 21),
    /**
     * A constant for DE.
     */
    DE("Droid Engineer", 25),
    /**
     * A constant for CM.
     */
    CM("Combat Medic", 30),
    /**
     * A constant for Doctor.
     */
    DOCTOR("Doctor", 16),
    /**
     * A constant for Tailor.
     */
    TAILOR("Tailor", 23),
    /**
     * A constant for Force Progression.
     */
    FORCE("Force Progression", 46),
    /**
     * A constant for Speices.
     */
    SPECIES("Species", 51),
    /**
     * A constant for Ranger.
     */
    RANGER("Ranger", 17),
    /**
     * A constant for Entertainer.
     */
    ENTERTAINER("Entertainer", 1),
    /**
     * A constant for Musician.
     */
    MUSICIAN("Musician", 15),
    /**
    * A constant for BH.
    */
   BH("Bounty Hunter",100 ),
   /**
    * A constant for Commando.
    */
   COMMANDO("Commando",101 ),
   BRAWLER("Brawler",102 ),
   MARKSMAN("Marksman",103 ),
   RIFLEMAN("Rifleman",104 ),
   CARBINEER("Carbineer",105 ),
   PISTOLEER("Pistoleer",106 ),
   FENCER("Fencer",107 ),
   SWORDSMAN("Swordsman",108 ),
   CRAFTINGMASTERY("Crafting Mastery",110 ),
   CH("Creature Handler",111 ),
   DANCER("Dancer",112 ),
   IMAGED("Image Designer",113 ),
   DEFENDER("Defender",114 ),
   ENHANCEDREFLEXES("Enhanced Reflexes",115 ),
   ENHANCEMENTS("Enhancements",116 ),
   FORCEPROGRESSION("Force Progression",117 ),
   HEALING("Healing",118 ),
   HEAIGHTENEDSENSES("Heightened Senses",119 ),
   LIGHTSABER("Light saber",120 ),
   MERCHANT("Merchant",121 ),
   PADAWAN("Padawan",122 ),
   PIKEMAN("Pikeman",123 ),
   POWERS("Powers",124 ),
   SQUADLEADER("Squadleader",125 ),
   CP("Combat Prowess",127),
   TKA("Teras Kasi Artist",126 );
I tried to keep the same layout of the code in the beginning but in the end got tired since i wanted to know of it worked or not:D

Sobuno
Developer
Posts: 2589
Joined: Sun Mar 25, 2007 2:17 am
Contact:

Re: Help with SWGaide & Basilisk needed

Post by Sobuno » Fri Aug 10, 2012 3:37 pm

HydroTek wrote:Look at SWGConstants.java ..change this to false before you compile, if you need to run Aide outside of Eclipse. Otherwize the errors are posted to the console in Eclipse.

Code: Select all

/**
	 * A flag which denotes if developer debugging is turned on, that is, all
	 * error and exception messages are written to System.err for easier
	 * readability and traceability while developing in an IDE, etc. Otherwise
	 * all such output to file as for a normal user.
	 */
	// DEVELOPER_NOTE: set this flag true while developing, to get the output
	// from stdout and stderr to the console in Eclipse rather than to file.
	public static final boolean DEV_DEBUG = true;
As far as player levels go, what is with the professions.xml file listing levels from 100 to 100000? All professions stop at 10000 max, except for Bounty Hunter ..need input from Sobuno to see if this is correct.
As there was no notion of level in pre-CU, I had to base the levels on something. The levels listed is the number of credits needed to learn the skill from an NPC trainer.

Sobuno
Developer
Posts: 2589
Joined: Sun Mar 25, 2007 2:17 am
Contact:

Re: Help with SWGaide & Basilisk needed

Post by Sobuno » Fri Aug 10, 2012 3:41 pm

Wieli wrote:Here is the profession list, The professions in the bottom have no Schematics, and therefor i cant find their ID so i had to make one up. There is properly a better solution for this. If i didn't add those professions i still got error.

This code goes into swg.model.SWGProfessions.java

Code: Select all

public enum SWGProfession {
    
    // DO NOT AUTO-SORT this type: the order of the enums are Traders first,
    // alphabetical second, that is, auto-sort would spoil the Trader first

    /**
     * A constant which denotes <i>all&nbsp;</i> professions.
     */
    ALL("All", 0),
    /**
     * A constant for BE.
     */
    BIO_ENGINEER("Bio-Engineer", 19),
    /**
     * A constant for Armorsmith.
     */
    ARMORSMITH("Armorsmith", 20),
    
    /**
     * A constant for Shipwright.
     */
    SHIPWRIGHT("Shipwright", 47),
    
    
    /**
     * A constant for Scout.
     */
    SCOUT("Scout", 2),
    
    /**
     * A constant for Medic.
     */
    
    MEDIC("Medic", 3),
    /**
     * A constant for Artisan.
     */
    
    ARTISAN("Artisan", 4),
    
    /** 
    * A constant for Jedi.
     */
    JEDI("Jedi", 39),

    /**
     * A constant for Spy.
     */
    SMUGGLER("Smuggler", 27),
    
    /**
     * A constant for Chef.
     */
    CHEF("Chef", 22),
    /**
     * A constant for Architect.
     */
    ARCHITECT("Architect", 24),
    /**
     * A constant for WS.
     */
    WS("Weaponsmith", 21),
    /**
     * A constant for DE.
     */
    DE("Droid Engineer", 25),
    /**
     * A constant for CM.
     */
    CM("Combat Medic", 30),
    /**
     * A constant for Doctor.
     */
    DOCTOR("Doctor", 16),
    /**
     * A constant for Tailor.
     */
    TAILOR("Tailor", 23),
    /**
     * A constant for Force Progression.
     */
    FORCE("Force Progression", 46),
    /**
     * A constant for Speices.
     */
    SPECIES("Species", 51),
    /**
     * A constant for Ranger.
     */
    RANGER("Ranger", 17),
    /**
     * A constant for Entertainer.
     */
    ENTERTAINER("Entertainer", 1),
    /**
     * A constant for Musician.
     */
    MUSICIAN("Musician", 15),
    /**
    * A constant for BH.
    */
   BH("Bounty Hunter",100 ),
   /**
    * A constant for Commando.
    */
   COMMANDO("Commando",101 ),
   BRAWLER("Brawler",102 ),
   MARKSMAN("Marksman",103 ),
   RIFLEMAN("Rifleman",104 ),
   CARBINEER("Carbineer",105 ),
   PISTOLEER("Pistoleer",106 ),
   FENCER("Fencer",107 ),
   SWORDSMAN("Swordsman",108 ),
   CRAFTINGMASTERY("Crafting Mastery",110 ),
   CH("Creature Handler",111 ),
   DANCER("Dancer",112 ),
   IMAGED("Image Designer",113 ),
   DEFENDER("Defender",114 ),
   ENHANCEDREFLEXES("Enhanced Reflexes",115 ),
   ENHANCEMENTS("Enhancements",116 ),
   FORCEPROGRESSION("Force Progression",117 ),
   HEALING("Healing",118 ),
   HEAIGHTENEDSENSES("Heightened Senses",119 ),
   LIGHTSABER("Light saber",120 ),
   MERCHANT("Merchant",121 ),
   PADAWAN("Padawan",122 ),
   PIKEMAN("Pikeman",123 ),
   POWERS("Powers",124 ),
   SQUADLEADER("Squadleader",125 ),
   CP("Combat Prowess",127),
   TKA("Teras Kasi Artist",126 );
I tried to keep the same layout of the code in the beginning but in the end got tired since i wanted to know of it worked or not:D

Code: Select all

id	profession
48	Alliance Starfighter
24	Architect
20	Armorsmith
4	Artisan
19	Bio-Engineer
28	Bounty Hunter
5	Brawler
9	Carbineer
22	Chef
30	Combat Medic
35	Combat Prowess
29	Commando
37	Crafting Mastery
18	Creature Handler
14	Dancer
45	Dark Force Rankings
43	Defender
16	Doctor
25	Droid Engineer
36	Enhanced Reflexes
42	Enhancements
1	Entertainer
11	Fencer
46	Force Progression
50	Freelance Pilot
41	Healing
38	Heightened Senses
31	Image Designer
49	Imperial Navy Pilot
44	Light Force Rankings
39	Light Saber
6	Marksman
3	Medic
26	Merchant
15	Musician
34	Padawan
13	Pikeman
8	Pistoleer
33	Politician
40	Powers
17	Ranger
7	Rifleman
2	Scout
47	Shipwright
27	Smuggler
51	Species
32	Squadleader
12	Swordsman
23	Tailor
10	Teras Kasi Artist
21	Weaponsmith

Sobuno
Developer
Posts: 2589
Joined: Sun Mar 25, 2007 2:17 am
Contact:

Re: Help with SWGaide & Basilisk needed

Post by Sobuno » Fri Aug 10, 2012 3:46 pm

Wieli wrote:It aslo seems that many of AS/WS Schematics have the wrong cathegory in the XML files which means that we get alot of warnings for "missing Category"
A 0 in the category means that the category is N/A, i.e. the schematic has not been assigned a category yet. 621 of the schematics currently have no category assigned.

Sobuno
Developer
Posts: 2589
Joined: Sun Mar 25, 2007 2:17 am
Contact:

Re: Help with SWGaide & Basilisk needed

Post by Sobuno » Fri Aug 10, 2012 4:25 pm

Source for my version of SWGAide: http://www.sobuno.dk/swg-src.zip

Post Reply

Who is online

Users browsing this forum: Magpie [Bot] and 49 guests