• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Unsolved] i need to know how i can port one of my warcraft 3 projects to starcraft 2

Status
Not open for further replies.
Level 25
Joined
May 11, 2007
Messages
4,650
It takes years of planning and practice and a travel to the monks of the north pole. But if you feel very confident, you can go to the map editor and click "Create new map".

I know, it's very hard, but you should be able to do it.
 
Level 21
Joined
Mar 2, 2010
Messages
3,069
please dont make fun of my topic. i have already tried to create a starcraft 2 version of the map but i couldnt save it. i need knowledge on how to create the system that i created in that warcraft 3 map in a starcraft 2 map. i need information that i dont have so i marked the topic with need info. please help me out.
 
Me for myself I don't have the SC2 editor, but the question is too general I think.

You can't just copy your triggers from a wc3 map into a sc2 map. You have to create all from sratch again.

If you have a problem with creating a specific trigger, or a methode how to do it you can say so... so people can immediatly see if they know a solution of not.

I think DrSuperGood has good knowledge about SC2 editor. He might help you more, if you ask him.
 
Level 25
Joined
May 11, 2007
Messages
4,650
please dont make fun of my topic. i have already tried to create a starcraft 2 version of the map but i couldnt save it. i need knowledge on how to create the system that i created in that warcraft 3 map in a starcraft 2 map. i need information that i dont have so i marked the topic with need info. please help me out.

You attached an empty map. There is nothing on it?
 
Level 9
Joined
Dec 21, 2006
Messages
490
sc2 has most of the stuff wc3 had (only the hero part is a bit messy). i see no problem in recreating trigger parts of your map. you just have to type it in the sc2editor with the very same events, conditions and actions.
data is the tricky part.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,259
ress and plant
Can be done in data editor. Trees have to be units since there is no destructible types in SC2 (mineral fields are a unit). You will need to make a tree unit, give it a unit actor with a tree model and also a footprint. For full randomness you will need a trigger enhanced effect which simply does what you did in WC3 (random point nearby the source unit).

acti
Fully part of data editor. Use a behaviour type ability to turn on and off the periodic effect that creates trees. You could use triggers to create special dialog buttons as well.

cheat enabler
Pretty much translates line for line into SC2 GUI.

trees
Fully possible in data editor. Since you cannot let the units (trees) die permanently you can just pick them with a search area effect and then remove a dead behaviour from them. A dead behaviour is like incapacitated from the campaign, the unit plays a death animation and is paused but is still alive. Removing the behaviour returns the unit to normal. Use a buff behaviour to block fatal blows.

cheat codes
Another line for line conversion.

Untitled Trigger 003
No map should ever have a trigger like this. You basically force 4 constant units to a constant player every second. Very wasteful. Rather do it once or on ownership change events.

activator
Why the heck are you defeating player 2 almost instantly? I mean if I was defeated like that you can be sure I will rate your map as low as possible. The can either be replaced by dialogs or by a leader board (no context so cannot tell which).

construction
Create a region containing both rects. Test the point of where the building is finished and if inside the region add it to the total. If not then remove the building and make an unit representing an item form of the building.

Melee Initialization
Not possible to port directly due to fundamental mechanic differences. Most can be recreated in the data editor such as hero limits, town portal scroll and day/night system. Removing creeps is a simple area search around all start locations and removing any hostile units. Starting units is creating your starting units at the start locations for a player. Melee AI can be made in the trigger editor now (how is up to you and what you want your map to do). Alliances are pretty much 1:1 in SC2.

day 1-6
Circular region, attach it to the unit. Event when unit enters region. Actions pretty much the same for the floating text stuff (not sure how SC2 does that, just know it can).

I am too tired to explain the rest. All your triggers are pretty trivial anyway I would recommend not porting them and instead going back to design phase and coming up with better ways to implement them. Even in WC3 those triggers leak and are inefficient. Sure leaking is not a problem in SC2 but efficiency still is and your map will lag bad if you run everything whenever anything does something.
 
Level 21
Joined
Mar 2, 2010
Messages
3,069
the things with the trees is just a part of the warcraft 3 resource system so, i would just need something similar based on the starcraft 2 resource system. town portal scroll and day/night system is just stuff in warcraft 3 that i dont use in that project but didnt remove. the project is single player but i needed a player that was inactive for the task givers so player 2 is a computer player that gets defeated. in warcraft 3 i am using a multiboard for the points and that is important to transfer as well. please help me out.
 
Level 21
Joined
Mar 2, 2010
Messages
3,069
i dont ask you do do the work for me. i am asking for knowledge so that i can do the work myself. i still dont have the slightest idea how to create the point system but i have already done the text work myself. now however i am stuck because i dont have the knowledge to continue. i still need to create the point system so please help me out.
 
