AI doesn't make designs of freighters and carriers. I need help! |
I decided to tranlate SE V to other language. Now it is in app. 70%
Unfortunately, I ran into a bug, which was made by me. (It works in original, English version.)
I run game in ALL Tech mode. The AI makes all of the designs except Carrier, Pop. Transport, Troop Transport, Cargo Ship. I have no idea, what the problem is. I scanned all script files, but I haven't found my mistake. I translated design names, component names. It works well for other designs, but not for carriers and freighters. I have no idea.
What should I do?

Re: AI doesn't make designs of freighters and carriers. I need h
What is the other language?

Re: AI doesn't make designs of freighters and carriers. I need h
I've looked at the code in the AI file for the messed up lines. It seems that the 0.50 and .99 at line 1470 is a 0 in your code for some reason. Line 1470 in that file should be:
set num_to_add := Sys_Trunc(((vehicle_tonnage * 0.50) / comp_tonnage) + 0.99)
Your translation shouldn't be causing any problems because the problem is from those two numbers not being read properly.
-----
Space for rent - please contact owner




Re: AI doesn't make designs of freighters and carriers. I need h
Now I know that the propblem is: AI don't give any Fighter bays/cargo bays to ships.
Debugging result: --- Wrong version ---
Script_AI_DesignCreation.txt(0963): End Function Add_Components_To_Vehicle_Design ---------------------
Script_AI_DesignCreation.txt(1421): 2 = 5 = FALSE
Script_AI_DesignCreation.txt(1421): If ((vehicle_size_class(2) = ai_vehicle_size_class_colony_ship(5))) = FALSE
Script_AI_DesignCreation.txt(1452): 2 = 6 = FALSE
Script_AI_DesignCreation.txt(1452): If ((vehicle_size_class(2) = ai_vehicle_size_class_freighter(6))) = FALSE
Script_AI_DesignCreation.txt(1465): 2 = 2 = TRUE
Script_AI_DesignCreation.txt(1465): If ((vehicle_size_class(2) = ai_vehicle_size_class_carrier(2))) = TRUE
Script_AI_DesignCreation.txt(1466): Sys_Get_Component_With_Name(2, Vadászgép hangár)
Script_AI_DesignCreation.txt(1466): Set comp_id(9) := 22
Script_AI_DesignCreation.txt(1467): 22 > 0 = TRUE
Script_AI_DesignCreation.txt(1467): If ((comp_id(22) > 0)) = TRUE
Script_AI_DesignCreation.txt(1468): Sys_Get_Best_Comp_Enh_For_Component(2, -1, 22)
Script_AI_DesignCreation.txt(1468): Set comp_enh_id(0) := 0
Script_AI_DesignCreation.txt(1469): Sys_Get_Component_Tonnage_Space(2, 22, 0)
Script_AI_DesignCreation.txt(1469): Set comp_tonnage(0) := 30
Script_AI_DesignCreation.txt(1470): 1350 * 0 = 0
Script_AI_DesignCreation.txt(1470): 0 / 30 = 0
Script_AI_DesignCreation.txt(1470): 0 + 0 = 0
Script_AI_DesignCreation.txt(1470): Sys_Trunc(0)
Script_AI_DesignCreation.txt(1470): Set num_to_add(10) := 0
Script_AI_DesignCreation.txt(1471): Add_Components_To_Vehicle_Design(-1, 22, 0, 2, 0, FALSE)
Script_AI_DesignCreation.txt(0963): Begin Function Add_Components_To_Vehicle_Design(-1, 22, 0, 2, 0, FALSE) ---------------------