Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Announcements and Showcase
Pathfinder with pathnodes

creaturefreak
Registered User
Quote
2023-01-20 04:47:03

Great work Sven!,

Wow impressive!, thank you for the ccb file. I like that it takes objects in the Obstacles folder into consideration and does not keep path nodes there.

I do have one question, is the Waypoint patrol working for the simple AI,? I couldn't get it to work as the AI went straight to the player.

I'm sure its still a work in progress, but looking good.

CF


sven
Registered User
Quote
2023-01-20 07:16:07

Thanks.
Included AI has no waypoint patrol. i forgot to delete these inputs.


Heres AI script with random patrol + waypoint patrol.
https://drive.google.com/file/d/...

There is blue line that represents AI path.
To remove that Line from game just open AI script
at line 274
deletethis line : drawPath(this.c,this.PATH);


creaturefreak
Registered User
Quote
2023-01-20 12:44:08

[quote]sven wrote:
Thanks.
Included AI has no waypoint patrol. i forgot to delete these inputs.


Thanks for the quick reply, will check out the download.

Looking forward to the updates!

CF


creaturefreak
Registered User
Quote
2023-01-20 13:30:40

Thank sven for the quick fix on the Ai.
One more thing I noticed when I recreated the pathnodes with ctrl+1 The textures of the nodes turned into the cc default texture, and not the red color texture you had in the original file, how can I get the nice red texture on all nodes and lines again? because it's hard to see the nodes with that cc default texture.

thanks

CF


sven
Registered User
Quote
2023-01-20 13:42:29

I was thinking of this before that it will make problems..
Red texture is default in my coppercube .. i changed it in coppercube defaults folder.


just_in_case
Moderator
Quote
2023-01-21 07:22:00

This is one of the best extensions of CC 6 so far. It extends the AI to more efficient use in CC. Highly appreciate it


hadoken
Guest
Quote
2023-01-21 16:22:05

@sven,

Many thanks for updating/sharing your impressing work!

Any ideas how to reduce enemy ai pos/rot jitter at calculating/following waypoints?

🔎︎


THX


sven
Registered User
Quote
2023-01-21 16:40:42

For me ai doesnt do like this.. dont know why it does what it does. Will check it later.. try with waypoint patrol - does it do same thing ?

Also download newest ai script and plugin ( its with ai download ) also make sure you dont use my old ai script ( delete old manually before opening project file )

[ai calculates path and follows it- it has no reason to walk to another direction-it doesnt take path while walking ( very weird error there ) ]
if you using my newest AI script then make sure you delete old from project and add new script to AI)


hadoken
Guest
Quote
2023-01-21 18:29:13

@sven, thanks for the support reply.

After closely following the INFO.png instructions, setting up a new empty test project and carefully adding every required component (incl. js export) from scratch, it seems I've managed to run everything smoothly, now. (works even well in CC 6.3-32bit on Linux+Wine).

Appreciate all your projects on itch.io & YouTube very much.
You really do some groundbreaking stuff for CopperCube. THX²


sven
Registered User
Quote
2023-01-22 11:33:25

Updated:

-changed filenames so they dont conflict with my older scripts.
-removed obstacles folder-you can now add childNode to a level and pathnodes under level childnode will be skipped ( wont work if you rotate it but still useful )
-now pathnode instead of appears to a triangle middle point it appears to a in middle of a "quad" makes it a little better.
-AI script some errors removed and added errorcheck + you can enable disable drawPath in AI behavior settings.
-added step by step instructions how to use it.

Download:
https://5v3n.itch.io/coppercube-...

All needed files are included with download and with info how to use and how to "install" them.



You see if you generate pNodes or paths your texture wont be red anymore..
for me i changed my coppercube default texture to be red in coppercube default folder.
I dont want to add set texture function to the plugin (it may make it slower) if i have time i will test it and see how much it affects plugin performance and if no serious affect i will add this function to a plugin-but still it will be easier to just change default texture in textures folder than starting to setup your texture in javascript.


creaturefreak
Registered User
Quote
2023-01-22 15:54:23

Hi sven,

I've tested the previous version of your Pathfinding, not the latest but I will. I did find an issue with "behavior_SimpleAItest"

The "attack" animation won't play because of these lines in the code
SetAnimation(this.AI,this.WalkAnim,true);
}else
{SetAnimation(this.AI,this.IdleAnim,true);
}
}


Once I blocked/removed:
else
{SetAnimation(this.AI,this.IdleAnim,true);
}
The attack animation played and not the idle animation

I hope that helps. I know your also still working on improving the PATHFINDING action, and working on a better AI with smoother rotation around nodes so it's not so linear and fast.

Again we are greatful for your hard work,

best CF


sven
Registered User
Quote
2023-01-22 17:17:59

@ creaturefreak
Thanks for your feedback.. feedback helps me to make it better and develop it faster.
I updated download link for a last version and AI should have animations working now.
But yes this is a fast AI i made for testing..
Complex AI i am working on i will test it carefully before i relase it so i can be sure it works 100%


sven
Registered User
Quote
2023-01-22 17:59:30

I made a version for plugin where it asks what texture to use for pathnodes and connections so it wont set it default_texture.

https://5v3n.itch.io/svcpathfind...

If you didnt ask for it or you think its simpler to set texture in textures folder then you can skip this file-because its same thing but with OpenFileDialog for texture selection.

It asks you to choose only one time.. so if you made mistake then you can press:
[EDIT->Plugins->Reload and verify extensions and plugins]
or just restart Coppercube editor and it asks again.


creaturefreak
Registered User
Quote
2023-01-22 18:20:49

sven wrote:
@ creaturefreak
Thanks for your feedback.. feedback helps me to make it better and develop it faster.


Your very welcome my friend, it's the community that thanks you and others for making CC an excellent tool for game and app development.
=CF


set
Guest
Quote
2023-01-22 18:57:16

free assets https://kag3d.itch.io/ccb-models


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internation?l" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact