Jump to content

Untested Diagonal Movement


Shenmue

Recommended Posts

  On 4/6/2020 at 8:10 PM, BrunoWrier said:

a3285b496212ef99760259cf02e865da.jpg

dont work

Expand  

If you have those errors it is because you are not in the latest version of intersect engine source code.

Be sure to have fetched the origine (go to github desktop for that) after the pull request.

30e52f2ac3c772ca5894ddd1fba9ef49.png

 

Apply the patch on a development branch without modifications to be sure there is no more errors.

 

Edited by Shenmue
Link to comment
Share on other sites

 

  On 4/6/2020 at 9:55 PM, BrunoWrier said:

I fixed it, but now I can't attack diagonally, I can only attack diagonally if I click the 2 buttons to go diagonally while holding to attack

Expand  

Yes Indeed it's how it works. Your last movement direction must be in diagonal if you want to hit in diagonal.

If you want a more easier way to attack, then use the auto attack hit feature. It works only with a target on focus.

 

  On 4/6/2020 at 10:01 PM, BrunoWrier said:

walking in diagonal is more fast

Expand  

Well can you send a gif about that? 

 

  On 4/6/2020 at 10:04 PM, BrunoWrier said:

I don't know if this bug is from the jc or the mod, but the entities are strange when they are going to dodge things to escape, and I noticed that an entity just stopped being aggressive

Expand  

Entities can stop to be agressive if you are too far from them. Edit: it depends of the value you put on the editor.

What do you mean by "are strange"?

 

Can you send gif for each bug report? It's hard to figure out what cause a bug.

Edited by Shenmue
Link to comment
Share on other sites

  On 4/6/2020 at 10:10 PM, Shenmue said:

 

Yes Indeed it's how it works. Your last movement direction must be in diagonal if you want to hit in diagonal.

If you want a more easier way to attack, then use the auto attack hit feature. It works only with a target on focus.

 

Well can you send a gif about that? 

 

Entities can stop to be agressive if you are too far from them.

What do you mean by "are strange"?

 

Can you send gif for each bug report? It's hard to figure out what cause a bug.

Expand  

I mean, the entity was aggressive but it just stood still. Strange is because the cow was in the middle of some rocks and trees, and she was low on life, so she tried to escape, but she just kept walking around in totally buggy circles. sorry, i cant send gifs at moment

Link to comment
Share on other sites

  On 4/6/2020 at 10:13 PM, BrunoWrier said:

I mean, the entity was aggressive but it just stood still. Strange is because the cow was in the middle of some rocks and trees, and she was low on life, so she tried to escape, but she just kept walking around in totally buggy circles. sorry, i cant send gifs at moment

Expand  

PM me when you will have the gif and I will figure out what I can do. You can use ScreenToGif.

Link to comment
Share on other sites

  On 4/10/2020 at 4:39 PM, Ainz Ooal Gown said:

Great mods mate! Proper chuffed. I have applied all your patches in order (from zip file) but auto attack doesnt seem to be working for me. Everything else works great though.

Expand  

Thanks,

Actually auto attack uses hitbox, and when the enemy is not in the hitbox range, it doesn't deal damages. The player still need to be somehow close to hit the target. The hitbox has 5 different values for each direction.

5217a1902adcdfa87b19602540a37d16.pngHitbox values if the player is facing right.

 

Link to comment
Share on other sites

  On 4/10/2020 at 6:40 PM, Shenmue said:

Thanks,

Actually auto attack uses hitbox, and when the enemy is not in the hitbox range, it doesn't deal damages. The player still need to be somehow close to hit the target. The hitbox has 5 different values for each direction.

5217a1902adcdfa87b19602540a37d16.pngHitbox values if the player is facing right.

 

Expand  

 

Thanks for the reply. Yeah I understood that from reading your post. NPC was within range and was facing the NPC, and targeted, but nothing happens. I checked code and all seems correct with the patch being applied and changes made.

 

I will do a GIF for you.

Link to comment
Share on other sites

  On 4/10/2020 at 6:55 PM, Shenmue said:

Oh yeah, maybe auto hit is not the right term.

Actually, you have to attack in order to hit. I think I will change the name of the patch, it is confusing.

Expand  

 

So it doesnt automatically attack NPC when ur within distance? You have to still attack with pressing and holding down attack "Key"?

Link to comment
Share on other sites

  On 4/10/2020 at 6:59 PM, Ainz Ooal Gown said:

 

Ah right I get you now haha thanks, auto attack is summit ive wanted for a while so ill look into it.

 

Another quick question. Can frames be easily added for diagnal movement?

Expand  

I think so, you have to check out the Draw() method in Intersect.Client.Entities.Entity and depending of your spritesheet changing the value assigned to srcRectangle and destRectangle. You will also have to add value to the "d" variable (d represents sprite direction) for the diagonale frames and do the equivalent in the server side and I think it should be fine.

Link to comment
Share on other sites

  On 4/10/2020 at 7:04 PM, Shenmue said:

I think so, you have to check out the Draw() method in Intersect.Client.Entities.Entity and depending of your spritesheet changing the value assigned to srcRectangle and destRectangle. You will also have to add value to the "d" variable (d represents sprite direction) for the diagonale frames and do the equivalent in the server side and I think it should be fine.

Expand  

 

Thanks for info buddy, dont know much but I will have a look into that so thanks for pointing me in right direction (no pun intended :P)

Link to comment
Share on other sites

  On 4/11/2020 at 1:36 AM, wishy said:

Found a little issue, when npc's have a route with face down/face up etc...

pi3R6Sw.png

 

they start moving instead of facing that way.

Expand  

Issue solved.

Download fix patch

 

  On 4/3/2020 at 11:57 AM, Kibbelz said:

If you will go down that route adding diagonal movement to events would be a good shout.

Expand  

Diagonal move routes feature added :)

Link to comment
Share on other sites

  On 4/11/2020 at 6:11 PM, Shenmue said:

Issue solved.

Download fix patch

 

Diagonal move routes feature added :)

Expand  

 

Just tried to apply patch on got this which not seen before:

 

E:\Ainz Ooal Gown\Documents\Git Repo\Intersect-Engine>git am --signoff < 45ea9844b7f6130f7f695ab52bfa808e.patch
fatal: previous rebase directory .git/rebase-apply still exists but mbox given.

 

any ideas?

Link to comment
Share on other sites

  On 4/11/2020 at 8:09 PM, Ainz Ooal Gown said:

 

Just tried to apply patch on got this which not seen before:

 

E:\Ainz Ooal Gown\Documents\Git Repo\Intersect-Engine>git am --signoff < 45ea9844b7f6130f7f695ab52bfa808e.patch
fatal: previous rebase directory .git/rebase-apply still exists but mbox given.

 

any ideas?

Expand  

I think it's because there is a rebase operation.

Try git rebase --abort or git am --abort

More information here

Link to comment
Share on other sites

  Reveal hidden contents

 

I get this conflict when attempting to add this to a fully updated vanilla source.

Link to comment
Share on other sites

  • panda locked this topic
Guest
This topic is now closed to further replies.
Γ—
Γ—
  • Create New...