Posted: Sat Sep 21, 2019 6:25 pm Post subject:
Mission 10: AI sells MCV 2sec after deploy
Ok this mission unedited has been behaving this way since the beginning, meaning I never got to fight the enemy bases, just what troops were on screen. I have made various tiny changes to scripts, because a few of them oddly try to attack structures not on the map (not the mod's fault though), but I basically left the important stuff alone until I could better understand how the mission plays out.
I checked the map code manually and I noticed the AI houses were given 400 starting credits, I thought maybe it was selling since it couldn't afford to build anything. I first upped it to 3000, and somehow the middle AI managed to start a base, while the other two immediately sold, even though they all had the same 3000 credits. I increased to 5000 and then 10000 to see if it would help, but the mission returned to the previous behaviour of selling, so it isn't the money.
I tried adding Unsellable=yes to the NACNST code in the map, but that had no effect, and I have verified they do not undeploy back into MCVs, so they are indeed selling.
I even tried removing the base nodes so that they would start with a clean slate.... same thing.
Yeah, but they have "parent" countries, so if you change those, bad things happen. _________________ MIdAS - Turning wages into beer since 2002 QUICK_EDIT
I'm not sure I understand what you mean change, I haven't renamed or done anything funky to countries/houses, only new units and the AI work. What were you thinking? _________________ http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai QUICK_EDIT
Ok after more testing, I decided to add bases off screen for the BagGuy* houses, and suddenly they build just fine. This is ultimately untenable since it tries to build the nodes before even deploying the new MCV, but it shows the houses are capable of building.
If I then switch the owner of those existing conyards, the newly deployed MCV will return to being sold.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum