Staredit Network > Forums > SC1 Mapping Tools > Topic: scmdraft - 0.9.0 info + nightly download (Post small feature req
scmdraft - 0.9.0 info + nightly download (Post small feature req
Apr 9 2017, 9:27 am
By: Suicidal Insanity
Pages: < 1 37 38 39 40 4155 >

Aug 25 2018, 12:43 pm Suicidal Insanity Post #761

I see you !

The text trigger edit takes the location name and looks up the index when compiling. So if you save the triggers before reordering, then reorder, then load the triggers it works.

If you just reorder the locations and reopen the trigger editor it will display the new location names.

So if you swap the "Start Area" (index 0) and "Goal Area" (index 1) locations, then recompile an external trigger file, they will map to the new indices. If you swap them and only open the trigger editor the displayed triggers will have the two locations swapped.

That is also why you can store the location names outside of the normal map data - the triggers only care about the indices.

Aug 25 2018, 2:41 pm jjf28 Post #762

Cartography Artisan

Quote from iDoodler
Reordering locations would break every trigger that uses the location because the triggers refer to locations via index and that would change.

If this is true, why don't triggers mess up while importing them via the text trigger editor?
Through my limited knowledge wouldn't you be able to work around it by right as you reorder the locations, you basically run the process that the trigger editor uses to error check/import the triggers?

It's not too hard just to remap the locations in the triggers, but this would obviously be a low priority feature and anyone using an external trigger editor that wasn't based on locationName (or anything advanced like EUD-mapped triggers/triggers inside the string section) would need to be responsible for their own indexes.

    locationCopy = locations[location1Idx]
    location1 = locations[location2Idx]
    location2 = locationCopy

    for ( trigger in triggers ) {
        for ( condition in trigger.conditions ) {
            if ( condition.location == location1Idx )
                condition.location = location2Idx
            else if ( condition.location == location2Idx )
                condition.location = location1Idx
        for ( action in trigger.actions ) {
            if ( action.location == location1Idx )
                action.location = location2Idx
            else if ( action.location == location2Idx )
                action.location = location1Idx
            if ( action.number == location1Idx && (action.actionId == ActionId::MoveLocation || action.actionId == ActionId::MoveUnits || action.actionId == ActionId::Order) )
                action.number = location2Idx
            else if ( action.number == location2Idx && (action.actionId == ActionId::MoveLocation || action.actionId == ActionId::MoveUnits || action.actionId == ActionId::Order) )
                action.number = location1Idx

Rs_yes-im4real - Clan Aura -

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Aug 25 2018, 9:47 pm Suicidal Insanity Post #763

I see you !

Implementing that isn't an issue, making it intuitive + working with plugins / external programs is a problem.

Sep 2 2018, 1:11 pm Suicidal Insanity Post #764

I see you !

New version up with a few minor fixes (+ some internal changes that shouldn't be noticeable)

Sep 11 2018, 9:58 am Excalibur Post #765

The sword and the faith

Was going to look at this melee using the new SCR ramps but getting that error when trying to open.

SEN Global Moderator and Resident Zealot
The sword and the faith.

Sector 12
My stream, live PC building and tech discussion.

Sep 12 2018, 10:28 pm Suicidal Insanity Post #766

I see you !

Loads fine for me. What does the extended error log say?

Sep 14 2018, 5:59 am Pr0nogo Post #767

Resizing over and over again results in losing all isometric tile data (new isom brushwork turns everything into rectangles). Undoing doesn't fix it. Very frustrating bug.

Sep 14 2018, 7:34 am Suicidal Insanity Post #768

I see you !

Undoing should restore the original state. Isom was never designed for resizing, so I have seen resizing end up making single clicks place cliffs across the entire map.

Can you write up a repro series of steps, then I will take a look?

Sep 14 2018, 8:12 pm Pr0nogo Post #769

I made a 160x96 map, resized it to 192x96 with a width offset of 16, undo, resized it to 192x96 again with a width offset of -16, then terrained some more before resizing it to 192x96, width offset 16. Isom was broken after that.

Sep 14 2018, 8:57 pm Suicidal Insanity Post #770

I see you !

Just tried that and it works for me. Wonder if it had something to do with undoing

Sep 15 2018, 12:36 am Pr0nogo Post #771

Try this map. Resizing to 224x96 with a negative width offset of 8 results in losing isom. Resizing to 224x96 with a positive width offset of 8 creates null tiles that behave oddly when brushed over with isom.

edit: any idea what causes the anywhere location to be editable?

Post has been edited 1 time(s), last time on Sep 15 2018, 2:12 am by Pr0nogo.

Sep 15 2018, 9:48 pm Suicidal Insanity Post #772

I see you !

I get the null tiles - as I said the isom algorithm wasn't designed with resizing in mind, and I do not have a perfect way of expanding the isom map when the boundaries countain cliffs. I still do not lose isom. I am using the default tile type (water) for new areas.

Anywhere location: Whenever a location is changed the entry in the tree is updated. Since the anywhere location usually is never changed, the UI code did not ignore changes to the location and thus added an entry for it after it was resized.

Sep 16 2018, 12:48 am Pr0nogo Post #773

Well I lose isom every time following those steps. I don't have a custom tileset loaded in the profile and my map isn't saved as remaster only so I don't know what would be different between our setups.

Sep 27 2018, 4:35 pm Pr0nogo Post #774

Any desire to allow for multiple tiles to be selected at once from the tileset indexed window? I have thousands of custom tiles and placing them one by one into a palette map is exhausting.
edit: seems like maps with width greater than 256 don't support minimaps, hope that can be fixed too

Post has been edited 1 time(s), last time on Sep 28 2018, 12:00 pm by Pr0nogo.

Oct 2 2018, 10:41 pm Suicidal Insanity Post #775

I see you !

Been out of town ...

Multiselection in the tileset palette is on my todo list. I just never decided on a good UI for that. Maybe I'll just do it one way and see if I can come up with a better way afterwards

The algorithm to select the minimap colors for maps > 256 tiles isn't implemented, if that is useful its probably a quick fix. (Until it turns out it isn't)

Oct 3 2018, 2:15 am Pr0nogo Post #776

A quick and dirty way to do multiselect is good for now. I expected just shift selecting would work fine.

> 256 is useful for terrain palettes.

edit: and being able to go to display options -> units and disable that would be really useful for doodading and decorating.

Post has been edited 1 time(s), last time on Oct 4 2018, 3:30 am by Pr0nogo.

Nov 10 2018, 9:47 pm Suicidal Insanity Post #777

I see you !

I'm thinking about adding full pathing preview. That involves a huge amount of work though. Is there any interest?

This is the long path preview, if I send every unit to the same point:

The detailed path is missing, which is a lot more involved.

Prongo: edit: and being able to go to display options -> units and disable that would be really useful for doodading and decorating. <= What do you mean by that? Do you mean not displaying any units at all?

Post has been edited 2 time(s), last time on Nov 10 2018, 9:58 pm by Suicidal Insanity.

Nov 11 2018, 12:05 am Pr0nogo Post #778

I would definitely use the pathfinding preview, though my above requests are more pressing for me personally. Yes, I mean hiding all units and showing only terrain/doodads/sprites plus any overlays.

Nov 11 2018, 2:24 am DarkenedFantasies Post #779

Roy's Secret Service

I think I would use it as well, but I second that it's not a high-priority feature.

Nov 12 2018, 7:01 pm Suicidal Insanity Post #780

I see you !

Should I require saving as SCX once non-default player colors have been selected?

Pages: < 1 37 38 39 40 4155 >
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[11:34 pm]
Wing Zero -- Ya'll ever forget your birthday? Cause I just did.
[10:00 pm]
GGmano -- My colour pink ehhh
[09:27 pm]
NudeRaider -- man I hate combo breakers
[09:21 pm]
RdeRenato -- I want to play doom eternal :c
[09:10 pm]
MTiger156 -- New DBZ game is pretty dank. I almost feel like reviving my bad attempt at DBZ All Sagas Remastered.
[08:09 pm]
Vrael -- :yahoo: is acceptable but it should be followed up with a :wob:
[07:41 pm]
Doodan -- :yahoo:
[07:06 pm]
NudeRaider -- :wob:
[05:34 pm]
lil-Inferno -- :wob:
[04:42 pm]
jjf28 -- :wob:
Please log in to shout.

Members Online: Roy, Dem0n, torpeda1811448926, jjf28, nowicjusz129158, Wing Zero