Search

Search found 79 matches

by Bla
16 May 2014, 23:05
Forum: AI
Topic: Multiple Java AIs in the same game
Replies: 6
Views: 1482

Re: Multiple AIs in the same game

Ah, I see.... welp guess that means I can make all my classes static then
by Bla
16 May 2014, 22:20
Forum: AI
Topic: Multiple Java AIs in the same game
Replies: 6
Views: 1482

Multiple Java AIs in the same game

I've been experimenting with making the classes in my AI static to make the code neater, but when I have 2 or more of the same instances of my AI, only the 2nd one acts, the 1st one is idle. I think I read somewhere in the forums that spring has a problem where if many AIs are added, they all think ...
by Bla
16 May 2014, 08:20
Forum: AI
Topic: [solved]Determining if unit is factory
Replies: 20
Views: 3662

Re: Determining if unit is factory

Hm, checking speed works! thanks gajop! FLOZi, I don't know what a yardmap is, nor do I think there is any mention of it in the java wrapper, so I don't think it is an option for a java AI :(
by Bla
15 May 2014, 03:56
Forum: AI
Topic: [solved]Determining if unit is factory
Replies: 20
Views: 3662

Re: Determining if unit is factory

Oops, just noticed you're in the AI, and not the Lua Scripts section. Though it should still holds. Yeah, because I'm making the AI as high high school computer science final project, I'm limited to Java, which is what we learned the the class, and there is no isFactory in the callback :( http://sp...
by Bla
15 May 2014, 00:28
Forum: AI
Topic: [solved]Determining if unit is factory
Replies: 20
Views: 3662

[solved]Determining if unit is factory

Given a UnitDef, what way is there to determine if it is a factory?

Also, if I have getGame().getResourceMapSpotsPositions(metal), how can I tell if there is already a metal extractor on the map?
by Bla
15 May 2014, 00:20
Forum: AI
Topic: Finding a unitdef metal cost in an *A mod [solved]
Replies: 2
Views: 996

Re: Finding a unitdef metal cost in an *A mod

Hey, works thanks!
by Bla
14 May 2014, 04:10
Forum: AI
Topic: Finding a unitdef metal cost in an *A mod [solved]
Replies: 2
Views: 996

Finding a unitdef metal cost in an *A mod [solved]

in the spring java wrapper thing, given UnitDef uni and EngineCallback cb, to find the cost in metal I do
uni.findCost(cb.getResourceByName("metal"))
but I keep getting NullPointerException.

Is the resource name not "metal"?
by Bla
11 May 2014, 21:19
Forum: AI
Topic: com.springrts.ai.command package?
Replies: 4
Views: 1648

Re: com.springrts.ai.command package?

http://springrts.com/dl/buildbot/default/master/96.0/win32/spring_96.0_minimal-portable.7z -> /AI/Skirmish/HughAI/0.1/jlib/JavaOO-AIWrapper.jar self-compiling is very likely the better way, not sure. It doesn't have it... :( Try compiling spring itself, and see if the compiled java interface/wrappe...
by Bla
10 May 2014, 17:52
Forum: AI
Topic: com.springrts.ai.command package?
Replies: 4
Views: 1648

com.springrts.ai.command package?

I want to make a java AI, and I need this package to issue commands to the AI. I can't find it by decompiling the AI/Skrimish/NullOOJavaAI/0.1/jlib/JavaOO-AIWrapper.jar or HughAI's wrapper. I've seen other AI's use it like HughAI, even though I can't find it in the .jar... Can someone find it for me...
by Bla
09 May 2014, 21:33
Forum: Mac OS X
Topic: Need a working spring folder
Replies: 3
Views: 6447

Re: Need a working spring folder

It works, thanks!

But where/how can I get a lobby? Preferably springlobby, since it can place AIs in a single player?
Also, where do I put the maps/games?

Btw, thanks for the 94.1!
by Bla
08 May 2014, 23:25
Forum: Mac OS X
Topic: Need a working spring folder
Replies: 3
Views: 6447

Need a working spring folder

Can someone copy their spring .app file for me? I want to make a Spring AI in java for a school project, but the school computer only has Mac. Needless to say, I don't have admin rights on a school computer, so I can't do sudo. I've gotten wine to work, but the java AI interfaces can't be loaded, an...
by Bla
11 Feb 2014, 21:45
Forum: AI
Topic: Building AIs
Replies: 4
Views: 1512

Re: Building AIs

How do I auto-generate the code? I tried copy pasting the generated code from my home computer and I got com.springrts.ai.DefaultAICallback is not abstract and does not override abstract method getFieldOrder() in com.sun.jna.Structure In my school computer I can't install anything, so I can't run th...
by Bla
31 Jan 2014, 06:41
Forum: General Discussion
Topic: Spring mods in a competitive arena?
Replies: 0
Views: 1058

Spring mods in a competitive arena?

How expensive would it be to get spring's top mods into the eyes of international tournament companies like IeSF? http://ie-sf.org/ I mean even though I'm a techA player, I'd imagine Zero-k has the best chance seeing they are not a TA derived mod, and the mod has a large dev team. I understand this ...
by Bla
11 Jan 2014, 17:37
Forum: Help & Bugs
Topic: Paradox Death Bug
Replies: 3
Views: 732

Re: Paradox Death Bug

I lost the infolog, but I think it was Spring 94.1
by Bla
08 Jan 2014, 04:34
Forum: Help & Bugs
Topic: Paradox Death Bug
Replies: 3
Views: 732

Paradox Death Bug

In a replay if you use !cheat and cancel a player's all self-d order so he lives, then kill him later, game will crash moment he dies.
by Bla
08 Jan 2014, 04:34
Forum: AI
Topic: Building AIs
Replies: 4
Views: 1512

Re: Building AIs

Hm, I found the OOAI in my spring installation on my computer.

But OOAI seems to be missing in spring/AI at https://github.com/spring/spring

I think its suppsoed to be in AI / Wrappers / JavaOO / src / main / java / com / springrts / ai / oo
by Bla
17 Dec 2013, 05:52
Forum: AI
Topic: Building AIs
Replies: 4
Views: 1512

Building AIs

I kind of want to compile all the java stuff in the spring/AI folder on my school AP Computer Science computer. I just want to play around with the code. However, when I compile, it always can't find an interface OOAI. Since the last edit made to the repository on github was like 4 years ago, perhap...
by Bla
27 Nov 2013, 06:45
Forum: Game Development
Topic: This might serve as an inspiration to some...
Replies: 14
Views: 4997

Re: This might serve as an inspiration to some...

PepeAmpere wrote:Image

(click for full res image)

NOTA is able to reflect its history in the same way - and you see - we are really stable - like hard rock in the middle of doomsday ocean!
lol at first I thought you were showing off maps...
by Bla
09 May 2013, 06:50
Forum: Kernel Panic
Topic: Chiptune Music
Replies: 42
Views: 29219

Re: Chiptune Music

Is it me or is the music widget broken? It plays 1 song then stops... Was there an update i didn't get or is it just me?

Go to advanced search