Loading...
 

PogamutUT2004


Rotate bot in the right angle when hearing noise

Hi,

I have been experiencing some trouble trying to make the bot turnTo a noise. I have done the following:

@EventListener (eventClass = HearNoise.class)
protected void hearNoise (HearNoise event) {
move.turnTo(event.getRotation().toLocation());
}

The listener works just fine, the problem is, the bot does not turn, ever! I used turnTo (); because I do not know what else I can do with Rotation (which is what event.getRotation() retrieves). Any help would be appreciated.

I was also planning on doing some smart shooting with the rocket launcher and flack cannon. I still have not done any research, but I guess It is all a matter of playing with the speed of the enemy and the vector he is following (also the speed of the projectiles you are shooting). Someone has done anything like that?

Finally, I would like to remark again, that incomingProjectile listener, is not working, it does not update the position of the projectile.

Cheers, Fran.

(:
Hi!

Is the bot standing still? This is a bit counter-intuitive. Turn and Move command interrupts each other. So if the bot is running (pathExecutor is leading it somewhere) than your command will "stop it" but pathExecutor will immediatelly issue another Move command overriding your Turn.

What would be correct to is to use pathExecutor.setFocus(location);

Does it help?

Best,
Jimmy
TurnTo command does not interrupt moving. However, pathExecutor overrides turn command - because it is sending focus attribute in move commands, that overrides anything sent in TurnTo command immediately.

The rotation exported in HearNoise command is absolute rotation the bot should be facing when wanting to face the noise. So just issue TurnTo command and set ROTATION attribute with the rotation obtained through HearNoise.

Is you cast Rotation toLocation tou obtain a direction vector - not absolute one. Turning to a direction vector doesn't make sense, because it does not represent a location, it represent just a direction of the point (from the location of the bot).

Look at the implementation of strafeLeft, Right methods in getLocomotion module in Pogamut, where you see examples how to compute directions and positions in various angles from the bot.

E.g. this code makes bot strafeLeft by distance specified in the argument:
public void strafeLeft(double distance) {
		if (self == null) {
			self = agent.getWorldView().getSingle(Self.class);
		}
		if (self != null) {
			Location startLoc = self.getLocation();
			Location directionVector = self.getRotation().toLocation();
			Location targetVec = directionVector.cross(new Location(0, 0, 1))
					.getNormalized().scale(distance);

			agent.getAct().act(
					new Move().setFirstLocation(startLoc.add(targetVec))
							.setFocusLocation(
									startLoc.add(directionVector
											.getNormalized().scale(
													FOCUS_DISTANCE))));
		}
	}


If you are using pathExecutor Jakub is right that you should change focus of the bot (which is an absolute position). You'll need to do something like this:

//pseudo code
//first we'll get the direction vector 
Location directionVector = HearNoise.getRotation().toLocation().getNormalized();

//we will need also bot location beacause we need to compute absolute focus point location
Location botLocation = info.getLocation();

//now we have everything needed for the computation. We normalized our direction vector which is a good idea, because generally you don't know how "big" it is, so we will scale it, so our the distance between botlocation and focus point location is big enough (in example below it will be 500 ut units = ~500 cm)
Location newAbsoluteFocusLocation = botLocation.add(directionVector.scale(500));

pathExecutor.setFocus(newAbsoluteFocusLocation);

//To tell path executor you dont want it to focus something anymore:

pathExecutor.setFocus(null);


Look at linear algebra and vector computations - it will help you a lot when developing bots, because you need to compute location and angle and test some conditions such as what is closer to the bot very often.

Best,
Michal
First, thanks for all the answers,

Jimmy, I figured out that they interrupted each other, but in any case, I did not know that you could make your bot focus to a location while executing the path... Since this is very usefull I went back to netbeans to change the execution of my states so that my bot would focus to a location while executing the path.. turns out that netbeans does not find any method called setFocus on pathExecutor :-S, so is there a way to make the bot focus to a location while executing the pathExecutor?

Michal, I guess I will stick to that solution by now, in case I can not change the focus location of the pathExecutor (while executing). I still have not tried the other way (I have class in 5 minutes :P) but I will try later (maybe during class hahaha). I see that you are setting the focus location in the second example as Jimmy said: pathExecutor.setFocus (focusLocation). I repeat, I can not do that (netbeans does not find any method foucLocation), maybe I am using and old version of game bots?

Anyways, thanks a lot, I am looking forward to hear some more of you guys! It is really nice that you keep the forum active and help people so much.

Best,
Fran.

(:
Hi! We're glad for every user out there ;)

Anyway which version of Pogamut are you using?

PathExecutor.setFocus() should be available from version 3.2.0 I guess...
Are you using POSH by any chance?

Best, Jimmy
Pogamut 3.1, I guess that explains a lot of the things that have been going wrong. I will switch to 3.2 this afternoon and see how everything works.

Best, Fran.
Hi!

I need help!! we switched to 3.2.0 and installed maven. I followed all the steps that pdf you linked said. I tried to build a simple maven project, but it just doesn't work. I really I'm in trouble, because nothing works, and I have to show the project this week in my university (to see how things are going).

I'm doing this:

new project -> maven project ->maven quickstart archetype (1.0)

then I push add and write the following:

Group Id: cz.cuni.amis.pogamut.ut2004
Artifact Id: pogamut-ut2004-bot-pom
Version: 3.2.3

I left the field Repository blank.

Now, I select "Customo archetype - pogamut-ut2004-bot-pom (3.2.3)" and click next. Finally I click finish, and it can't create the project because maven says there are errors.
I'm going to paste the errors that netbeans shows (-X flag activated).






NetBeans: Executing 'C:\Users\aisa\Desktop\apache-maven-3.0.2\bin\mvn.bat -DarchetypeVersion=3.2.3 -Darchetype.interactive=false -DgroupId=cz.cuni.amis.pogamut.ut2004 -DarchetypeArtifactId=pogamut-ut2004-bot-pom -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=cz.cuni.amis.pogamut.ut2004 -Dbasedir=C:\Users\aisa\Documents\NetBeansProjects -Dpackage=cz.cuni.amis.pogamut.ut2004.mavenproject1 -DartifactId=mavenproject1 -Dnetbeans.execution=true batch-mode debug -X org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate'
NetBeans: JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_22
Apache Maven 3.0.2 (r1056850; 2011-01-08 20:28:10-0430)
Java version: 1.6.0_22, vendor: Sun Microsystems Inc.
Java home: C:\Program Files (x86)\Java\jdk1.6.0_22\jre
Default locale: es_ES, platform encoding: Cp1252
OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"
Error stacktraces are turned on.
DEBUGReading global settings from C:\Users\aisa\Desktop\apache-maven-3.0.2\conf\settings.xml
DEBUGReading user settings from C:\Users\aisa\.m2\settings.xml
DEBUGUsing local repository at C:\Users\aisa\.m2\repository
DEBUGUsing manager EnhancedLocalRepositoryManager with priority 10 for C:\Users\aisa\.m2\repository
Scanning for projects...
DEBUGExtension realms for project org.apache.maven:standalone-pom:pom:1: (none)
DEBUGLooking up lifecyle mappings for packaging pom from ClassRealmplexus.core, parent: null
DEBUG REACTOR BUILD PLAN =========
DEBUGProject: org.apache.maven:standalone-pom:pom:1
DEBUGTasks: org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate
DEBUGStyle: Aggregating
DEBUG===========

------------------------
Building Maven Stub Project (No POM) 1
------------------------
DEBUGLifecycle default -> validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy
DEBUGLifecycle clean -> pre-clean, clean, post-clean
DEBUGLifecycle site -> pre-site, site, post-site, site-deploy
DEBUGLifecycle default -> validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy
DEBUGLifecycle clean -> pre-clean, clean, post-clean
DEBUGLifecycle site -> pre-site, site, post-site, site-deploy
DEBUG PROJECT BUILD PLAN =========
DEBUGProject: org.apache.maven:standalone-pom:1
DEBUGDependencies (collect): []
DEBUGDependencies (resolve): []
DEBUGRepositories (dependencies): central (http://repo1.maven.org/maven2, releases=true, snapshots=false, managed=false)
DEBUGRepositories (plugins) : central (http://repo1.maven.org/maven2, releases=true, snapshots=false, managed=false)
DEBUG- init fork of org.apache.maven:standalone-pom:1 for org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate (default-cli) -
DEBUGDependencies (collect): []
DEBUGDependencies (resolve): []
DEBUG- exit fork of org.apache.maven:standalone-pom:1 for org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate (default-cli) -
DEBUG---------------------------
DEBUGGoal: org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate (default-cli)
DEBUGStyle: Regular
DEBUGConfiguration:

${archetypeArtifactId}
${archetypeCatalog}
${archetypeGroupId}
${archetypeRepository}
${archetypeVersion}
${basedir}
${goals}
${interactiveMode}
${localRepository}
${project.remoteArtifactRepositories}
${session}

DEBUG===========

>>> maven-archetype-plugin:2.0-alpha-4:generate (default-cli) @ standalone-pom >>>

org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4, parent: sun.misc.Launcher$AppClassLoader@11b86e7]
Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
Setting property: velocimacro.messages.on => 'false'.
Setting property: resource.loader => 'classpath'.
Setting property: resource.manager.logwhenfound => 'false'.
DEBUG**************************************************************
DEBUGStarting Jakarta Velocity v1.4
DEBUGRuntimeInstance initializing.
DEBUGDefault Properties File: org\apache\velocity\runtime\defaults\velocity.properties
DEBUGDefault ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl)
DEBUGResource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
DEBUGResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl)
DEBUGDefault ResourceManager initialization complete.
DEBUGLoaded System Directive: org.apache.velocity.runtime.directive.Literal
DEBUGLoaded System Directive: org.apache.velocity.runtime.directive.Macro
DEBUGLoaded System Directive: org.apache.velocity.runtime.directive.Parse
DEBUGLoaded System Directive: org.apache.velocity.runtime.directive.Include
DEBUGLoaded System Directive: org.apache.velocity.runtime.directive.Foreach
DEBUGCreated: 20 parsers.
DEBUGVelocimacro : initialization starting.
DEBUGVelocimacro : allowInline = true : VMs can be defined inline in templates
DEBUGVelocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
DEBUGVelocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed.
DEBUGVelocimacro : initialization complete.
DEBUGVelocity successfully started.
DEBUGConfiguring mojo 'org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate' with basic configurator -->
DEBUG (f) archetypeArtifactId = pogamut-ut2004-bot-pom
DEBUG (f) archetypeCatalog = internal,local
DEBUG (f) archetypeGroupId = cz.cuni.amis.pogamut.ut2004
DEBUG (f) archetypeVersion = 3.2.3
DEBUG (f) basedir = C:\Users\aisa\Documents\NetBeansProjects
DEBUG (f) interactiveMode = false
DEBUG (f) localRepository = id: local
url: file:///C:/Users/aisa/.m2/repository/
layout: none

DEBUG (f) remoteArtifactRepositories = [ id: central
url: http://repo1.maven.org/maven2
layout: default
snapshots: enabled => false, update => daily
releases: enabled => true, update => daily
]
DEBUG (f) session = org.apache.maven.execution.MavenSession@1541147
DEBUG-- end configuration --
Generating project in Batch mode
DEBUGUsing catalog C:\Users\aisa\.m2\archetype-catalog.xml
WARNING No archetype repository found. Falling back to central repository (http://repo1.maven.org/maven2).
WARNING Use -DarchetypeRepository= if archetype's repository is elsewhere.
DEBUGNot found archetype cz.cuni.amis.pogamut.ut2004:pogamut-ut2004-bot-pom:3.2.3 in cache
DEBUGUsing manager EnhancedLocalRepositoryManager with priority 10 for C:\Users\aisa\.m2\repository
DEBUGUsing connector WagonRepositoryConnector with priority 0 for http://repo1.maven.org/maven2
Downloading: http://repo1.maven.org/maven2/cz/cuni/amis/pogamut/ut2004/pogamut-ut2004-bot-pom/3.2.3/pogamut-ut2004-bot-pom-3.2.3.jar
DEBUGReading resolution tracking file C:\Users\aisa\.m2\repository\cz\cuni\amis\pogamut\ut2004\pogamut-ut2004-bot-pom\3.2.3\pogamut-ut2004-bot-pom-3.2.3.jar.lastUpdated
DEBUGWriting resolution tracking file C:\Users\aisa\.m2\repository\cz\cuni\amis\pogamut\ut2004\pogamut-ut2004-bot-pom\3.2.3\pogamut-ut2004-bot-pom-3.2.3.jar.lastUpdated
DEBUGArchetype don't exist
org.apache.maven.archetype.downloader.DownloadNotFoundException: Requested download does not exist.
at org.apache.maven.archetype.downloader.DefaultDownloader.download(DefaultDownloader.java:63)
at org.apache.maven.archetype.common.DefaultArchetypeArtifactManager.exists(DefaultArchetypeArtifactManager.java:333)
at org.apache.maven.archetype.ui.DefaultArchetypeGenerationConfigurator.configureArchetype(DefaultArchetypeGenerationConfigurator.java:130)
at org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:182)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Could not find artifact cz.cuni.amis.pogamut.ut2004:pogamut-ut2004-bot-pom:jar:3.2.3 in pogamut-ut2004-bot-pom-repo (http://repo1.maven.org/maven2)

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=cz.cuni.amis.pogamut.ut2004 -DartifactId=pogamut-ut2004-bot-pom -Dversion=3.2.3 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=cz.cuni.amis.pogamut.ut2004 -DartifactId=pogamut-ut2004-bot-pom -Dversion=3.2.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=url -DrepositoryId=id


cz.cuni.amis.pogamut.ut2004:pogamut-ut2004-bot-pom:jar:3.2.3

from the specified remote repositories:
pogamut-ut2004-bot-pom-repo (http://repo1.maven.org/maven2, releases=true, snapshots=true),
central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:235)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:173)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:541)
at org.apache.maven.archetype.downloader.DefaultDownloader.download(DefaultDownloader.java:55)
... 24 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact cz.cuni.amis.pogamut.ut2004:pogamut-ut2004-bot-pom:jar:3.2.3 in pogamut-ut2004-bot-pom-repo (http://repo1.maven.org/maven2)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:526)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:214)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:296)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:229)
... 27 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact cz.cuni.amis.pogamut.ut2004:pogamut-ut2004-bot-pom:jar:3.2.3 in pogamut-ut2004-bot-pom-repo (http://repo1.maven.org/maven2)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:945)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:940)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:696)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:690)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.get(WagonRepositoryConnector.java:435)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:438)
... 30 more
------------------------
BUILD FAILURE
------------------------
Total time: 4.031s
Finished at: Sat Apr 30 05:22:49 VET 2011
Final Memory: 5M/15M
------------------------
ERRORFailed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate (default-cli) on project standalone-pom: The desired archetype does not exist (cz.cuni.amis.pogamut.ut2004:pogamut-ut2004-bot-pom:3.2.3) -> Help 1
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate (default-cli) on project standalone-pom: The desired archetype does not exist (cz.cuni.amis.pogamut.ut2004:pogamut-ut2004-bot-pom:3.2.3)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoFailureException: The desired archetype does not exist (cz.cuni.amis.pogamut.ut2004:pogamut-ut2004-bot-pom:3.2.3)
at org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:201)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
ERROR
ERROR
ERRORFor more information about the errors and possible solutions, please read the following articles:
ERRORHelp 1 http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException



I'm really sorry I had paste this monster code here, but I'm kind of desperate right now. Hope you can help.

Thanks.

Best,
Fran.
Taipei!! :o I wish I could take some holidays too (in case you are on holidays), anyways, back to business:

I did the same as I said and typed "http://diana.ms.mff.cuni.cz:8081/artifactory/repo" in the repository field. But it doesn't work ):
I also tried the examples you list in the pdf you told me to read, and they are not working either. I'm going to paste just the errors:

------------------------
BUILD FAILURE
------------------------
Total time: 5.814s
Finished at: Sat Apr 30 10:32:10 VET 2011
Final Memory: 5M/15M
------------------------
ERRORFailed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate (default-cli) on project standalone-pom: The desired archetype does not exist (cz.cuni.amis.pogamut.ut2004:pogamut-ut2004-bot-pom:3.2.0-SNAPSHOT) -> Help 1
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate (default-cli) on project standalone-pom: The desired archetype does not exist (cz.cuni.amis.pogamut.ut2004:pogamut-ut2004-bot-pom:3.2.0-SNAPSHOT)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoFailureException: The desired archetype does not exist (cz.cuni.amis.pogamut.ut2004:pogamut-ut2004-bot-pom:3.2.0-SNAPSHOT)
at org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:201)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
ERROR
ERROR
ERRORFor more information about the errors and possible solutions, please read the following articles:
ERRORHelp 1 http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException


