[Script] AStar Pathfinder v1.3 (Mar 3)
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
- halo112358
- Posts: 374
- Joined: Thu, 16. Feb 06, 07:56
-
- Posts: 4708
- Joined: Tue, 20. Apr 04, 17:39
I have reuploaded the spk version on rapidshare.halo112358 wrote:Can someone re-upload this elsewhere? Aparently Aalaar's strike9 account is empty ...and I love this script
"For the love of the Fish-Queen!"
- halo112358
- Posts: 374
- Joined: Thu, 16. Feb 06, 07:56
Thanks much.BlackRazor wrote:I have reuploaded the spk version on rapidshare.halo112358 wrote:Can someone re-upload this elsewhere? Aparently Aalaar's strike9 account is empty ...and I love this script
- halo112358
- Posts: 374
- Joined: Thu, 16. Feb 06, 07:56
I hacked AStar to use a jumpdrive, if anyone else is interested I put it online over at Xai Corp: http://xai-corp.net/en/node/1382/
If you use it and like it let me know If you find a bug, send me a pm or open a ticket. Once it's tested by a few people I'll make a thread for it and stop polluting Aalaar's
If you use it and like it let me know If you find a bug, send me a pm or open a ticket. Once it's tested by a few people I'll make a thread for it and stop polluting Aalaar's
-
- Posts: 21
- Joined: Sat, 4. Aug 07, 03:53
To HALO or anyone else with the knowledge about this astar script function/system.
I was wondering if it is possible to make a similar replacement script like the jump enabled move.movetosector for the the move.movetosector script.
The reason is that the AI mostly uses the move.movetostation script and not the move.movetosector and then the AStar pathing is not used for the AI and it suicides into xenon sectors.
I was thinking if a replacement script for move.movetostation (similar to how the move.movetosector script works) could be made to force the AI that uses this script to also use the AStar pathfinding.
I have looked in the scripts but this is way over my head, any ideas would be good if any one knows!
Thanks.
I was wondering if it is possible to make a similar replacement script like the jump enabled move.movetosector for the the move.movetosector script.
The reason is that the AI mostly uses the move.movetostation script and not the move.movetosector and then the AStar pathing is not used for the AI and it suicides into xenon sectors.
I was thinking if a replacement script for move.movetostation (similar to how the move.movetosector script works) could be made to force the AI that uses this script to also use the AStar pathfinding.
I have looked in the scripts but this is way over my head, any ideas would be good if any one knows!
Thanks.
if you change the to the AI should be using the AStar system.
also:
Code: Select all
$PlayerOnly = [TRUE]
Code: Select all
$PlayerOnly = [False]
also:
From the Readme if you want the AI to use AStar at every possible opportunity install the optional!move.movetosector replacement. The setup file in this optional package will switch on AI use of AStar as well.
-
- Posts: 21
- Joined: Sat, 4. Aug 07, 03:53
No only the AI ships specifically calling the COMMAND_DOCKAT command will use the script movetostation from the AStar if set to FALSE. The rest will not and instead use the original movetostation script instead (which are the majority of the AI ships).
This since they dont seem to call the COMMAND_DOCKAT but instead the script move.movetostation directly avoidingthe use of the command COMMAND_DOCKAT.
Also the customcosts will not be used for the AI since it is set to player only in the script ADB.AStar.RequestPath and thus the AI will never use your custom costs (ADB.AStar.GetPlayerCustomCosts) for avoiding enemy sectors. This is true for both the COMMAND_DOCKAT calls and the COMMAND_MOVE_SECTOR call.
My idea would be the following if which works but I dont know how stable it is. The races for those to use AStar would be inserted.
This since they dont seem to call the COMMAND_DOCKAT but instead the script move.movetostation directly avoidingthe use of the command COMMAND_DOCKAT.
Also the customcosts will not be used for the AI since it is set to player only in the script ADB.AStar.RequestPath and thus the AI will never use your custom costs (ADB.AStar.GetPlayerCustomCosts) for avoiding enemy sectors. This is true for both the COMMAND_DOCKAT calls and the COMMAND_MOVE_SECTOR call.
Code: Select all
ADB.AStar.RequestPath
013 if $defaultRace == Player
014 @ $customCosts = [THIS] ->
callscript 'ADB.AStar.GetPlayerCustomCosts' :
015 else
016 @ $customCosts = [THIS] -> call script 'ADB.AStar.GetRaceDefaultCosts' : Race=$defaultRace
017 end
Code: Select all
ADB.AStar.RequestPath
013 if $defaultRace == Player
014 @ $customCosts = [THIS] -> call script 'ADB.AStar.GetPlayerCustomCosts' :
013 else if $defaultRace == Argon
014 @ $customCosts = [THIS] -> call script 'ADB.AStar.GetPlayerCustomCosts' :
015 else if $defaultRace == Boron
016 @ $customCosts = [THIS] -> call script 'ADB.AStar.GetPlayerCustomCosts' :
017 else
018 @ $customCosts = [THIS] -> call script 'ADB.AStar.GetRaceDefaultCosts' : Race=$defaultRace
019 end
i am guessing the second one was suppose to be move.movetostation rather then move.movetosector.Humble Merchant wrote:I was wondering if it is possible to make a similar replacement script like the jump enabled move.movetosector for the the move.movetosector script.
but now that we are on the same page and i see what it is you are after. it would just require adding one line if the command existed. one of the more knowledge scripters here are going to have to say if it is possible or not. because when i open up the movetostation it is using the dockat command to do so. the only difference is the spelling (its defined as [DOCKEAT] but in the command listing you choose from its listed as dockat) also if the station isn't in the sector it is trying to reach then it calls move_sector which is already defined in the setup of AStar (so it should be working). you shouldn't need to add all those lines unless you wanted to restrict AStar to a specific race.
but as i said one of the more knowledgable ones will have to clarify.