Welcome Guest [Log In] [Register]
Welcome to Anime Fight. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Anime Fight 1.401d; Announcement
Topic Started: May 27 2009, 09:44 PM (7,513 Views)
Spathis
Member Avatar
Administrator
Admin
BRUTAL
Aug 5 2009, 05:59 PM
Hello people, I hope my post count and join date don't give off a bad impression about me; I'm not some stupid retard noob. Lol. T_T
You can look me up at TheHelper.net as BRUTAL.

Anyways, I love Anime Fight; and I would like to help in any way. ;p
Bones do you and your 'team' code in vJass? I hope so, or this will be lame.
I am working on a map called 'Mortal Kombat Fight' and I know what you are thinking....Yes, it is EXACTLY what you'd think it is.
It's essentially Anime Fight, but with Mortal Kombat. Now don't go flaming me calling me a noob and 'ripping off Anime Fight.' Lol.
I didn't unprotect Anime Fight and copy shit, only thing i c'n'p'ed was the terrian. So i recreated every trigger myself, and not to be cocky, but my version is better in many ways, and efficient.
But enough about that, I'd like to share my knowledge and help you with a few things you'd probably miss.
I don't know if your just adding heroes and balancing spells, or actually fixing all the triggers and making shit efficient.

Anyways as you know, Anime Fight is a game where buying tomes is crucial. Here's the thing, this is a Warcraft problem actually; when you buy a tome, the special effect that the item makes; that poofy-cartoon effect - it doesn't actually get destroyed thus causing general lag late game usually. If you don't believe me make a test map with a lot of tomes and see what happens, there will be a lot of small yellowish dots on the ground. So anyways like I said, my map takes Anime Fight and makes everything a lot better.
Here is what you can do to fix this problem: go to items in object editor, and find all your 'tome' items. Find the field 'Art - Model Used' and remove that model. This is the thing that causes the special effect leak. Now you need to make a trigger that detects when a player buys an item, check whether its an agility, strength, intelligence etc. tome. Then just create the special effect at the heroes x and y.
Heres how i did it in Mortal Kombat Fight:

Quote:
 
scope tomesfx initializer qwe

private function a takes nothing returns nothing
local unit hero = GetTriggerUnit()
local real x = GetUnitX(hero)
local real y = GetUnitY(hero)
if GetItemTypeId (GetManipulatedItem()) == 'tdex' or GetItemTypeId (GetManipulatedItem()) == 'tdx2' or GetItemTypeId (GetManipulatedItem()) == 'I000' or GetItemTypeId (GetManipulatedItem()) == 'I001' or GetItemTypeId (GetManipulatedItem()) == 'I002' then
call DestroyEffect (AddSpecialEffect("Objects\\InventoryItems\\tomeGreen\\tomeGreen.mdl", x, y))
elseif GetItemTypeId (GetManipulatedItem()) == 'tint' or GetItemTypeId (GetManipulatedItem()) == 'tin2' or GetItemTypeId (GetManipulatedItem()) == 'I003' or GetItemTypeId (GetManipulatedItem()) == 'I004' or GetItemTypeId (GetManipulatedItem()) == 'I005' then
call DestroyEffect (AddSpecialEffect("Objects\\InventoryItems\\tomeBlue\\tomeBlue.mdl", x, y))
elseif GetItemTypeId (GetManipulatedItem()) == 'tstr' or GetItemTypeId (GetManipulatedItem()) == 'tst2' or GetItemTypeId (GetManipulatedItem()) == 'I006' or GetItemTypeId (GetManipulatedItem()) == 'I007' or GetItemTypeId (GetManipulatedItem()) == 'I008' then
call DestroyEffect (AddSpecialEffect("Objects\\InventoryItems\\tomeRed\\tomeRed.mdl", x, y))
elseif GetItemTypeId (GetManipulatedItem()) == 'texp' or GetItemTypeId (GetManipulatedItem()) == 'I009' or GetItemTypeId (GetManipulatedItem()) == 'I00A' or GetItemTypeId (GetManipulatedItem()) == 'I00B' then
call DestroyEffect (AddSpecialEffect("Objects\\InventoryItems\\tomeBrown\\tomeBrown.mdl", x, y))
elseif GetItemTypeId (GetManipulatedItem()) == 'tpow' or GetItemTypeId (GetManipulatedItem()) == 'manh' or GetItemTypeId (GetManipulatedItem()) == 'I00C' then
call DestroyEffect (AddSpecialEffect("Objects\\InventoryItems\\tome\\tome.mdl", x, y))
endif
set hero = null
endfunction

