Explosion emission tags
Moderators: MR.D, Moderators
Explosion emission tags
So the tag water,ground,air for custom explosions, are they based on which type of terrain a unit is over when a weapon collides with it?
More or less. The only tricky part is ground / air. Spring has an arbitrary height (which I could look up in the source, but I am too busy with other stuff at the moment) at which CEG events only occur if they are "air". This distance used to be very low, causing some problems (like CEG events that had a conditional groundflash not working correctly, etc.). I think this stuff has been mainly fixed at this point, as I haven't seen a lot of problems with the FX in PURE, but I haven't really torture-tested it.
This is what I was afraid of...
DOH
In Final Frontier, fake space is simulated using water with voidwater. This means that if I use FunTA/Gundam explosions as is, everything looks like crap when units are over space because they are technically over water, and only water explosions are used. Doing a replace of all water tags doesn't work because then I'm left with no explosions over "space" at all. And now with the air tag problem and height values, everything just goes to hell.
Great, this means I have to comb through 50 or so explosions tdf files by hand looking for problems to correct.
DOH
In Final Frontier, fake space is simulated using water with voidwater. This means that if I use FunTA/Gundam explosions as is, everything looks like crap when units are over space because they are technically over water, and only water explosions are used. Doing a replace of all water tags doesn't work because then I'm left with no explosions over "space" at all. And now with the air tag problem and height values, everything just goes to hell.

Great, this means I have to comb through 50 or so explosions tdf files by hand looking for problems to correct.
Can it do regex replaces well and fast? I use EditPlus (no freeware) especially because of that. Although it's not fast, it's rather slow. Took about 30 minutes on my old PC to replace about 115,000 newlines, and only newlines, nothing complex.
Was 14 megs of PI which was full of newlines each 100 characters.
Was 14 megs of PI which was full of newlines each 100 characters.
I know, but TextFX's multiline function isn't finished yet, and you can't operate over multiple files.Snipawolf wrote:Use notepad++
It can do find and replaces quite well.
This is why I switched to PSPad in the first place but go figure, its multiline search/replace extension doesn't work with backrefs from the Replace box to the Search box.

Advanced Find and Replace. It's great, it does some very advanced regular expressions (it will do math, treating numbers as numbers, for example).
Love it, paid for it, try it, you'll like it.
Love it, paid for it, try it, you'll like it.
Thanks Argh, but I've limited my self to free stuff only thus far. I'll take a look though.Argh wrote:Advanced Find and Replace. It's great, it does some very advanced regular expressions (it will do math, treating numbers as numbers, for example).
Love it, paid for it, try it, you'll like it.

[quote="Argh"]He just discovered what a grep parser is
.[/quote
a grep parser? grep is a program. grep *is* a parser. perhaps you meant grep-based parser.
and grep can't really replace. at all. you need sed (stream editor) for that.
And Notepad++'s find and its replace are crappy as hell. In general, notepad++'s multi-file utilities are shitty as hell.
go CLI.

a grep parser? grep is a program. grep *is* a parser. perhaps you meant grep-based parser.
and grep can't really replace. at all. you need sed (stream editor) for that.
And Notepad++'s find and its replace are crappy as hell. In general, notepad++'s multi-file utilities are shitty as hell.
go CLI.
25 files? anything will work for that.
reason im spouting off against notepad++ is because i had to deal with a 60,000+ in-file search, replace, etc. first thing i tried searching with was notepad++. bad idea. raped my resources, took forever.
grep/sed are the Divine Twins.
of course, i ended up using Python to solve the problem. it worked pretty fast, i was surprised. for an interpreted language as high-level as python, the operation pretty much flew by.
reason im spouting off against notepad++ is because i had to deal with a 60,000+ in-file search, replace, etc. first thing i tried searching with was notepad++. bad idea. raped my resources, took forever.
grep/sed are the Divine Twins.
of course, i ended up using Python to solve the problem. it worked pretty fast, i was surprised. for an interpreted language as high-level as python, the operation pretty much flew by.
How can you get the regular Find box to match for multiple lines though???Snipawolf wrote:Well, last time I modified all... 25 of my unit fbis explosions it worked fine. Seemed alright to me.
For example:
Code: Select all
}
water=1;
count=1;
}
Next:
Code: Select all
}
air=1;
ground=1;
count=1;
}
And again, there are a few more situations that need changing, such as well tag order is inverted, etc etc.
EDIT: I also need to learn python, but for today I want lazy way of fixing problem.

Last edited by REVENGE on 23 Sep 2007, 07:54, edited 1 time in total.
Hmm, let me check this out.Snipawolf wrote:What the hell are you doing with 60,000 files...? O__o
Oh, like that, maybe, I am not sure, have you tried adding in tabs? Also, you don't need to make do single spaced lines, it just looks cleaner.
Ex: Water=0; Ground=1; Air=1; Count=1;
would work, even if you copied it straight like it is.