Can somebody guide me to the AI coding for alleg?

A place to post suggestions for new features, new bugs, and comments about the existing code.
Post Reply
zero44
Posts: 25
Joined: Wed Aug 12, 2009 6:28 pm

Post by zero44 »

I want to look at some of the algorithms used in the Ai more miners n cons, also I wanted to check wheter the auto pilot uses critical path anlaysis to plot the journey..
TurkeyXIII
Posts: 1460
Joined: Thu Dec 06, 2007 3:18 am
Location: Melbourne, Aus

Post by TurkeyXIII »

It's in the ship IGCs somewhere, mixed in with everything else ship-related.
QUOTE (Randall Munroe)14.2: Turkey consumption rate of the average American in milligrams per minute[/quote]
Image
zero44
Posts: 25
Joined: Wed Aug 12, 2009 6:28 pm

Post by zero44 »

In the source code?...
Nvm i found the R5 version skimming through now..
Last edited by zero44 on Mon Feb 14, 2011 12:00 am, edited 1 time in total.
TheRock
Posts: 966
Joined: Sat Nov 12, 2005 8:00 am
Location: Delft, Netherlands

Post by TheRock »

Yes, check shipIGC.cpp.
Image Image Image
zero44
Posts: 25
Joined: Wed Aug 12, 2009 6:28 pm

Post by zero44 »

Going through it i just noticed the ship to base collision case and docking in some station is a real annoyance so maybe the elasticity could be reduced?

starts from line 707 in ship igc, or just add a multiplier to the new velocity for the base collision case becuase it much simpler..

~935 Vector newVelocity1 = vElastic1 * cElasticity * 0.05; something like that ... but im really not so good at coding and this will probably cause a bug somewhere else..



P.S love the "c_impactJiggleCoefficient" looool
Last edited by zero44 on Mon Feb 14, 2011 5:50 pm, edited 1 time in total.
TheRock
Posts: 966
Joined: Sat Nov 12, 2005 8:00 am
Location: Delft, Netherlands

Post by TheRock »

Elasticity has nothing to do with the autopilot to docking in a base. It is only used when there is an actual collision, which I don't think is a frequent occurrence.

Also: //no smoking allowed
Image Image Image
Post Reply