private function qwe takes nothing returns nothing
local trigger t = CreateTrigger()
local integer i = 0
loop
call TriggerRegisterPlayerUnitEvent (t, Player(i), EVENT_PLAYER_UNIT_PICKUP_ITEM, null)
set i = i + 1
exitwhen i == bj_MAX_PLAYER_SLOTS
endloop
call TriggerAddAction (t, function a)
endfunction

endscope


It's kind of hard to read because there obviously isn't any jass tags on this forum. ;p
But I hope you got what i meant, and hopefully fix it.
Again I wouldn't mind helping in anyway.
That's pretty cool. I didn't realize tome effects leaked. Mind if I use that code?
Posted Image
Offline Profile Quote Post Goto Top
 
BRUTAL
Member Avatar
Member
[ * ]
Mehh..I'd rather do it with HeartCard, he/she seems cooler and better lol.
Omg, spathis, : D you're the best.
Yea sure its just code, HeartCard said there was a easier way of just checking when a tome is bought then adding 'Destroy (Last Create Effect)'.
Edited by BRUTAL, Aug 9 2009, 01:28 AM.
Offline Profile Quote Post Goto Top
 
S.cloud
Member Avatar
Leader of Clan WDS
[ *  * ]
Go back to your AFK position Spathis.
Offline Profile Quote Post Goto Top
 
Spathis
Member Avatar
Administrator
Admin
Quote:
 
Go back to your AFK position Spathis.

Yeah, I just came back to fix the map for the new patch.

Quote:
 
HeartCard said there was a easier way of just checking when a tome is bought then adding 'Destroy (Last Create Effect)'.

I tested this, but it still leaks (albeit very slightly). It's probably due to TriggerSleepAction() rarely waiting for less than 0.1 seconds.
Posted Image
Offline Profile Quote Post Goto Top
 
BRUTAL
Member Avatar
Member
[ * ]
LOL S.Cloud, remember me? D:
I used to be in WDS lol.

Quote:
 
I tested this, but it still leaks (albeit very slightly). It's probably due to TriggerSleepAction() rarely waiting for less than 0.1 seconds.

Well yea TSA's are very inaccurate, I've even done tests about them lol.
It'd be better to use a timer instead.
Offline Profile Quote Post Goto Top
 
Crimson King
Member Avatar
Demon King
[ *  *  * ]
Holy &#@(*$@^$ Spathis is posting.
Posted Image
Bow before me. Die for your crime of defying the King of One Hundred Demons, and repent in the afterlife. There is none before me, and none after me. I am the Devil King of the Sixth Heaven, Oda Nobunaga!


Chaos Lord15,Sep 14 2006
06:53 PM
The only reason I was calling it Fritos mode was because I had no idea what to call it that would be shorter than 8-12 letters... So wait, are you saying we ended up causing a 30 post long flame war because of some misunderstanding?


Eliwood,Sep 29 2007
12:10 AM
thats a retarded excuse
if haku can spell, then you can too

Offline Profile Quote Post Goto Top
 
HeartCard
Member Avatar
From the Ace of Hearts
[ *  *  * ]
Tatsuma; They never gave contact info. The only contact available is 'Bones'.

Well...That's irrelevant for why I would not help. But I think it should be of notice to BRUTAL.
I reframed for various other reasons.
More promptly, Fixing up Anime Fight with me is not an option, in short. You'll have to work with Spathis or Bones' team or...Solo it.


Spathis; It worked well enough. Minimum effort for a decent effect. The actual leak amount is so small that I've yet to see a game where it was even noteable. By the time lag was notable, the game would realistically be over.
Then again, Warrior Souls tends to be faster than Anime Fight for some reason. Not sure why...Probably because of 1.25F's imbalances...
inb4tl;dr
Offline Profile Quote Post Goto Top
 
BRUTAL
Member Avatar
Member
[ * ]
Quote:
 
Well...That's irrelevant for why I would not help. But I think it should be of notice to BRUTAL.
I reframed for various other reasons.
More promptly, Fixing up Anime Fight with me is not an option, in short. You'll have to work with Spathis or Bones' team or...Solo it.

Ah, lame.
Is it because of you using Gui?
Does anyone know when Bones' team is going post a version or anything. O.o

Quote:
 
The actual leak amount is so small that I've yet to see a game where it was even noteable. By the time lag was notable, the game would realistically be over.

Do you mean from using your simple trigger, or in Anime Fight itself? Because I've played games where it got kind of choppy when you were in the base.

Also Spathis, if you are fixing up the map a little; there are some small flaws with your silence trigger(s). I've seen this mentioned in a thread here about a silenced player being able to use the 'pwnd' command. A simple fix that i did for that was in your silence trigger, make a global playergroup and add the silenced player in it, then in the pwnd trigger check if triggering player is not in the silenced group. Also I've seen in Anime Fight 1.400 that if a silenced player goes to Rena; the players name will change to PlayersName(solo), which takes away all the spaces in front of their name thus negating the silence. And then when that solo wears off, the players name is back to what it originally was. Again a simple fix would be to check if the player was in the silence group when changing the players name.
Those might have been fixed, I don't know really; but if not. ;p
Edited by BRUTAL, Aug 9 2009, 04:06 AM.
Offline Profile Quote Post Goto Top
 
HeartCard
Member Avatar
From the Ace of Hearts
[ *  *  * ]
BRUTAL:
My abstinence from editing Anime Fight is not because I use GUI.
Besides, I've already stated that my triggers are actually filled with Calls for Custom Scripts.

It's the same reason I tried forced the forum back together to get a desiger team made of the forums in the works.
i made it very clear that I WOULD NOT DO IT, but that if they had any trigger issues they could consult me for solutions.

It's more of an issue with Warrior Souls I think. Having credit for the new version of Anime Fight seems both bothersome and not something I could be proud of. Likewise, re-enforcing the origin concept of Warrior Souls seems unwise.


Quote:
 
Do you mean from using your simple trigger, or in Anime Fight itself? Because I've played games where it got kind of choppy when you were in the base.

From using my simple GUI trigger.
inb4tl;dr
Offline Profile Quote Post Goto Top
 
Panda
Member Avatar
...Where am I?
[ * ]
wow o.o

you guys are...still here. Spathis too.

/make come back...
Posted Image

Panda...the other white meat
Offline Profile Quote Post Goto Top
 
WhitePhoenix
Pwntkebible
[ *  * ]
http://neoanimefight.freeforums.org/

If you're going to fix it I recommend you do it soon.

Since Spathis already did everything we asked for... Who knew about the Neo stuff? Wuz I not around?
Edited by WhitePhoenix, Aug 9 2009, 03:57 PM.
Posted Image
Offline Profile Quote Post Goto Top
 
S.cloud
Member Avatar
Leader of Clan WDS
[ *  * ]
That is correct WP.

Holy shat brutal your still around >.>?
Offline Profile Quote Post Goto Top
 
BRUTAL
Member Avatar
Member
[ * ]
Quote:
 
BRUTAL:
My abstinence from editing Anime Fight is not because I use GUI.
Besides, I've already stated that my triggers are actually filled with Calls for Custom Scripts.

It's the same reason I tried forced the forum back together to get a desiger team made of the forums in the works.
i made it very clear that I WOULD NOT DO IT, but that if they had any trigger issues they could consult me for solutions.

It's more of an issue with Warrior Souls I think. Having credit for the new version of Anime Fight seems both bothersome and not something I could be proud of. Likewise, re-enforcing the origin concept of Warrior Souls seems unwise.

Well, aren't you done with Warrior Souls now? :p

Quote:
 
Who knew about the Neo stuff? Wuz I not around?

What's that mean, i have no idea. ><

And yea S.Cloud, I don't know if you remember Anthony and those other guys; we still play Warcraft lol.
Offline Profile Quote Post Goto Top
 
HeartCard
Member Avatar
From the Ace of Hearts
[ *  *  * ]
lol They advertised Neo Anime Fight on these boards.

The game is made of fail, and the preview image has nude android 18 on it for no real focking reason.


BRUTAL:
You haven't taken a look at the Warrior Souls section like...ever have you?
inb4tl;dr
Offline Profile Quote Post Goto Top
 
BRUTAL
Member Avatar
Member
[ * ]
Not as of yet. D:
Offline Profile Quote Post Goto Top
 
ZetaBoards - Free Forum Hosting
Free Forums. Reliable service with over 8 years of experience.
Learn More · Register Now
Go to Next Page
« Previous Topic · Map General · Next Topic »
Add Reply