Last edited:
Level 25
Joined
May 11, 2007
Messages
4,650
Basicly Andreas, go play with the editor more. Currently I feel like you're asking us how to do trivial things which you could probably do yourself if you just spend some more time in the editor.

That being said, who is going to use your schedule for children in Starcraft 2? Like when does a child need a game to tell him to go outside and play with his/her friends?
 
Level 21
Joined
Mar 2, 2010
Messages
3,069
i got a request to create that system and when people ask me for favors like that i dont want to let them down. the point system in the warcraft 3 project uses a multiboard to show points generated by text commands written by the user. i need to create something similar in starcraft 2. how can i do that.
 
Level 21
Joined
Mar 2, 2010
Messages
3,069
you could have just checked the warcraft 3 map but since you didnt i will tell you myself. the project is based around tasks done in the real world. each task have its own command and point value. there is 5 tasks a day and also a command that can be used if all tasks within a day are done in addition to one for each task.
 
Level 21
Joined
Mar 2, 2010
Messages
3,069
i wasnt referring to augmented reality. the project requires 2 people to work of which only one knows the commands. i am just the developer though. all i ask for is knowledge on how to create the system i wrote about in the last post. please tell me how to create that system.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,259
Using the following standard meanings...
A "task" is composed of several related "jobs" and represents a use of "resources" for a specific unit of time. Tasks may have deadlines which failure to meet can be considered a fatal system error in the case of a real-time computing system. I do not think this is what you mean by the term but is the standard meaning with respects to computer systems.
A "command" is something input into a command interpreter that results in an action of sorts. This is about the only thing I think I understand what you are after (chat messages are the command source).
A "point" is a point object representing a position in the play field of StarCraft II.
The term "real world" refers to activities done outside and unrelated to StarCraft II or possibly even a computer. Why are you bringing this up with respects to a StarCraft II system?

I am unable to understand what you are after. You will need to explain more clearly.
 
Level 21
Joined
Mar 2, 2010
Messages
3,069
the tasks are entirely in the real world and have nothing to do with the starcraft 2 project directly. the project is just used for registration og completed tasks and points gained. commands are written text that corresponds to each task within a specific day. (for example day 1 task 1) each command need to add a specific number of points to the points total. in warcraft 3 i used a multiboard to display the points but how can i display them in starcraft 2.(points in the case is numbers.)
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,259
What defines a day? In game day or real life day? The game has no sense of time outside of game time.

I do not understand what you are having problems doing since it is literally 1:1 with WC3 on this.

You use the event "player enters chat message" and match that with some string representing the command. You then increment a integer variable (number of points a player has) by an amount. You then call a display update action which will show the new points to the player. I would advise using a leaderboard since that is more like the old multi boards but more convenient for this sort of task than using dialogs.

Variables are made like triggers, by right clicking the left trigger explorer view (all the folders are shown there) and choosing to make a new variable. You can create a custom action definition like that as well. There are tons of tutorials around the internet which will get you up to speed how to make simple triggers like the ones you require.

Anyway here it is.
The following commands are supported...
-newday
-task1
-task2
-task3
-task4
-task5
 

Attachments

  • task system from wc3.SC2Map
    12.2 KB · Views: 227
Last edited:

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,259
i can only find conditions for units and items which is kind of limiting. i was hoping to place all of the text commands in one trigger but that requires a string condition(string comparison) and there is none. do you know why blizzard removed it.(it was in warcraft 3)
Maybe you are just not finding it? I used string comparisons twice in the example map I attached above. Like you wanted, 1 trigger for all commands (the other trigger was for data initialization).

What is great is they give you nice string natives to break apart a string into words. The first word can be viewed as the command with subsequent words as the arguments. This makes interpreting commands super easy.
 
Level 21
Joined
Mar 2, 2010
Messages
3,069
i looked through the entire conditions tree and all the condition i found was unit and item conditions. i am dealing with neither units nor items here so that prevents me from using conditions. i am however in the process of placing each command in a different trigger so i only lost a little work. do you know or do you not know why blizzard limited the conditions so much in starcraft 2.(i just want to know.)
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,259
do you know or do you not know why blizzard limited the conditions so much in starcraft 2.(i just want to know.)
Because they are not limited at all. Just apparently they have usability problems for some people.

You need to modify the root condition on the left to see all types. By default it places some unit related condition there which is confusing you (what you are looking at is to pass that function a value, not set the base type of the comparison as to do that you will need to modify the function used and not the argument you pass it).

