Java AI Interface for Spring - Page 7

Java AI Interface for Spring

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Java AI Interface for Spring

Post by hoijui »

:D
i am testing on windows and linux. the Makefile_win32 is for windows (i use XP). when compiling spring with mingw on windows, you should get spring.a . maybe you didn't use mingw but an other compiler?
about the gnu tools...
you are right.. i found out that i am using WinAVR utils. i will send the needed exes with the next release (sed.exe, ...). may be exactly the ones you are using now.

am quite ready to release, just having a nasty error right now.. so it should come soon... patience pls! ;-)
if you get it working with an other compiler, pls send me the makefile ;-)

the thing about including spring.a ... yeah you might be right... will have a look after i get the above mentioned error out.
thanks!
User avatar
hughperkins
AI Developer
Posts: 836
Joined: 17 Oct 2006, 04:14

Re: Java AI Interface for Spring

Post by hughperkins »

you are right.. i found out that i am using WinAVR utils. i will send the needed exes with the next release (sed.exe, ...). may be exactly the ones you are using now.
Ok
:D
i am testing on windows and linux. the Makefile_win32 is for windows (i use XP). when compiling spring with mingw on windows, you should get spring.a . maybe you didn't use mingw but an other compiler?
Using the mingw bundled with devcpp, as linked to from here: http://spring.clan-sy.com/wiki/Engine_Development , which links to: http://downloads.sourceforge.net/dev-cp ... _setup.exe

Running on Vista (yeah, I'm one of the two Vista users!). Maybe makes a difference?
User avatar
hughperkins
AI Developer
Posts: 836
Joined: 17 Oct 2006, 04:14

Re: Java AI Interface for Spring

Post by hughperkins »

Oh! This is interesting... in release version I get spring.a ; in svn I dont.

Kindof pondering... are you using ABIC without realizing it? :-O ABIC was some c interfaces I added into Spring a couple of years ago, that no-one uses (I think). I'm somewhat sure that it was me that added the whole spring.a thing / spring.def to the compile process as part of that. But not completely sure... anyway it's possible that removing ABIC removed the spring.a that you are using ;-)

Why are you linking to spring.a actually? Are you sure we need to?

Edit: but if it was my change to abic that removed spring.a, actually I really ought to have spring.a in my svn directory, since I built the svn prior to removing it. So, something else may have removed the spring.a? Possibly a change to SConstruct? (Not entirely sure about this last paragraph)

Edit: had a look at the spring.a, it's just a bunch of c interface exports as far as I can see: take a look at spring.def, it's a human-readable version of the same thing

Tried building 5869, and that doesnt give me a .a file; but I kindof suspect you have an old spring.a file from an earlier svn release? (My 0.76b1 source code did build a spring.a file)

On the whole, I suspect that you dont need to link to spring.a at all, and the CIcon error I'm getting is because something has changed in svn since 5869, that you havent wrapped/maintained yet?
User avatar
hughperkins
AI Developer
Posts: 836
Joined: 17 Oct 2006, 04:14

Re: Java AI Interface for Spring

Post by hughperkins »

Hey! So I did the following:
* changed my svn directory revision number to 5869
* removed the attempt to link to spring.a completely

-> jai.dll built!

So, I think that:
* you dont need to link to spring.a at all (that was just a c interface exports file, that you're not using in fact)
* there's some change to the svn since 5869 that breaks your wrappers ;-)

Edit:
* This builds:
** add winavr\utils\bin to path
** remove gnuutils from path...
** remove spring.a from makefile
** add my java home to makefile, with forward slashes
** using svn 5869

Do you want to have a look at getting svn head to work? svn 5869 has some display issues that make spring not work very well on my machine ;-)
Last edited by hughperkins on 26 May 2008, 11:13, edited 1 time in total.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Java AI Interface for Spring

Post by hoijui »

...wow :D
thanks for all the testing.. i fixed my error now. will get the latest SVN, remove spring.a, build and trying to remove spring.a as a dependency and all...
...aehm :D
i just checked, and .. you are right, even doh i compiled spring various times since then, my spring.a is from december 2007 ;-)
sorry then
soo.. as said.. will try to fix that now...
User avatar
hughperkins
AI Developer
Posts: 836
Joined: 17 Oct 2006, 04:14

Re: Java AI Interface for Spring

Post by hughperkins »

thanks for all the testing.. i fixed my error now. will get the latest SVN, remove spring.a, build and trying to remove spring.a as a dependency and all...
Ok, sounds good :-)
User avatar
hughperkins
AI Developer
Posts: 836
Joined: 17 Oct 2006, 04:14

Re: Java AI Interface for Spring

Post by hughperkins »

Hey! Ok, trying to run this now ;-)

Using the build configuration above, ie svn version 5869.

The following logfiles are generated, but then nothing more happens, just hangs ;-)

