Staredit Network > Forums > SC1 Mapping Tools > Topic: SCMDraft Crashing
SCMDraft Crashing
Mar 11 2016, 1:50 pm
By: Shyster  

Mar 11 2016, 1:50 pm Shyster Post #1



Hey there, every time I go into the location layer TrigEdit crashes and it didn't used to be this way, so I assume I've done something wrong. I'm really tired of going into Xtra Edit, I had to copy all my sprites to another map so I could paste them back in after booting up Scmdraft again.

I could post the crash log if it would be useful.



Also, really off topic simple question - in a single player game (one human only, rest are AI) is there a way to detect single player so that a map must still be played in the multiplayer menus only?



None.

Mar 11 2016, 2:15 pm Roy Post #2

An artist's depiction of an Extended Unit Death

Try a different version of SCMD. There are like five different 0.8.0b versions out there because SI stopped updating it after a while, but the latest can be found here: http://www.staredit.net/topic/8307/

As for the single player detection, see this topic: http://www.staredit.net/topic/16947/

The center view method is the most stable and probably easier to understand. In essence, the behavior of Center View is instantaneous in multiplayer, but not in single player, so you just need to detect that there is a time difference in the "Center View" action.

Single Player Test
Players

  • All Players
  • Conditions

  • Always
  • Actions

  • Set Switch 1
  • Center view on 'Location 0'.
  • Clear Switch 1

  • This trigger in multiplayer will complete in a single cycle, and it will be as though Switch 1 was never set. In Single Player, however, "Center view" does a panning effect, so "Clear Switch 1" is blocked by it and other triggers are allowed to run. At this point, a second trigger will detect that Switch 1 is set. You can use this to do something that only happens on single player games:

    Single Player Detected
    Players

  • All Players
  • Conditions

  • Switch 1 is set
  • Actions

  • Display text message for the current player: "You must play this map on multiplayer."
  • End scenario in defeat for the current player.


  • Note that this is different from requiring two people to be playing the game: one player could play by herself on Battle.net just fine.

    Post has been edited 2 time(s), last time on Mar 11 2016, 2:37 pm by Roy.




    Mar 11 2016, 5:25 pm Shyster Post #3



    Wow that's neat, had no idea you could do that with center view. Very cool. Also thanks for the quick reply and the information - that's exactly what I needed. I did try searching beforehand but as you are no doubt aware the search can be slow and I didn't find anything. Thank you! <3



    None.

    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [05:27 pm]
    martosss -- If you can give me a solution that would fill P1 I'd appreciate it :)
    [05:26 pm]
    martosss -- So the game fills first the force with most open slots, then alternates ... I saw it in melee maps too - there all players are in the same force and even though the mode is top vs bottom, those 2 new forces are generic and joining players are filling the lobby from top to bottom because it's the same force. I've seen other maps where they Alternate and I assume that's because there the map had 2 forces
    [05:25 pm]
    martosss -- oops, can't write new lines .. oh well ... force1 : P1, force 2: P2, P3, P4, P5, P6, P7 ... force 3: CPU P8 and P2-6 gets filled first
    [05:24 pm]
    martosss -- no, jjf, my current setup is force1
    [04:00 pm]
    jjf28 -- I believe slots fill according to ascending player number, so if the observer is player 1, they'll land in that slot first, if the observer was player 8, they'll land in that slot last
    [02:57 pm]
    martosss -- Hey folks, a quick question ... when people enter a map lobby, can you force them to go in a particular force first? I have a map where there is 1 player, 6 spectators and 1 computer. The players always enter and go to the observer section first. I want them to first go to the player slot if it's free. Is that possible?
    [2020-8-14. : 7:35 am]
    MasterJohnny -- stole*
    [2020-8-14. : 7:35 am]
    MasterJohnny -- some russian asshole my battle.net account
    [2020-8-13. : 3:41 pm]
    Ultraviolet -- :wob:
    [2020-8-12. : 1:16 pm]
    Zycorax -- :wob:
    Please log in to shout.


    Members Online: jun3hong, Roy, Tyczka99