Jump to content

Capturable Animals


 Share

Recommended Posts

1 hour ago, wowgetoffyourcellphone said:

I didn't mean that the code should be hacky. I meant that something doesn't have to be feature complete in one patch. It can be broken down into usable chunks. For instance, making captured horses commandable is useful on it's own. Making them garrisonable can be another patch.

I understand that you did not mean that code should hacky, my choice of words was off, sorry about that. I meant that if something is expandable, the dev's usually want that done as well ;) (D1960)

  • Thanks 1
Link to comment
Share on other sites

  • 4 weeks later...
On 5/12/2019 at 8:00 AM, wowgetoffyourcellphone said:

I have 1 curious bug. When the horse wanders it walks at a normal pace (the animation seems to play at the prescribed speed in the variant file). But when I, the player, tasks the horse the actor plays the walk animation at a higher speed (the entity's walkspeed does not change in either case).

 

On 5/12/2019 at 2:49 PM, Angen said:

Thank you for report. Possible problem has been identified :)

 

On 5/16/2019 at 2:09 AM, Stan` said:

Yeah it should be fixed when @wraitii commits his patches :)

 

 

  • Like 1
Link to comment
Share on other sites

Hi @wowgetoffyourcellphone

Please see https://code.wildfiregames.com/rP22197#inline-3121

That is cause animal walks differently. I am not sure with which patch is @wraitii going to fix it but he will eventually :) 

Anyway I think it would need to be edited animation speed in actors after that change.

Edited by Angen
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

On 5/12/2019 at 7:13 AM, Freagarach said:

True. I just tested it and it ensures that every animal under my control can be given orders. Thus addressing your question, I guess. Have you tried it yourself yet?

  Hide contents

In the UnitAI.js

  • Lines 195, 267, 295, 321 : remove "this.IsAnimal() && !this.IsDomestic() || "
  • Remove lines 246 to 252

I hope this is clear and works for you!

After the latest svn changes to UnitAI and reapplying your suggested changes, it no longer works. No player controlled animals can move, not even domestic. Can you advise? :) 

 

Link to comment
Share on other sites

10 hours ago, wowgetoffyourcellphone said:

After the latest svn changes to UnitAI and reapplying your suggested changes, it no longer works. No player controlled animals can move, not even domestic. Can you advise? :)

Strange, I cannot reproduce that. Did you rebuild?

Spoiler

The lines are now:

- Lines 191, 258, 282, 307 : remove "this.IsAnimal() && !this.IsDomestic() || " .

- Remove lines 237 to 243 and 450 to 455.

But I guess yours may be different.

Is the updated "UnitAI.js" on your DE-git? Because I see in that file that `!this.IsDomestic()` is removed but the `this.IsAnimal` is still there?

 

Edit: You can see in D1960 how the code should look like.

Edited by Freagarach
Link.
  • Thanks 1
Link to comment
Share on other sites

9 hours ago, Freagarach said:

Strange, I cannot reproduce that. Did you rebuild?

  Reveal hidden contents

The lines are now:

- Lines 191, 258, 282, 307 : remove "this.IsAnimal() && !this.IsDomestic() || " .

- Remove lines 237 to 243 and 450 to 455.

But I guess yours may be different.

Is the updated "UnitAI.js" on your DE-git? Because I see in that file that `!this.IsDomestic()` is removed but the `this.IsAnimal` is still there?

 

Edit: You can see in D1960 how the code should look like.

Thanks. Worked. :) 

  • Like 2
Link to comment
Share on other sites

  • 3 weeks later...
12 hours ago, wowgetoffyourcellphone said:

Looks like it needs rebased. 

Propably, but there is no point when a review is not close yet.

16 hours ago, Angen said:

@wowgetoffyourcellphone https://code.wildfiregames.com/D1961

@Freagarach

has some problems with laptop charging currently

Thanks for the pointing! I should be back on track after the weekend.

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...