Server Help

Bot Questions - TWCore

Zip - 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!
D1st0rt - Sun Oct 03, 2004 7:13 pm
Post subject:
First, this provides a good basic setup guide:
http://botguide.blarglefish.com

Then I have one that outlines making a basic bot here:
http://d1.oldbay.us/?p=tut
Cyan~Fire - Mon Oct 04, 2004 6:11 am
Post subject:
icon_eek.gif The images on that first page are all bitmap.
CypherJF - Mon Oct 04, 2004 10:12 am
Post subject:
I use JDeveloper :/
D1st0rt - 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.
Purge - Sun Oct 17, 2004 7:38 pm
Post subject:
I also use JDeveloper tongue.gif
Solo Ace - Sun Oct 17, 2004 8:19 pm
Post subject:
I have no idea what this is, but is NetBeans IDE anything related? icon_confused.gif
D1st0rt - Fri Oct 22, 2004 2:33 pm
Post subject:
Its just another developing environment
Anonymous - Sun Jan 02, 2005 6:10 pm
Post subject:
I went to the first website that distort gave. I followed the instructions exactly. and when I did runbots.exe, i got this:


Code: Show/Hide
C:\Documents and Settings\Admin\Desktop\twcore-0.89>java -cp twcore.jar;twcore/m
isc/googleapi.jar;twcore/misc/mysql-connector-java-3.0.6-stable-bin.jar twcore.c
ore.Start
Sun 00-02-2005 04:06:36 Failed to read file to memory: sql.cfg
Sun 00-02-2005 04:06:36 SQL Connection Pools Initialized Successfully.
Sun 00-02-2005 04:06:36 Background Queues Initialized
Exception in thread "main" java.lang.NumberFormatException: For input string: ""

        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at java.lang.Integer.valueOf(Unknown Source)
        at twcore.core.BotSettings.getInt(BotSettings.java:82)
        at twcore.core.CoreData.getServerPort(CoreData.java:27)
        at twcore.core.Start.startHub(Start.java:74)
        at twcore.core.Start.main(Start.java:17)

CypherJF - Sun Jan 02, 2005 6:15 pm
Post subject:
It appears you needed to give a number in an arugement somewhere... yup.
D1st0rt - 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
Anonymous - 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
2dragons - 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
Anonymous - 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.
Anonymous - 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.
2dragons - 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
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group