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  How To Make Bots Post :: Post Buy Bot  View next topic  
Author Message
schitt
Newbie


Joined: Dec 13 2007
Posts: 9
Offline

PostPosted: Sat Dec 22, 2007 5:06 am    Post subject: twcore. Reply to topic Reply with quote

any idea what the problem would be here, i can load twcore perfectly, enters zone and all, when i try and spawn any bot i get these errors:

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at twcore.core.command.CommandInterpreter.handleEvent(Unknown Source)
at twcore.core.HubBot.handleEvent(Unknown Source)
at twcore.core.net.GamePacketInterpreter.handleChatMessage(Unknown Source)
at twcore.core.net.GamePacketInterpreter.translateNormalPacket(Unknown Source)
at twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source)
at twcore.core.net.ReliablePacketHandler.handleReliableMessage(Unknown Source)
at twcore.core.net.GamePacketInterpreter.translateSpecialPacket(Unknown Source)
at twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source)
at twcore.core.Session.run(Unknown Source)
Caused by: java.lang.NullPointerException
at twcore.core.util.Tools.getRecursiveFileInDirectory(Unknown Source)
at twcore.core.CoreData.getBotConfig(Unknown Source)
at twcore.core.BotQueue.spawnBot(Unknown Source)
at twcore.core.HubBot.spawn(Unknown Source)
at twcore.core.HubBot.handleSpawnMessage(Unknown Source)
... 13 more


happens when i try and load bd's bots and the standard ones, i've edited the bot cfg's... any ideas?
_________________
-schitt
-sscc halo owner
Back to top
View users profile Send private message Add User to Ignore List
Maverick
broken record


Age:40
Gender:Gender:Male
Joined: Feb 26 2005
Posts: 1521
Location: The Netherlands
Offline

PostPosted: Sat Dec 22, 2007 12:17 pm    Post subject: Reply to topic Reply with quote

Code: Show/Hide
Caused by: java.lang.NullPointerException
at twcore.core.util.Tools.getRecursiveFileInDirectory(Unknown Source)

That's why it crashes, it probably can't find a specific file.
Are you sure you have renamed the bot.example.cfg to bot.cfg ?
_________________
Nickname: Maverick (I changed my name!)
TWCore developer | Subspace statistics
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
BDwinsAlt
Agurus's Posse


Age:34
Gender:Gender:Male
Joined: Jun 16 2003
Posts: 1145
Location: Alabama
Offline

PostPosted: Sat Dec 22, 2007 4:31 pm    Post subject: Reply to topic Reply with quote

I posted on my cell, but it isn't showing up. I posted something like: "Checks the paths... make sure the cfg file is named correctly or something."
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
schitt
Newbie


Joined: Dec 13 2007
Posts: 9
Offline

PostPosted: Sat Dec 22, 2007 8:29 pm    Post subject: Reply to topic Reply with quote

ii've renamed all correctly, but if your trying to say a file named "getRecursiveFileInDirectory" is missing, well then its missing cause i dont have it, and this is afresh download of it.
Back to top
View users profile Send private message Add User to Ignore List
schitt
Newbie


Joined: Dec 13 2007
Posts: 9
Offline

PostPosted: Sun Dec 23, 2007 4:45 am    Post subject: Reply to topic Reply with quote

Ok, I got it to spawn bots, except BD, yours likes to disconnet after entering... lol any ideas?

-----------------
Sun 12-23-2007 01:47:47

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at twcore.core.Session.prepare(Unknown Source)
at twcore.core.Session.run(Unknown Source)
Caused by: java.lang.NoSuchMethodError: twcore.core.Session.getGamePacketGenerator()Ltwcore/core/GamePacketGenerator;
at twcore.bots.sdbot.sdbot.<init>(sdbot.java:24)
... 6 more


Heres the Massive Error..
Back to top
View users profile Send private message Add User to Ignore List
schitt
Newbie


Joined: Dec 13 2007
Posts: 9
Offline

PostPosted: Sun Dec 23, 2007 5:26 am    Post subject: Reply to topic Reply with quote

ok, i got it working, you have a mess in these folders.. lol
Back to top
View users profile Send private message Add User to Ignore List
schitt
Newbie


Joined: Dec 13 2007
Posts: 9
Offline

PostPosted: Sun Dec 23, 2007 8:47 pm    Post subject: Reply to topic Reply with quote

Ok, now im getting a new error...

