Search

Search found 79 matches

by Bla
02 Aug 2014, 06:39
Forum: AI
Topic: Bla1AI 0.32 crash info
Replies: 8
Views: 1314

Bla1AI 0.32 crash info

My AI crashed when I was playing a 1v1 against it, and here is the output from infolog [f=0018858] Warning: [Watchdog] Hang detection triggered for Spring 96.0. [f=0018858] Warning: (in thread: main) [f=0018858] Warning: DLL information: [f=0018858] Error: 0x00400000 spring [f=0018858] Error: 0x770e...
by Bla
14 Jul 2014, 06:18
Forum: AI
Topic: Java AI API: bug SIGSEGV or dirrerent API interface?
Replies: 39
Views: 7173

Re: Java AI API: bug SIGSEGV or dirrerent API interface?

Today I try compiling String AI interface from source, but I have some trouble. I download Spring 97 sources. First trouble (fixed): I have linux, and not using OpenJDK, have Oracle JDK. When I start cmake I have message about no JDK found (variable JAVA_HOME not set). For fix it I wrote on console...
by Bla
06 Jul 2014, 00:19
Forum: AI
Topic: Java AI how to get nanoturret to fight without timing out
Replies: 4
Views: 949

Re: Java AI how to get nanoturret to fight without timing ou

playerO1 wrote:Maybe you need command patrol?
I don't know about timeout.
A little late, but thanks! That worked!

I didn't have much free time for coding, but yeah, when I ordered the nanos to patrol a point that was about 100 units away from it, it works!

Thanks!
by Bla
02 Jul 2014, 19:48
Forum: AI
Topic: Java AI API: bug SIGSEGV or dirrerent API interface?
Replies: 39
Views: 7173

Re: Java AI API: bug SIGSEGV or dirrerent API interface?

[f=0000000] Team0 (PeaceBOT) has been decommissioned [f=0000000] Team1 (NullAI) lived up to their reputation [f=0000000] Team2 () has been played out [f=0000000] Team3 () couldn't resist pushing the red button PlayerO1, the bots shouldn't all die... If you run a blank game with only NullJavaOOAI, d...
by Bla
02 Jul 2014, 19:44
Forum: AI
Topic: Java AI API: bug SIGSEGV or dirrerent API interface?
Replies: 39
Views: 7173

Re: Java AI API: bug SIGSEGV or dirrerent API interface?

hoijui wrote: ... which leads me to assume that you are on windows, correct?
I think he's on Linux
playerO1 wrote: [f=0000001] Error: <2> /lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7fe13f8c0340]
by Bla
18 Jun 2014, 06:03
Forum: AI
Topic: Java AI how to get nanoturret to fight without timing out
Replies: 4
Views: 949

Re: Java AI how to get nanoturret to fight without timing ou

I have no idea if this works, but it seems I use '10000' as the last value in most such command. I probably copied that from the KAIK C code:) Relevant code: https://code.google.com/p/crans-java-ai/source/browse/CransJavaAI/trunk/src/com/springrts/ai/crans/UnitHelper.java Worth a try? :) I tried it...
by Bla
16 Jun 2014, 21:20
Forum: AI
Topic: JavaAI how to find error number
Replies: 8
Views: 803

Re: JavaAI how to find error number

abma wrote:
Bla wrote:why does sendTextMessage(ex.getMessage()) always cause spring to crash?
can you provide more details? infolog.txt could be useful...
Hm kind of late reply, as I have not ran into many bugs, but in the infolog, it just cuts out. It just ends there.
by Bla
16 Jun 2014, 21:14
Forum: AI
Topic: Java AI how to get nanoturret to fight without timing out
Replies: 4
Views: 949

Java AI how to get nanoturret to fight without timing out

