MobileMacTech
Registered:1380172930 Posts: 16
Posted 1383523728
Reply with quote
#1
Hi, I was wondering if I could get some help updating a script to accommodate Artemis 2.0. I would sort it out myself, but I'm on a time constraint for an event (by Nov 7). I believe the problem is with the AI stack for the enemy ships. They will no longer chase the Artemis. I assume it's related to the new Brain Stacks and the {L"CHASE_PLAYER"} command, but I can't seem to figure out the changes from the old scripting. I'm probably missing something simple, I'm just not up to speed on the new stuff. Any help would be greatly appreciated.
Attached Files
Atemis_Kobashi_Maru_Mission.txt
(18.28 KB, 9 views)
Toochaos
Registered:1380692181 Posts: 30
Posted 1383544197
Reply with quote
#2
i took a look but i dont know whats wrong so its hard to get a feel for it. but nothing will move may be the problem cause nothing throttles at any speed, IE throttle is 0 on all of them. also nothings named or in folders, so im not sure what each thing is meant to do.
MobileMacTech
Registered:1380172930 Posts: 16
Posted 1383639543
Reply with quote
#3
I believe the throttle is 0 because the enemies aren't meant to move until the Artemis gets within range, then they are meant to chase it. In fact, the enemies won't even begin spawning until the artemis reaches a certain point. What is it that you would need for further analysis? I could probably identify any object you pointed out.
Toochaos
Registered:1380692181 Posts: 30
Posted 1383644787
Reply with quote
#4
in the initial post you said they wont chase Artemis, and they never will at a throttle of 0 which no event appears to change. this is the only issue that looks like a problem
MobileMacTech
Registered:1380172930 Posts: 16
Posted 1383646007
Reply with quote
#5
Hmmm...unfortunately, that is part of the original script. My first set of additions were primarily cosmetic other than solving some timing issues and adding some COM functionality, so I really don't know how the movement was generated. All I can say is that it worked perfectly under 1.7x.
Mike Substelny
Administrator
Registered:1375273622 Posts: 2,990
Posted 1383663713
Reply with quote
#6
Setting throttle to zero used to not work. I think Thom fixed it in Artemis 2.0. So you should set the throttle to 1.0 when you want the ships to start moving.
__________________"The Admiralty had demanded six ships; the economists offered four; and we finally compromised on eight." - Winston Churchill
MobileMacTech
Registered:1380172930 Posts: 16
Posted 1383711445
Reply with quote
#7
So, I'm still a little confused about the THROTTLE setup. This is the only line I see referencing it and it seems to apply to the Kobayashi Maru ship. <add_ai type="DIR_THROTTLE" value1="0" value2="0" name="Kobayashi Maru" /> Despite not knowing what I was looking for, I changed all the value1 numbers to "1" where before they were "0".
<add_ai type="ATTACK" targetName="Artemis" value1="1" name="KS1" />
<clear_ai name="KS2" />
<add_ai type="ATTACK" targetName="Artemis" value1="1" name="KS2" />
<clear_ai name="KS3" />
<add_ai type="ATTACK" targetName="Artemis" value1="1" name="KS3" /> This seems to have fixed the chasing issue, however now they move a bit faster than before. Should it work if I change value1 to something like ".75" to slow them down? Now that chasing is working, the next problem seems to be the part of the script that disables the warp drive of the Artemis as soon as the shields are hit. In my playtest, it took quite a number of hits before the drive went offline. Any ideas there? Lastly (I hope), but not too critical is the part of the script that is supposed to allow the Artemis to get more energy from the Kobayashi Maru once you get close enough. I've never been able to get that to work. Any suggestions? Thanks for the help so far. At least now it's a working scenario. =)
Toochaos
Registered:1380692181 Posts: 30
Posted 1383717350
Reply with quote
#8
you will only get energy if you have less than 4 homings and less than 4 mines, also i advise a change for any variable that is 0 to 1 and 1 to 2. but other than that i can see no reason why i wouldn't work in the code.
MobileMacTech
Registered:1380172930 Posts: 16
Posted 1383896662
Reply with quote
#9
Ok, I've fixed nearly every problem but one. For some reason, even though I believe the variable are set correctly, the warp drive won't go offline when front or rear shields get down to 90%. In the 1.7 play, warp went offline almost immediately. During my last play test, warp didn't go offline until rear shields were down to 50%. Disabling warp is kind of key thing. Any ideas?
MobileMacTech
Registered:1380172930 Posts: 16
Posted 1383903989
Reply with quote
#10
Ok, according to the Engineering station, Warp IS offline, but the Artemis is still capable of traveling at warp. ARGH!
Attached Files
MISS_KobayashiMaru2.0b3.txt
(20.76 KB, 11 views)
Toochaos
Registered:1380692181 Posts: 30
Posted 1383905569
Reply with quote
#11
lol this is the way scripting is, fix one thing find another add a bit, find that nothing works as intended.