| 04-23-2007, 12:22 AM | #1 |
I wonder if its possible to count triggers in a map. Like counting how many triggers there are in a map, and return integer. I was browsing trough trigger natives, but couldnt find any. Tho i found something called TriggerExecCount, but dunno wat it does |
| 04-23-2007, 01:42 AM | #2 |
It prints how many times a trigger as executed. You could use a global integer variable and any time a trigger is created, add 1 and anytime a trigger is destroyed subtract 1. |
| 04-23-2007, 03:01 AM | #3 |
TriggerExecCount() exta usefull it will show is current trigger exist or not. |
| 04-23-2007, 01:32 PM | #4 |
every time trigger was created and destroyed... but how do i do this without using custom create trigger functions. Cus i want the map to automatically count triggers, so if some cheater noobs add more triggers to the jass file, it will stop the map to run. But if there are no way to do this... then ok. No more questions |
| 04-23-2007, 04:38 PM | #5 |
its easy add globals init for large arrays into map loader try to arrange thread limit and if any more trigger init added it wont run cause op limit |
| 04-23-2007, 05:05 PM | #6 |
It may be possible to 'count' triggers created by H2I'ing a new handle at some point in init. If it's larger than it should be, something has been added to the init part of the map. |
| 04-23-2007, 05:20 PM | #7 |
yeah h2i is deterministic, although I got a way to discard the "noob effect" aka when somebody uses 'genered map deprotector' and then adds 'triggers' to the map (with cheats) that may work better than that but I won't say it publically since it would also be like telling everybody how to fix it. |
| 04-23-2007, 08:13 PM | #8 |
Haha ! lol =) i have find a "Kick fucking ass" protection :rofl: but i will not write it here :D // i am a asshole jop ! =) PS really it's will kick asses for ANY cheater ! btw ofc if you are some jass master so it will be possible to avoid this but for mortals i give a 1-5% chance =) i have tested... IT LIVES IT LIVES I mean works =) ha ha ! now some freaks will eat shit by trying to hack my map =) (the jass part ofc) yes globals cannot be protected... but it's enought for my. |
| 04-23-2007, 08:24 PM | #9 |
i can deprotect all maps and edit their jass contents so far. Since its not hard to track down jass. but ofc i dont cheat :P But i would love to know how to protect a map in a good way :D that noobs cant just add cheats into them. If someone can tell me then i will be happy ^^ |
| 04-23-2007, 08:30 PM | #10 |
MaD[Lion] are you able to read ? i got a awesome way to protect it ! they will be unable to add or remove something for intialization =) other wise in my case... a msg "GAY ATTACKS !" (related to stupid Cacodemon (Alexey B.H.) jokes...) after 5 seconds game crash =) for example so they must return map to previous content to run properly or to find out my trick but in 400 or more KBs of code it would be really hard ! |
| 04-23-2007, 08:32 PM | #11 |
aaa... i see ur trick ^^ Its like hiding few bits in many GB disc :P Maybe u can give me a try ^^ if u dont it doesnt matter :P cus no matter how hard it is, if its not gonna be used then its just theory :) When u release it im sure someone will crack it if its not me ;) Everything is crackable :P |
| 04-23-2007, 08:42 PM | #12 | |
MaD[Lion] yes i know =) but it's fun ^^ ! Quote:
|
| 04-23-2007, 08:54 PM | #13 |
several hours is no problem for hackers :P they spend days with comp just for something they want :P So it only give them the fun really. and also that method will be useless when its once cracked ;) So good tip: Dont use big words and provoke hackers :P Diplomacy is way to victory |
| 04-23-2007, 09:02 PM | #14 | ||
Quote:
Quote:
|
| 04-23-2007, 09:20 PM | #15 |
haha a bit off topic but so true :P But Diplomacy cost nothing :) And they say "Words dont cost a single penny" and also "Every word is worth 1000 gold" :P These sentences are known mostly in asia. So use word wisely, and you will get what you want :)) Also do u ahve msn, cus u seem to know alot. i wanna talk with a pro about something :P |
