This summer I plan on making a tool to generate a trigger library from a map script. Libraries are XML files which I hope to be able to create, based off of a script. If anyone has any help to offer, or if this isn't possible or something, let me know. I plan on just making it a simple little Cplusplus console app. It's quit possible that I wont finish it. I'll edit this thread with updates on my progress and questions I run into.
Uhh... Why would anyone want to convert map script to a trigger library? Assuming here that map script is generated from triggers to begin with, I can't quite see the usefulness of this. Might as well convert the triggers directly to a library.
If you're attempting to convert galaxy script to a trigger library.. Well.. I'm sorry to say I don't think it's possible, because there are some things that can be done in Galaxy, that just can't be done with triggers. Triggers sort of force you to use specific parameters within their functions. For example.. A dialog trigger function would have to accept a dialog. But in galaxy, for the same function, I can reference a dialog with an integer (Yes, dialog handles are integers). Your decompiler would have to recognize which of my integers are actually dialogs, and which ones are actually integers. Given the potentially complex structure of code, doing so won't be easy.
Hope that made sense. I don't mean to sound so discouraging, but I'm just trying to save you from wasting time on something that's probably not worth the effort.
If you're attempting to convert galaxy script to a trigger library.. Well.. I'm sorry to say I don't think it's possible, because there are some things that can be done in Galaxy, that just can't be done with triggers.
I didn't know that. I've noticed you seem to be the galaxy expert around here. Sense practicably the only use is the one stated above, I don't think maps done in galaxy would really need this at all, as the script is readily copyable.
Hope that made sense. I don't mean to sound so discouraging, but I'm just trying to save you from wasting time on something that's probably not worth the effort.
It combines learning Cplusplus, and mapping. So I'm happy to wast my time doing it :) Also Ill probably learn some things, even if I try and fail.
I didn't know that. I've noticed you seem to be the galaxy expert around here. Sense practicably the only use is the one stated above, I don't think maps done in galaxy would really need this at all, as the script is readily copyable.
Don't forget I'm not the only one :P Theres s3rius, Kueken, MotiveMe, Voidpotato and a number of others as well (I'm sorry I can't remember all their names >_<).
Quote:
It combines learning Cplusplus, and mapping. So I'm happy to wast my time doing it :) Also Ill probably learn some things, even if I try and fail.
You have good intentions there, I encourage you to go ahead :) What matters is that it helps you learn new skills and sharpen ones you already have.
This summer I plan on making a tool to generate a trigger library from a map script. Libraries are XML files which I hope to be able to create, based off of a script. If anyone has any help to offer, or if this isn't possible or something, let me know. I plan on just making it a simple little Cplusplus console app. It's quit possible that I wont finish it. I'll edit this thread with updates on my progress and questions I run into.
My knowledge of Cplusplus and XML is minimal.
@grenegg: Go
Uhh... Why would anyone want to convert map script to a trigger library? Assuming here that map script is generated from triggers to begin with, I can't quite see the usefulness of this. Might as well convert the triggers directly to a library.
If you're attempting to convert galaxy script to a trigger library.. Well.. I'm sorry to say I don't think it's possible, because there are some things that can be done in Galaxy, that just can't be done with triggers. Triggers sort of force you to use specific parameters within their functions. For example.. A dialog trigger function would have to accept a dialog. But in galaxy, for the same function, I can reference a dialog with an integer (Yes, dialog handles are integers). Your decompiler would have to recognize which of my integers are actually dialogs, and which ones are actually integers. Given the potentially complex structure of code, doing so won't be easy.
Hope that made sense. I don't mean to sound so discouraging, but I'm just trying to save you from wasting time on something that's probably not worth the effort.
@FuzzYD: Go
Yes, besides recovering map's triggers from bnet, this would be fairly useless.
I didn't know that. I've noticed you seem to be the galaxy expert around here. Sense practicably the only use is the one stated above, I don't think maps done in galaxy would really need this at all, as the script is readily copyable.
It combines learning Cplusplus, and mapping. So I'm happy to wast my time doing it :) Also Ill probably learn some things, even if I try and fail.
Don't forget I'm not the only one :P Theres s3rius, Kueken, MotiveMe, Voidpotato and a number of others as well (I'm sorry I can't remember all their names >_<).
You have good intentions there, I encourage you to go ahead :) What matters is that it helps you learn new skills and sharpen ones you already have.
I would find this very useful for learning from other maps and reverse engineering triggers to better understand them.
Please do this!
Do it! Do it! Do i!
Stop brining up old threads.
Go play Antioch Chronicles Remastered!
Also, coming soon, Antioch Episode 3: Thoughts in Chaos!
Dont like mapster's ugly white? Try Mapster's Classic Skin!