| 07-29-2007, 06:51 PM | #46 |
> Yes, the int: ??? shouldn't be there. Ah that makes sense too, thanks :) And that rewritten version would probably be very helpful to me, could you at least post it here if you don't have the time to update? |
| 07-29-2007, 08:14 PM | #47 |
Here's the interesting bits: Code:
ECA Structure
int: ECA type (0=event, 1=condition, 2=action, 3=call)
optional if this is not a top-level ECA
int: branch (0=if-conditions, 1=then-actions, 2=else-actions, if the parent is not an if/then/else this will be 0 because there's only one branch)
string: name
int: enabled (0=disabled, 1=enabled)
"x" times a parameter structure (where "x" depends on the number of parameters defined in TriggerData.txt)
int: number "n" of children
"n" times an ECA structure (when parsing these child-ECAs we need to read the additinal branch-int mentioned above also)
Parameter Structure
int: Parameter type (0=preset, 1=variable, 2=function, 3=jass)
string: value
= preset name if paremeter type == 0
= variable name if parameter type == 1
= default display value when function is not found in TriggerData.txt if parameter type == 2
= jass string if parameter type == 3
int: functioncount "fc" (usually 0, only for parameter type is function it's 1)
"fc" times an ECA structure
int: arrayindexcount "ic" (usually 0, only if parameter type is variable and the variable is an array it's 1, as long as Blizz doesn't decide to invent multidimensional arrays it's safe to assume this can't be higher than 1 - lazy bastards)
"ic" times a Parameter structureOn a side note I have recently written C++ code that loads/writes TriggerData, TriggerStrings, wct and wtg data from files/memory. Maybe that would be more useful than the specs alone? |
| 07-30-2007, 12:11 AM | #48 |
yes, you should talk to BD about adding it to the .net library |
| 07-30-2007, 05:20 AM | #49 |
if only C++ was .net or .net was C++ ... Aw god, that would be terrible! |
| 07-30-2007, 05:26 AM | #50 | |
Quote:
Change a few symbols here and there and you've got managed c++ ;) |
| 07-30-2007, 10:44 PM | #51 |
ai version 2 |
| 07-30-2007, 11:05 PM | #52 |
If only managed C++ wasn't managed C++... |
| 07-30-2007, 11:11 PM | #53 |
the world would be a better place |
| 10-10-2007, 03:09 AM | #54 |
This document looks pretty strange on firefox on ubuntu, should use <ul> instead of funny characters for lists... |
| 10-10-2007, 07:17 AM | #55 |
It happened after the server move. It looked ok on Firefox before. I also have an updated version of it, but I don't know if the ftp will ever come back. |
| 09-02-2008, 06:11 PM | #56 |
A very nice resource. The 'more up to date' page shows up in broken html though. |
| 09-05-2008, 04:45 PM | #57 | |
Quote:
You'll have to right-click save-as it, then open it locally. |
| 10-26-2008, 12:31 AM | #58 |
Could you mention that the coordinates for the war3map.wpm start at the bottom left corner? (0,0 being bottom left, width,height being top right) Although I could be wrong, it doesn't appear to be noted anywhere. I just spent awhile trying to debug a program that messed with the war3map.wpm only to realize that the origin was not at the top left as I had originally expected it to be. |
| 12-05-2008, 12:50 PM | #59 |
Some new stuff about blps right there: http://wc3campaigns.net/showthread.php?t=103242 |
| 10-07-2013, 11:34 PM | #60 |
I'm attaching this updated version again since it was lost in the last downtime. Just note that the external links in the attachment will lead you to dropbox (e.g. for the other specs, like KMK's MDX specs or Magos' BLP specs). If you need to look at those, just look at the original HTML doc in the first post. |