Sun 12-23-2007 17:28:34 Halo-SDBot-1 is logging in.
Sun 12-23-2007 17:28:35 Halo-SDBot-1 log in response: Restricted zone
Sun 12-23-2007 17:28:39 Halo-SDBot-1 failed to log in. Login timed out.
Sun 12-23-2007 17:28:39 Halo-SDBot-1 is disconnecting...
Sun 12-23-2007 17:29:05 Warning! Exception message:
java.lang.NullPointerException: null


would that mean it just re-entered zone too many times? or something else im missing... im startin to hate this bot, never had this much bad luck with a bot..

it gives me a error in SS, saying invalid password, but its right.. what could be the problem?
Back to top
View users profile Send private message Add User to Ignore List
BDwinsAlt
Agurus's Posse


Age:34
Gender:Gender:Male
Joined: Jun 16 2003
Posts: 1145
Location: Alabama
Offline

PostPosted: Sun Dec 23, 2007 9:27 pm    Post subject: Reply to topic Reply with quote

I don't know which version you have, old, new, quantum arena version... Make sure it's SysOp, make sure all the passwords are correct. Make sure your logged in as the bot to create the user name before hand....
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
CypherJF
I gargle nitroglycerin


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

PostPosted: Sun Dec 23, 2007 10:08 pm    Post subject: Reply to topic Reply with quote

Is the zone setup to allow Subspace 1.34 clients?
_________________
Performance is often the art of cheating carefully. - James Gosling
Back to top
View users profile Send private message Add User to Ignore List
schitt
Newbie


Joined: Dec 13 2007
Posts: 9
Offline

PostPosted: Mon Dec 24, 2007 12:14 am    Post subject: Reply to topic Reply with quote

well the hubbot can enter.. so it should work, i think i just tried to login too many times, but now i can get the spawn to enter, it just exits as soon as its in..
[from zone]
1:Schitt-TestBot> schitt spawned Halo-Event-SD of type sdbot
1:Schitt-TestBot> Halo-Event-SD has disconnected.

[from console]
Sun 12-23-2007 20:52:33 Warning! Exception message:
java.lang.reflect.InvocationTargetException: null
Sun 12-23-2007 20:52:34 Halo-Event-SD is logging in.
Halo-Event-SD logged in: 359 ms.
Exception in thread "Thread-19" java.lang.NullPointerException
at twcore.core.Session.disconnect(Unknown Source)
at twcore.core.Session.run(Unknown Source)

any ideas?
Back to top
View users profile Send private message Add User to Ignore List
BDwinsAlt
Agurus's Posse


Age:34
Gender:Gender:Male
Joined: Jun 16 2003
Posts: 1145
Location: Alabama
Offline

PostPosted: Mon Dec 24, 2007 9:35 am    Post subject: Reply to topic Reply with quote

I think there were issues with it on the new version of twcore. Make sure you have the older version.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
milosh
Newbie


Age:38
Gender:Gender:Male
Joined: Dec 09 2007
Posts: 6
Offline

PostPosted: Sat Jan 05, 2008 11:05 am    Post subject: Reply to topic Reply with quote

The newest version is working fine. Perhaps you don't have the correct sysop password in your setup.cfg?
_________________
SSCU Trench Wars Moderator
SSCU Trench Wars Bot Developer
SSCU Trench Wars Dev Member


Last edited by milosh on Sun Jan 06, 2008 12:08 am, edited 1 time in total
Back to top
View users profile Send private message Add User to Ignore List
Maverick
broken record


Age:40
Gender:Gender:Male
Joined: Feb 26 2005
Posts: 1521
Location: The Netherlands
Offline

PostPosted: Sat Jan 05, 2008 4:53 pm    Post subject: Reply to topic Reply with quote

I've created a guide on how to get & use the newest version, read it on http://www.twcore.org/wiki/RunningOnWindows . (I still have to make it for Linux.)
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
BDwinsAlt
Agurus's Posse


Age:34
Gender:Gender:Male
Joined: Jun 16 2003
Posts: 1145
Location: Alabama
Offline

PostPosted: Sun Jan 06, 2008 3:49 pm    Post subject: Reply to topic Reply with quote

milosh wrote:
The newest version is working fine. Perhaps you don't have the correct sysop password in your setup.cfg?


I meant, I imported everything with the old version. They didn't use folders back then with event and all. Now they do. That's an issue.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
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: 154 page(s) served in previous 5 minutes.

phpBB Created this page in 0.445147 seconds : 38 queries executed (91.8%): GZIP compression disabled