Why have you not looked at my map where I clearly show a string comparison in work? Why are you asking the same questions that I answered 12 hours ago?

i am dealing with neither units nor items here so that prevents me from using conditions.
Well then use a comparison of an appropriate type? It should be noted that you can do a case sensitive string compare using a simple '=='/'!=' comparison. For case insensitive comparision you need to use the native which returns a boolean that you test..

i am however in the process of placing each command in a different trigger so i only lost a little work.
Maybe you should look at the example map I made? It shows one way of putting all commands in a single trigger.
 
i can only find conditions for units and items which is kind of limiting. i was hoping to place all of the text commands in one trigger but that requires a string condition(string comparison) and there is none. do you know why blizzard removed it.(it was in warcraft 3)

You're not looking hard enough.
hcldVykrf-8Q-w3a1tq3wt6oBdWEqMjRdO7iiG_A2os
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,259
i dont use hacked editors but i dont mind using separate triggers
Apparently you do since what Statharas posted is exactly what the StarCraft II Editor does for everyone. I can confirm this with the a moderator over at SC2 Mapster if you want extra opinions.

i need to know how i can convert an integer to string and then display that in a leader board since starcraft 2 dont seem to have multiboards yet.
Have you bothered to open the map I posted earlier? I refuse to help you any further answering questions I already answered in the map that you seem to be refusing to open. If you do not at least open the map and try and look at it I am afraid I will need to consider this a huge troll and will not be able to help you any further and may even seek action against you for wasting my time that I could have used helping other people who do listen and look at examples I give them. Maybe if I make this link text long enough you will not miss it like last time. I really am trying to help but you seem to not be getting anything people are saying...

Just in case you still miss clicking the map link directly above, here is the main trigger extracted for you.
Code:
CLI
    Events
        Game - Player Any Player types a chat message containing "-", matching Partially
    Local Variables
        index = 0 <Integer>
        command = (Word 1 of (String((Entered chat string)) as Lower Case)) <String>
    Conditions
        ((Substring((Entered chat string), 1, 1)) is equal to "-" (Insensitive to case)) == True
    Actions
        General - Switch (Actions) depending on command
            Cases
                General - If ("-newday")
                    Actions
                        General - For each integer index from 1 to TASK_N with increment 1, do (Actions)
                            Actions
                                Variable - Set Task Complete[index].done today = False
                        UI - Display "Day advanced." for (All players) to Subtitle area
            Default
        General - For each integer index from 1 to TASK_N with increment 1, do (Actions)
            Actions
                General - If (Conditions) then do (Actions) else do (Actions)
                    If
                        (command is equal to Task Complete[index].command code (Insensitive to case)) == True
                    Then
                        General - If (Conditions) then do (Actions) else do (Actions)
                            If
                                Task Complete[index].done today == False
                            Then
                                Variable - Modify Points: + Task Complete[index].point value
                                Variable - Set Task Complete[index].done today = True
                                Leaderboard - Set Task Leaderboard item text at column 2 and row 2 to (Text(Points))
                                UI - Display "Task done." for (All players) to Subtitle area
                            Else
                                General - Break
                    Else
 
Level 21
Joined
Mar 2, 2010
Messages
3,069
good for you that i have been forbidden from reporting users. if i report someone i get banned right away. dont you think you have harmed me enough already.(you got me marked as problematic for months.) if then else is empty so i cant use it for anything yet. i use only legal editors and that leaves me with certain limitations. please provide a solution that is within those limitations.
 
Level 25
Joined
May 11, 2007
Messages
4,650
Must resist flaming... ... .. You ask for help, you get the help and then you tell him he's abusing you?..

All the actions are there, just spend some time and you will be able to solve this yourself instead of asking the same questions over and over.
 
Level 25
Joined
May 11, 2007
Messages
4,650
Good. Now launch it. Then download this. The map that Supergood gave to you.

Now in the Editor. Follow these simple steps.

1.png

1. Put the downloaded map in the same map folder as your other maps are.

2.png

2. Click Open...

3.png

3. Select the map that Supergood made for you. Then click on OK button.

4.png

4. You should be here, then something went wrong. Repeat steps 1-3.

5.png

5. Open the Trigger Editor (F6). You should now be in the trigger editor.

6.png

6. Select a trigger. Look at what the trigger says.

6_logo_predesign.jpg

7. If in doubt, make a post here or use this magical search engine. Or use one of your own choice.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,259
good for you that i have been forbidden from reporting users. if i report someone i get banned right away. dont you think you have harmed me enough already.(you got me marked as problematic for months.)
So this entire thread is you trying to get back at me for something I never did? When I was a moderator there was not really any facility to mark people as "problematic" next to when some moderator noticed a trend representing that person and even then few did. Generally moderation was very binary, at least back then but who am I to comment as technically I was problematic.

