Hi all
I have a serious problem in a game I'm trying to make, which makes it impossible to play. I will first give you a basic idea about the game, then a basic idea of the problem and then what i've managed to find out about the problem and some details. Thanks in advance for even reading this entire post and hopefully you can help me solve this problem .
Something about my game:
I'm trying to make a FFA multiplayer game wherin the players control a hero which moves with the arrow keys and uses skills as standard attacks (refered to as "standard attacks" as the heroes also have normal skills). These standard attacks (of which each hero-type has at least 2 different types) can be used in combos. The objective of the game is to earn points by killing other players. (I hope this gives a basic idea about the game)
My problem:
When the player uses a "standard attack" to kill an opponent in a LAN game (and assumingly also on battle.net, however this hasn't been tested yet) warcraft crashes and gets an acces violation .
The problem in detail:
The first signs of the problem is that, when playing single player against bots, when you kill a bot the movements system stops functioning until you use another "Standard attack" or any other skill. In a multiplayer game this changes into a fatal error. While, as long as you don't use any of the standard attacks to kill an enemy, everything runs the way it should.
So how does it work?
Now what I want are 2 things; I want the player to be added to the movement playergroup (or just be able to move again), and I want the game not to crash so it can actually be played.
Thank you for reading my problem and hopefully you can give me ideas to solve it, thanks in advance .
Kind regards,
Badhaas
I have a serious problem in a game I'm trying to make, which makes it impossible to play. I will first give you a basic idea about the game, then a basic idea of the problem and then what i've managed to find out about the problem and some details. Thanks in advance for even reading this entire post and hopefully you can help me solve this problem .
Something about my game:
I'm trying to make a FFA multiplayer game wherin the players control a hero which moves with the arrow keys and uses skills as standard attacks (refered to as "standard attacks" as the heroes also have normal skills). These standard attacks (of which each hero-type has at least 2 different types) can be used in combos. The objective of the game is to earn points by killing other players. (I hope this gives a basic idea about the game)
My problem:
When the player uses a "standard attack" to kill an opponent in a LAN game (and assumingly also on battle.net, however this hasn't been tested yet) warcraft crashes and gets an acces violation .
The problem in detail:
The first signs of the problem is that, when playing single player against bots, when you kill a bot the movements system stops functioning until you use another "Standard attack" or any other skill. In a multiplayer game this changes into a fatal error. While, as long as you don't use any of the standard attacks to kill an enemy, everything runs the way it should.
So how does it work?
- There is a arrow movement system which works with a playergroup (the players who make use of it) and boolean switches for if an arrow key is being pressed. It uses a periodic trigger to move the heroes and the camera (did I mention it's 3th person.
- There is a trigger which notices when a hero uses a skill. When a hero uses a skill (incl. standard attacks) that player gets removed from the movement playergroup. I don't want players to be able to move while using skills.
- And then we have a massive trigger for a standard attack which first sets a few variables, then checks if the current move fits in a combo and depending on that (and which combo if correct move) more variables are changed and set. Then the unitgroup for the damage is set and the damage is done, and after that the combo window is refreshed and possibly, depending on previously set variables, skills are added or removed. And finally the player gets added to the movement playergroup (and leaks are fixed etc.)
Now what I want are 2 things; I want the player to be added to the movement playergroup (or just be able to move again), and I want the game not to crash so it can actually be played.
Thank you for reading my problem and hopefully you can give me ideas to solve it, thanks in advance .
Kind regards,
Badhaas