Community Forums > Voobly Community > Age of Empires II: The Conquerors > Custom Scenario > Scenario Design > Guides > Make maps with PHP SCX Editor
3 Usuário(s) estão lendo este tópico (Nos últimos 30 minutos)
0 membros, 3 convidado(s)
0 membros, 3 convidado(s)
Was gerade angesagt ist:
Word Association (94 User)
CBA PathBlood 1.8.0 (52 User)
AoKTS updates (48 User)
1.6 reward campaing (36 User)
TIW 2020 Map votes (33 User)
New Voobly Client 2.7 (24 User)
Photos of Voobly Players (19 User)
Aktivste Beiträge der letzten Woche:
Restore Problem (12 Beiträge)
Old VCOM/Tournament forums (7 Beiträge)
Can't launch AoM T (6 Beiträge)
Please resume patch development ... (6 Beiträge)
AOM Error "Unsupported Grap... (6 Beiträge)
Cant join voobly to play = Direx... (4 Beiträge)
Voobly disappearing without erro... (3 Beiträge)
PHP SCX Editor is a powerful tool / framework to edit aoc scenarios with PHP programming language. If you handle it you could make anything very easily. It's A LOT more powerful than aokts, you have the ability to build your own editor fonctionnalities very easily and organize your scenario how you want. That is very accessible to people who like programming and know it already a little bit. For others, you can still try it, programming is an intuitive skill and can be innate ! You could love it as you could hate it, it depends of people. Aoc triggers is a crap programming language which is boring and quite repetitive, if you can like that, you will love to practice a real programming language like PHP that allows you to build anything faster and smarter.
Don't be scared about complexity, the functions that are available are very intuitive and easy to use. It's much more smooth than an UI, but it takes more time to handle that, of course. When you'll handle the script you will have more time to think to your scenario instead of writing triggers, you could create fast almost whatever you think, and modify result very easily. You can message me, if you are motivated I will help you by Skype.
Features:
- Design scenarios how you want with PHP programmation. You can build them in smoother and faster ways, no more boring repetive tasks.
- Use ready to use simple and intuitive functions to read / write scenarios properties and write triggers.
- Use conditions, loops and any classic programming feature to generate triggers or anything in a scenario.
- Create complex custom conditions / effects / triggers sequence / macros.
- Assign any fields to values calculated by algorithm and variables.
- Copy paste triggers or any reusable code in new scenarios.
- Have a great overview of your triggers and your whole scenario in a single page.
- Build your own aoc editor framework to fill your needs.
- Modify your scenario by changing variables, no more need to edit triggers one per one.
- Change triggers order as you want, just cut paste code.
- Scenarios that would need 100 hours to make could need only 10 hours now !
- And more...!
Potential example: Making all CBA spawns with tasks for 8 players would need 12 lines of code:
More informations / Tutorial here:
[You must login to view link]
Download link:
[You must login to view link]
but I thought SCX files were compressed, how did you manage to know its compression algorithm and decompress the files to allow them to be scripted in text?
Suicide i'm not the expert to explain you that, the decompression function has been written by AOHH. He mainly used the function unpack which read progressively a .scx from its first bit to its last bit. DiGiT made a documentation which tell you how is compressed the scx format.
Then it store data read in a variable, after editing the variable the script do exactly the same process than decompression but in the other direction with pack function, from your variable.
Suicide i'm not the expert to explain you that, the decompression function has been written by AOHH. He mainly used the function unpack which read progressively a .scx from its first bit to its last bit. DiGiT made a documentation which tell you how is compressed the scx format.
Then it store data read in a variable, after editing the variable the script do exactly the same process than decompression but in the other direction with pack function, from your variable.
do you have link for DiGiT documentation?
i search but not find
ooh i remember now
thanks homme
I'm making slow progress right now but I have to say making a hundred triggers in a few pastes really feels good!
Ah, I have hit a wall.
I can't get the activate trigger to work for me It just turns out red when I load the map.
Also I guess you know but you have to run Compiler.php two times to make activate / deactivate effects working.
Do you see this in the output window, even after two compilations: "===>>> p1 is t1" ?
Do you see this in the output window, even after two compilations: "===>>> p1 is t1" ?
I did these yes.
I'm still learning so I'll contact you when I really need to get it to work.
It doesn't find the file "Triggers.inc" where is stored triggers ids from last compilation, you can try to specify absolute path to it, it should fix this.
In compiler.php change these lines:
To this:
And at top of Compiler.php add this variable, and specify path to your custom temp folder, for example:
The folder must exists, else it won't work. After first compilation a file called "Triggers.inc" should be created in the folder you specified.
Maybe you could get a section here.