|
|
#1 |
|
Free Software Terrorist
Technical Director
|
This is a quick and dirty editor for a map's wct file (The one that holds custom text triggers)
Initial version is able to mldly browse and edit the custom text triggers, note that right now there is no way for the program to tell whether a trigger is disabled o a comment or even what's the trigger name... But it does its job fine. One good feature is that you can export and import these (the custom text) files as a special type of .j file, you can use this feature to process the custom text triggers all grouped into a single file. BTW, the syntax of the generated file is jass/vJass compatible, unless you had disabled triggers in your map that didn't follow the jass syntax or had redundant functions. Next versions will also deal with the .wtg file and thus will be able to handle disabled triggers correctly. Roadmap ** Initial version: can only support wct editing, ignores wtg, this makes it unable to add triggers, or actually know information related to the triggers. Phase two: Will be able to handle .wtg if and only if there are no GUI triggers or GUI variables in the map, else it will go back to the limited mode we got in the initial version. This will allow you to create new custom text triggers, enable them externally (should be good against crazy WE not letting you enable them). Adding categories, controlling their adition order, etc. Phase three: will automatically convert GUI triggers into custom text and GUI variables into a vJass compatible globals block. Then allow the stuff described in phase two on other maps, if some action/event/function is unrecognized (the map was done by UMSWE or WEU and you don't have a complete triggerdata.txt) it will still default to limited mode. changelog:
0.2.0: Fixed a bug when saving maps with no custom script section comment. |
|
|
|
| Sponsored Links - Login to hide this ad! |
|
|
|
|
#2 |
|
master of fugue
Join Date: Jun 2007
Posts: 2,558
![]() ![]() ![]() ![]()
|
Correct be if I am wrong but would not it be much better for us who can use WE if we simple had global search/replace option in TESH ?
__________________ |
|
|
|
|
|
#3 |
|
Free Software Terrorist
Technical Director
|
Probably, but before that becomes an alternative, it would actually have to be implemented. I think it would be ass hard to implement something like that in TESH since that requires somebody to access WE's own data structure holding the custom text...
__________________Oh, another use, if you export the script then import it back it would automatically fix non-lame(windows) line breaks, I remember that tends to be an issue when apple users try to post their maps. |
|
|
|
|
|
#4 |
|
Rehabbing
|
sounds great, interested in trying this when I can
__________________so does this do syntax checks for you? TESH style highlghting, etc., or is simply like taking out the .j, editing it and putting it back in ( which would suck) Last edited by emjlr3 : 05-19-2008 at 01:15 PM. |
|
|
|
|
|
#5 |
|
Free Software Terrorist
Technical Director
|
I don't think it does any of those things.
__________________The main window just shows the triggers as when the old WE times, it is meant as a quick preview. Its main activity is to import/export the warcity script and then I like to use gvim to edit it, I guess somebody else could also use jasscraft on it, btw another possible use would be to generate those files and then have a tool that process them. To prevent confusion, the .j file is not war3map.j but something it generates from all the custom text triggers, it is a special .j file with some //! tags to distribute the custom text triggers. This is the first release and can only export the custom text in the 'limited' format, once I add .wtg handling support it will be able to do a lot of crazy things... -- *new version bump* |
|
|
|
|
|
#6 |
|
Obscurity, the Art
|
Can you not add the following two things to this --
__________________
|
|
|
|
|
|
#7 |
|
Free Software Terrorist
Technical Director
|
A list of triggers would just say trigger 1, trigger 2, trigger 3,... Reading the trigger names requires parsing the wtg which requires parsing some stuff that is a little over complicated, I blame GUI. Support for wtg is in the features queue though...
__________________ |
|
|
|
|
|
#9 |
|
( ~)>
Respected User
Join Date: Feb 2005
Posts: 959
![]() ![]()
|
You could just parse the nasty .wtg GUI :]
__________________ |
|
|
|
|
|
#10 |
|
User
Join Date: Sep 2006
Posts: 687
![]()
|
Darn, you cant see protected maps with this.
|
|
|
|
|
|
#11 |
|
Free Software Terrorist
Technical Director
|
'protected' maps don't usually even have a wct file, so a wct editor sounds extremely unrelated to them.
__________________ |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
|
Donate |