Posted By
|
Message
|
Gokotti
Registered 01/03/2009
Points 316
|
20th April, 2010 at 14:37:44 -
I've been making a little online turb-based-strategy project with MMF2.
Here's the problems I can't solve:
- Pathfinder extension works fine, when used normally. BUT when you try to find a path to place, where you can't go, it crashes. I just wish it stopped finding the path, but for some reason, it keeps looking for it, and crassssh!
- Mooclikc. Yes, I'm using mooclick and i'm not changing it to anything else at this point... Anyways, I've made so far, that i can create one single unit with both players, chat works fine and movement is fine. In strategy games must build multiple units, so I've made an ID counter to units, so you can separate them. ID works perfectly. The problem is, when you create more than a one unit, it spawns to opponents screen. That's fine, but when you try to move any unit, when there's more than one, nothing at opponent's screen moves.
Currently it tries to work this way:
- Unit sends it's ID when it's created at subchannel 1 (sc0 is for chat).
- When opponent receives something at subchannel 1, unit is normally created at opponents screen and ID is ok.
- When you move your unit, it sends its coordinates and direction on subchannel ID+1. (2,3,4,5,...,unitcap+1)
- Opponents application checks, if the subchannel is units ID+1 and selects unit with ID subchannel-1. Then unit should move. Or it moves, when there's only one enemy unit, but if you make more, nothing moves...
Help meee!!!
n/a
|
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
|
20th April, 2010 at 14:49:23 -
Originally Posted by Gokotti
- Pathfinder extension works fine, when used normally. BUT when you try to find a path to place, where you can't go, it crashes. I just wish it stopped finding the path, but for some reason, it keeps looking for it, and crassssh!
Make sure you have the latest version which fixes this crash.
...when you try to move any unit, when there's more than one, nothing at opponent's screen moves
What is the code for actually selecting the object? You may need to use a fastloop if you aren't already.
Edited by an Administrator
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
|
Gokotti
Registered 01/03/2009
Points 316
|
20th April, 2010 at 22:03:09 -
Problems solved.
I understood your solution to second question after many painful attempts. But now it works! It uses a active object, which randomly and fast rolls over enemy units so it can now select them.
Thank you... Now I have something else to think about before going to sleep.
n/a
|
Gokotti
Registered 01/03/2009
Points 316
|
22nd April, 2010 at 19:01:40 -
Umm... Pathfinder prob didn't leave.
Is the newest version 1.3 ?
n/a
|
|
|