Simplex started as a branch from Complex. It has combined features from Path To Victory as well as many other mods through a long history of R&D. This mod aims to excavate the full potential of the Homeworld 2 engine and it will simply blow your mind with incredible fun!

Add media Report RSS AI using hyperspace jump (PTV model) (view original)
AI using hyperspace jump (PTV model)
embed
share
view previous
Share Image
Share on Facebook Post Email a friend
Embed Image
Post comment Comments
_mickey_
_mickey_ - - 84 comments

AI using hyperspace jump!? Where and when exactly AI jumps in your case? CPU-Player it is capable to use a hyperspace jump in attack, how it is done by Battlecruisers of basic races Hiigaran and Vaygr?

Reply Good karma Bad karma+1 vote
siliconworm Author
siliconworm - - 1,131 comments

Hiigaran and Vaygr AI players already know how to use hyperspace jump (defined in HW2 engine). They have clear purpose when letting their Battlecruisers jump (such as, to attack the enemy base or to defend the resourcing operations)

What I did here, is to allow AI players of other races (Kadeshi, Turanic Raiders, and Progenitor) to use hyperspace jump too. Their purpose of doing so is not very clear. The warships of these AI players just jump to the enemy or the allied base to check if there's something to attack -- if there's nothing to attack, they may jump back to their own base.

Reply Good karma+1 vote
_mickey_
_mickey_ - - 84 comments

I have found out that all AI-ships capable to use the Hyperspace jumps for attack are hard-coded in the homeworld2.exe file.
And Only two AI-ships (if have onboard module HYPERSPACE TypeString) are capable to use Hyperspace Jumps.
How you have forced CPU-Player with new ships of new races to use Hyperspace Jump?

Reply Good karma Bad karma+1 vote
siliconworm Author
siliconworm - - 1,131 comments

You have to achieve this in the complex way, using sobgroup functions (at least as I believe). I programmed some dummy hyperspace gates (invisible) that are spawned and despawned constantly, and let the AI players of the new races to use these gates. This method is too complex and is not perfect (the AI is still not smart enough), but it works. I went for dummy hyperspace gates instead of normal hyperspace jump because I already have an integrated trainer in this mod that facilitates the real hyperspace jump, and I wanted to avoid any potential conflict between these two functions.

If you are interested, you can see my source code in the next version of Complex Simple. You can just program the AI to let them use normal hyperspace jump instead of dummy hyperspace gates.

Reply Good karma+1 vote
_mickey_
_mickey_ - - 84 comments

Thanks for your answer

Reply Good karma Bad karma+1 vote
marcoj331
marcoj331 - - 74 comments

now i will have a reason to build Hyperspace inhiblliators and Hyperspace sensors

Reply Good karma Bad karma+1 vote
siliconworm Author
siliconworm - - 1,131 comments

Yes! Based on my testing, you definitely need a lot of hyperspace inhibitors to prevent baserape XD

Reply Good karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: