Search found 13 matches
- 11 Jun 2015, 02:26
- Forum: AI
- Topic: Cmake, AI, java with dependencier on Wrappers/JavaOO
- Replies: 4
- Views: 1670
Re: Cmake, AI, java with dependencier on Wrappers/JavaOO
Finally not :? Source code is at : spring/AI/Skirmish/DAI/ In the CMakeLists.txt ConfigureMavenJavaSkirmishAI( "JavaOO" ) the pom.xml at end of this thread When I run make , build system fail to find symbol from JavaOO wrapper I get many symbol not found: cannot find symbol [ERROR] symbol...
- 10 Jun 2015, 01:32
- Forum: AI
- Topic: Cmake, AI, java with dependencier on Wrappers/JavaOO
- Replies: 4
- Views: 1670
Re: Cmake, AI, java with dependencier on Wrappers/JavaOO
Sorry I found myself by using
Code: Select all
ConfigureJavaSkirmishAI( "JavaOO" )
- 10 Jun 2015, 01:13
- Forum: AI
- Topic: Cmake, AI, java with dependencier on Wrappers/JavaOO
- Replies: 4
- Views: 1670
Cmake, AI, java with dependencier on Wrappers/JavaOO
Dear, I seen a really cool cmake macro named ConfigureJavaSkirmishAI That ease the build script but unfortunately that do not put Wrappers/JavaOO as dependencies If i do set(additionalLibraries ${JavaOO_AIWRAPPER_TARGET} ) ConfigureJavaSkirmishAI("") I have some errors as: error: cannot fi...
- 08 Jun 2015, 00:10
- Forum: AI
- Topic: Failling to build Invalid version format
- Replies: 2
- Views: 1308
Re: Failling to build Invalid version format
Thanks I done a newly github project to host only bot https://github.com/bioinfornatics/DAI $ git clone https://github.com/bioinfornatics/DAI $ git clone https://github.com/spring/spring.git $ cd spring $ pushd /AI/Skirmish/ $ ln -s ../../../DAI DAI $ popd $ mkdir build && pushd build &&...
- 07 Jun 2015, 19:59
- Forum: AI
- Topic: Failling to build Invalid version format
- Replies: 2
- Views: 1308
Failling to build Invalid version format
Dear, I try to make a bot for fun, but I got a build error: CMake Error at /run/media/jmercier/data/projects/spring/rts/build/cmake/UtilVersion.cmake:196 (Message): Invalid version format: 98.0-2-g23e0325 dai Call Stack (most recent call first): /run/media/jmercier/data/projects/spring/rts/build/cma...
- 26 Oct 2014, 22:41
- Forum: AI
- Topic: [Java] How to know player id
- Replies: 5
- Views: 3795
Re: [Java] How to know player id
ok thanks,
I will use callback.getTeamId(); as a player ID
I will use callback.getTeamId(); as a player ID
- 23 Oct 2014, 00:23
- Forum: AI
- Topic: [Java] How to know player id
- Replies: 5
- Views: 3795
[Java] How to know player id
Hi stupid question,
How to know player id ?
My AI inherit from OOAI so I have his skirmishAIId.
I can to get is allyteam with Game object callback.getGame().getMyTeam()
But I do not see how to get the playerId!
thanks
How to know player id ?
My AI inherit from OOAI so I have his skirmishAIId.
I can to get is allyteam with Game object callback.getGame().getMyTeam()
But I do not see how to get the playerId!
thanks
- 22 Oct 2014, 21:54
- Forum: AI
- Topic: Java AI and unitdef attributes
- Replies: 2
- Views: 1036
Java AI and unitdef attributes
Dear, I see into the UnitDef.h some interesting methods and public attibutes as: IsFactoryUnit() IsExtractorUnit() buildTime metal (to know the cost) energy (to know the cost) but i do not see them into the generated java file: /* This file is part of the Spring engine (GPL v2 or later), see LICENSE...
- 18 Oct 2014, 13:52
- Forum: AI
- Topic: Java OO generated code are wrong
- Replies: 6
- Views: 2188
Re: Java OO generated code are wrong
afaik init() is called by the engine instantly after the constructor is called. -> no need for a constructor with these parameters. Oh ok, If init() method are called by the engine for each instance you can to use the default contructor (wich are empty) to invokes the default constructor of the sup...
- 17 Oct 2014, 01:38
- Forum: AI
- Topic: Java OO generated code are wrong
- Replies: 6
- Views: 2188
Re: Java OO generated code are wrong
The fix should to be something like 95,97d94 < if (clsName == myOOAIAbstractClass ) { < print("import " myParentPkgA ".AICallback;") >> outFile; < } 124,129c121,122 < print("\t" "protected AICallback clb = null;") >> outFile; < print("\t" "prote...
- 17 Oct 2014, 00:39
- Forum: AI
- Topic: Java OO generated code are wrong
- Replies: 6
- Views: 2188
Java OO generated code are wrong
the awk script is used to generate .java file from C file but they do not use a java constructor. In fact the awk script should to generate a constructor each time a 'init' function is generated. The constructor will have to only call the 'init' method. That mean, OOAI abstract class implements IOO...
- 11 Oct 2014, 13:45
- Forum: Linux
- Topic: [SOLVED]Failling to build spring rts from source
- Replies: 3
- Views: 6575
Re: Failling to build spring rts from source
After to restart all step from beginning and using some black magic now that build
- 11 Oct 2014, 13:21
- Forum: Linux
- Topic: [SOLVED]Failling to build spring rts from source
- Replies: 3
- Views: 6575
[SOLVED]Failling to build spring rts from source
I am using fedora 20 but that do not is the matter here Wat I do? $ git clone git://github.com/spring/spring.git $ cd spring $ git checkout remotes/origin/master $ git submodule sync $ git submodule update –init $ su -c’yum install -y DevIL-ILUT DevIL-devel DevIL-ILUT-devel DevIL p7zip\ asciidoc doc...