infolog.txt:

Code: Select all

...
New connection established in 0 (wanted number was 0)
Player hughperkins joined as 0
Upgrade pairs registered
GameID: 7b843a48b89bf2ede5c28af704e8da6e
AI/Bot-libs/JAI-impl-hoijui.jar has C++ interface
JAI_cpp-log.txt:

Code: Select all

...
num options: 13
creating JVM...
hotspot.log:

Code: Select all

...
[Dynamic-linking native method java.io.WinNTFileSystem.canonicalizeWithPrefix0 ... JNI]
Checked JNI functions are being used to validate JNI usage
Checked JNI functions are being used to validate JNI usage
[Dynamic-linking native method java.lang.ClassLoader.findLoadedClass0 ... JNI]
[Dynamic-linking native method java.lang.ClassLoader.findBootstrapClass ... JNI]
[Dynamic-linking native method sun.misc.VMSupport.initAgentProperties ... JNI]
Checked JNI functions are being used to validate JNI usage
Checked JNI functions are being used to validate JNI usage
And then... nothing ;-) Cant find any other logfiles.

It looks like the jvm is being loaded, but it's not finding your jar file or something like that? What would be next things to either debug or check? I think your build process copies everything into the AI\bot-libs directly automatically right?

Added a "dir /s" of bot-libs as attachment (not sure if attachments work or not? going to try....)

Edit: added the hotspot.log and cpp log just in case it is useful.

Edit2: I guess it is failing on this line?

res = JNI_CreateJavaVM(&jvm, (void**)&jniEnv, &vm_args);

(though it could feasibly be on one of the deletes just after it)

... but presumably it's because of one of the options that we already configured in vm_args?
Attachments
JAI_cpp-log.txt
(3.71 KiB) Downloaded 132 times
hotspot.log
(14.28 KiB) Downloaded 40 times
filelist.txt
(5.18 KiB) Downloaded 38 times
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Java AI Interface for Spring

Post by hoijui »

thanks...
i see you have debugging enabled...
as you may have read, this neither worked for synogen.
you may go on testing without debugging (removing the debug options in Bot-libs/JAI/config.xml), till i release the next version.
as i changed lots of things since the last release.. who knows, it may be solved already.
the CIcon thing is resolved.
User avatar
hughperkins
AI Developer
Posts: 836
Joined: 17 Oct 2006, 04:14

Re: Java AI Interface for Spring

Post by hughperkins »

Ok.

Tried:
* removing all the lines under the Debug heading in config.xml -> spring crashed when loading the ai, with crash dialog
* copying config-noJVM.xml to config,xml -> spring crashed when loading the ai, with crash dialog

Could you send the config file that is working for you at the moment, as an attachment, please?
User avatar
hughperkins
AI Developer
Posts: 836
Joined: 17 Oct 2006, 04:14

Re: Java AI Interface for Spring

Post by hughperkins »

On the topic of "how does this work?", am I right in thinking that you're running the ai in the jvm, and getting the ai to call back into spring through swig? What I mean is, you're not calling through swig to the ai, but from the ai to spring? (not including directors which then would go, presumably, from spring to ai?)
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Java AI Interface for Spring

Post by hoijui »

the AI is running in the JVM, yes. i am using SWIG for both:
Java -> native/spring
native/spring -> Java (with directors)

if you delete the config file, it should use default values, which work for me. the attacked config file has the same values plus JVM-logging enabled.
Attachments
config.xml
(602 Bytes) Downloaded 36 times
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Java AI Interface for Spring

Post by hoijui »

JAI alpha4 released, wiki updated:
http://spring.clan-sy.com/wiki/AI:JAI
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Java AI Interface for Spring

Post by AF »

If at the end you could release this with a working Netbeans project with a basic AI then this should make it uber easy to move forward with things, especially for new users.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Java AI Interface for Spring

Post by hoijui »

there are netbeans projects included in the source release (JAI/projects).
JGlobalAI: the Java interface, JAI
JGlobalAI-impl-tst: the first test implementation whihc reacts to chat commands
JGlobalAI-impl-hoijui: the second test implementation, which actually works like an AI should. i tested it with XTA 9.44, and ther it builds energy, metal extractors, factories and units, and does something like attack with the units. its not usable of course, but i think its ok for a sample/as a tutorial.
the only (minor) negative thing is...
instead of using the JAI.jar in the two implementation projects, i used the interface project directly in Libraries. i will change that in the next release, but well.. its easy to fix, just remove the project there and add JAI.jar (from the JAI-<version>-bin.zip).

i forgot to explain what changed. in alpha4:
no strange SWIG types are used anymore, some things are arrays, like the metalMap or the LOSmap and so on, but most things, like unit lists or unitDef lists and so on, now come in java.util.List's or java.util.Map's. it shoulld be very comfortable now for Java only programmers to use.
loggin, as long as the JVM does not crash, now only happens in AI/Bot-libs/JAI/log and in AI/hoijui/log.