I wrote the same that I saw on the examples, and the same that it says on the downloads page, and it is not working for me. Hope you can help.

Cheers,
Fran from Spain :P
Hi,

That one is working, empty-bot project was downloaded successfully, BUT, all the imports fail (netbeans complains: package .... does not exists). Which means all pogamut-UT2004 libs and etc are not working.

Best,
Fran.


1) Build the project so maven downloads all the dependencies.
2) Resolve imports by removimg old 3.1 imports with new 3.2 imports.

m
Hi again,

I tried that, and it's working!!

I tried some of the things that wasn't working for me in the previous version and they are work just great. Anyways, I have a BIG PROBLEM right now. For example, when I wrote a huge code for making a run using raycasting, but it seems that vector3d is won't work right now. I tried also doing dodges, (they ask you to put a Location); I've put the location of the enemy and he does not dodge in the right direction. It would be great if I could still use vector3d specially for dodges and raycasting. I guess I could change it to Locations if it is not posible to use vector3d, but again, the bot is not dodging to the right Location.

setDouble(true);
Hi again,

I tried that, and it's working!!

I tried some of the things that wasn't working for me in the previous version and they are work just great. Anyways, I have a BIG PROBLEM right now. For example, when I wrote a huge code for making a run using raycasting, but it seems that vector3d is won't work right now. I tried also doing dodges, (they ask you to put a Location); I've put the location of the enemy and he does not dodge in the right direction. It would be great if I could still use vector3d specially for dodges and raycasting. I guess I could change it to Locations if it is not posible to use vector3d, but again, the bot is not dodging to the right Location.

