Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
1 registered members (AndrewAMD), 599 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 4 of 4 1 2 3 4
Re: Destroy a block-model && Cam rotation around a fix point [Re: Espér] #237277
11/19/08 12:05
11/19/08 12:05
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
I would code that 'basically' like so.

When entering the dungeon a creature (not imp) is
max-tired, max-health, max-happy(?), max-paid

Then in his action function have the following code.

Code:
while(1)
{
   if[(enemy-nearby)and(health>20%)]---go_and_fight
   else if[(Tired>50%)or(Health<80%)]
           if(Has_Bed)--Go_And_Sleep
           else---------Go_to_nearest_empty_bedroom_and_build_bed
        else if(Hungry>50%)
                if(Chicken_Room_Exists---Go_And_Eat
                else---------------------Eat_Nearest_Imp
             else if(Training_Room_Exists)---Go_And_Train
                  else-----------------------Beat_Up_Nearest_Imp
}
Im sure you get what I mean.
Filling this in with real code will be the really tricky part.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Destroy a block-model && Cam rotation around a fix point [Re: EvilSOB] #237399
11/20/08 01:18
11/20/08 01:18
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline
User
Carlos3DGS  Offline
User

Joined: Oct 2008
Posts: 513
I am also having problems with the pathfinding...


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: Destroy a block-model && Cam rotation around a fix point [Re: Carlos3DGS] #237515
11/20/08 13:25
11/20/08 13:25
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline OP
Expert
Espér  Offline OP
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Hmm..
My first idea was the "Intense Pathfinding"...
But i don´t know if it´s working, if i create the waypoint entities during gameplay...


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Destroy a block-model && Cam rotation around a fix point [Re: Espér] #237638
11/21/08 06:12
11/21/08 06:12
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline
User
Carlos3DGS  Offline
User

Joined: Oct 2008
Posts: 513
For pathfinding I have been looking and trying to understand this:
http://www.coniserver.net/coni_users/web_users/pirvu/au/tutorials/zipped/astar_en.zip

But im stuck with the heapsort... I understand the concept of changing the order, but dont get how it would work when they use only two "child nodes" for each parent node (because in the concept they are using for pathfinding each parent node has 8 child nodes?).

I have also been looking at the guides for "perfect AI" in aums 27-31, those are better explained and easier to understand, but it is non dynamic pathfinding.


Does anyone have any other guide to A-star?
Or could someone explain the "heapsort" chapter in that guide to me in a different way?
Or mabe even a completely different sugestion for my pathfinding?
(A different guide, an example, some other work to base mine off of, etc...)
Help!


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: Destroy a block-model && Cam rotation around a fix point [Re: Espér] #237639
11/21/08 06:15
11/21/08 06:15
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline
User
Carlos3DGS  Offline
User

Joined: Oct 2008
Posts: 513
Originally Posted By: xXReapeRXx
"Intense Pathfinding"

That looks good, it could be a solution.
I will take a look at it


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: Destroy a block-model && Cam rotation around a fix point [Re: Carlos3DGS] #245532
01/10/09 15:20
01/10/09 15:20
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline OP
Expert
Espér  Offline OP
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
hey.. got the level loading time, for a 150x150 Map under 20 Seconds.. excellent...

Now i´ve a new question.. but can´t edit the startpost..

Here i go:

How to let an entity ask for the entity up/down/left/right to him...
Need this to know to let rock-blocks form therselves with waving top.

Any idea how Bullfrog has made that in Dungeon Keeper 2???




Second question is about dynamic light..
Any idea how to fix this Porblem:

I mean those bad edges on the blocks..
Lighting should be more like torch-lighting... not like field by field ^^

Last edited by Espér; 01/10/09 15:29.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Page 4 of 4 1 2 3 4

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1