@AF
the handleCommand() method is not so comfortable for me/JAI, as i have to extend the classes with methods that return a void pointer first.. in other words: whenever ther is a new command that can be used with handleCommand, the swig interface fiel has to be adjusted, and then its no big deal anymore to add a method to the java class handling it.. so for now, i have chosen this method, cause it is also easyer for new JAVA AI devs, if there is no handleCommand() method that takes a SWIGTYPE_p_void argument which can be extracted from a bunch of classes which have a getVoidPointer() method.
though.. this can always be changed, if you have good arguments.

edit: the projects are made with netbeans 6.1
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Java AI Interface for Spring

Post by AF »

tbh that particular void* should be changed to a base class of some kind
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Java AI Interface for Spring

Post by hoijui »

hmm...
that would make it look a bit better, but still JAI had to be adapted for every new event. i can do that of course, when i am told.

to everyone...
at the current state, JAI is ok for me as it is, so i need testers. i also got scons to build the native part (as mentioned earlyer), though swig still has to be ran manually beforehand.
so beside testers, i ask again for ideas of what should be changed, or how we could integrate it.. or if thats not what you/we want.
easyest would probably be if my Makefile could be ran during the spring build process maybe. i would then have to addapt them for linux, and someone else would have to help me with the mac.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Java AI Interface for Spring

Post by hoijui »

modifyed this release (source version), so the neatbeans projects should be usable without modification (source dist now also contains JAI.jar for this reason).
get from here: http://spring.clan-sy.com/wiki/AI:JAI#Downloads
tberthel
Posts: 59
Joined: 12 Jan 2008, 06:17

Re: Java AI Interface for Spring

Post by tberthel »

I did a base install of 6066 and then 5956 and followed the JAI-alpha4-bin instructions, but it crashes. I get the following logs:

native-log.txt:

Creating the JVM.
JVM init options (10):

creating JVM...

native-SWIG-log.txt:

-Djava.class.path=AI/Bot-libs/JAI/JAI.jar;AI/Bot-libs/JAI;AI/Bot-libs/JAI/lib/commons-lang-2.4.jar;AI/Bot-libs/JAI/lib/commons-logging-1.1.1.jar;AI/Bot-libs/JAI/lib/log4j-1.2.15.jar;AI/Bot-libs/JAI/lib/vecmath.jar;AI/Bot-libs/hoijui.jar;AI/Bot-libs/tst.jar
-Djava.library.path=AI/Bot-libs/JAI;AI/Bot-libs/JAI/lib
-Xms4M
-Xmx64M
-Xss512K
-Xoss400K
-verbose:jni
-Xcheck:jni
-XX:+UnlockDiagnosticVMOptions
-XX:+LogVMOutput

infolog.txt:

Using script script.txt
Video mode set to 1280 x 800 / 32 bit
SDL: 1.2.10
GL: 1.4.0 - Build 7.14.10.1409
GL: Intel
GL: Intel 945GM
GLEW: 1.4.0
mod checksum .\mods\BA_Installer_Version.sd7: 1276028908/1276028908
mod checksum .\base\springcontent.sdz: 281407885/281407885
mod checksum .\base\spring\bitmaps.sdz: 3651415989/-643551307
mod checksum .\base\otacontent.sdz: 3667699602/-627267694
mod checksum .\base\tatextures_v062.sdz: 716041504/716041504
map checksum .\maps\Comet_Catcher_Redux.sd7: 1729117454/1729117454
Connecting to server .
Became player 0
Using map Comet Catcher Redux.smf
map checksum .\maps\Comet_Catcher_Redux.sd7: 1729117454/1729117454
Using script Commanders
Using mod Balanced Annihilation V6.21
mod checksum .\mods\BA_Installer_Version.sd7: 1276028908/1276028908
mod checksum .\base\springcontent.sdz: 281407885/281407885
mod checksum .\base\spring\bitmaps.sdz: 3651415989/-643551307
mod checksum .\base\otacontent.sdz: 3667699602/-627267694
mod checksum .\base\tatextures_v062.sdz: 716041504/716041504
Parsing unit icons
Loading all definitions: 0.862000
You are missing an OpenGL extension needed to use shadowmaps (fragment_program_shadow)
Opening map file
Loading Map
Loading detail textures
Creating overhead texture
Creating ground shading
Loading tile file
Reading tiles
Reading tile map
Creating projectile texture
Number of damage types: 42
Loading weapon definitions
Loading unit definitions
Loading feature definitions
Creating unit textures
Initializing map features
Reading estimate path costs (using 2 threads)
Creating sky
Loading LuaRules
map checksum .\maps\Comet_Catcher_Redux.sd7: 1729117454/1729117454
mod checksum .\mods\BA_Installer_Version.sd7: 1276028908/1276028908
mod checksum .\base\springcontent.sdz: 281407885/281407885
mod checksum .\base\spring\bitmaps.sdz: 3651415989/-643551307
mod checksum .\base\otacontent.sdz: 3667699602/-627267694
mod checksum .\base\tatextures_v062.sdz: 716041504/716041504
LUARULES-MAIN (GADGETS)
map checksum .\maps\Comet_Catcher_Redux.sd7: 1729117454/1729117454
mod checksum .\mods\BA_Installer_Version.sd7: 1276028908/1276028908
mod checksum .\base\springcontent.sdz: 281407885/281407885
mod checksum .\base\spring\bitmaps.sdz: 3651415989/-643551307
mod checksum .\base\otacontent.sdz: 3667699602/-627267694
mod checksum .\base\tatextures_v062.sdz: 716041504/716041504
LUARULES-DRAW (GADGETS)
Loading LuaGaia
Loading LuaUI
map checksum .\maps\Comet_Catcher_Redux.sd7: 1729117454/1729117454
mod checksum .\mods\BA_Installer_Version.sd7: 1276028908/1276028908
mod checksum .\base\springcontent.sdz: 281407885/281407885
mod checksum .\base\spring\bitmaps.sdz: 3651415989/-643551307
mod checksum .\base\otacontent.sdz: 3667699602/-627267694
mod checksum .\base\tatextures_v062.sdz: 716041504/716041504
Reloaded ctrlpanel with: LuaUI/ctrlpanel.txt
LuaUI: bound F11 to the widget selector
LuaUI: bound CTRL+F11 to tweak mode
Hardware is incompatible with Xray shader requirements
ahoj
Loaded widget: MexUpg Helper <helper.lua>
Reloaded ctrlpanel with: LuaUI/Configs/ctrlpanel.txt
Loaded widget: BA Layout <gui_ba_layout.lua>
Loaded widget: HealthBars <unit_healthbars.lua>
Loaded widget: Eyes <gui_eyes.lua>
Loaded widget: DGunLimit <gui_limit_dgun.lua>
Loaded widget: BuildBar <unit_buildbar.lua>
Loaded widget: Defense Range v3.4 <gui_defenserange.lua>
Loaded widget: DoLine <cmd_doline.lua>
Loaded widget: ReclaimInfo <gui_reclaiminfo.lua>
Loaded widget: Start Point Remover <init_start_point_remover.lua>
Loaded widget: Select n Center! <gui_center_n_select.lua>
Loaded widget: LupsManager <gfx_lups_manager.lua>
Loaded widget: Lups <lups_wrapper.lua>
Loaded widget: CustomFormations <unit_customformations.lua>
LuaUI v0.2
Finalizing...
Spring 0.76b1+
Upgrade pairs registered
New connection established in 0 (wanted number was 0)
Player CraZyBoy joined as 0
CraZyBoy added point: Start 0
GameID: a7c6624801c0833ac396411be66a7944
AI/Bot-libs/tst.jar is a Java archive
Spring 0.76b1+ has crashed.
Exception: Access violation (0xc0000005)
Exception Address: 0x7716814c
DLL information:
0x00400000 spring
0x77100000 ntdll
0x76c30000 kernel32
0x75980000 ADVAPI32
0x75b60000 RPCRT4
0x6c1f0000 dsound
0x75ab0000 msvcrt
0x76b00000 USER32
0x77250000 GDI32
0x75c40000 ole32
0x74040000 WINMM
0x76ba0000 OLEAUT32
0x74000000 OLEACC
0x74c80000 POWRPROF
0x714b0000 GLU32
0x6c960000 OPENGL32
0x6bcc0000 DDRAW
0x73f90000 DCIMAN32
0x76970000 SETUPAPI
0x71d30000 dwmapi
0x77330000 IMAGEHLP
0x72e60000 WSOCK32
0x76eb0000 WS2_32
0x75c30000 NSI
0x6ed80000 glew32
0x10000000 SDL
0x7c340000 MSVCR71
0x00240000 DevIL
0x66fc0000 freetype6
0x61b80000 zlib1
0x003d0000 ILU
0x77060000 IMM32
0x76de0000 MSCTF
0x77240000 LPK
0x76d10000 USP10
0x039b0000 ig4icd32
0x03da0000 ig4dev32
0x74fd0000 mswsock
0x74c60000 wshtcpip
0x772a0000 CLBCatQ
0x74970000 MMDevApi
0x75a50000 SHLWAPI
0x746d0000 comctl32
0x74ad0000 WINTRUST
0x752c0000 CRYPT32
0x75420000 MSASN1
0x75830000 USERENV
0x75810000 Secur32
0x73d40000 AUDIOSES
0x73cd0000 audioeng
0x75970000 PSAPI
0x74870000 AVRT
0x6b280000 JAI
0x6d870000 jvm
0x6fbc0000 mingwm10
0x757b0000 apphelp
0x6d320000 hpi
0x6d820000 verify
0x6d3c0000 java
0x6d860000 zip
0x73be0000 dbghelp
Stacktrace:
(0) C:\Windows\system32\ntdll.dll(RtlTryEnterCriticalSection+0x69) [0x7716814C]
(1) C:\Windows\system32\ntdll.dll(RtlTryEnterCriticalSection+0x334) [0x77168417]
(2) C:\Windows\system32\ntdll.dll(RtlTryEnterCriticalSection+0x56f) [0x77168652]
(3) C:\Windows\system32\kernel32.dll(HeapFree+0x14) [0x76C7C56F]
(4) C:\Windows\system32\msvcrt.dll(free+0x39) [0x75AB9D6B]
(5) G:\Games\RTS\Spring Beta\5956\AI\Bot-libs\JAI\JAI.dll(Java_com_clan_1sy_spring_ai_global_java_wrap_JAIJNI_CCommandQueue_1push_1back+0xc80) [0x6B2ACF70]
(6) G:\Games\RTS\Spring Beta\5956\AI\Bot-libs\JAI\JAI.dll(GetNewAIByName+0xd) [0x6B2AD26D]
(7) G:\Games\RTS\Spring Beta\5956\spring.exe [0x00771576]
(8) G:\Games\RTS\Spring Beta\5956\spring.exe [0x00771C9D]
(9) G:\Games\RTS\Spring Beta\5956\spring.exe [0x0077250F]
(10) G:\Games\RTS\Spring Beta\5956\spring.exe [0x00775DC5]
(11) G:\Games\RTS\Spring Beta\5956\spring.exe [0x0090C798]
(12) G:\Games\RTS\Spring Beta\5956\spring.exe [0x007BB63A]
(13) G:\Games\RTS\Spring Beta\5956\spring.exe [0x007EC668]
(14) G:\Games\RTS\Spring Beta\5956\spring.exe [0x007EEBC9]
(15) G:\Games\RTS\Spring Beta\5956\spring.exe [0x00599419]
(16) G:\Games\RTS\Spring Beta\5956\spring.exe [0x005A38D8]
(17) G:\Games\RTS\Spring Beta\5956\spring.exe [0x00598CA5]
(18) G:\Games\RTS\Spring Beta\5956\spring.exe [0x00598EA6]
(19) G:\Games\RTS\Spring Beta\5956\spring.exe [0x009C6311]
(20) G:\Games\RTS\Spring Beta\5956\spring.exe [0x004010A7]
(21) G:\Games\RTS\Spring Beta\5956\spring.exe [0x00401123]
(22) C:\Windows\system32\kernel32.dll(BaseThreadInitThunk+0x12) [0x76C74911]
(23) C:\Windows\system32\ntdll.dll(RtlInitializeExceptionChain+0x63) [0x7713E4B6]
(24) C:\Windows\system32\ntdll.dll(RtlInitializeExceptionChain+0x36) [0x7713E489]


