Bot Questions - twcore. schitt - Sat Dec 22, 2007 5:06 am Post subject: twcore.
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?
Maverick - Sat Dec 22, 2007 12:17 pm Post subject:
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 ?
BDwinsAlt - Sat Dec 22, 2007 4:31 pm Post subject:
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."
schitt - Sat Dec 22, 2007 8:29 pm Post subject:
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.
schitt - Sun Dec 23, 2007 4:45 am Post subject:
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..
schitt - Sun Dec 23, 2007 5:26 am Post subject:
ok, i got it working, you have a mess in these folders.. lol
schitt - Sun Dec 23, 2007 8:47 pm Post subject:
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?
BDwinsAlt - Sun Dec 23, 2007 9:27 pm Post subject:
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....
CypherJF - Sun Dec 23, 2007 10:08 pm Post subject:
Is the zone setup to allow Subspace 1.34 clients?
schitt - Mon Dec 24, 2007 12:14 am Post subject:
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?
BDwinsAlt - Mon Dec 24, 2007 9:35 am Post subject:
I think there were issues with it on the new version of twcore. Make sure you have the older version.
milosh - Sat Jan 05, 2008 11:05 am Post subject:
The newest version is working fine. Perhaps you don't have the correct sysop password in your setup.cfg?
Maverick - Sat Jan 05, 2008 4:53 pm Post subject:
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.)
BDwinsAlt - Sun Jan 06, 2008 3:49 pm Post subject:
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.