Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 12th Apr 2008 04:25
Hi, i have a map where i have to have a few npc's running around on a terrain (.dbo format) created in 3DWS.
I want them to be Dark AI controlled but also get the Y position physics with Dark Physics.
Which will result in them being controlled as an ai but still align to the terrain.

I tried doing this but i failed, so can somebody help me to do it (if it is possible?)?
KISTech
16
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 12th Apr 2008 18:19
Run them through your AI routine first to get their new position from that, then run that position through the collision routine to adjust for terrain changes.

Sorry I can't be more specific then that, I'm just heading into some of this code myself. Keep coding, you'll get there.

bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 13th Apr 2008 18:38
Ok, i will expermiment something on that, its sad that there are very few character controller commands.
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 16th Apr 2008 20:29
Hey, i tried it and it didnt work.
I did it like this at end of loop:
phy update
ai update

Then i created a phy and an ai object for each object.
I set the phy obj to position at ai x,z
and then i set the ai to position at phy y

This is kind of confusing because i dont know what to do, and it doenst work
Bad Monkey
17
Years of Service
User Offline
Joined: 1st Jan 2007
Location:
Posted: 19th Apr 2008 21:10
can you post your code? I think i know what you need to do.

Basically it sounds like your lending all control over to the dark ai. Unfortunately, it doesn't control dark physics objects. You will have to program your game to get information from dark ai (about character position), then use the dark physics control set to position the character according to the dark ai information.

I don't have the commands to do that in front of me to tell you exactly how to do that right now.

Buy some new FPSCreator Ready Characters at:
http://www.freewebs.com/fpscharacters/
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 21st Apr 2008 18:56
Ok, i will see if i can post up the program then.
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 21st Apr 2008 21:52
Now i have edited the program to do only the most neccesary code.
The ai objects are BELOW the ground, control with arrowkeys and ctrl, shift.

Here is the link:
http://www.megaupload.com/?d=8R6DE748
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 21st Apr 2008 21:54
Quote: "Basically it sounds like your lending all control over to the dark ai. Unfortunately, it doesn't control dark physics objects. You will have to program your game to get information from dark ai (about character position), then use the dark physics control set to position the character according to the dark ai information"


Sorry for triple post, but i think i know what you mean.
I have been experimenting a little about it but i have still not found out excactly how to do it.
sindore
20
Years of Service
User Offline
Joined: 2nd Jul 2004
Location: Bedfordshire, UK
Posted: 18th May 2008 14:26 Edited at: 18th May 2008 14:27
I have the problem.

her is what I did, its a bit messed up, but have a look at the link blow.
http://forum.thegamecreators.com/?m=forum_view&t=129377&b=30

get rid of the character controls and use a riged body instead

and change this,


to this.


and it should work.

soul sucking devils, twisted body of the damed, slivering slim drips from ever poor, sin licking at your ears, and the smell stinging your eyes, and if you don't like it, get out of my kitchen!....
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 19th May 2008 10:38
Thanks man, i will try to do that


Dont delete my sig mods, it is 600X120...
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 19th May 2008 10:45
Ok, it did actually work, but some of the boxes wont go to the ground and those who work will sometimes jump up into the air.
But else than that it did work




Dont delete my sig mods, it is 600X120...
sindore
20
Years of Service
User Offline
Joined: 2nd Jul 2004
Location: Bedfordshire, UK
Posted: 23rd May 2008 01:40 Edited at: 23rd May 2008 03:20
ok I`v had a go at it again, and this is what I`v come up with.



they don`t pile up like last time quite as much, but not how I would like them to work in my game, but I need sleep now cos I`v bin working on this of 4 hours, and it 1/2 one in the morning, hope this helps bergice.

if any one else can sort this out, or just give us a hint or two it would be most appreciated.

bergice how did you take the pic of my program?
if its from a program, could you add a link or a download?

soul sucking devils, twisted body of the damed, slivering slim drips from ever poor, sin licking at your ears, and the smell stinging your eyes, and if you don't like it, get out of my kitchen!....
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 23rd May 2008 12:08
Wow, you are really helpful!

Hope you do this a little bit for yourself too

I will try that code, thanks

Quote: "bergice how did you take the pic of my program?
if its from a program, could you add a link or a download?"


I dont really understand.
That was your program, so i bet you have it already, right?

But if you mean the image: "Print Screen -- SysRq" >> Image Program > CTRL+V >> Save >> Photobucket


Dont delete my sig mods, it is 600X120...
Slash!
sindore
20
Years of Service
User Offline
Joined: 2nd Jul 2004
Location: Bedfordshire, UK
Posted: 27th May 2008 00:47
bergice I know its my program, I was talking about taking a pic of my program?
I know what button your talking about,
but how dose it work and where dose it save the file to?

have you done any thing to code I posted?
if so I would love to see what you`v come up with.

and just to say that the scale of the AI objects on my code is quite small, if you decide to change the scale then you have to adjust the proportions of the AI objects step values etc.

good luck with the game, and don`t worry I am doing some of this for myself and my game.

I`m hoping to make the most gory game ever!..
FPS/3rd PS / RTS / RPG.
a bit of a mix of platforms but it all works.

bergice what tip of game are you making?

soul sucking devils, twisted body of the damed, slivering slim drips from ever poor, sin licking at your ears, and the smell stinging your eyes, and if you don't like it, get out of my kitchen!....
Slayer 706
16
Years of Service
User Offline
Joined: 18th May 2008
Location:
Posted: 27th May 2008 06:54
Alt + Print Screen takes a screenshot of the active window and saves it to clipboard. Just paste into mspaint or whatever image editing program you use and save it.
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 27th May 2008 13:32
Right now i am working on my editor called R.ED and a guitar hero fangame.

For the moment i have paused R.ED and i am now only working on the gh fangame.

After those 2 i will probably be ready to start with an RPG, that is why i need those ai entities to have physics.


Dont delete my sig mods, it is 600X120...
Slash!
sindore
20
Years of Service
User Offline
Joined: 2nd Jul 2004
Location: Bedfordshire, UK
Posted: 27th May 2008 15:26
nice one Slayer 706, that was some need to know info.

bergice I`v added your post to my know challenge post.
I hope thats ok, be`cos I wonted to add my code to help anyone else that wonted to know about AI & physic Combined.

soul sucking devils, twisted body of the damed, slivering slim drips from ever poor, sin licking at your ears, and the smell stinging your eyes, and if you don't like it, get out of my kitchen!....
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 27th May 2008 16:56
Yes of course, why not?


Dont delete my sig mods, it is 600X120...
Slash!
revenant chaos
Valued Member
17
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Robbinsdale, MN
Posted: 11th Jun 2008 10:02
Quote: "Alt + Print Screen takes a screenshot of the active window and saves it to clipboard."

There is no need to press alt, just print screen works.

Login to post a reply

Server time is: 2024-11-24 23:49:02
Your offset time is: 2024-11-24 23:49:02