Using script script.txt
Using read-write data directory: G:\Games\RTS\Spring Beta\6066\
Scanning: G:\Games\RTS\Spring Beta\6066\maps
Scanning: G:\Games\RTS\Spring Beta\6066\base
Scanning: G:\Games\RTS\Spring Beta\6066\mods
Video mode set to 1280 x 800 / 32 bit
SDL: 1.2.10
GL: 1.4.0 - Build 7.14.10.1409
GL: Intel
GL: Intel 945GM
GLEW: 1.4.0
Connecting to local server using number 0
mod checksum G:\Games\RTS\Spring Beta\6066\mods\BA_Installer_Version.sd7: 169217757/169217757
mod checksum G:\Games\RTS\Spring Beta\6066\base\springcontent.sdz: 693318006/693318006
mod checksum G:\Games\RTS\Spring Beta\6066\base\spring\bitmaps.sdz: 3651415989/-643551307
mod checksum G:\Games\RTS\Spring Beta\6066\base\otacontent.sdz: 3667699602/-627267694
mod checksum G:\Games\RTS\Spring Beta\6066\base\tatextures_v062.sdz: 716041504/716041504
mod checksum G:\Games\RTS\Spring Beta\6066\base\springcontent.sdz: 693318006/693318006
map checksum G:\Games\RTS\Spring Beta\6066\maps\Comet_Catcher_Redux.sd7: 1729117454/1729117454
map checksum G:\Games\RTS\Spring Beta\6066\base\maphelper.sdz: 1853986283/1853986283
Became player 0
Using map Comet Catcher Redux.smf
map checksum G:\Games\RTS\Spring Beta\6066\maps\Comet_Catcher_Redux.sd7: 1729117454/1729117454
map checksum G:\Games\RTS\Spring Beta\6066\base\maphelper.sdz: 1853986283/1853986283
Using script Commanders
Using mod Balanced Annihilation V6.21
mod checksum G:\Games\RTS\Spring Beta\6066\mods\BA_Installer_Version.sd7: 169217757/169217757
mod checksum G:\Games\RTS\Spring Beta\6066\base\springcontent.sdz: 693318006/693318006
mod checksum G:\Games\RTS\Spring Beta\6066\base\spring\bitmaps.sdz: 3651415989/-643551307
mod checksum G:\Games\RTS\Spring Beta\6066\base\otacontent.sdz: 3667699602/-627267694
mod checksum G:\Games\RTS\Spring Beta\6066\base\tatextures_v062.sdz: 716041504/716041504
mod checksum G:\Games\RTS\Spring Beta\6066\base\springcontent.sdz: 693318006/693318006
Connecting to server .
Parsing unit icons
Loading all definitions: 0.793000
You are missing an OpenGL extension needed to use shadowmaps (fragment_program_shadow)
Opening map file
Loading Map
Loading detail textures
Creating overhead texture
Creating ground shading
Loading tile file
Reading tiles
Reading tile map
Creating projectile texture
Number of damage types: 42
Loading weapon definitions
Loading unit definitions
Loading feature definitions
Creating unit textures
Initializing map features
Reading estimate path costs (2 threads)
Creating sky
Loading LuaRules
map checksum G:\Games\RTS\Spring Beta\6066\maps\Comet_Catcher_Redux.sd7: 1729117454/1729117454
map checksum G:\Games\RTS\Spring Beta\6066\base\maphelper.sdz: 1853986283/1853986283
mod checksum G:\Games\RTS\Spring Beta\6066\mods\BA_Installer_Version.sd7: 169217757/169217757
mod checksum G:\Games\RTS\Spring Beta\6066\base\springcontent.sdz: 693318006/693318006
mod checksum G:\Games\RTS\Spring Beta\6066\base\spring\bitmaps.sdz: 3651415989/-643551307
mod checksum G:\Games\RTS\Spring Beta\6066\base\otacontent.sdz: 3667699602/-627267694
mod checksum G:\Games\RTS\Spring Beta\6066\base\tatextures_v062.sdz: 716041504/716041504
mod checksum G:\Games\RTS\Spring Beta\6066\base\springcontent.sdz: 693318006/693318006
LUARULES-MAIN (GADGETS)
map checksum G:\Games\RTS\Spring Beta\6066\maps\Comet_Catcher_Redux.sd7: 1729117454/1729117454
map checksum G:\Games\RTS\Spring Beta\6066\base\maphelper.sdz: 1853986283/1853986283
mod checksum G:\Games\RTS\Spring Beta\6066\mods\BA_Installer_Version.sd7: 169217757/169217757
mod checksum G:\Games\RTS\Spring Beta\6066\base\springcontent.sdz: 693318006/693318006
mod checksum G:\Games\RTS\Spring Beta\6066\base\spring\bitmaps.sdz: 3651415989/-643551307
mod checksum G:\Games\RTS\Spring Beta\6066\base\otacontent.sdz: 3667699602/-627267694
mod checksum G:\Games\RTS\Spring Beta\6066\base\tatextures_v062.sdz: 716041504/716041504
mod checksum G:\Games\RTS\Spring Beta\6066\base\springcontent.sdz: 693318006/693318006
LUARULES-DRAW (GADGETS)
Loading LuaGaia
Loading LuaUI
map checksum G:\Games\RTS\Spring Beta\6066\maps\Comet_Catcher_Redux.sd7: 1729117454/1729117454
map checksum G:\Games\RTS\Spring Beta\6066\base\maphelper.sdz: 1853986283/1853986283
mod checksum G:\Games\RTS\Spring Beta\6066\mods\BA_Installer_Version.sd7: 169217757/169217757
mod checksum G:\Games\RTS\Spring Beta\6066\base\springcontent.sdz: 693318006/693318006
mod checksum G:\Games\RTS\Spring Beta\6066\base\spring\bitmaps.sdz: 3651415989/-643551307
mod checksum G:\Games\RTS\Spring Beta\6066\base\otacontent.sdz: 3667699602/-627267694
mod checksum G:\Games\RTS\Spring Beta\6066\base\tatextures_v062.sdz: 716041504/716041504
mod checksum G:\Games\RTS\Spring Beta\6066\base\springcontent.sdz: 693318006/693318006
Using LUAUI_DIRNAME = LuaUI/
Reloaded ctrlpanel with: LuaUI/ctrlpanel.txt
LuaUI: bound F11 to the widget selector
LuaUI: bound CTRL+F11 to tweak mode
Hardware is incompatible with Xray shader requirements
ahoj
Loaded widget: MexUpg Helper <helper.lua>
Reloaded ctrlpanel with: LuaUI/Configs/ctrlpanel.txt
Loaded widget: BA Layout <gui_ba_layout.lua>
Loaded widget: HealthBars <unit_healthbars.lua>
Loaded widget: Eyes <gui_eyes.lua>
Loaded widget: DGunLimit <gui_limit_dgun.lua>
Loaded widget: BuildBar <unit_buildbar.lua>
Loaded widget: Defense Range v3.4 <gui_defenserange.lua>
Loaded widget: DoLine <cmd_doline.lua>
Loaded widget: ReclaimInfo <gui_reclaiminfo.lua>
Loaded widget: Start Point Remover <init_start_point_remover.lua>
Loaded widget: Select n Center! <gui_center_n_select.lua>
Loaded widget: LupsManager <gfx_lups_manager.lua>
Loaded widget: Lups <lups_wrapper.lua>
Loaded widget: CustomFormations <unit_customformations.lua>
LuaUI v0.3
Finalizing...
Spring 0.76b1+
Upgrade pairs registered
New connection established in 0 (wanted number was 0)
Player CraZyBoy joined as 0
CraZyBoy added point: Start 0
CraZyBoy added point: Start 0
GameID: 62cb62482c3f06b1c396411b366afef6
AI/Bot-libs/tst.jar is a Java archive
Spring 0.76b1+ has crashed.
Exception: Access violation (0xc0000005)
Exception Address: 0x7716814c
DLL information:
0x00400000 spring
0x77100000 ntdll
0x76c30000 kernel32
0x75980000 ADVAPI32
0x75b60000 RPCRT4
0x6c1f0000 dsound
0x75ab0000 msvcrt
0x76b00000 USER32
0x77250000 GDI32
0x75c40000 ole32
0x74040000 WINMM
0x76ba0000 OLEAUT32
0x74000000 OLEACC
0x74c80000 POWRPROF
0x714b0000 GLU32
0x6bc10000 OPENGL32
0x6cab0000 DDRAW
0x73f90000 DCIMAN32
0x76970000 SETUPAPI
0x71d30000 dwmapi
0x77330000 IMAGEHLP
0x75e60000 SHELL32
0x75a50000 SHLWAPI
0x72e60000 WSOCK32
0x76eb0000 WS2_32
0x75c30000 NSI
0x6ed80000 glew32
0x10000000 SDL
0x7c340000 MSVCR71
0x01140000 DevIL
0x66fc0000 freetype6
0x61b80000 zlib1
0x00240000 ILU
0x77060000 IMM32
0x76de0000 MSCTF
0x77240000 LPK
0x76d10000 USP10
0x746d0000 comctl32
0x75830000 USERENV
0x75810000 Secur32
0x038f0000 ig4icd32
0x03d20000 ig4dev32
0x74fd0000 mswsock
0x74c60000 wshtcpip
0x772a0000 CLBCatQ
0x74970000 MMDevApi
0x74ad0000 WINTRUST
0x752c0000 CRYPT32
0x75420000 MSASN1
0x73d40000 AUDIOSES
0x73cd0000 audioeng
0x75970000 PSAPI
0x74870000 AVRT
0x6b280000 JAI
0x6d870000 jvm
0x6fbc0000 mingwm10
0x757b0000 apphelp
0x6d320000 hpi
0x6d820000 verify
0x6d3c0000 java
0x6d860000 zip
0x73be0000 dbghelp
Stacktrace:
(0) C:\Windows\system32\ntdll.dll(RtlTryEnterCriticalSection+0x69) [0x7716814C]
(1) C:\Windows\system32\ntdll.dll(RtlTryEnterCriticalSection+0x334) [0x77168417]
(2) C:\Windows\system32\ntdll.dll(RtlTryEnterCriticalSection+0x56f) [0x77168652]
(3) C:\Windows\system32\kernel32.dll(HeapFree+0x14) [0x76C7C56F]
(4) C:\Windows\system32\msvcrt.dll(free+0x39) [0x75AB9D6B]
(5) G:\Games\RTS\Spring Beta\6066\AI\Bot-libs\JAI\JAI.dll(Java_com_clan_1sy_spring_ai_global_java_wrap_JAIJNI_CCommandQueue_1push_1back+0xc80) [0x6B2ACF70]
(6) G:\Games\RTS\Spring Beta\6066\AI\Bot-libs\JAI\JAI.dll(GetNewAIByName+0xd) [0x6B2AD26D]
(7) G:\Games\RTS\Spring Beta\6066\spring.exe [0x0076DBD6]
(8) G:\Games\RTS\Spring Beta\6066\spring.exe [0x0076E2FD]
(9) G:\Games\RTS\Spring Beta\6066\spring.exe [0x0076EB6F]
(10) G:\Games\RTS\Spring Beta\6066\spring.exe [0x00772425]
(11) G:\Games\RTS\Spring Beta\6066\spring.exe [0x00916048]
(12) G:\Games\RTS\Spring Beta\6066\spring.exe [0x007BB49A]
(13) G:\Games\RTS\Spring Beta\6066\spring.exe [0x007DA967]
(14) G:\Games\RTS\Spring Beta\6066\spring.exe [0x007DD2F4]
(15) G:\Games\RTS\Spring Beta\6066\spring.exe [0x00596B29]
(16) G:\Games\RTS\Spring Beta\6066\spring.exe [0x005A0FE8]
(17) G:\Games\RTS\Spring Beta\6066\spring.exe [0x005963B5]
(18) G:\Games\RTS\Spring Beta\6066\spring.exe [0x005965B6]
(19) G:\Games\RTS\Spring Beta\6066\spring.exe [0x009CB911]
(20) G:\Games\RTS\Spring Beta\6066\spring.exe [0x004010A7]
(21) G:\Games\RTS\Spring Beta\6066\spring.exe [0x00401123]
(22) C:\Windows\system32\kernel32.dll(BaseThreadInitThunk+0x12) [0x76C74911]
(23) C:\Windows\system32\ntdll.dll(RtlInitializeExceptionChain+0x63) [0x7713E4B6]
(24) C:\Windows\system32\ntdll.dll(RtlInitializeExceptionChain+0x36) [0x7713E489]
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Java AI Interface for Spring

Post by AF »

tberthel
Posts: 59
Joined: 12 Jan 2008, 06:17

Re: Java AI Interface for Spring

Post by tberthel »

I ran it again with the JDK path instead of the JRE path specified in the instructions and it dies here instead:

(0) C:\Windows\system32\ntdll.dll(RtlAllocateHeap+0x17a) [0x77165A20]
(1) C:\Windows\system32\ntdll.dll(RtlFreeHeap+0x7a) [0x77165883]
(2) C:\Windows\system32\kernel32.dll(HeapFree+0x14) [0x76C7C56F]
(3) C:\Windows\system32\msvcrt.dll(free+0x39) [0x75AB9D6B]
(4) G:\Games\RTS\Spring Beta\5956\AI\Bot-libs\JAI\JAI.dll(IsLoadSupported+0x3c7) [0x6B29D007]
(5) G:\Games\RTS\Spring Beta\5956\AI\Bot-libs\JAI\JAI.dll(Java_com_clan_1sy_spring_ai_global_java_wrap_JAIJNI_CCommandQueue_1push_1back+0x744) [0x6B2ACA34]
(6) G:\Games\RTS\Spring Beta\5956\AI\Bot-libs\JAI\JAI.dll(Java_com_clan_1sy_spring_ai_global_java_wrap_JAIJNI_CCommandQueue_1push_1back+0xc36) [0x6B2ACF26]
(7) G:\Games\RTS\Spring Beta\5956\AI\Bot-libs\JAI\JAI.dll(GetNewAIByName+0xd) [0x6B2AD26D]
(8) G:\Games\RTS\Spring Beta\5956\spring.exe [0x00771576]
(9) G:\Games\RTS\Spring Beta\5956\spring.exe [0x00771C9D]
(10) G:\Games\RTS\Spring Beta\5956\spring.exe [0x0077250F]
(11) G:\Games\RTS\Spring Beta\5956\spring.exe [0x00775DC5]
(12) G:\Games\RTS\Spring Beta\5956\spring.exe [0x0090C798]
(13) G:\Games\RTS\Spring Beta\5956\spring.exe [0x007BB63A]
(14) G:\Games\RTS\Spring Beta\5956\spring.exe [0x007EC668]
(15) G:\Games\RTS\Spring Beta\5956\spring.exe [0x007EEBC9]
(16) G:\Games\RTS\Spring Beta\5956\spring.exe [0x00599419]
(17) G:\Games\RTS\Spring Beta\5956\spring.exe [0x005A38D8]
(18) G:\Games\RTS\Spring Beta\5956\spring.exe [0x00598CA5]
(19) G:\Games\RTS\Spring Beta\5956\spring.exe [0x00598EA6]
(20) G:\Games\RTS\Spring Beta\5956\spring.exe [0x009C6311]
(21) G:\Games\RTS\Spring Beta\5956\spring.exe [0x004010A7]
(22) G:\Games\RTS\Spring Beta\5956\spring.exe [0x00401123]
(23) C:\Windows\system32\kernel32.dll(BaseThreadInitThunk+0x12) [0x76C74911]
(24) C:\Windows\system32\ntdll.dll(RtlInitializeExceptionChain+0x63) [0x7713E4B6]
(25) C:\Windows\system32\ntdll.dll(RtlInitializeExceptionChain+0x36) [0x7713E489]

I am using:

java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)
Post Reply

Return to “AI”