Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
TWCore

 
Post new topic   Reply to topic Printable version
 View previous topic  Kill packet Post :: Post Compiling  View next topic  
Author Message
Zip
Newbie


Joined: Aug 31 2004
Posts: 9
Offline

PostPosted: Sat Oct 02, 2004 7:46 pm    Post subject: TWCore Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Sun Oct 03, 2004 7:13 pm    Post subject: Reply to topic Reply with quote

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
_________________

Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Mon Oct 04, 2004 6:11 am    Post subject: Reply to topic Reply with quote

icon_eek.gif 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
View users profile Send private message Add User to Ignore List Visit posters website
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Mon Oct 04, 2004 10:12 am    Post subject: Reply to topic Reply with quote

I use JDeveloper :/
_________________
Performance is often the art of cheating carefully. - James Gosling
Back to top
View users profile Send private message Add User to Ignore List
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Mon Oct 04, 2004 8:15 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website
Purge
Episode I > Eposide III
Jar-Jar is kool


Age:35
Gender:Gender:Male
Joined: Sep 08 2004
Posts: 2019
Offline

PostPosted: Sun Oct 17, 2004 7:38 pm    Post subject: Reply to topic Reply with quote

I also use JDeveloper tongue.gif
Back to top
View users profile Send private message Add User to Ignore List
Solo Ace
Yeah, I'm in touch with reality...we correspond from time to time.


Age:37
Gender:Gender:Male
Joined: Feb 06 2004
Posts: 2583
Location: The Netherlands
Offline

PostPosted: Sun Oct 17, 2004 8:19 pm    Post subject: Reply to topic Reply with quote

I have no idea what this is, but is NetBeans IDE anything related? icon_confused.gif
Back to top
View users profile Send private message Add User to Ignore List
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Fri Oct 22, 2004 2:33 pm    Post subject: Reply to topic Reply with quote

Its just another developing environment
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Shadow-Assassin
Guest


Offline

PostPosted: Sun Jan 02, 2005 6:10 pm    Post subject: Reply to topic Reply with quote

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)
Back to top
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Sun Jan 02, 2005 6:15 pm    Post subject: Reply to topic Reply with quote

It appears you needed to give a number in an arugement somewhere... yup.
Back to top
View users profile Send private message Add User to Ignore List
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Sun Jan 02, 2005 6:18 pm    Post subject: Reply to topic Reply with quote

looks like your server port is weird. Post setup.cfg here and we can take a look
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Shadow-Assassin
Guest


Offline

PostPosted: Sun Jan 02, 2005 6:26 pm    Post subject: Reply to topic Reply with quote

[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

PostPosted: Sun Jan 02, 2005 7:18 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Shadow-Assassin
Guest


Offline

PostPosted: Sun Jan 02, 2005 7:52 pm    Post subject: Reply to topic Reply with quote

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

PostPosted: Sun Jan 02, 2005 11:31 pm    Post subject: Reply to topic Reply with quote

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

PostPosted: Mon Jan 03, 2005 12:54 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 197 page(s) served in previous 5 minutes.

phpBB Created this page in 0.460706 seconds : 41 queries executed (92.3%): GZIP compression disabled