BSWAL

3 views
Skip to first unread message

Panagiotis Peikidis

unread,
May 4, 2010, 4:21:24 PM5/4/10
to BWAPI JBridge
I've been busting my head to find out how to use BWSAL with JBridge...
I just can't figure it out.. I'm not that good in C++.. The best I
could do is compile the latest JBridge from the repo... But I can't
seem to get BSWAL working...

What do I need?

Compiling JBrigde doesn't seem to have BWSAL in.. I found the
directory that BWSAL exists but there is no solution file to build.. I
downloaded the latest BWSAL, found the solution file, but have no idea
what to do... Compiling with create an AIModule.dll but if I use this,
the JBridge won't work...

What I'm trying to do is to simply use
BuildingPlacer.getBuildLocationNear... Whenever I call this method a
NullPointerException is thrown:

java.lang.NullPointerExceptionat
org.bwapi.bridge.model.Game.canBuildHere(Game.java:286)
at
org.bwapi.bridge.sal.BuildingPlacer.canBuildHere(BuildingPlacer.java:
46)
at
org.bwapi.bridge.sal.BuildingPlacer.canBuildHereWithSpace(BuildingPlacer.java:
60)
at
org.bwapi.bridge.sal.BuildingPlacer.getBuildLocationNear(BuildingPlacer.java:
121)
at
com.pekalicious.starplanner.ResourceManager.isInitialReady(ResourceManager.java:
87)
at
com.pekalicious.starplanner.ResourceManager.update(ResourceManager.java:
37)
at
com.pekalicious.starplanner.StrategicManager.update(StrategicManager.java:
51)
at
com.pekalicious.starplanner.StarPlannerBridgeBot.onFrame(StarPlannerBridgeBot.java:
36)

How do I make this work?

I really need this.. Please.

Thank you.

Regards,
pek

Chad Retz

unread,
May 4, 2010, 6:09:41 PM5/4/10
to bwapi-...@googlegroups.com
There are many issues w/ BWSAL translation (it's a little old). I apologize, but my job has really been pushing me so I can't update like I want to. Once I make the next update, I will be looking for others to assist with this project or take over as lead.

Panagiotis Peikidis

unread,
May 5, 2010, 3:24:38 AM5/5/10
to BWAPI JBridge
I only want BuildingPlacer to work... Nothing else... Is it possible?

On May 5, 1:09 am, Chad Retz <chad.r...@gmail.com> wrote:
> There are many issues w/ BWSAL translation (it's a little old). I apologize,
> but my job has really been pushing me so I can't update like I want to. Once
> I make the next update, I will be looking for others to assist with this
> project or take over as lead.
>
> On Tue, May 4, 2010 at 3:21 PM, Panagiotis Peikidis
> <pekalici...@gmail.com>wrote:

David Hall

unread,
May 8, 2010, 10:53:37 PM5/8/10
to bwapi-...@googlegroups.com
On Tue, May 4, 2010 at 3:09 PM, Chad Retz <chad...@gmail.com> wrote:
> There are many issues w/ BWSAL translation (it's a little old). I apologize,
> but my job has really been pushing me so I can't update like I want to. Once
> I make the next update, I will be looking for others to assist with this
> project or take over as lead.

I'm game to pitch in, probably not as lead, but I'd like to contribute
bug fixes and keep things tracking the C++ API.

-- David

cretz

unread,
May 10, 2010, 3:55:17 PM5/10/10
to BWAPI JBridge
I have added you as a committer. I welcome the assistance.
Unfortunately, I wasn't even able to get this to where I wanted it
with test cases and what not. I am more than happy to help with
anything confusing, but I may not get much time on the code. If you
don't mind, use the checkstyle plugin in Eclipse. When enabling it for
the project, just use the /lib/.checkstyleSettings as the checkstyle
config file. If you don't have enough permissions on this project for
anything, let me know and I'll add you as a co-owner

Thanks again...

On May 8, 9:53 pm, David Hall <d...@cs.berkeley.edu> wrote:
> On Tue, May 4, 2010 at 3:09 PM, Chad Retz <chad.r...@gmail.com> wrote:
> > There are many issues w/ BWSAL translation (it's a little old). I apologize,
> > but my job has really been pushing me so I can't update like I want to. Once
> > I make the next update, I will be looking for others to assist with this
> > project or take over as lead.
>
> I'm game to pitch in, probably not as lead, but I'd like to contribute
> bug fixes and keep things tracking the C++ API.
>
> -- David
>
>
>
> > On Tue, May 4, 2010 at 3:21 PM, Panagiotis Peikidis <pekalici...@gmail.com>

David Hall

unread,
May 10, 2010, 4:41:33 PM5/10/10
to bwapi-...@googlegroups.com
Thanks! I'm swamped for another couple of weeks myself, but then I
should be around more.

-- David
Reply all
Reply to author
Forward
0 new messages