I developed a nice GUI parser for starcraft 2 triggers.
It can parse trigger, but also custom actions, events, conditions, function, records and preset. It'll automatically detect which
kind of code you give.
This is really cool... If we can get it in English, that'd be great, IaMfReNcH. SC2Mapster can parse BBCode, just select it from the drop down menu of your post. It should work on here flawlessly, as is. Except for the fact that it's in French instead of English.
I found need change, sc2.php line 16 $sc2folder = $wc3baseurl.'/images/triggers/folder.jpg';
-----------------------------------------------------------------------------------------------------------------------------------
I setup remote_parse.php
But, i got error.
If i insert this line
a variable = 0 <Integer>
another variable = 0 <Integer>
get below line.
<
integer><
integer>
Finally, how to setup languages?
Shit, AJAX trouble in Korean text
PS sry for my bad english, My country is Non-English speaking countries
but there was no errors. Could you show me where did you setup the remote parser ?
PS: It was not intended to be usable only by phpbb. You just need to replace the $text to be parsed with
"<div class=\"sc2gui\">".sc2_gui_parser($text)."</div>"
So you can use it wherever you want (most likely in a bbcode, but anywhere else is fine.).
... I don't know how to deal with korean charset, sry ... but you may be able to use direct parsing when generating the page.
Now updated the sources (added a way to customize trigger list's width)
And I added some instruction to implement this to vbulletin (read my reply to my own post)
hi,
I developed a nice GUI parser for starcraft 2 triggers.
It can parse trigger, but also custom actions, events, conditions, function, records and preset. It'll automatically detect which kind of code you give.
Here is a sample: http://bwef.co.cc/sf1-warcraft-iii-sf/reglement-news-infos-f36/bbcode-gui-pour-sc2-t239.html
Just ask me if you want the code to add it to sc2mapster.
Notice: I'm actually too lazy to configure it to work with English editor locales, but it can easily be.
Does it work for english? What language is that written in? PHP?
Looks really cool, i hope if we do pick it up we can work it in to wikicreole too haha
yeah, I coded in php.
Yet it does not work for english, but I made it so it read configuration files in which you can add every matches you need for every languages.
I coded it separately from bbcode. It's a parsing function which is called by bbcode on my forum, but you can call it wherever you want.
This is really cool... If we can get it in English, that'd be great, IaMfReNcH. SC2Mapster can parse BBCode, just select it from the drop down menu of your post. It should work on here flawlessly, as is. Except for the fact that it's in French instead of English.
the function doesn't need to be called within a bbcode. You can use WikiCreole or anything if you makes the binding.
vjeux got the code now, but he told that it won't be integrated since it's php, and the site is .net.
I just finished an ajax script to remote parse GUI: http://bwef.co.cc/sample_remote_parse.html (you can also try to parse your own triggers/functions/records...)
English locales added
Oh, you gave it to vjeux. Gotcha. Maybe we can work something out, thanks IAF.
Also, love the remote tool. Would we be able to get ahold of that?
remote parser installation guide is here: http://www.hiveworkshop.com/forums/starcraft-ii-408/bbcode-gui-starcraft-2-a-171378/#post1630033
now featuring huge enhancements ! check it out: http://bwef.co.cc/sample_remote_parse.html
Whoa, this is really nice, french. I'm loving the update.
now, last version is open source:
http://bwef.co.cc/sf2-starcraft-sf/reglement-news-infos-f36/now-download-the-starcraft-gui-bbcode-for-free-t247.html
How about the Remote Parser? Are you releasing the latest version of that?
well, the remote parser is very simple:
And the javascript can be found
It's can be use without bbcode parser(or phpbb) ?
If possible, how to configuration&using ?
I found need change, sc2.php line 16 $sc2folder = $wc3baseurl.'/images/triggers/folder.jpg';
-----------------------------------------------------------------------------------------------------------------------------------
I setup remote_parse.php
But, i got error.
If i insert this line
a variable = 0 <Integer>
another variable = 0 <Integer>
get below line.
<
integer><
integer>
Finally, how to setup languages?
Shit, AJAX trouble in Korean text
PS sry for my bad english, My country is Non-English speaking countries
this should be
$sc2folder = $sc2baseurl.'/images/triggers/folder.jpg';
updated now (messed this when updating my wc3's parser)
I tried: http://bwef.co.cc/sample_remote_parse.html to parse
a variable = 0 <Integer>
another variable = 0 <Integer>
but there was no errors. Could you show me where did you setup the remote parser ?
PS: It was not intended to be usable only by phpbb. You just need to replace the $text to be parsed with
"<div class=\"sc2gui\">".sc2_gui_parser($text)."</div>"
So you can use it wherever you want (most likely in a bbcode, but anywhere else is fine.).
@IaMfReNcH:
Oh, was wrong to say.
I make php file similar sample_remote_parse.html(also javascript file and parsesc2gui.php).
but can you give me the url, so I can watch ?
I solved <ineger> problem.
Can you tell me how to check charset. Korean text don't print correctly.
PHP doesn't do well :(
... I don't know how to deal with korean charset, sry ... but you may be able to use direct parsing when generating the page.
Now updated the sources (added a way to customize trigger list's width)
And I added some instruction to implement this to vbulletin (read my reply to my own post)
http://bwef.co.cc/sf1-warcraft-iii-sf/reglement-news-infos-f36/now-download-the-starcraft-gui-bbcode-for-free-t247.html
Yeah, works perfect.
Thx man.
------I finished working on korean text.
I'm using JAVASCRIPT encodeURIComponent() function,
php rawurldecode( iconv( "UTF-8", "CP949", $sources ) )
And, not using proxy.php.
:)