Posted 18 May 2019 - 03:24 AM

Hi. I was working on a jump calculator to use alongside LemADEC's WarpDrive Mod, to calculate the best ways of travelling to a set of coordinates, using the boundaries implemented by the mod. I attempted a simplified version, as I haven't quite yet figured out how to integrate data from WarpDrive yet. However, when I ran the code, I ended up with a spool of nan values until the in-game computer crashed. The code can be found at pastebin.com/fZe1eJ19. I am aware that it could be some rookie mistake, as simple as a missed variable, but I've looked through and can't figure it out… Any help in stopping the endless flow of nan errors and also any help in trying to integrate data from a WarpDrive ship core would be greatly appreciated. Do note that this is not the final purpose of the code. I was hoping to store the necessary details of the jumps into a table, either to be used to program jumps, or as a list of needed jumps able to be followed through in a person's own time on the computer. The form as it currently is allowed me to diagnose the nan problem.

Once again, the code can be found at: pastebin.com/fZe1eJ19

Details of WarpDrive can be found here: https://github.com/LemADEC/WarpDrive

Any help would be gladly appreciated

Once again, the code can be found at: pastebin.com/fZe1eJ19

Details of WarpDrive can be found here: https://github.com/LemADEC/WarpDrive

Any help would be gladly appreciated