Author Topic: [Star Citizen] Commands were working, now they're not.  (Read 5675 times)

LightfootM

  • Guest
[Star Citizen] Commands were working, now they're not.
« on: November 06, 2016, 07:06:46 PM »
Hey everyone! Long time listener, first time caller.

So, I've been working on a clan-specific .vap file and I was building some commands for Star Citizen, and things were going great. I was chugging along, making conditional statements, throwing in executables, else if statements, etc. and every thing was working just fine....

Star Citizen was in Admin Mode. VA was in Admin mode.

Then an exception popped up, and VA closed.

Now, none of the commands that I built within the last hour work. None of them. VA will recognize my voice and the commands, but I don't get no button pushes, no TTS responses, nothing. Zip. Zilch. Nada. I still get the Bubble with the lightning bolt up top, but nothing else.

Any ideas?
« Last Edit: November 06, 2016, 07:18:26 PM by LightfootM »

LightfootM

  • Guest
Re: [Star Citizen] Commands were working, now they're not.
« Reply #1 on: November 06, 2016, 09:06:09 PM »
Disregard. I fixed it.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
Re: [Star Citizen] Commands were working, now they're not.
« Reply #2 on: November 06, 2016, 09:12:08 PM »
It could benefit people to know how you fixed it, in case someone runs into a similar situation.



LightfootM

  • Guest
Re: [Star Citizen] Commands were working, now they're not.
« Reply #3 on: November 06, 2016, 09:33:06 PM »
i went back and re-wrote the conditionals from scratch. I think I replaced a Conditional If statement with an Else If, and it broke it. I had already written the base commands and they were nested in the conditional, so I went back and just rebuilt the conditionals.

I figured out a good, if not tedious process.

1. Write the code you need
2. Make sure it works
3. Then write your conditionals AROUND the code.
4. If you've written the conditionals correctly and they work... STOP.