View topic - Shard 0.35RC2 & 0.31.1 Not So Ballsey



All times are UTC + 1 hour


Post new topic Reply to topic  [ 563 posts ]  Go to page Previous  1 ... 16, 17, 18, 19, 20, 21, 22 ... 29  Next
Author Message
PostPosted: 30 Oct 2011, 18:41 
AI Coder
User avatar

Joined: 14 Sep 2004, 10:32
Location: Cookieland
But why?! Can you test with the reclaim behaviour I bundled? That should act as a reliable test case of wether reclaiming works or not


Top
 Offline Profile  
 
PostPosted: 30 Oct 2011, 19:39 
User avatar

Joined: 20 Aug 2009, 19:49
Default one has a bug that goes away by replacing:
Quote:
if unit:Internal():ID() == self.unit:Internal():ID() then
with:
if unit.engineID == self.unit.engineID then


but even after that it does nothing but Echo that its updating(which i put there to see if the script is called at all).


Top
 Offline Profile  
 
PostPosted: 31 Oct 2011, 00:37 
AI Coder
User avatar

Joined: 14 Sep 2004, 10:32
Location: Cookieland
To test it I do this:

Code:
/cheat
/team 1
select AI commander
hold shift


In ym last tests when I released RC2, reclaim orders were given, but they had an area command at the correct location of size zero.


Top
 Offline Profile  
 
PostPosted: 31 Oct 2011, 10:20 
User avatar

Joined: 20 Aug 2009, 19:49
Well even if i make it a small area command around the target feature i can see the correct order when selecting the unit in observer mode, the problem is the unit is just not doing anything.


Top
 Offline Profile  
 
PostPosted: 31 Oct 2011, 15:07 
AI Coder
User avatar

Joined: 14 Sep 2004, 10:32
Location: Cookieland
Does it have a radius? If so, this is most troubling, it may be in the C++ API, or I may not be using the API correctly hmmm I'm not sure


Top
 Offline Profile  
 
PostPosted: 31 Oct 2011, 15:26 
User avatar

Joined: 20 Aug 2009, 19:49
It has a dotted line connecting it, a radius but does not move at all (in some rare cases a nonsensical movement towards the spot it was built and back and then stops).


Notsoballsey does work just fine tough.


Top
 Offline Profile  
 
PostPosted: 31 Oct 2011, 17:34 
AI Coder
User avatar

Joined: 14 Sep 2004, 10:32
Location: Cookieland
NotSoBallsey issues reclaim commands? Or do you mean you don't get your cryptic error regarding Internal() ?


Top
 Offline Profile  
 
PostPosted: 31 Oct 2011, 18:21 
User avatar

Joined: 20 Aug 2009, 19:49
Notsoballsey reclaims as intended, the new version broke it somehow.


Top
 Offline Profile  
 
PostPosted: 07 Nov 2011, 23:17 
AI Coder
User avatar

Joined: 14 Sep 2004, 10:32
Location: Cookieland
I'm in the process of rebuilding Shard for 0.83, Abma and Hoijui have helped me fix some issues I had, now I just need VS10 builds of certain libraries e.g. Boost


Top
 Offline Profile  
 
PostPosted: 08 Nov 2011, 08:41 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
it is 83.0, not 0.83 ;-)


Top
 Offline Profile  
 
PostPosted: 08 Nov 2011, 11:50 
AI Coder
User avatar

Joined: 14 Sep 2004, 10:32
Location: Cookieland
One moment while I grieve for Mr. 0's demotion from major to minor magnitude


Top
 Offline Profile  
 
PostPosted: 08 Nov 2011, 22:54 
AI Coder
User avatar

Joined: 14 Sep 2004, 10:32
Location: Cookieland
I'm currently facing rather irksome problems trying to compile Shard under Visual Studio

It seems that when I say #include "lua.h" I now have:

  • The lua.h bundled with spring
  • the lua.h bundled with Shard
  • The lua.h in the C++ Wrappers

Code:
rts\lib\streflop\streflop_cond.h(50): error C2894: templates cannot be declared to have 'C' linkage


Code:
ai\wrappers\cpp\src-generated\combinedcallbackbridge.h(11): fatal error C1083: Cannot open include file: 'stdbool.h': No such file or directory


Top
 Offline Profile  
 
PostPosted: 09 Nov 2011, 10:18 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
i think i fixed the second thing, but i need more context for the first one.
best... give whole log.
there is no lua.h in the C++ wrapper, and i guess youd rather use your own (Shards), and not the engine one. maybe you can do it right, by defining the right include dirs.


Top
 Offline Profile  
 
PostPosted: 09 Nov 2011, 11:24 
AI Coder
User avatar

Joined: 14 Sep 2004, 10:32
Location: Cookieland
No no, the Lua.h in the wrappers isn't the lua.h in the lua VM, it implements the springai::Lua wrapper class I'll check when I'm back home


Top
 Offline Profile  
 
PostPosted: 09 Nov 2011, 14:26 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
ahhh right :/ stupid, stupid windows!
well...
i guess the solution is, to make sure you include the wrappersources with a prefix path, as in, instead of Lua.h, you include Wrapper/Cpp/Lua.h. of course the spring cmake scripts wolld have to generate that prefix path...
will also have to look into this later, when i am back home. hit me if i seem to have forgotten.


Top
 Offline Profile  
 
PostPosted: 20 Nov 2011, 10:40 
User avatar

Joined: 20 Aug 2009, 19:49
Is there a version of shard that works with Engine version 83?


Top
 Offline Profile  
 
PostPosted: 21 Nov 2011, 03:36 
AI Coder
User avatar

Joined: 14 Sep 2004, 10:32
Location: Cookieland
No, if there was I'd have released it.

Currently the AI interface is incompatible with VS2010 and refuses to compile. V84 of spring brings fixes that should fix the majority of the problems, but this does not fix all the issues, and Shard still fails to compile under VS2010.

The last progress I'm aware of was Hoijuis fix for the stdbool.h issue, which exposed a further issue regarding const correctness and undefined values.


Top
 Offline Profile  
 
PostPosted: 22 Nov 2011, 20:23 
User avatar

Joined: 07 Sep 2010, 17:47
Well, there is the version that works for 0.83 for OS X. Of course, who knows what version it is. All the AIInfo calls it is "dev".


Top
 Offline Profile  
 
PostPosted: 22 Nov 2011, 21:39 
AI Coder
User avatar

Joined: 14 Sep 2004, 10:32
Location: Cookieland
That'll be git master, which is included when you try to build Spring from git master. Seems the OS X build bundled shard in too although I don't mind that as I can't build it for OS X myself anyway. Shard should build on OSX and linux. Its Visual Studio 2010 & Windows I'm having trouble with.


Top
 Offline Profile  
 
PostPosted: 26 Nov 2011, 13:55 
Evolution RTS Developer
User avatar

Joined: 17 Nov 2005, 02:43
Location: Raegquitting Spring on 04/24/12
Got a dll courteousness of buildbot and hoijui pointing me to it, but all it does is spam this:
[f=0000000] <SkirmishAI: Shard 3.0-Easy (team 0)>: added UnitHandler module

Enough to the point that in 30 seconds, infolog ended up having 37k + lines.


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 563 posts ]  Go to page Previous  1 ... 16, 17, 18, 19, 20, 21, 22 ... 29  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.