Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Mass creation of trend locations
Mass creation of trend locations
Nov 1 2009, 9:35 pm
By: Cinolt  

Nov 1 2009, 9:35 pm Cinolt Post #1



I need to create approximately 190 locations that each increase one coordinate by one. Example:

Location1(0,0,0,1000)
Location2(0,0,0,1001)

Of course I'm not going to click and drag, type in appropriate names, and resize 190 times, so I'm looking for a more efficient way to do this.

I remember reading an article and I relocated it: http://www.staredit.net/wiki/scenario.chk_format
My prediction is that the most efficient way is to get the scenario.chk of the map file and open it with a text editor, and on the location section use a duplicator program to mass-create the locations.

I was hoping those who have experience working with pixel-accurate location grids, or otherwise mass creation of locations like this, will be able to verify this is the correct way of doing this. I'm not experienced with opening a map in this manner, so if it is, I would appreciate if you could give me brief instructions on how to get the scenario.chk.

Post has been edited 2 time(s), last time on Nov 1 2009, 10:04 pm by yoonkwun.



None.

Nov 1 2009, 10:10 pm NudeRaider Post #2

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

I sincerely doubt anyone has done this before, so I'd say your best bet is to invest that annoying 1 hour and do it manually. Or try to find out how to edit the chk yourself. It would be very nice if you'd post your results or even make a wiki entry about it.

It's probably faster than waiting for someone like Heinermann give you hints on what to pay attention for.




Nov 1 2009, 10:40 pm Kaias Post #3



Manually doing it can be a major pain but once it's done you never have to do it again.

My question for you is why make them each 1 pixel wider than the last? Perhaps you haven't already thought it all the way through-
When you slide the locations off the side of the map the center of it will be offset half as far as the length of the location- it can't center to half a pixels location so it rounds to the nearest pixel. If your locations are only 1 pixel greater than the last you will have two locations that center at the exact same offset. Essentially you'll have twice the location count you need for a pixel grid. Also, in your other topic you put the units each two pixels apart; why then make the locations pixel accurate? You might as well keep them at the same definition of a two pixel grid for simplicity and efficiency of resources. Make the grid with each location progressively 4 pixels wider than the last.



None.

Nov 1 2009, 10:48 pm Cinolt Post #4



Ah, that makes sense. Guess I just wasn't thinking enough; this is my first time trying location grids. In that case I can probably do it manually, much less locations to worry about.

Can't say the original topic is resolved, but I no longer need it.



None.

Nov 1 2009, 11:59 pm Falkoner Post #5



Make a macro that creates the location, double clicks it, and changes the coordinates to your desired coordinates.



None.

Nov 2 2009, 2:24 am rockz Post #6

ᴄʜᴇᴇsᴇ ɪᴛ!

his original idea was much better.

If you still want to do it yoonkwun, here's how I'd do it.

Open the map in winmpq.
Extract scenario.chk.
Edit with hex workshop or something like that. Notepad++ w/ hex edit works too, but it doesn't feature variable width as far as I've found.
search for "MRGN".
Make sure the width of the hex editor is 20.
Now you have a few choices, either manually type in your numbers or figure out a way to copy/paste into the file. Manual is probably safer. I can't give much more detailed description than this, however, as I've never done it.

Important to note while doing this, but a 0x0 location in SCMDraft (and staredit, and hex editing) is actually a 1x1 location according to starcraft.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Jan 30 2010, 3:38 am Cinolt Post #7



This deserves the necro

http://www.staredit.net/files/1891/



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: charlesmiller