Shard 0.4/dev - Page 13

Shard 0.4/dev

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

Moderators: hoijui, Moderators

User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Shard

Post by AF »

Tests showed it did things in BA, although evorts had a lua crash, capitalisation was the culprit, I haven't had a chance to check over for more errors with capitalisation and filenames yet
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Shard

Post by zwzsg »

Shard Ballsey 0.31 was tested against Spring 82.7.1 with Kernel Panic 4.1 and found working.

I am shocked!
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Shard

Post by AF »

hooray ^_^
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Shard

Post by AF »

Minor Update:

Work is going very slowly, I shall have ADSL ~ march 9th maybe afterwards, but until then my progress is crippled by mobile broadband and has been since mid january =(
User avatar
oksnoop2
Posts: 1207
Joined: 29 Aug 2009, 20:12

Re: Shard

Post by oksnoop2 »

Glad to hear the project is not dead.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Shard

Post by AF »

oksnoop2 wrote:Glad to hear the project is not dead.
Image
McLoud
Posts: 36
Joined: 03 Sep 2006, 22:31

Re: Shard

Post by McLoud »

Can I get a linux 64 build? or source to build one?
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Shard

Post by hoijui »

there is no independent build file for Shard on linux, so you have to compile it through/with spring.

for the current release version of spring:
get the spring sources, unpack them, then:

Code: Select all

wget http://sourceforge.net/projects/springrts/files/springrts/spring-0.82.7.1/spring_0.82.7.1_src.tar.gz/download
tar xfvz spring_0.82.7.1_src.tar.gz
cd spring_0.82.7.1
cd AI/Skirmish
git clone git://github.com/Tarendai/Shard.git
cd ../..
cmake .
for the last part onwards (cmake .), see:
http://springrts.com/wiki/Building_Spring_on_Linux
McLoud
Posts: 36
Joined: 03 Sep 2006, 22:31

Re: Shard

Post by McLoud »

Thanks, got it working. Used the BA script with TA and worked. Just need to remind myself of never again test a new AI with 5k unit cap :shock:
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Shard

Post by AF »

heh did the AI fill the cap and slow the sim down? I had stages with NTai where it would fill up brazillian battlefields till there were traffic jams of con units searching for places to build.

Currently I haven't focused on BA much, so the support is incomplete, but could be improved dramatically, very easily/quickly. If you do anything to taskqueues.lua please let me know, and if you have any suggestions, feel free =)
McLoud
Posts: 36
Joined: 03 Sep 2006, 22:31

Re: Shard

Post by McLoud »

Yup, 2 AIs filled everything, but the BA script is only buildinng LLT, pewees, solar and mexes. Build a single strong mech and watch the world fall. But couldnt manage to play much, it got too slow. I'm still learning LUA itself and geting a hold of the general structure, the first think I want to ask, is there a way to know which units an certain unit can build? I think it follows somewhat the same C/Java API, right? Is there any editor with code complete for LUA?

Edit: what I'm trying to do is this:

Code: Select all

build (Unit unit)
    foreach Unit childUnit: unit.unitsItCanBuild
      if !childUnit.unitsItCanBuild then
        queueBuild(unit, childUnit)
    end;
    foreach Unit childUnit: unit.unitsItCanBuild
      if childUnit.unitsItCanBuild then
        build(childUnit)
    end 
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Shard

Post by AF »

At the moment no, in the next version yes, or via gadget communication, yes
SpikedHelmet
MC: Legacy & Spring 1944 Developer
Posts: 1948
Joined: 21 Sep 2004, 08:25

Re: Shard

Post by SpikedHelmet »

Hey AF, I started using Shard because it seems cool. Got it basically functioning as much as building units and attacking me, but i'm not very capable of making it do much more than this. main goal is to have the ai detect various lus locals and change behaviour accordingly (for instance, withdrawing a unit when it becomes overheated, re-attacking when its cooled down, using jump jets, returning to base to repair, and capturing flags)

just wondering if you'd like to help me out :>
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Shard

Post by AF »

Sure, though I don't know how much time I have for a lengthy sit down, and I have to tweak one or two things anyway regarding construction placement.

I assume you'll need to start on gadget<->Shard Comms? Do you have any objections to whatever arises being used as an example/tutorial?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Shard

Post by AF »

New additions in next release:
  • Greater clarification of which unit objects are shard unit logic objects, and which are engine API objects
  • Support for the Spring Gadget API in Shard
  • Better memory management on unit deaths
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Shard

Post by AF »

http://darkstars.co.uk/2011/shard-attacks/

A discussion explaining how Shards attacking works. How it figures out which units to attack with, when to attack, and where to attack
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Shard

Post by knorke »

tl;dr
if you want to document shard so others can actually use it, don't do it with chatlogs.

This is a documention:
http://love2d.org/wiki/love

This is useless:
[20:29:26] note
[20:29:31] that the entire attacking system can be either
[20:29:33] sidestepped
[20:29:35] or replaced
[20:29:53] all it would take is either your own behaviours, thats then assigned to attacker units
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Shard

Post by AF »

Chat log is better than nothing

Chat log in blogpost is better than chat log sitting on a hard drive is better than nothing

While documentation isn't ready, this is the next best thing until I finish plugging that gap
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Shard

Post by AF »

Momentary hiccup, my main machine has died, new one arrives thursday. No data has been lost. I still have my macbook so I am still contactable ( and still have developer tools ). Ill have my new machine setup Friday/Thursday evening, followed by a 5 day weekend ;D
AskQuestionsLater
Posts: 3
Joined: 28 Feb 2011, 02:44

Re: Shard

Post by AskQuestionsLater »

hoijui wrote:there is no independent build file for Shard on linux, so you have to compile it through/with spring.
I see that the Shard github project is now hooked into the main Spring github tree.

https://github.com/spring/spring/commit ... 351f948fae

I'm assuming this means that more people can now look forward to being pwn3d by Shard in future Spring releases on all platforms?
Post Reply

Return to “AI”