A huge problem with the dialogs in the Starcraft 2 Editor is the preview : you must to launch the game to see if what you want will be the same in game.
This map have a simple aim : to help developpers to make dialogs in game. After that, a developper can go to the editor and reproduce the same dialog interface, but by having all offsets, width, height you will need, without to test your map every 3 seconds.
I'll try to save all most questions to the Q-A page. If you have any questions or problems, let's go :)
Sorry for the double post, i want also propose to all RPG makers using this system 3 icons to replace the "!"/"?"/"?" tags ingame.
You can import these images in the Library folder > Constants > Available Text Tag and others text tags constants. Replace the text by these 3 pictures.
Library Updated. For the moment only an EN version.
Quote:
Resolving bugs
A huge wave of bugs will be resolved with the 1.2 version of the library.
Talk to Unit from Unit
Solved a a huge bug when this funtion is used.
Quest Log Bug
Solved a bug about the Quest Information Dialog (in Quest Log).
Text Tags Bug
Solved an issue when a unit appears on the map. A created unit-type used by any quest will have the quest tag, as others starting units.
Item Stack Bug
Solved an issue with the "Set Number of Stack of Item" in Stacking Library.
Solved an issue with the "Get Number of Stack of Item" in Stacking Library.
Solved an issue with stacking items.
Text Tags Constants Bug
Solved a bug that makes the Constant Text Tags useless.
Player Alliance Bug
Solved a bug with some triggers in the QL Library when you use the "Kill Unit" trigger.
Validation Window Bug
Solved an issue that provokes error when required items don't have the same Id as the button.
Solved an issue with the count of required items if the required number of items is more than 9.
Funtions changes
Constant - Set Experience Effect Constant to Effect.
Deprecated with GE 1.1.
Dialog - Show/Hide Quest Dialog for Player.
Parameters:
Showing Mode - Show/Hide
New functions
Game - Constant - Authorize/Unauthorize movement when accepting a quest.
Parameters:
Authorization Mode - Authorize/Unauthorize
Game - Get Quests Units Group
Use this function to retreive all units who proposes quests.
Game - Get Quest State by Quest Id for Player
Parameters:
Integer - Quest Id
Integer - Player
Returns the status of the specified quest id for this player.
Others
Localizations
The next version will be released with 2 localizations:
French
English
Portraits on units
The Quest windows has now a portrait at the left side.
I have a small problem with my QL Library, i hope you can help me :)
I would like to retreive the Portrait model game-link of the main actor from a specified unit-type. The goal is to show a portrait model when you talk to the unit.
I don't find functions to get this model (the Actor Game-link variable doesn't have any getter function). I can use the Actor variable type but i cannot convert this Actor game type to a Actor Game-Link variable type.
I'm also trying to find any solution with the Catalog, but i cannot retreive the name of the main actor since a unit game-link variable.
The update of libraries is a very huge problem for the moment.
This tutorial shows you how to solve the problem with some conditions.
The difficulty of this manipulation can be rated "Medium".
The main word to resolve this problem is : XML.
Note: English is not my main language. If you can help me if some sentences are false, thank you very much! The pictures show to you the french version.
Prerequisites
Softwares
Some editor for .txt (gEdit, Notepad, Notepad + +, ...)
MPQEditor
Knowledges
Windows or Mac fluent manipulations (copy/paste/edit file).
What is the problem ?
When you want to update a library, the main problem is about you must to rewrite all triggers. If you try to delete the old version of a library, all parameters of triggers using this old library are deleted. It's a huge problem... But it can be solve if the programmer of the library has kept the main functions Id's.
How to do that ?
Note: This tutorial will be made with 2 versions of my custom library "QuestLine".
Step 1: What is my libraries ID ?
Open your project. Save as new file (to make a back-up) and go to Trigger Editor.
Import the new library update.
In this example you can see 2 libraries. The goal will be to convert all "QuestLine v1.1" functions to "QuestLine v1.11" functions.
Right click on the old library. Go to Library > Change Library ID. Note the library ID somewhere.
2 cases can appears:
1.) The first is the most common: the library ID is here and you can note this ID.
2.) The library ID is not here. If you have the problem, close this window and check the order of your library. Don't notice the natives functions (Integrated library). Only the order of your libraries without generated id. In my example, the old library don't have any library ID.
The id of this library will be "1".
Step 2: Reach Triggers XML file
Save and exit GalaxyEditor.
Open MPQEditor and open your project.
Check the file name "Trigger". Forward this file to your desktop.
Open this file with any text editor (Notepad, Notepad + +, gEdit, ...)
Your editor shows you this kind of picture:
Don't go away! Use only your eyes... and the Find window.
Step 3: Edit Triggers file
Open the Find window and search: "Library Id=" (Loop option checked).
Your editor must find this:
Check with your notes about library ID. In this example, the new library have the ID A06EFA08. All information under this tag are in the new library. This ID is the reference of your new library.
Research the next library id with the same way.
Your editor - in my example - find:
This is the old library, with no Library ID defined. All information under this tag are in the old library. This ID is the reference of your old library.
Now, search "<Root>".
All information under the "Root" tag are very important. You find here all information about the triggers of your map (libraries excluded).
To do that for all lignes, move your cursor after the
<Root>
(...)
</Root>
Open the Find and Replace window.
In the "Find" field, tape " Library="1" ". In the "Replace" field, tape " Library="A06EFA08" ".
Be carreful, before to do that, UNCHECK THE LOOP OPTION.
Save your file.
Step 4: Forward into the SC2Map file
Forward your edited file "Triggers" to the MPQEditor to replace the old file.
Close the file with MPQEditor.
Open your SC2Map file with GalaxyEditor.
Go to the Trigger Editor.
Try to save your project. The project must be saved to confirm the changes. If some functions have changed, some errors can occurs. Identify these errors and resolve it.
The End
All is done. To be sure about the modification, select a library-sided function and tape Enter. Check the name in the Action window. If the name has changed, it's fine.
You can now remove the older library and continue to coding with the new updated library :)
And I have same problem what DoubleElite had ''when I complete a quest that gives exp, I get two errors and exp is not awarded.'' How to fix that??? =/ I have done that effect (actually I copied effect straight from your example map) and done that action to set experience effect with the event map initialization... =(
Well, i don't understand why you have this bug and not me oO
Perhaps a language conversion problem ?
You have normally the access to the content of the library, check this:
2.) Function: QuestLine Library > Functions > Give Experience
GiveExperienceOptions:Action,CreatethreadReturntype:(Nothing)ParametersAmount=0<Integerr>Unit=NoUnit<Unit>GrammaticalText:GiveAmountExperiencetoUnit.Advicetext:(Nothing)CustomcodeLocalvariablesActionsCatalogue-SettheCatalogvalueofEffects[CONST] Experience Effect String "XP" for player (Owner of Unit) as (String (Amount))
Environnement - Execute Give Experience Effect on Unit from (Owner of Unit)
Is it the same code ? This is very surprising... oO
What is these errors ? Open debug frame and report me that please :]
[EDIT] New version of GE will be released tomorrow. I will use the new function to add experience. No bugs. No constants to setup ^^
Version 1.2 will be probably released wednesday, 13 o'clock (GMT+1).
(...)I'm using this in my side scrolling multiplayer rpg but there is 1 problem: when you click ''drop this quest'' when you have no guest it opens menu where I can accept one quest what i have done (see attached image) =S (...)
It's strange. The Drop Quest button is protected with a condition that ignores when selected id is less than 1. I'm trying to make the same bug with the library 1.1 but i cannot reproduce this bug.
I have an idea. How do you make this ? :
Open the Quest Log
Finish the quest
Click to the finished quest
Click "Drop"
The Quest Log is not refreshed, and if you'll try to drop this finished quest, it's possible that this action cause some bugs as this example.
I can only call the Refresh Quest Log method in the 1.1 library to attempt to delete this bug. This should be sufficient.
All new functions and function changes are noticed here. I'm belgium, the library version 1.1 will be released this evening (at GMT+1), thus it will be this afternooon for americans.
0
The save will be done on a SC2Bank file. One SC2Bank file by "project".
0
Map Version - BĂȘta 3.5
Synopsis
A huge problem with the dialogs in the Starcraft 2 Editor is the preview : you must to launch the game to see if what you want will be the same in game.
This map have a simple aim : to help developpers to make dialogs in game. After that, a developper can go to the editor and reproduce the same dialog interface, but by having all offsets, width, height you will need, without to test your map every 3 seconds.
Preview, videos, pictures
Small video of the interface :
Languages frFR, enUS and enGB are localized.
List of supported properties
Download & Links
Download Map | Project Page
0
Music added in my Itunes library
And the idea is very nice.
Perhaps need more animation on the background, but the entire video is very good :)
Thanks again for the music :P
0
French version for 1.2 released. English version for 1.2 updated. Example map (using 1.2) updated.
Have you got any problems with this version ? :)
0
I'll try to save all most questions to the Q-A page. If you have any questions or problems, let's go :)
Sorry for the double post, i want also propose to all RPG makers using this system 3 icons to replace the "!"/"?"/"?" tags ingame.
You can import these images in the Library folder > Constants > Available Text Tag and others text tags constants. Replace the text by these 3 pictures.
0
Library Updated. For the moment only an EN version.
PS: If you have any problems, see this page.
0
Hi !
I have a small problem with my QL Library, i hope you can help me :)
I would like to retreive the Portrait model game-link of the main actor from a specified unit-type. The goal is to show a portrait model when you talk to the unit.
I don't find functions to get this model (the Actor Game-link variable doesn't have any getter function). I can use the Actor variable type but i cannot convert this Actor game type to a Actor Game-Link variable type.
I'm also trying to find any solution with the Catalog, but i cannot retreive the name of the main actor since a unit game-link variable.
Any ideas to resolve this problem ?
In others words, i want to do that:
0
As I said by Private Message, a new version of the map will be released wednesday. Upcoming changes can be seen in the Project page.
BloodClud (or others), if you have same error as him, i would like to have a example map with this bug for understand why this bug occurs :)
[Edit] Version 1.12 this evening (GMT+1). The goal is to resolve a huge bug when using the "Talk to Unit from Unit" function.
[Edit] Updated. See Page Project.
0
/Bump! Sorry for the up :)
Some bugs are resolved with mods (Happy GE 1.1 !). The development of this project continue...
About hided mod, it seems to be locked. By this way, you cannot access to this mod for the moment.
Check this for incoming improvements.
0
Introduction
The update of libraries is a very huge problem for the moment. This tutorial shows you how to solve the problem with some conditions. The difficulty of this manipulation can be rated "Medium". The main word to resolve this problem is : XML.
Note: English is not my main language. If you can help me if some sentences are false, thank you very much! The pictures show to you the french version.
Prerequisites
Softwares
Knowledges
Windows or Mac fluent manipulations (copy/paste/edit file).
What is the problem ?
When you want to update a library, the main problem is about you must to rewrite all triggers. If you try to delete the old version of a library, all parameters of triggers using this old library are deleted. It's a huge problem... But it can be solve if the programmer of the library has kept the main functions Id's.
How to do that ?
Note: This tutorial will be made with 2 versions of my custom library "QuestLine".
Step 1: What is my libraries ID ?
Open your project. Save as new file (to make a back-up) and go to Trigger Editor. Import the new library update.
In this example you can see 2 libraries. The goal will be to convert all "QuestLine v1.1" functions to "QuestLine v1.11" functions.
Right click on the old library. Go to Library > Change Library ID. Note the library ID somewhere.
2 cases can appears:
The id of this library will be "1".
Step 2: Reach Triggers XML file
Save and exit GalaxyEditor. Open MPQEditor and open your project.
Check the file name "Trigger". Forward this file to your desktop. Open this file with any text editor (Notepad, Notepad + +, gEdit, ...)
Your editor shows you this kind of picture:
Don't go away! Use only your eyes... and the Find window.
Step 3: Edit Triggers file
Open the Find window and search: "Library Id=" (Loop option checked).
Your editor must find this:
Check with your notes about library ID. In this example, the new library have the ID A06EFA08. All information under this tag are in the new library. This ID is the reference of your new library.
Research the next library id with the same way.
Your editor - in my example - find:
This is the old library, with no Library ID defined. All information under this tag are in the old library. This ID is the reference of your old library.
Now, search "<Root>".
All information under the "Root" tag are very important. You find here all information about the triggers of your map (libraries excluded).
Slide down. Check the rest of the file:
See the highlighted text.
This line is very interesting:
With updated libraries, functions already created retain their ID. The Id field is useless. The Library field is on the other side very useful.
By changing the Library field id with the new id, you can solve your problems.
The last code becomes:
To do that for all lignes, move your cursor after the
Open the Find and Replace window.
In the "Find" field, tape " Library="1" ". In the "Replace" field, tape " Library="A06EFA08" ". Be carreful, before to do that, UNCHECK THE LOOP OPTION.
Save your file.
Step 4: Forward into the SC2Map file
Forward your edited file "Triggers" to the MPQEditor to replace the old file.
Close the file with MPQEditor. Open your SC2Map file with GalaxyEditor. Go to the Trigger Editor.
Try to save your project. The project must be saved to confirm the changes. If some functions have changed, some errors can occurs. Identify these errors and resolve it.
The End
All is done. To be sure about the modification, select a library-sided function and tape Enter. Check the name in the Action window. If the name has changed, it's fine.
You can now remove the older library and continue to coding with the new updated library :)
0
Try to change the library id to be the same than the older version of the library.
Save Your project before that, i don't know what this tip can make :s
0
Well, i don't understand why you have this bug and not me oO Perhaps a language conversion problem ?
You have normally the access to the content of the library, check this:
1.) Function: QuestLine Library > Functions > Constant - Set Experience Effect.
2.) Function: QuestLine Library > Functions > Give Experience
Is it the same code ? This is very surprising... oO
What is these errors ? Open debug frame and report me that please :]
[EDIT] New version of GE will be released tomorrow. I will use the new function to add experience. No bugs. No constants to setup ^^
Version 1.2 will be probably released wednesday, 13 o'clock (GMT+1).
[EDIT 2] Not a 1.2 version. Only 1.11 :)
QuestLine Library v1.11 | Example Map using QL v1.11
0
Well, i'm interested for sure!
0
QuestLine 1.1 available!
QuestLine Library v1.1 | Example Map using QL v1.1
I've missed to solve a small bug in the Quest Log. A translated version of example Map will be released tomorrow.
0
It's strange. The Drop Quest button is protected with a condition that ignores when selected id is less than 1. I'm trying to make the same bug with the library 1.1 but i cannot reproduce this bug.
I have an idea. How do you make this ? :
The Quest Log is not refreshed, and if you'll try to drop this finished quest, it's possible that this action cause some bugs as this example.
I can only call the Refresh Quest Log method in the 1.1 library to attempt to delete this bug. This should be sufficient.
All new functions and function changes are noticed here. I'm belgium, the library version 1.1 will be released this evening (at GMT+1), thus it will be this afternooon for americans.