|
Post by F1Andre on Mar 5, 2015 12:53:18 GMT
Hi, does anybody have a clue on how to make a AI car without using any 3DRAD objects(premade). In other words, how can I program my own AI. This is just out of curiosity cause I think a game would run alot smoother and faster if the AI was scripted.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Mar 5, 2015 14:10:00 GMT
i have never tried something like that but i think that will be to attach a script to the car and make it follow a path, i really don't know how you can make it anglescript because 3d rad uses angle script....i think it can be done but i don't know much about it.. second,I don't think that it will affect the game much because the 3d rad car ai is very well scripted and is tested a lot too and it is also a much faster way if you are making a racing game...
|
|
|
Post by F1Andre on Mar 5, 2015 20:00:53 GMT
I'm only asking because it is a question that has bothered me for weeks now. It would be kinda awesome if someone achieves this via script. But on the other hand as you said, the ai is already developed to such extent that programming your own ai will be pointless in baa reasonably big way.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Mar 6, 2015 4:10:26 GMT
that was certainly a good question because in many other game engines you have to make the AI yourself.
|
|
|
Post by F1Andre on Mar 6, 2015 14:52:54 GMT
That's true. I really have respect for the guys who have to design and program a AI from the ground up. I will try and make a AI with minimal usage of the AI object itself or no AI object at all. I am starting on the AI this weekend and I'll let you guys no. I will post the code for some educational purposes(lol )
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Mar 6, 2015 15:15:43 GMT
cool!
|
|
|
Post by NicusorN5 on Mar 16, 2015 20:48:44 GMT
I think an AI from scratch it's a big/complex script (That's my opinion).
|
|
|
Post by F1Andre on Mar 17, 2015 14:44:52 GMT
I have done some of the AI car but I still need to add scanners(via script) to detect obstacles but for now it follows a path with a all the nodes, wich means you don't need to use the path object. And when the car go's of course like for 20 metres at a 45 degrees. It will go to the nearest node and not the last one. Unlike the path object that needs to go thru every node. This makes it more perfect on racing games if the AI got bumped far of course and will act more like real person to get on the track the quickest way possible. I guess you can add a normal AI object and just use the script to replace the path object. ps: I'm on phone so I will upload code some time later, still have to learn for maths...lol
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Mar 17, 2015 15:46:55 GMT
you are getting very well with ai in 3d rad
|
|
|
Post by F1Andre on Mar 17, 2015 16:36:53 GMT
Thanx, I know my stuff when it comes to writing algorithms and programming. I just got to get use to with 3d rad's scripting objects and functions. I don't know what they all do and there is next none documentation on it. The script for the above mentioned AI path is still a little buggy. I have pushed it aside till it's complete. Still busy working on the performance and handeling of the F1 Car.
|
|
|
Post by F1Andre on Mar 17, 2015 17:15:53 GMT
Thanx, I know my stuff when it comes to writing algorithms and programming. I just got to get use to with 3d rad's scripting objects and functions. I don't know what they all do and there is next none documentation on it. The script for the above mentioned AI path is still a little buggy. I have pushed it aside till it's complete. Still busy working on the performance and handeling of the F1 Car. Sorry, this sounds a bit like I'm saying I'm a expert, I'm entry level of what said on the above. Yet again sorry.(only had a about 1 and half year of java java programming, I mostly wrote algorithms for mathematical equations and advanced calculators)
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Mar 18, 2015 7:35:50 GMT
your java experience is really advance for me.
|
|