Author |
Message |
Zip Newbie
Joined: Aug 31 2004 Posts: 9 Offline
|
Posted: Sat Oct 02, 2004 7:46 pm Post subject: TWCore |
 |
|
|
|
I am some what unfamiliar with java and if some one could assist me with some directions on getting started, (setting my cpu up). I noticed, there is very little documentation on beggining to program for the Javacore for obviouse reasons.
I downloaded the core, the JDK. The readme in the TWCORE folder says to do $ javac BuildTWCore.java but I am not sure where do do that. I went to the to /jdk/bin and did javac d:\myfolder\BuildTWCore.java but I am not sure if that was the same as doing what the readme says. Then when I try to bld build mybot I only get erros. The same goes for everything, not just "mybot". the "runbots.bat" also doesnt work. The error for that is "Exeption in thread "main" java.lang.NoClassDefFoundError: twcore/core/Start"
I have a feeling my problems are in how I installed or failed to install all the java related things on my comp. As usual any help or redirection would be very helpful. PS. I be newbie! |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Mon Oct 04, 2004 6:11 am Post subject: |
 |
|
|
|
The images on that first page are all bitmap. _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Mon Oct 04, 2004 10:12 am Post subject: |
 |
|
|
|
I use JDeveloper :/ _________________ Performance is often the art of cheating carefully. - James Gosling |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Mon Oct 04, 2004 8:15 pm Post subject: |
 |
|
|
|
I use a combination of Textpad, Eclipse, and JBuilder. I use JCreator at school because its small and I put it on my USB drive since we can't install anythying. JCreator is basically Textpad expanded and optimized for Java, it has many of the same characteristics. |
|
Back to top |
|
 |
Purge Episode I > Eposide III Jar-Jar is kool

Age:35 Gender: Joined: Sep 08 2004 Posts: 2019 Offline
|
Posted: Sun Oct 17, 2004 7:38 pm Post subject: |
 |
|
|
|
I also use JDeveloper  |
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:37 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Sun Oct 17, 2004 8:19 pm Post subject: |
 |
|
|
|
I have no idea what this is, but is NetBeans IDE anything related?  |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Fri Oct 22, 2004 2:33 pm Post subject: |
 |
|
|
|
Its just another developing environment |
|
Back to top |
|
 |
Shadow-Assassin Guest
Offline
|
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Sun Jan 02, 2005 6:15 pm Post subject: |
 |
|
|
|
It appears you needed to give a number in an arugement somewhere... yup. |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Sun Jan 02, 2005 6:18 pm Post subject: |
 |
|
|
|
looks like your server port is weird. Post setup.cfg here and we can take a look |
|
Back to top |
|
 |
Shadow-Assassin Guest
Offline
|
Posted: Sun Jan 02, 2005 6:26 pm Post subject: |
 |
|
|
|
[Server]
Server=24.230.63.140
Port=1521
[Login Information]
Main Login=Head.bot
Main Password=head.bot
Sysop Password=sysoppw
[Chat Names]
Chat Name=Head.bot
Staff Chat=
Smod Chat=
[Debugging]
# Set DebugOutput to 0 to turn stack traces off, 1 to turn them on.
DebugOutput=1
[Directories]
#Where the core lives, without trailing slashes
Core Location=C:\Documents and Settings\Admin\Desktop\twcore-0.89
[Logging]
Exception Log=/home/bots/exception.log |
|
Back to top |
|
 |
2dragons Novice
Joined: Feb 17 2004 Posts: 95 Offline
|
Posted: Sun Jan 02, 2005 7:18 pm Post subject: |
 |
|
|
|
You did not specify the path to the cfg file, twcore then looks for it in the directory it runs from. You need to do:
java -cp twcore.jar;twcore/m
isc/googleapi.jar;twcore/misc/mysql-connector-java-3.0.6-stable-bin.jar twcore.c
ore.Start <path to setup.cfg>
ie:
java -cp twcore.jar;twcore/m
isc/googleapi.jar;twcore/misc/mysql-connector-java-3.0.6-stable-bin.jar twcore.c
ore.Start c:\setup.cfg |
|
Back to top |
|
 |
Shadow-Assassin Guest
Offline
|
Posted: Sun Jan 02, 2005 7:52 pm Post subject: |
 |
|
|
|
2dragons wrote: | You did not specify the path to the cfg file, twcore then looks for it in the directory it runs from. You need to do:
java -cp twcore.jar;twcore/m
isc/googleapi.jar;twcore/misc/mysql-connector-java-3.0.6-stable-bin.jar twcore.c
ore.Start <path to setup.cfg>
ie:
java -cp twcore.jar;twcore/m
isc/googleapi.jar;twcore/misc/mysql-connector-java-3.0.6-stable-bin.jar twcore.c
ore.Start c:\setup.cfg |
What do you mean by that? I used JCreator LE to help me with this. |
|
Back to top |
|
 |
Shadow-Assassin Guest
Offline
|
Posted: Sun Jan 02, 2005 11:31 pm Post subject: |
 |
|
|
|
Ok, I got quite a bit of help. When I got to start the core, and I am not in the zone, I can see the list of zones on my subspace list, after a couple of seconds, I noticed that another played joined the zone, and then a second later, it left. And on my subgame2 for my server, it said that the core bot joined and signed in as a sysop. If i tried to join the game, then start the core, i didnt join. I talked with 2dragons, and he helped me out, and the setup.cfg is correct, all of my names and passwords and sysop password and sysop.txt is correct. Does anyone know what is going on. |
|
Back to top |
|
 |
2dragons Novice
Joined: Feb 17 2004 Posts: 95 Offline
|
Posted: Mon Jan 03, 2005 12:54 am Post subject: |
 |
|
|
|
I'll nearly guarantee you no one will.
We can make the assumption the core is correct since numerous people have ran it from the download and were able to connect with it.
We know that your bot is attempting to connect because subgame acknowledges it as does the core.
Short of some anomaly the only variables are:
- is the bot name registered
- are you using the correct name
- are you using the correct pass
- are you using the correct sysop pass
- is the bot in sysop.txt on the server, not on the core
Any other cause with some certainty should not be related to the core or the server as you have said you can connect to your server.
* If your login with User:Pass as ( 2dragons:mypass*sysoppass ) then -
Main Login=2dragons
Main Password=mypass
Sysop Password=sysoppass |
|
Back to top |
|
 |
|