if then else is empty so i cant use it for anything yet
Right click and add new element. This only applies for the multiple if then else if else statement. For standard else you just declare the final element with no condition which is kind of neat and sadly slightly unobvious to new users.

You also have a single if then else statement (no N number of else if supported) which is useful for simple decisions and sort of mimics the rubbish WC3 GUI gave you (in JASS you have the else if then support, just not in GUI).

Finally you have an entirely new construct that comes from the C nature of galaxy script. This is the switch construct or case statement which you may be familiar from other languages. This takes a single value as input and then compares it to certain constants or does a default (unlike if then else if else statement, this has a special section for default case). What is the point of the switch over an if else if else? Compilers can often compile switch statements more efficiently by ordering the cases such that algorthims like binary search can be used to decrease the complexity from O(n) to O(logn) with very little iteration overhead which results in massive saving of time for large case statements. The disadvantage is that it can only test the value against a set of cases as opposed to if else if else which allows you to test any number of conditions with a priority to make a decision. In GUI the break statements are added automatically at the end of each case which hides possible optimizations for multiple cases running the same actions. In GUI you need to add cases by right clicking the case section and adding a new element.

i use only legal editors and that leaves me with certain limitations. please provide a solution that is within those limitations.
I am guessing you must be using a beta or alpha editor then since these "limitations" do not exist in the current version of StarCraft II. I advise downloading the battlenet app an then logging in with your BattleNet account. Select StarCraft II from the game selection menu on the left and click play (or install). If it has done patching, installing and any other sort of setup you will be using the same version of the editor as I do (and most people do) which supports everything described above including opening the demo map I gave you which you seem to still be ignoring. This is the "official" version of the editor as it is installed and updated along with StarCraft II, based on the current live version provided by Blizzard.

We will not help you with non-current official versions of the editor. This includes recently obsoleted versions of the editor or hacked versions that try to bypass the verification process Blizzard has in place. If you want to use the editor you will need to buy the game as I do not think the Arcade pass covers full use of the editor.

i cant find what people are suggesting because of editor limitation. please provide a solution that works in the editor i have.
We will not help you with non-current official versions of the editor. This includes recently obsoleted versions of the editor or hacked versions that try to bypass the verification process Blizzard has in place. If you want to use the editor you will need to buy the game as I do not think the Arcade pass covers full use of the editor.
 
Level 25
Joined
May 11, 2007
Messages
4,650
Good. Now launch it. Then download this. The map that Supergood gave to you.

Now in the Editor. Follow these simple steps.

1.png

1. Put the downloaded map in the same map folder as your other maps are.

2.png

2. Click Open...

3.png

3. Select the map that Supergood made for you. Then click on OK button.

4.png

4. You should be here, then something went wrong. Repeat steps 1-3.

5.png

5. Open the Trigger Editor (F6). You should now be in the trigger editor.

6.png

6. Select a trigger. Look at what the trigger says.

6_logo_predesign.jpg

7. If in doubt, make a post here or use this magical search engine. Or use one of your own choice.
Bumping this so he sees it. (Just because I can!)
 
Level 21
Joined
Mar 2, 2010
Messages
3,069
my editor is up to date i believe.(version 2.1.1) i can however update it without logging in so i only need to log in when i want to play online. the editor is still incomplete so the trigger have a choice that is listed as not yet implemented. i keep my editor updated so it should be recent enough.
 
my editor is called starcraft II editor and came with the game.
Theeeen why don't you toy around with it to learn it better like we did? I literally opened up the editor in class (haven't used it since I tested out the footman model me and blinky worked on) and opened up the trigger editor and set the conditions accordingly.


Maybe I have to point out how you should hit the All button on the left to see all the possible condition terms you can use. It's literally (*cough*) a fuckton.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,259
one thing i still dont understand however is how i can store a text in a text variable and then remove it from the field later.
Text has nothing to do with the play field. If you read my PM I explain clearly that a text instance is just a localized string that is not deterministic between clients so cannot affect gameplay but can affect what users see (as that is also not deterministic).

my editor is up to date i believe.(version 2.1.1) i can however update it without logging in so i only need to log in when i want to play online. the editor is still incomplete so the trigger have a choice that is listed as not yet implemented. i keep my editor updated so it should be recent enough.
Please comeback when you are using only the most recent version of the editor which does have all that stuff in. We will only help you with the official editor that can do all the stuff we have been describing. If your editor can already do that then good, if not then reinstall and re-download all 8-12 GB of game files.
 
Status
Not open for further replies.
Top