Hi, I'm making a sample map on the scourge-observer mobile grid, and things seem to be working, except that the grid is always going diagonal. The map is 64 x 64 and my grid is starting at the top left. I've cut the map into a quarter, starting at (32,32) and touching the top and left sides of the map, so the resulting area is 32 x 32. I want the grid to start at the top left and to go down, right, and down-right (diagonally). In my case however, the grid is always going down-right. I'm pretty sure the triggers are right...
I think the problem is that X RANDOM and Y RANDOM are always coming out as the same value, whether it be 1 1, 14 14, etc. I know this can be done by using 1 switch.
Attachments:
None.
Processsing information...
Post has been edited 2 time(s), last time on Aug 9 2009, 3:15 am by Zenturen.
None.
I tried what you said, but the same problem persists.
None.
The first serious mistake that I see is the Y coordinate mobile grid triggers: to go down you must create 3 and remove 1 (not 2).
I'll test it out and see if it helps.
None.
K I changed what you said and it works now for going down. However, none of the crystals go towards the right. I'm creating 5 and removing 3, isn't that right?
None.
Yes, that is correct. I can't find the error; adding hypers to the map and watching where the crystals are created shows that they are not made anywhere to the right of the diagonal, as if the X axis mobile grid triggers are not working, yet I see no errors in them.
Have you checked
this topic and the map I posted there?
None.
Yes, in fact I compared my map to your version and and the triggers are practically identical, besides the fact that you're requiring Switch 1 being set in every trigger as a condition, and you're using 256 of each direction, while I'm using 32.
None.
What I'd do is Re-create Everything, using some sort of model, side by side. Then I'd modify what I wanted to change.
Chances are, something was missed, and there's a bug that's pretty hard to find somewhere in the trigs.
None.
What do you mean by model?
None.
In his post, model = my version. An example that works. pyro's suggestion is the best option, in my opinion. The bug is not easy to find, so you should just copy my triggers into your map and then modify them for your purposes; that way you'll be less likely to make a mistake.
None.
I can do that, but aren't the triggers identical? except I'm using fewer because of a smaller landscape.
Also what are the corrections for in your map? You have "if x or y is atleast 253, set to 252". Is this because of the little control panel in the bottom right of in-game screen, prevent units from being created there?
EDIT: OK, I copied the triggers from your map into mine, and cut them down to suit a 32x32 piece of land. Well...the most ironic thing happened. Discs spawned only on either the diagonal, or to the RIGHT of the diagonal, contrary to my previous case after the fix of removing 1 unit, not 2, how crystals only spawned on either the diagonal or the left side. I hate how triggers can be retarded sometimes...
Post has been edited 1 time(s), last time on Aug 10 2009, 10:21 am by Kimaru.
None.
I can do that, but aren't the triggers identical? except I'm using fewer because of a smaller landscape.
Also what are the corrections for in your map? You have "if x or y is atleast 253, set to 252". Is this because of the little control panel in the bottom right of in-game screen, prevent units from being created there?
They are almost identical. But as you can see, there is some mistake hidden in yours.
The starting point is at (2, 2) to avoid the map boarder disrupting the grid. The coordinates are randomized between 0 and 255. The map is 256x256. Hence, any point that has a cordinate over 252 will make the grid crush into the boarder of the map. Which is why I created those restrictions.
None.
Ah so in my case, I wouldn't need the corrections since I've left some extra room for the discs/crystals to spawn..
EDIT: WAIT! I just remembered, the grid in your map is starting at bottom left and the Y is going UP and the diagonal is going UP-RIGHT. In my map, the Y is going DOWN and the diagonal is going DOWN-RIGHT....I forgot to change the triggers from yours to suit the directions I need, but somehow, it's giving me somewhat correct results, but opposite of before.
None.
EDIT: WAIT! I just remembered, the grid in your map is starting at bottom left and the Y is going UP and the diagonal is going UP-RIGHT. In my map, the Y is going DOWN and the diagonal is going DOWN-RIGHT....I forgot to change the triggers from yours to suit the directions I need, but somehow, it's giving me somewhat correct results, but opposite of before.
Your diagonal triggers are fine - create 4 and remove 3 results in a bottom-right motion.
None.
But remember, right now I've copied your map's triggers into mine, but I haven't changed the directions, so for the diagonals, it says create 6 and remove 3, resulting in up-right.
None.
I'm looking at the version you uploaded in your first post right now; it has the correct bottom-right motion. I don't understand you.
None.
Oops, sorry about that...here is the most recent one with your triggers:
Attachments:
None.
Oops, sorry about that...here is the most recent one with your triggers:
The only thing I had to do to make it work is move the starting location in the bottom-left corner.
None.
OK so here is the full situation. In your map, your directions are up, up-right, and right. For up, you have create 7 remove 1. For my down, I have create 3 remove 1. You told me to copy your triggers into my map, which now I did, but I did not change the directions, so I had create 7 remove 1 remaining, even though I want the grid to go down, not up. As a result, only the diagonal and crystals on the right side appeared. With the old situation, only the diagonal and crystals on the left side appeared. I went ahead and did a little troubleshooting, so I changed the create 7 remove 1 to create 3 remove 1 (for down), but I kept your diagonal which is create 6 remove 3 (for up-right). Crystals came out randomly, which is good, but here is what the result was:
http://i145.photobucket.com/albums/r230/DarK_64/crystals.gif
None.
Why are you bothering with these problems at all? To make the latest version you posted work, simply put the grid start locations on the bottom-left corner of the arena.
None.