Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Mobile Grid not working
Mobile Grid not working
This topic is locked. You can no longer write replies here.
Aug 9 2009, 1:27 am
By: Kimaru  

Aug 9 2009, 1:27 am Kimaru Post #1



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:
Random Crystal Spawning2.scm
Hits: 14 Size: 46.56kb



None.

Aug 9 2009, 1:33 am Zenturen Post #2



Processsing information...

Post has been edited 2 time(s), last time on Aug 9 2009, 3:15 am by Zenturen.



None.

Aug 9 2009, 2:12 am Kimaru Post #3



I tried what you said, but the same problem persists.



None.

Aug 9 2009, 4:30 pm JaFF Post #4



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.

Aug 9 2009, 9:49 pm Kimaru Post #5



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.

Aug 9 2009, 10:07 pm JaFF Post #6



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.

Aug 10 2009, 1:32 am Kimaru Post #7



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.

Aug 10 2009, 4:20 am Pyro682 Post #8



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.

Aug 10 2009, 5:18 am Kimaru Post #9



What do you mean by model?



None.

Aug 10 2009, 9:46 am JaFF Post #10



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.

Aug 10 2009, 10:05 am Kimaru Post #11



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... :bye1:

Post has been edited 1 time(s), last time on Aug 10 2009, 10:21 am by Kimaru.



None.

Aug 10 2009, 10:23 am JaFF Post #12



Quote from Kimaru
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.

Aug 10 2009, 10:24 am Kimaru Post #13



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.

Aug 10 2009, 10:31 am JaFF Post #14



Quote from Kimaru
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.

Aug 10 2009, 10:34 am Kimaru Post #15



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.

Aug 10 2009, 12:28 pm JaFF Post #16



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.

Aug 10 2009, 12:44 pm Kimaru Post #17



Oops, sorry about that...here is the most recent one with your triggers:

Attachments:
Random Crystal Spawning6.scm
Hits: 1 Size: 31.24kb



None.

Aug 10 2009, 1:07 pm JaFF Post #18



Quote from Kimaru
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.

Aug 10 2009, 9:01 pm Kimaru Post #19



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.

Aug 10 2009, 10:09 pm JaFF Post #20



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.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[01:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
Please log in to shout.


Members Online: lil-Inferno, Roy