Hi,jth wrote:I would have to disagree with that as my released CV's do build from scratch successfully in all my tests destroying stations, recycling stations or just detaching the CV. The build locations are also releasing properly.mihaib wrote:I just tested that mod and they have the same issue .
The buildplan does appear to belong to the buildmodule inside the CV which makes it stick to the CV and not the architect
I managed to get the whole thing to work by doing a combination of things
The first was to to clear the CV's buildmodule before destroying the station and before attempting to detach the CV. That seemed to help a lot athough you might have to wait a bit too. Without doing that the CV was indeed unusable whatever I did to the architect. It took me a couple of days trial and error to find that out.
I was hoping that the architect would work at that point but it did not. They run their own copy of the NPC_Architect script and in there are some variables that probably need to be reset for an existing architect to start a new station. The only way that I could do that without patching the NPC_Architect script was to clone the architect.
If you blow the build module then I don't think you will be building any stations with that CV.
I'm not sure we are talking about the same problems, so just to clarify.
I can build new stations just fine with a repacked CV, it's just that I can't choose the stage / module after each build. The architect automatically starts the next stage after the current one is built.
The other problem appears when I use the repacked CV to deploy to another station. Then it just scraps built modules and starts building them again.
You don't have any of these issues?
I don't believe there are problems with the architect. I saved the game with a repacked CV, I edited the save to remove the build queue, and I loaded that save. The CV works perfectly, with no issue and I barely touched the architect. Just some basic variable cleanup that I found in the "Cancel construction" script inside the NPC_Architect.xml file.
Also, about the order of operations, I too clear the build module, do some variable cleanups and then I detach from build location, but I don't clone the architect. Build locations are released properly if I call <destroy_object> on the station (which I don't as that is not my goal, just for testing).
I also looked at your script related to releasing the CV and I saw little difference when it comes to the order of operations or what operations we perform on the CV.
It would be great if you don't have these problems, because that would mean there is a solution. When I have the proper setup I will test again your mod and recheck these issues.