setDouble(true); // Doesn't double dodge, doesn't matter what value it takes
setWall(true); // Doesn't use walls, doesn't matter how close they are
setFocusPoint(); // Works
setDirection(); // Doesn't dodge to that point, specially if the point is an enemy and the enemy is moving (in that case it jumps around).
Ups!! My mistake, vector3d is working, just misspelled it. Anyways, dodge (new Vector3d (
Ups!! My mistake, vector3d is working, just misspelled it. Anyways, dodge (new Vector3d (direction)) is not working. And dodging to a location doesn't work properly as I said in the last post, so, how can I make the bot dodge in the direction I want?
Hi,

So, it works with the empty bot and responsive bot (from de pdf shown in the other thread). But how do I make my own project using maven?

Cheers,
Fran.
Hi again,

I tried everything to get maven working with my own project... Since I the only thing that works is the ut2004 examples, I tried using emptybot as a template and then using it to put all the stuff in my project. I tried it, but I did get all kinds of non sense errors. I even tried to comment this non senses errors, but maven wouldn't work again. I think I'm just going to give up and stick tu pogamut 3.1 and don't waste any more time, since it's the only one working for me. Is there any way in earth where I can download Pogamut 3.2 WITHOUT using maven (meaning, having all the libs in my pc)?????

Best,
Fran.
Hi!

You have Pogamut libraries downloaded already ... probably.

Do you have WinXP or Win Vista/7?

WinXP, look for: c:\Documents and Settings\YOUR_USER_NAME\.m2\repository\cz\cuni\amis
WinVista/7, look for: c:\UsersYOUR_USER_NAME\.m2\repository\cz\cuni\amis

There you will find all sort of jar files you would need. But you will need some more as well which might be obtained
from Pogamut 3.1 or from other dirs inside .m2/repository. I will try to setup "zip release" of Pogamut libraries for you
and we're going to release Pogamut libs as zip archives from now on as well. (Will do it in next 24 hours.)

Cheers!
Jimmy
Hi,

Many many many many thanks Jimmy, you really are saving my life here.

Cheers,
Fran.
Hi!

It's done, check out Download page, it should suffice... I did not actually tested it but these packages are those packaged with example bots so you should be fine :-)

Cheers!

Jimmy
Hi,

I used the zip, and it worked! I imported all the libs in netbeans and I was able to do some coding. Bad news are, that I'm still going back to 3.1. I don't know, it's like Java goes mad when I switch to 3.2, polimorphism is not working now (and it should, it worked just fine on my previous version of the bot), now is throwing some kind of weird exception (abstraMethodError).

Anyway, I just wanted to thank you again, you really helped me a lot. I will try my best with 3.1, I'm sure I can still do something good.

Best,
Fran.
Hi!

I'm sorry to hear that 3.2.x is not working for you. I'll try to use it myself and see if I get the same error.

Best,
Jimmy
Hi!

I'm sorry the ZIP package does work with example projects (tested on HunterBot example).

I think that API (some interfaces) changed between version 3.1 and 3.2.4 but I can't provide you
anymore support. I would need your source code to provide you with more info. It's up to you :-)

Best,
Jimmy
Hi,

I gave it one last shot this morning, and I finally managed to get it to work. I reinstalled netbeans and changed a couple of things. Although it's working, i'm not quite sure if everything's ok. What I'm doing right now is creating a new Java project (not a pogamut project) and then adding, all the jar files that you included in the zip as libraries. It works, but whenever I execute it I get errors and warnings (that don't stop execution).

I'm going to paste the warnings and errors I'm gettint, just to be sure that nothing is going wrong:

(Platform) INFO 10:22:15.583 Instantiated
05-may-2011 10:22:15 cz.cuni.amis.utils.configuration.PropertiesManager
INFO: Instantiated
(Platform) WARNING 10:22:16.355 Custom property file not found in C:\Users\fran\Documents\NetBeansProjects\PFC\BotEvolutivo\PogamutPlatformCustom.properties.
(Platform) INFO 10:22:16.380 Property providers order:
(Platform) INFO 10:22:16.383 10000 Environment variable provider
05-may-2011 10:22:16 cz.cuni.amis.utils.configuration.PropertiesManager logProvidersOrder
(Platform) INFO 10:22:16.385 9000 JVM -D option provider
INFO: Property providers order:
(Platform) INFO 10:22:16.388 1000 CustomPropertiesProvidersource='C:\Users\fran\Documents\NetBeansProjects\PFC\BotEvolutivo\PogamutPlatformCustom.properties'
05-may-2011 10:22:16 cz.cuni.amis.utils.configuration.PropertiesManager logProvidersOrder
INFO: 10000 Environment variable provider
05-may-2011 10:22:16 cz.cuni.amis.utils.configuration.PropertiesManager logProvidersOrder
(Platform) INFO 10:22:16.393 500 Properties from /cz/cuni/amis/pogamut/ut2004/PogamutUT2004.properties
(Platform) INFO 10:22:16.402 1 Properties from /cz/cuni/amis/pogamut/PogamutPlatform.properties
INFO: 9000 JVM -D option provider
05-may-2011 10:22:16 cz.cuni.amis.utils.configuration.PropertiesManager logProvidersOrder
INFO: 1000 CustomPropertiesProvidersource='C:\Users\fran\Documents\NetBeansProjects\PFC\BotEvolutivo\PogamutPlatformCustom.properties'
05-may-2011 10:22:16 cz.cuni.amis.utils.configuration.PropertiesManager logProvidersOrder
INFO: 500 Properties from /cz/cuni/amis/pogamut/ut2004/PogamutUT2004.properties
05-may-2011 10:22:16 cz.cuni.amis.utils.configuration.PropertiesManager logProvidersOrder
INFO: 1 Properties from /cz/cuni/amis/pogamut/PogamutPlatform.properties
Hi!

Sure I'm sorry not to mention that, you will need normal Java project. I would also recommand you to install new version of Plugin
if you want to be able to utilize it.

Regarding custom properties, if you were not using them, I would ignore it... otherwise you can create empty C:\Users\fran\Documents\NetBeansProjects\PFC\BotEvolutivo\PogamutPlatformCustom.properties
to supress the warning.

Cheers!
Jimmy
Great!

I have been doing some cool things (: now my bot shoots shock combos!! haha, it's even hard to kill him sometimes!

I have to adapt the code I wrote to the api of Pogamut 3.2, since move.dodge () doesn't exists now. I'm finding a lot of trouble to make the bot dodge in one direction. I am supposed to use a Location, but.. for example, I pick up a Location that is right behind the bot, and then I do move.dodge (, ), and the bot doesn't EVER dodge in that direction, it dodges in all sort of directions.. I'm not using setFocus, nothing like that. In the code I wrote, I was making him dodge in 8 different directions:

North: new Vector3d (1, 0, 0)
North-east: new Vector3d (1, 1, 0)
East: new Vector3d (0, 1, 0)
South-east: new Vector3d (-1, 1, 0)
South: new Vector3d (-1, 0, 0)
South-west: new Vector3d (-1, -1, 0)
West: new Vector3d (0, -1, 0)
North-west: new Vector3d (1, -1, 0)

I don't want him to focus, I'm taking care of that by myself. So, how can I make him behave just like that using the current api?

Best,
Fran.
Input to dodge command is a direction. The class of the attribute does not matter. So if you support his:

North: new Location (1, 0, 0)
North-east: new Location(1, 1, 0)
East: new Location (0, 1, 0)
South-east: new Location (-1, 1, 0)
South: new Location (-1, 0, 0)
South-west: new Location(-1, -1, 0)
West: new Location (0, -1, 0)
North-west: newLocation(1, -1, 0)

does it work?

m
I was about to post again, I did exactly that, and it worked!! hurray!!

Thanks a lot (:

Best,
Fran.
I'm getting a very weird error when trying to execute the bot. Everything's fine, there are no compile errors, but when I execute it, I get all kinds of errors from the parser.

This is what I'm getting:

run:
(Platform) [INFO]    13:24:20.422  Instantiated
06-may-2011 13:24:20 cz.cuni.amis.utils.configuration.PropertiesManager 
INFO: Instantiated
(Platform) [WARNING] 13:24:21.254  Custom property file not found in C:\Users\fran\Documents\NetBeansProjects\PFC\BotEvolutivo\PogamutPlatformCustom.properties.
(Platform) [INFO]    13:24:21.277         Property providers order:
(Platform) [INFO]    13:24:21.281         [10000]          Environment variable provider
06-may-2011 13:24:21 cz.cuni.amis.utils.configuration.PropertiesManager logProvidersOrder
(Platform) [INFO]    13:24:21.287         [9000]          JVM -D option provider
INFO: Property providers order:
06-may-2011 13:24:21 cz.cuni.amis.utils.configuration.PropertiesManager logProvidersOrder
(Platform) [INFO]    13:24:21.290         [1000]          CustomPropertiesProvider[source='C:\Users\fran\Documents\NetBeansProjects\PFC\BotEvolutivo\PogamutPlatformCustom.properties']
INFO: [10000]          Environment variable provider
06-may-2011 13:24:21 cz.cuni.amis.utils.configuration.PropertiesManager logProvidersOrder
(Platform) [INFO]    13:24:21.295         [500]          Properties from /cz/cuni/amis/pogamut/ut2004/PogamutUT2004.properties
INFO: [9000]          JVM -D option provider
(Platform) [INFO]    13:24:21.299         [1]          Properties from /cz/cuni/amis/pogamut/PogamutPlatform.properties
06-may-2011 13:24:21 cz.cuni.amis.utils.configuration.PropertiesManager logProvidersOrder
INFO: [1000]          CustomPropertiesProvider[source='C:\Users\fran\Documents\NetBeansProjects\PFC\BotEvolutivo\PogamutPlatformCustom.properties']
06-may-2011 13:24:21 cz.cuni.amis.utils.configuration.PropertiesManager logProvidersOrder
INFO: [500]          Properties from /cz/cuni/amis/pogamut/ut2004/PogamutUT2004.properties
06-may-2011 13:24:21 cz.cuni.amis.utils.configuration.PropertiesManager logProvidersOrder
INFO: [1]          Properties from /cz/cuni/amis/pogamut/PogamutPlatform.properties
(T8001)    [INFO]    13:24:24.075        Log level set to WARNING.
(T8001)    [ALL]     13:24:24.075                      Log level set to WARNING.
(T8001)    [INFO]    13:24:24.075                    Log level set to WARNING.
(T8001)    [INFO]    13:24:24.076        Log level set to WARNING.
(T8001)    [INFO]    13:24:24.076                    Log level set to WARNING.
(T8001)    [INFO]    13:24:24.076    Log level set to WARNING.
(T8001)    [INFO]    13:24:24.076        Log level set to WARNING.
(T8001)    [INFO]    13:24:24.076              Log level set to WARNING.
(T8001)    [INFO]    13:24:24.077                     Log level set to WARNING.
(T8001)    [INFO]    13:24:24.077                Log level set to WARNING.
(T8001)    [INFO]    13:24:24.077       Log level set to WARNING.
(T8001)    [INFO]    13:24:24.077                Log level set to WARNING.
(T8001)    [INFO]    13:24:24.077                 Log level set to WARNING.
(T8001)    [INFO]    13:24:24.083                  Log level set to WARNING.
(T8001)    [INFO]    13:24:24.083               Log level set to WARNING.
(T8001)    [INFO]    13:24:24.083                 Log level set to WARNING.
(T8001)    [INFO]    13:24:24.083              Log level set to WARNING.
(T8001)    [INFO]    13:24:24.083               Log level set to WARNING.
(T8001)    [INFO]    13:24:24.083           Log level set to WARNING.
(T8001)    [INFO]    13:24:24.092                       Log level set to WARNING.
(T8001)    [INFO]    13:24:24.092                  Log level set to WARNING.
(T8001)    [INFO]    13:24:24.093        Log level set to WARNING.
(T8001)    [INFO]    13:24:24.094                 Log level set to WARNING.
(T8001)    [INFO]    13:24:24.094                   Log level set to WARNING.
(T8001)    [INFO]    13:24:24.094  Log level set to WARNING.
(T8001)    [INFO]    13:24:24.101                                            Log level set to WARNING.
(T8001)    [INFO]    13:24:24.102                                                Log level set to WARNING.
(T8001)    [INFO]    13:24:24.102                                     Log level set to WARNING.
(T8001)    [INFO]    13:24:24.102                                             Log level set to WARNING.
(T8001)    [INFO]    13:24:24.102                                             Log level set to WARNING.
(T8001)    [INFO]    13:24:24.111                                   Log level set to WARNING.
(T8001)    [INFO]    13:24:24.111                                               Log level set to WARNING.
(T8001)    [INFO]    13:24:24.111                                  Log level set to WARNING.
(T8001)    [INFO]    13:24:24.111                                         Log level set to WARNING.
(T8001)    [INFO]    13:24:24.111                                 Log level set to WARNING.
(T8001)    [INFO]    13:24:24.119                             Log level set to WARNING.
(T8001)    [INFO]    13:24:24.119                                               Log level set to WARNING.
(T8001)    [WARNING] 13:24:24.121  Starting agent T8001-3@pepino/7ac5fe73-1a21-eb7b-42da-4dfce11b0aa4
(T8001)    [WARNING] 13:24:24.125                                           Connecting to SocketConnectionAddress[127.0.0.1:3000].
(T8001)    [WARNING] 13:24:24.152                                   Log level set to WARNING.
(T8001)    [WARNING] 13:24:24.191                                  Thread 0: Thread started.
(T8001)    [WARNING] 13:24:24.217                                                 Log level set to ALL.
(T8001)    [SEVERE]  13:24:25.156                                               UT2004Parser: Can't parse next message: 65533 (caused by: 65533)
 (at cz.cuni.amis.pogamut.base.communication.parser.impl.yylex.YylexParser.parse(YylexParser.java:107))
caused by:  (at cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Yylex.yylex(Yylex.java:4982))
Stack trace:
ParserException[UT2004Parser: Can't parse next message: 65533 (caused by: 65533)]
        at cz.cuni.amis.pogamut.base.communication.parser.impl.yylex.YylexParser.parse(YylexParser.java:107)
        at cz.cuni.amis.pogamut.base.communication.translator.impl.WorldMessageTranslator.getEvent(WorldMessageTranslator.java:121)
        at cz.cuni.amis.pogamut.base.communication.mediator.impl.Mediator$Worker.run(Mediator.java:299)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 65533
        at cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Yylex.yylex(Yylex.java:4982)
        at cz.cuni.amis.pogamut.base.communication.parser.impl.yylex.YylexParser.parse(YylexParser.java:97)
        ... 3 more

(T8001)    [WARNING] 13:24:25.157                                             Calling Mediator.kill().
(T8001)    [SEVERE]  13:24:25.157                                             Fatal error in Mediator: MediatorWorker: Producer exception.
(T8001)    [SEVERE]  13:24:25.160                                         Fatal error happenned - component bus is stopping.
FatalErrorEvent[
    Component:  Mediator[producer=WorldMessageTranslator[parser=UT2004Parser, handler=BotFSM], consumer=UT2004SyncLockableWorldView]
    Message:    MediatorWorker: Producer exception.
    Cause:      class cz.cuni.amis.pogamut.base.communication.parser.exception.ParserException: UT2004Parser: Can't parse next message: 65533 (caused by: 65533) (at cz.cuni.amis.pogamut.base.communication.parser.impl.yylex.YylexParser.parse(YylexParser.java:107))
    Cause:      class java.lang.ArrayIndexOutOfBoundsException: 65533 (at cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Yylex.yylex(Yylex.java:4982))
    Stacktrace:
        cz.cuni.amis.pogamut.base.component.controller.ComponentController.fatalError(ComponentController.java:518)
        cz.cuni.amis.pogamut.base.communication.mediator.impl.Mediator$Worker.run(Mediator.java:312)
        java.lang.Thread.run(Thread.java:662)
    Caused by: class cz.cuni.amis.pogamut.base.communication.parser.exception.ParserException: UT2004Parser: Can't parse next message: 65533 (caused by: 65533) (at cz.cuni.amis.pogamut.base.communication.parser.impl.yylex.YylexParser.parse(YylexParser.java:107))
        cz.cuni.amis.pogamut.base.communication.parser.impl.yylex.YylexParser.parse(YylexParser.java:107)
        cz.cuni.amis.pogamut.base.communication.translator.impl.WorldMessageTranslator.getEvent(WorldMessageTranslator.java:121)
        cz.cuni.amis.pogamut.base.communication.mediator.impl.Mediator$Worker.run(Mediator.java:299)
        java.lang.Thread.run(Thread.java:662)
    Caused by: class java.lang.ArrayIndexOutOfBoundsException: 65533 (at cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Yylex.yylex(Yylex.java:4982))
        cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Yylex.yylex(Yylex.java:4982)
        cz.cuni.amis.pogamut.base.communication.parser.impl.yylex.YylexParser.parse(YylexParser.java:97)
        cz.cuni.amis.pogamut.base.communication.translator.impl.WorldMessageTranslator.getEvent(WorldMessageTranslator.java:121)
        cz.cuni.amis.pogamut.base.communication.mediator.impl.Mediator$Worker.run(Mediator.java:299)
        java.lang.Thread.run(Thread.java:662)
]
(T8001)    [SEVERE]  13:24:25.714                                           Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:25.716                                           Calling Connection.kill().
(T8001)    [SEVERE]  13:24:25.716                                           Connection.kill()ed.
(T8001)    [SEVERE]  13:24:25.726                                               Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:25.727                                               Calling Parser.kill().
(T8001)    [SEVERE]  13:24:25.813                                               Parser.kill()ed.
(T8001)    [SEVERE]  13:24:25.813                               Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:25.813                               Calling WorldMessageTranslator.kill().
(T8001)    [SEVERE]  13:24:25.813                               WorldMessageTranslator.kill()ed.
(T8001)    [SEVERE]  13:24:25.814                                            Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:25.829                                            Calling WorldView.kill().
(T8001)    [SEVERE]  13:24:25.830                                            WorldView.kill()ed.
(T8001)    [SEVERE]  13:24:25.830                                                  Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:25.830                                                  Calling Act.kill().
(T8001)    [SEVERE]  13:24:25.830                                                  Act.kill()ed.
(T8001)    [SEVERE]  13:24:25.846  Fatal error sensed: FatalErrorEvent[
    Component:  Mediator[producer=WorldMessageTranslator[parser=UT2004Parser, handler=BotFSM], consumer=UT2004SyncLockableWorldView]
    Message:    MediatorWorker: Producer exception.
    Cause:      class cz.cuni.amis.pogamut.base.communication.parser.exception.ParserException: UT2004Parser: Can't parse next message: 65533 (caused by: 65533) (at cz.cuni.amis.pogamut.base.communication.parser.impl.yylex.YylexParser.parse(YylexParser.java:107))
    Cause:      class java.lang.ArrayIndexOutOfBoundsException: 65533 (at cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Yylex.yylex(Yylex.java:4982))
    Stacktrace:
        cz.cuni.amis.pogamut.base.component.controller.ComponentController.fatalError(ComponentController.java:518)
        cz.cuni.amis.pogamut.base.communication.mediator.impl.Mediator$Worker.run(Mediator.java:312)
        java.lang.Thread.run(Thread.java:662)
    Caused by: class cz.cuni.amis.pogamut.base.communication.parser.exception.ParserException: UT2004Parser: Can't parse next message: 65533 (caused by: 65533) (at cz.cuni.amis.pogamut.base.communication.parser.impl.yylex.YylexParser.parse(YylexParser.java:107))
        cz.cuni.amis.pogamut.base.communication.parser.impl.yylex.YylexParser.parse(YylexParser.java:107)
        cz.cuni.amis.pogamut.base.communication.translator.impl.WorldMessageTranslator.getEvent(WorldMessageTranslator.java:121)
        cz.cuni.amis.pogamut.base.communication.mediator.impl.Mediator$Worker.run(Mediator.java:299)
        java.lang.Thread.run(Thread.java:662)
    Caused by: class java.lang.ArrayIndexOutOfBoundsException: 65533 (at cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Yylex.yylex(Yylex.java:4982))
        cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Yylex.yylex(Yylex.java:4982)
        cz.cuni.amis.pogamut.base.communication.parser.impl.yylex.YylexParser.parse(YylexParser.java:97)
        cz.cuni.amis.pogamut.base.communication.translator.impl.WorldMessageTranslator.getEvent(WorldMessageTranslator.java:121)
        cz.cuni.amis.pogamut.base.communication.mediator.impl.Mediator$Worker.run(Mediator.java:299)
        java.lang.Thread.run(Thread.java:662)
]
(T8001)    [SEVERE]  13:24:25.859                                  Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:25.860                                  Calling SyncUT2004BotLogic0.kill().
(T8001)    [WARNING] 13:24:26.961                                  Thread 0: Interrupted!
(T8001)    [WARNING] 13:24:26.971                                  Thread 0: Logic thread stopped.
(T8001)    [SEVERE]  13:24:26.976                                  SyncUT2004BotLogic0.kill()ed.
(T8001)    [SEVERE]  13:24:26.977                                                Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:26.977                                                Calling Game1.kill().
(T8001)    [SEVERE]  13:24:26.977                                                Game1.kill()ed.
(T8001)    [SEVERE]  13:24:26.978                                           Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:26.978                                           Calling AgentInfo2.kill().
(T8001)    [SEVERE]  13:24:26.978                                           AgentInfo2.kill()ed.
(T8001)    [SEVERE]  13:24:26.979                                             Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:26.979                                             Calling Players3.kill().
(T8001)    [SEVERE]  13:24:26.980                                             Players3.kill()ed.
(T8001)    [SEVERE]  13:24:26.980                                     Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:26.989                                     Calling ItemDescriptors4.kill().
(T8001)    [SEVERE]  13:24:26.990                                     ItemDescriptors4.kill()ed.
(T8001)    [SEVERE]  13:24:26.990                                            Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:26.990                                            Calling Weaponry5.kill().
(T8001)    [SEVERE]  13:24:26.990                                            Weaponry5.kill()ed.
(T8001)    [SEVERE]  13:24:27.000                                               Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:27.000                                               Calling Items6.kill().
(T8001)    [SEVERE]  13:24:27.000                                               Items6.kill()ed.
(T8001)    [SEVERE]  13:24:27.000                                              Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:27.000                                              Calling Senses7.kill().
(T8001)    [SEVERE]  13:24:27.011                                              Senses7.kill()ed.
(T8001)    [SEVERE]  13:24:27.011                                         Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:27.012                                         Calling AgentConfig8.kill().
(T8001)    [SEVERE]  13:24:27.012                                         AgentConfig8.kill()ed.
(T8001)    [SEVERE]  13:24:27.012                                          Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:27.021                                          Calling Raycasting9.kill().
(T8001)    [SEVERE]  13:24:27.021                                          Raycasting9.kill()ed.
(T8001)    [SEVERE]  13:24:27.022                                             Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:27.022                                             Calling Action10.kill().
(T8001)    [SEVERE]  13:24:27.022                                             Action10.kill()ed.
(T8001)    [SEVERE]  13:24:27.032                                 Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:27.032                                 Calling AdvancedLocomotion11.kill().
(T8001)    [SEVERE]  13:24:27.032                                 AdvancedLocomotion11.kill()ed.
(T8001)    [SEVERE]  13:24:27.033                                   Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:27.033                                   Calling AdvancedShooting12.kill().
(T8001)    [SEVERE]  13:24:27.041                                   AdvancedShooting12.kill()ed.
(T8001)    [SEVERE]  13:24:27.041                                   Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:27.041                                   Calling ImprovedShooting13.kill().
(T8001)    [SEVERE]  13:24:27.041                                   ImprovedShooting13.kill()ed.
(T8001)    [SEVERE]  13:24:27.041                                      Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:27.056                                      Calling Communication14.kill().
(T8001)    [SEVERE]  13:24:27.056                                      Communication14.kill()ed.
(T8001)    [SEVERE]  13:24:27.056                                  Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:27.056                                  Calling ConfigureCommands15.kill().
(T8001)    [SEVERE]  13:24:27.056                                  ConfigureCommands15.kill()ed.
(T8001)    [SEVERE]  13:24:27.069                                   Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:27.071                                   Calling SimpleRayCasting16.kill().
(T8001)    [SEVERE]  13:24:27.071                                   SimpleRayCasting16.kill()ed.
(T8001)    [SEVERE]  13:24:27.071                             Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:27.072                             Calling NavigationGraphBuilder17.kill().
(T8001)    [SEVERE]  13:24:27.082                             NavigationGraphBuilder17.kill()ed.
(T8001)    [SEVERE]  13:24:27.082                                         Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:27.082                                         Calling AgentStats18.kill().
(T8001)    [SEVERE]  13:24:27.082                                         AgentStats18.kill()ed.
(T8001)    [SEVERE]  13:24:27.083                                   Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:27.092                                   Calling FloydWarshallMap19.kill().
(T8001)    [SEVERE]  13:24:27.092                                   FloydWarshallMap19.kill()ed.
(T8001)    [SEVERE]  13:24:27.093  Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:27.093  Calling AdvancedLocomotion20.kill().
(T8001)    [SEVERE]  13:24:27.093  AdvancedLocomotion20.kill()ed.
(T8001)    [SEVERE]  13:24:27.108                                            Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:27.108                                            Calling Players21.kill().
(T8001)    [SEVERE]  13:24:27.108                                            Players21.kill()ed.
(T8001)    [SEVERE]  13:24:27.108  Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:27.108  Calling Senses22.kill().
(T8001)    [SEVERE]  13:24:27.120  Senses22.kill()ed.
(T8001)    [SEVERE]  13:24:27.121                                               Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:27.121                                               Calling Game23.kill().
(T8001)    [SEVERE]  13:24:27.121                                               Game23.kill()ed.
(T8001)    [SEVERE]  13:24:27.122                                          Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:27.133                                          Calling AgentInfo24.kill().
(T8001)    [SEVERE]  13:24:27.133                                          AgentInfo24.kill()ed.
(T8001)    [SEVERE]  13:24:27.133  Received fatal error from Mediator.
(T8001)    [WARNING] 13:24:27.133  Calling AdvancedLocomotion25.kill().
(T8001)    [SEVERE]  13:24:27.134  AdvancedLocomotion25.kill()ed.
(T8001)    [WARNING] 13:24:27.158                                             MediatorWorker: Stopped.
(T8001)    [SEVERE]  13:24:27.161  UT2004Bot[T8001]: Can't start: BusAwareCountDownLatch: Interrupted because bus was stopped (fatal error, or watched component stopped) while waiting on the latch. (caused by: BusAwareCountDownLatch: Interrupted because bus was stopped (fatal error, or watched component stopped) while waiting on the latch.)
 (at cz.cuni.amis.pogamut.base.agent.impl.AbstractAgent.start(AbstractAgent.java:469))
caused by:  (at cz.cuni.amis.pogamut.base.component.bus.event.BusAwareCountDownLatch.checkBusStop(BusAwareCountDownLatch.java:173))
Stack trace:
ComponentCantStartException[UT2004Bot[T8001]: Can't start: BusAwareCountDownLatch: Interrupted because bus was stopped (fatal error, or watched component stopped) while waiting on the latch. (caused by: BusAwareCountDownLatch: Interrupted because bus was stopped (fatal error, or watched component stopped) while waiting on the latch.)]
        at cz.cuni.amis.pogamut.base.agent.impl.AbstractAgent.start(AbstractAgent.java:469)
        at cz.cuni.amis.pogamut.base.agent.utils.runner.impl.AgentRunner.startAgent(AgentRunner.java:505)
        at cz.cuni.amis.pogamut.base.agent.utils.runner.impl.AgentRunner.startAgentWithParamsMain(AgentRunner.java:355)
        at cz.cuni.amis.pogamut.base.agent.utils.runner.impl.AgentRunner.startAgent(AgentRunner.java:179)
        at cz.cuni.amis.pogamut.ut2004.utils.UT2004BotRunner.startAgent(UT2004BotRunner.java:170)
        at cz.cuni.amis.pogamut.ut2004.utils.UT2004BotRunner.startAgent(UT2004BotRunner.java:36)
        at bot.T800.main(T800.java:673)
Caused by: BusStoppedInterruptedException[BusAwareCountDownLatch: Interrupted because bus was stopped (fatal error, or watched component stopped) while waiting on the latch.]
        at cz.cuni.amis.pogamut.base.component.bus.event.BusAwareCountDownLatch.checkBusStop(BusAwareCountDownLatch.java:173)
        at cz.cuni.amis.pogamut.base.component.bus.event.BusAwareCountDownLatch.await(BusAwareCountDownLatch.java:167)
        at cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot.startAgent(UT2004Bot.java:173)
        at cz.cuni.amis.pogamut.base.agent.impl.AbstractAgent.start(AbstractAgent.java:455)
        ... 6 more

(Platform) [WARNING] 13:24:27.162                               Closing the platform.
(Platform) [WARNING] 13:24:27.248                                    Shutting down!
Exception in thread "main" ComponentCantStartException[UT2004Bot[T8001]: Can't start: BusAwareCountDownLatch: Interrupted because bus was stopped (fatal error, or watched component stopped) while waiting on the latch. (caused by: BusAwareCountDownLatch: Interrupted because bus was stopped (fatal error, or watched component stopped) while waiting on the latch.)]
(Platform) [SEVERE]  13:24:27.249                                    Shutdown.
        at cz.cuni.amis.pogamut.base.agent.impl.AbstractAgent.start(AbstractAgent.java:469)
        at cz.cuni.amis.pogamut.base.agent.utils.runner.impl.AgentRunner.startAgent(AgentRunner.java:505)
        at cz.cuni.amis.pogamut.base.agent.utils.runner.impl.AgentRunner.startAgentWithParamsMain(AgentRunner.java:355)
        at cz.cuni.amis.pogamut.base.agent.utils.runner.impl.AgentRunner.startAgent(AgentRunner.java:179)
        at cz.cuni.amis.pogamut.ut2004.utils.UT2004BotRunner.startAgent(UT2004BotRunner.java:170)
        at cz.cuni.amis.pogamut.ut2004.utils.UT2004BotRunner.startAgent(UT2004BotRunner.java:36)
        at bot.T800.main(T800.java:673)
Caused by: BusStoppedInterruptedException[BusAwareCountDownLatch: Interrupted because bus was stopped (fatal error, or watched component stopped) while waiting on the latch.]
        at cz.cuni.amis.pogamut.base.component.bus.event.BusAwareCountDownLatch.checkBusStop(BusAwareCountDownLatch.java:173)
        at cz.cuni.amis.pogamut.base.component.bus.event.BusAwareCountDownLatch.await(BusAwareCountDownLatch.java:167)
        at cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot.startAgent(UT2004Bot.java:173)
        at cz.cuni.amis.pogamut.base.agent.impl.AbstractAgent.start(AbstractAgent.java:455)
        ... 6 more
(Platform) [WARNING] 13:24:27.299                                    ServerWorker Stopped.


Don't know what it is :-S

Best,
Fran.
I tried the same on the laptop and it works. Furthermore, I tried emptybot on my pc (the one that gives me that error) and it doesn't work either. Any ideas?

Best,
Fran.
Format C: solved it hahahaha, hope it doesn't come back hunting me!
 

News

News RSS RSS feed for News link



Pogamut

Quarterly RSS RSS feed for quarterly reports

Acknowledgement

This work is supported by GA UK 1053/2007/A-INF/MFF (2007-8), GA UK 351/2006/A-INF/MFF (2006-8), the Ministry of Education of the Czech Republic (grant MSM0021620838) (2008-9), by the Program "Information Society" under project 1ET100300517 (2006-9), and the project Integration of IT Tools into Education of Humanities (2006-8) and by the project CZ.2.17/3.1.00/31162, which are financed by the European Social Fund, the state budget of the Czech Republic, and by the budget of Municipal House Prague.