Game crashes when I try to roll [solved]
Moderator: Moderators
-
- Jedi
- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Game crashes when I try to roll [solved]
I'm working on a rancor unit. It crashes when I try to roll (press alt). The game just freezes. Nothing turns up in the error log.
I have these lines in the idle state of the combo to prevent rolling:
Posture("Stand", "!Roll");
InputLock("All", "!Fire", "!Crouch", "!Thrust");
and in the odf i have these:
EnergyBar = 0.0 // Max energy
EnergyRestore = 0.0 // energy regained per second if moving
EnergyRestoreIdle = 0.0 // energy regained per second if not
What are the .msh names for the rolling animation? I added any that contained the word dive but that did not help.
Does anyone know why this might be happening? This is the one thing preventing me from uploading it.
I have these lines in the idle state of the combo to prevent rolling:
Posture("Stand", "!Roll");
InputLock("All", "!Fire", "!Crouch", "!Thrust");
and in the odf i have these:
EnergyBar = 0.0 // Max energy
EnergyRestore = 0.0 // energy regained per second if moving
EnergyRestoreIdle = 0.0 // energy regained per second if not
What are the .msh names for the rolling animation? I added any that contained the word dive but that did not help.
Does anyone know why this might be happening? This is the one thing preventing me from uploading it.
Last edited by MileHighGuy on Tue Aug 04, 2015 11:56 pm, edited 3 times in total.
-
- 2nd Lieutenant
- Posts: 365
- Joined: Sun Jan 16, 2011 12:42 am
- Location: Princeton, NJ
Re: Game crashes when I try to roll
Messing with the IDLE state is risky and can cause crashes. Does your rancor jump? If not, then you could remove the energy bar entirely to stop jumping and rolling:
EnergyBar = 0.0 // Max energy
EnergyRestore = 0.0 // energy regained per second if moving
EnergyRestoreIdle = 0.0 // energy regained per second if not
EnergyBar = 0.0 // Max energy
EnergyRestore = 0.0 // energy regained per second if moving
EnergyRestoreIdle = 0.0 // energy regained per second if not
-
- Jedi
- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Re: Game crashes when I try to roll
thats exactly what i have in my post. No it does not jump.
-
- 2nd Lieutenant
- Posts: 365
- Joined: Sun Jan 16, 2011 12:42 am
- Location: Princeton, NJ
Re: Game crashes when I try to roll
Oh, i mean, only use those lines in your ODF. Make the IDLE state back to normal, and the crashes should stop.
-
- Jedi
- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Re: Game crashes when I try to roll
Yes they were only in the odf where they belong. edited the first post for clarity.
-
- 2nd Lieutenant
- Posts: 365
- Joined: Sun Jan 16, 2011 12:42 am
- Location: Princeton, NJ
Re: Game crashes when I try to roll
Did you try fixing the IDLE state?
-
- Jedi
- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Re: Game crashes when I try to roll
AFAIK there is nothing wrong with it. I have experience with combos but I could have made a mistake. here is my whole .combo
Hidden/Spoiler:
-
- 2nd Lieutenant
- Posts: 365
- Joined: Sun Jan 16, 2011 12:42 am
- Location: Princeton, NJ
Re: Game crashes when I try to roll
Why don't you delete the Posture line from the IDLE state, change the InputLock line back to InputLock(0.15, "Sprint", "Jump", "Crouch"), and try again?
-
- Sith
- Posts: 1433
- Joined: Thu Jan 23, 2014 6:01 am
- Projects :: Star Wars - Battlefront III Legacy
- xbox live or psn: El_Fabricio#
- Location: Right behind you :)
Re: Game crashes when I try to roll
What about RollSpeed set to 0.0? This would remove rolling from your unit.
-
- Jedi
- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Re: Game crashes when I try to roll
razac you were right there was something wrong with the posture line! I had the posture set to only allow standing so when I tried to roll it crashed. I changed it to all and it works now. Idle state must have all postures but other states work fine with just 1.