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:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
[2024-4-17. : 1:52 am]
Vrael -- hah do you think I was born yesterday?
Please log in to shout.


Members Online: IlyaSnopchenko