patchBattle for Wesnoth - Patches: patch #3849, Improved ai behavior when using...

 
 
Show feedback again

patch #3849: Improved ai behavior when using goto_x / goto_x in WML

Submitted by:  Felix Bauer <flixx>
Submitted on:  Sun 14 Apr 2013 02:41:51 PM UTC  
 
Priority: 5 - NormalStatus: Done
Privacy: PublicAssigned to: Felix Bauer <flixx>
Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 07 Jun 2013 07:02:48 PM UTC, comment #3:

Committed here: https://github.com/wesnoth/wesnoth-old/commit/fddc28738be4f0009bd729b6228c7022e66a13b8

Felix Bauer <flixx>
Project MemberIn charge of this item.
Tue 16 Apr 2013 08:06:34 AM UTC, comment #2:

thanks, the patch looks good to me. I'll commit it soon.

Just a small thing: if this is your first patch, please add an entry for yourself in misc.contributors section of data/core/about.cfg

Iurii Chernyi <crab>
Project Member
Sun 14 Apr 2013 03:19:27 PM UTC, comment #1:

The issue was described in http://wiki.wesnoth.org/EasyCoding#Improvements_to_AI:

"Currently, setting goto_x, goto_y makes the unit go to that location in a straight line, even if that leads into a dead end. It would be nice to have this changed so that the unit uses the shortest possible path instead. All the pieces for this are in place, should be pretty easy to do."

I tested the patch under the conditions you see in the image. The goto-goal of the 3 grunts and the mage is the center. The mage will use teleportation.

(file #17747, file #17748)

Felix Bauer <flixx>
Project MemberIn charge of this item.
Sun 14 Apr 2013 02:41:51 PM UTC, original submission:
Felix Bauer <flixx>
Project MemberIn charge of this item.

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #17749:  goto_test.jpg added by flixx (232kB - image/jpeg)
file #17747:  goto_patch.patch added by flixx (2kB - text/x-patch)
file #17748:  goto_test_campain.tar.gz added by flixx (1kB - application/x-gzip)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by crab (Updated the item)
  • -unavailable- added by mordante (Updated the item)
  • -unavailable- added by flixx (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 07 Jun 2013 07:06:15 PM UTCflixxStatusIn Progress=>Done
      Assigned tocrab=>flixx
      Open/ClosedOpen=>Closed
    Tue 16 Apr 2013 08:03:47 AM UTCcrabStatusNone=>In Progress
    Sun 14 Apr 2013 03:27:42 PM UTCmordanteAssigned toNone=>crab
      SummaryImproved goto_x /gotp=>Improved ai behavior when using goto_x / goto_x in WML
    Sun 14 Apr 2013 03:21:16 PM UTCflixxAttached File-=>Added goto_test.jpg, #17749
    Sun 14 Apr 2013 03:19:27 PM UTCflixxAttached File-=>Added goto_patch.patch, #17747
      Attached File-=>Added goto_test_campain.tar.gz, #17748
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup