Author Topic: AI improvements and OpenCL implementation  (Read 6735 times)

0 Members and 1 Guest are viewing this topic.

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 210
  • Trying to redeem, but under Tiger Parents
    • Skype
    • Steam
    • Twitter
Re: AI improvements and OpenCL implementation
Here's the ships table that explains high-maneuverability from my mod, Shattered Stars. Fighters and bombers fly at 500 m/s, while capital ships move at 350 m/s, as seen in MetalDestroyer77's FreeSpace 2 SCP videos on Youtube, in addition to its semi-newtonian physics. I did not try to mess around my AI profiles; I merely improve them.
Code: [Select]
$Name: GRF Caranayodhin
$Short name: Kato
$Species: GRW
+Length: 19 m
+Gun Mounts: 6
+Missile Banks: 2 (10, 10)
$POF file: KatoNew.pof
$Detail distance: (0, 800, 1900, 3000)
$Damage Lightning Type: None
$Debris:
+Lightning Arc Percent: 0.0
$Density: 2
$Damp: 1.0
$Rotdamp: 0.30
$Max Velocity: 240.0, 240.0, 480.0
$Rotation time: 2.4, 1.9, 2.4
$Rear Velocity: 480.0
$Forward accel: 1.35
$Forward decel: 0.75
$Slide accel: 1.0
$Slide decel: 1.0
$Glide: YES
+Dynamic Glide Cap: YES
$Use Newtonian Dampening: YES
$Autoaim FOV: 30
+Converging Autoaim
+Minimum Distance: 250.0
$Convergence:
+Automatic
$Warpin Type: Hyperspace
$Warpout Type: Hyperspace
$Expl inner rad: 25.0
$Expl outer rad: 55.0
$Expl damage: 15.0
$Expl blast: 1000.0
$Expl Propagates: NO
$Shockwave Speed: 0.0
$Allowed PBanks: ( "SMC-90 Gadha" "ACW-115 Parashuh" ) ( "SMC-90 Gadha" "ACW-115 Parashuh" "EHW-104 Karavaala" "HW-221 Bhushundi Mk. 7" )
$Allowed Dogfight PBanks: ( "SMC-90 Gadha" "ACW-115 Parashuh" )
$Default PBanks: ( "SMC-90 Gadha" "ACW-115 Parashuh" )
$Allowed SBanks: ( "Astra IX" "Krodha VI" "Chaya" "Nirbhay" "Bhajayati" ) ( "Astra IX" "Krodha VI" "Chaya" "Nirbhay" "Bhajayati" )
$Allowed Dogfight SBanks: ( "Astra IX" "Krodha VI" "Chaya" "Nirbhay" ) ( "Astra IX" "Krodha VI" "Chaya" "Nirbhay" )
$Default SBanks: ( "Astra IX" "Nirbhay" )
$SBank Capacity: ( 20, 20 )
$Shields: 180
$Shield Color: 255 255 75
$Power Output: 2.0
$Max Oclk Speed: 890.0
$Max Weapon Eng: 60.0
$Hitpoints: 700
$Armor Type: Light Armor 100
$Flags: ( "player_ship" "default_player_ship" "fighter" "generate icon" "in tech database" "in tech database multi" )
$AI Class: Captain
$Afterburner: YES
 +Aburn Max Vel: 0.0, 0.0, 1400.0
 +Aburn For accel: 0.7
 +Aburn Fuel: 300.0
 +Aburn Burn Rate: 50.0
 +Aburn Rec Rate: 25.0
$Trails:
+Bitmap: ABtrail
+Width: 1.0
+Alpha: 1.0
+Life: 2
$Countermeasures: 25
$Scan time: 2000
$EngineSnd: 129
$Closeup_pos: 0.0, 0.0, -22
$Closeup_zoom: 0.5
$Ship_icon: none
$Ship_overhead: none
$Score: 8
$Trail:
 +Offset: -6.91 -1.18 -6.73
 +Start Width: 0.1
 +End Width: 0.05
 +Start Alpha: 1.0
 +End Alpha: 0.0
 +Max Life: 2.0
 +Spew Time: 60
 +Bitmap: Contrail01
$Trail:
 +Offset: 6.91 -1.18 -6.73
 +Start Width: 0.1
 +End Width: 0.05
 +Start Alpha: 1.0
 +End Alpha: 0.0
 +Max Life: 2.0
 +Spew Time: 60
 +Bitmap: Contrail01
$Trail:
 +Offset: -5.28 1.53 -6.36
 +Start Width: 0.1
 +End Width: 0.05
 +Start Alpha: 1.0
 +End Alpha: 0.0
 +Max Life: 2.0
 +Spew Time: 60
 +Bitmap: Contrail01
$Trail:
 +Offset: 5.28 1.53 -6.36
 +Start Width: 0.1
 +End Width: 0.05
 +Start Alpha: 1.0
 +End Alpha: 0.0
 +Max Life: 2.0
 +Spew Time: 60
 +Bitmap: Contrail01
$Trail:
 +Offset: 0.0 0.1 -10.5
 +Start Width: 0.3
 +End Width: 0.05
 +Start Alpha: 1.0
 +End Alpha: 0.0
 +Max Life: 2.0
 +Spew Time: 60
 +Bitmap: Contrail01
$Subsystem: communication, 10, 0
$Subsystem: navigation, 10, 0
$Subsystem: weapons, 20, 0
$Subsystem: sensors, 10, 0
$Subsystem: engine01, 15, 0
$Subsystem: engine02, 15, 0


$Name: GRF Jayamalla
$Short name: Phylaki
$Species: GRW
+Length: 17 m
+Gun Mounts: 10
+Missile Banks: 1
$POF file: Phylaki.pof
$Detail distance: ( 0, 800, 1400, 2600 )
$Damage Lightning Type: None
$Debris:
+Lightning Arc Percent: 0.0
$Density: 2
$Damp: 1.0
$Rotdamp: 0.30
$Max Velocity: 0.0, 0.0, 470.0
$Rotation time: 2.5, 2.0, 2.5
$Rear Velocity: 0.0
$Forward accel: 1.1
$Forward decel: 0.5
$Slide accel: 0.5
$Slide decel: 0.5
$Glide: YES
+Dynamic Glide Cap: YES
$Use Newtonian Dampening: YES
$Autoaim FOV: 30
+Converging Autoaim
+Minimum Distance: 250.0
$Convergence:
+Automatic
$Expl inner rad: 25.0
$Expl outer rad: 55.0
$Expl damage: 15.0
$Expl blast: 1000.0
$Expl Propagates: NO
$Shockwave Speed: 0.0
$Allowed PBanks: ( "SMC-90 Gadha" "ACW-115 Parashuh" "HW-221 Bhushundi Mk. 7" )
$Allowed Dogfight PBanks: ( "SMC-90 Gadha" )
$Default PBanks: ( "SMC-90 Gadha" "SMC-90 Gadha" )
$Allowed SBanks: ( "Astra IX" "Krodha VI" "Chaya" "Nirbhay" "Bhajayati" )
$Allowed Dogfight SBanks: ( "Astra IX" "Krodha VI" "Chaya" "Nirbhay" "Bhajayati" )
$Default SBanks: ( "Astra IX" )
$SBank Capacity: ( 100 )
$Shields: 300
$Shield Color: 255 255 75
$Power Output: 3.0
$Max Oclk Speed: 895.0
$Max Weapon Eng: 60.0
$Hitpoints: 800
$Armor Type: Light Armor 100
$Flags: ( "player_ship" "default_player_ship" "fighter" "generate icon" "in tech database" "in tech database multi" )
$AI Class: Captain
$Afterburner: YES
 +Aburn Max Vel: 0.0, 0.0, 1400.0
 +Aburn For accel: 0.7
 +Aburn Fuel: 300.0
 +Aburn Burn Rate: 50.0
 +Aburn Rec Rate: 25.0
$Trails:
+Bitmap: ABtrail
+Width: 1.0
+Alpha: 1.0
+Life: 2
$Countermeasures: 35
$Scan time: 2000
$EngineSnd: 129
$Closeup_pos: 0.0, 0.0, -30
$Closeup_zoom: 0.5
$Ship_icon: none
$Ship_overhead: none
$Score: 10
$Trail:
+Offset: 0.00 -8.40 -7.60
  +Start Width: 0.1
  +End Width: 0.05
  +Start Alpha: 1.0
  +End Alpha: 0.0
  +Max Life: 2.0
  +Spew Time: 60
  +Bitmap: Contrail01
$Trail:
+Offset: 0.00 10.15 -7.90
  +Start Width: 0.1
  +End Width: 0.05
  +Start Alpha: 1.0
  +End Alpha: 0.0
  +Max Life: 2.0
  +Spew Time: 60
  +Bitmap: Contrail01
$Trail:
+Offset: 8.50 3.20 -6.35
  +Start Width: 0.1
  +End Width: 0.05
  +Start Alpha: 1.0
  +End Alpha: 0.0
  +Max Life: 2.0
  +Spew Time: 60
  +Bitmap: Contrail01
$Trail:
+Offset: -8.50 3.20 -6.35
  +Start Width: 0.1
  +End Width: 0.05
  +Start Alpha: 1.0
  +End Alpha: 0.0
  +Max Life: 2.0
  +Spew Time: 60
  +Bitmap: Contrail01
$Subsystem: communications, 10, 0
$Subsystem: navigation, 10, 0
$Subsystem: weapons, 20, 0
$Subsystem: sensors, 10, 0
$Subsystem: engine, 15, 0


$Name: GRB Shuuro
$Short name: Attis
$Species: GRW
+Length: 47 m
+Gun Mounts: 8
+Missile Banks: 3
$POF file: Attis.pof
$Detail distance: (0, 1000, 2000, 5000)
$Damage Lightning Type: None
$Debris:
+Lightning Arc Percent: 0.0
$Density: 1
$Damp: 2.5
$Rotdamp: 0.55
$Max Velocity: 0.0, 0.0, 475.0
$Rotation time: 5.0, 5.0, 4.0
$Rear Velocity: 0.0
$Forward accel: 4.0
$Forward decel: 2.0
$Slide accel: 0.0
$Slide decel: 0.0
$Glide: YES
+Dynamic Glide Cap: YES
$Use Newtonian Dampening: YES
$Autoaim FOV: 30
+Converging Autoaim
+Minimum Distance: 250.0
$Convergence:
+Automatic
$Warpin Type: Hyperspace
$Warpout Type: Hyperspace
$Expl inner rad: 75.0
$Expl outer rad: 150.0
$Expl damage: 30.0
$Expl blast: 1500.0
$Expl Propagates: NO
$Shockwave Speed: 0.0
$Allowed PBanks: ( "SMC-90 Gadha" "ACW-115 Parashuh" "HW-221 Bhushundi Mk. 7" )
$Allowed Dogfight PBanks: ( "SMC-90 Gadha" "ACW-115 Parashuh" "HW-221 Bhushundi Mk. 7" )
$Default PBanks: ( "SMC-90 Gadha" "ACW-115 Parashuh" )
$Allowed SBanks: ( "Astra IX" "Krodha VI" "Chaya" "Nirbhay" "Bhajayati" "Kshaya" )
$Allowed Dogfight SBanks: ( "Astra IX" "Krodha VI" "Chaya" "Nirbhay" "Bhajayati" "Kshaya" )
$Default SBanks: ( "Kshaya" "Kshaya" "Krodha VI" )
$SBank Capacity: ( 85, 85, 70 )
$Shields: 430
$Shield Color: 255 255 100
$Power Output: 4.5
$Max Oclk Speed: 890.0
$Max Weapon Eng: 250.0
$Hitpoints: 1000
$Armor Type: Light Armor 100
$Flags: ( "player_ship" "default_player_ship" "bomber" "generate icon" "in tech database" "in tech database multi" )
$AI Class: Captain
$Afterburner: YES
 +Aburn Max Vel: 0.0, 0.0, 1440.0
 +Aburn For accel: 0.7
 +Aburn Fuel: 200.0
 +Aburn Burn Rate: 80.0
 +Aburn Rec Rate: 25.0
$Trails:
+Bitmap: ABtrail
+Width: 1.0
+Alpha: 1.0
+Life: 2
$Countermeasures: 30
$Scan time: 2000
$EngineSnd: 129
$Closeup_pos: 0.0, 0.0, -50
$Closeup_zoom: 0.5
$Score: 10
$Trail:
 +Offset: 8.8 1.0 -4.0
 +Start Width: 0.25
 +End Width: 0.05
 +Start Alpha: 1.0
 +End Alpha: 0.0
 +Max Life: 5.0
 +Spew Time: 120
 +Bitmap: Contrail01
$Trail:
 +Offset: -8.8 1.0 -4.0
 +Start Width: 0.25
 +End Width: 0.05
 +Start Alpha: 1.0
 +End Alpha: 0.0
 +Max Life: 5.0
 +Spew Time: 120
 +Bitmap: Contrail01
$Trail:
 +Offset: 0.0 -0.4 -23.0
 +Start Width: 0.25
 +End Width: 0.05
 +Start Alpha: 1.0
 +End Alpha: 0.0
 +Max Life: 5.0
 +Spew Time: 120
 +Bitmap: Contrail01
$Subsystem: communication, 10, 0.0
$Subsystem: navigation, 10, 0.0
$Subsystem: weapons, 20, 0.0
$Subsystem: sensors, 10, 0.0
$Subsystem: engine01, 20, 0.0
$Subsystem: engine02, 20, 0.0
$Subsystem: turret01a,1,1.0
 $Default PBanks: ( "SMC-90 Gadha" )
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Full Projects:
Shattered Stars

Campaigns:
Lost in the Mist - Cyrene vs. Psamtik
FreeSpace: Reunited

Ships:
GTS Hygeia, GTT Argo, SC Raguel

Tools:
FSO TC/Game template

I've been under attack by Tiger Parents like Jennifer Pan...

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: AI improvements and OpenCL implementation
Fighters and bombers fly at 500 m/s, while capital ships move at 350 m/s
I have found your problem.
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.