eudtrg
Jul 16 2014, 7:31 am
By: trgk  

Jul 16 2014, 7:31 am trgk Post #1



EUDA needed.
Don't confuse with EUDTrig



Original idea
eudtrglib is a library for generating self-modifying trigger.



Features:
- Trigger execution order can be freely manipulated. So, loop & conditional branch is also supported.
- Triggers can be dynamically modified.

- Support functions : you can really reuse your triggers multiple time in SC level.
- Support variables that you can assign, add, subtract to any address.

- Built-in functions. Including
- Multiplication & Division (f_mul, f_div)
- Memory read/write (f_dwread, f_dwwrite)
- Address to EPD Player. (f_epd)
- Extract word/byte inside dword ( f_dwbreak )
- Memory copy / String copy (f_repmovsd, f_memcpy, f_strcpy)

- Built-in Basic control structures (EUDJump, EUDJumpIf, EUDJumpIfNot)




How to install:
1. Install Python 3.x and pip
2. Run following in command line : "pip install eudtrg"
Or you may use PyPI


How to run examples:
1. Download attachment & unzip all of them into somewhere
2. There should be lots of .py files. Run all of them.
3. Example maps should be created at outputmap/. Run those with EUDA enabled



Credits
- Heinermann, EUD dev
- Unit property syntax is borrowed from MacroTrigger.
- Forward() synatx is borrowed from pyparsing.
- Various file formats from modcrafters
- CHK fromat from rpgkdh & SEN.
- SFmpq, Starforge (Trigger condition/actions)



Currently documenting the library. :D

Attachments:
example.zip
Hits: 3 Size: 1233.48kb

Post has been edited 7 time(s), last time on Oct 17 2014, 6:12 am by trgk.



EUD

Jul 16 2014, 3:16 pm NudeRaider Post #2

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Suggestion: Rename it. The name is so similar to EUDTrig that they'll get confused despite your disclaimer.

Apart from that it sounds powerful though I have trouble grasping what it actually can be used for. Maybe some examples of what (kinds of) triggers it can generate and how it's different from other trigger generators may be useful.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:27 am]
O)FaRTy1billion[MM] -- or a magic box :(
[03:31 am]
martosss -- FaRTy1billion
FaRTy1billion shouted: how about 5 minerals
you can't even get a scarab with those!
[03:26 am]
O)FaRTy1billion[MM] -- how about 5 minerals
[03:26 am]
O)FaRTy1billion[MM] -- Voyager7456
Voyager7456 shouted: I think the intention was that staff awards minerals for good posts and content but in practice I'm the only one that does it :P
and for that you should receive an award
[02:53 am]
martosss -- jjf28
jjf28 shouted: the map is playable on both 1.16.1 and SC:R, this would just be straight up unprotecting
OK, I have 1 more question - are you using 32 bit SC:R or 64 bit ? In game settings there's an option to switch to 32, is it checked? I just tried hosting the map with 64-bit SC:R and it failed... I ticked the option to use 32 bit SC:R => it worked and map was hosted. So I guess the issue still exists for 64 bit SC:R ? I also tried calling a friend and he couldn't see the map when he entered the lobby. Weird, I might have to report this to Blizzard?
[12:42 am]
Voyager7456 -- Glad I can entertain you Nude
[10:42 pm]
lil-Inferno -- ayy Moose add reactions to the shoutbox so I can react salt to the shout below this lmao
[09:51 pm]
NudeRaider -- Voyager7456
Voyager7456 shouted: lil-Inferno Once I finish moving I can actually play lmao
yeah, I too am laughing my ass off at this
[08:18 pm]
lil-Inferno -- I'm not gonna be able to play (on a weekend) for another month lmao
[07:24 pm]
Voyager7456 -- lil-Inferno
lil-Inferno shouted: err'one always doesn't wanna play or is busy or w/e
Once I finish moving I can actually play lmao
Please log in to shout.


Members Online: Roy, Excalibur, Ahli