Right now I have public int unitFinished(Unit unit) { if(unit.getDef().isBuilder()&&unit.getDef().getBuildDistance()>128){ AIFloat3 location = unit.getPos(); location.x+=50; unit.fight(location,(short)1, INTEGER.MAX_VALUE);//I've tried 0, -1 and MAX_VALUE, both of which didn't work } return 0; } The...
by Bla
11 Jun 2014, 06:06
Forum: Help & Bugs
Topic: Springfiles registration
Replies: 1
Views: 305

Springfiles registration

I've tried to register on Springfiles, but I never got the confirmation email, and when I try to reset my password, that email never sends too. I've heard something about new hardware. Can a dev investigate?

Thanks!
by Bla
25 May 2014, 20:59
Forum: AI
Topic: [solved]Colonizing Mexes with java wrapper
Replies: 6
Views: 1031

Re: Colonizing Mexes with java wrapper

Hm... I changed my design and got it to work... I had to rewrite the class that this was in, as it was very sloppy, and probably I had errors in it elsewhere that caused the method to not work, but isPossibleToBuildAt(def, location, facing) looks cool...
by Bla
23 May 2014, 03:49
Forum: AI
Topic: JavaAI how to find error number
Replies: 8
Views: 803

Re: JavaAI how to find error number

why does sendTextMessage(ex.getMessage()) always cause spring to crash?
by Bla
23 May 2014, 02:50
Forum: AI
Topic: JavaAI how to find error number
Replies: 8
Views: 803

Re: JavaAI how to find error number

You can of course write it to the spring log file instead: } catch (Throwable t) { StringWriter sw = new StringWriter(); t.printStackTrace(sw); writeToConsole(sw.toString); } The reason I write to a separate file is that I also want to emit other diagnostic information, making the log quite large. ...
by Bla
23 May 2014, 00:27
Forum: AI
Topic: [solved]Colonizing Mexes with java wrapper
Replies: 6
Views: 1031

[solved]Colonizing Mexes with java wrapper

This is a (dysfunctional) method that should return the closest AIFloat3 with a metal spot on it that is not already taken (assuming no enemies). I've been debugging it for like 3 days, but I still haven't found the cause. locs is an arrayList of all the metal locations. manage.getAllUnitPos() is a ...
by Bla
21 May 2014, 00:21
Forum: AI
Topic: Java AI how to find units queued by a factory
Replies: 5
Views: 867

Java AI how to find units queued by a factory

I know fac.getCurrentCommands().size() returns the number of units queued by the factory, but is there a way to get the UnitDefs of the units queued?
by Bla
21 May 2014, 00:10
Forum: AI
Topic: JavaAI how to find error number
Replies: 8
Views: 803

Re: JavaAI how to find error number

Ahh.. I was kind of hoping there was an easier way to find just the line number and print it onto the Spring log as I wouldn't have to worry about a separate log file, but thanks!
by Bla
20 May 2014, 04:38
Forum: AI
Topic: JavaAI how to find error number
Replies: 8
Views: 803

JavaAI how to find error number

so if I have try{ //random stuff } catch(Exception ex){ CallbackHelper.say("Error in (insert meathod name here)"); CallbackHelper.say(ex.toString()); } where CallbackHelper is a static class with the callback and say is a method that does getGame().sendTextMessage(string, 0), is there a way to get a...
by Bla
19 May 2014, 00:25
Forum: AI
Topic: Java AI: Classpath setup
Replies: 11
Views: 1435

Re: Java AI: Classpath setup

the ones in my link are really outdated. Please keep that in mind! I really recommend you go to spring/AI/Skirmish/NullOOJavaAI/0.1/jlib/javaOO-AIWrapper.jar If you want to see the implementation, I guess you could always use jd-gui to decompile it (which is what I did) Edit: You will also need AI/...
by Bla
18 May 2014, 18:37
Forum: Help & Bugs
Topic: Human Parsing Question
Replies: 25
Views: 2401

Re: Human Parsing Question

SinbadEV wrote:"Describe, in single words, only the good things that come to your mind about your mother."
by Bla
18 May 2014, 18:22
Forum: AI
Topic: Java AI: Classpath setup
Replies: 11
Views: 1435

Re: Java AI: Classpath setup

I was the one who wrote the classes are outdated :S

I just extracted the files from nulloojavaai, as it has all the required jars.
by Bla
18 May 2014, 05:06
Forum: AI
Topic: Multiple Java AIs in the same game
Replies: 6
Views: 594

Re: Multiple Java AIs in the same game

Hm, while I'm at it, are there any potential downsides for static classes? (Ex. if and when the bug is fixed, my AI will still act like one if I have many instances in the same game right?)

Go to advanced search