Menu
 

xmlConverter V1.8 Special Edition RELEASED

Started by Norrin Radd, July 28, 2007, 11:02AM

Previous topic - Next topic
August 14, 2007, 12:37PM #60 Last Edit: August 14, 2007, 12:41PM by BliZZ
Norrin, any way that you can add support for effect files?


XML1 File:

<Effect LoopTime="0.3" RandLoopTime="0" PersistLoop="0">
<Spark Name="Blue" Count="1 1" Life="0.15 0.15" Delay="0 0" origin="0 0 0 0 0 0" velocity="75 0 0 100 0 0" acceleration="0 0 0 0 0 0" Gravity="0 0" drag="0 0" radius="0 0" radius2="0 0" height="0 0" red="0 0 0 0 0 0 10000 -10000" green="0 0 0.251 0 0 0.251 10000 -10000" blue="0 0 0.502 0 0 0.502 10000 -10000" alpha="0 -1 1 0 -1 1 10000 -10000" size="-4 3 3 -4 3 3 10000 -10000" length="-24 28 4 -24 28 4 10000 -10000" Blend="additive" orient="forward" Texture="textures/dot.png" viewoffset="0" primitiveFlags="256" spawnFlags="1073741824" Interval="0"/>
</Effect>


XML2 File

XMLB Effect {
LoopTime = 0.3 ;
RandLoopTime = 0 ;
PersistLoop = 0 ;
   Spark {
   Name = Blue ;
   Count = 1 1 ;
   Life = 0.15 0.15 ;
   Delay = 0 0 ;
   origin = 0 0 0 0 0 0 ;
   velocity = 75 0 0 100 0 0 ;
   acceleration = 0 0 0 0 0 0 ;
   Gravity = 0 0 ;
   drag = 0 0 ;
   radius = 0 0 ;
   radius2 = 0 0 ;
   height = 0 0 ;
   red = 0 0 0 0 0 0 10000 -10000 ;
   green = 0 0 0.251 0 0 0.251 10000 -10000 ;
   blue = 0 0 0.502 0 0 0.502 10000 -10000 ;
   alpha = 0 -1 1 0 -1 1 10000 -10000 ;
   size = -4 3 3 -4 3 3 10000 -10000 ;
   length = -24 28 4 -24 28 4 10000 -10000 ;
   Blend = additive ;
   orient = forward ;
   Texture = textures/dot.png ;
   viewoffset = 0 ;
   primitiveFlags = 256 ;
   spawnFlags = 1073741824 ;
   Interval = 0 ;
   }

}


um, ok, done, haha, it already works for effect files, i just tried it. i think i am running the latest version.
i converted what you had for the xml1 file and it output the same as what you have for the xml2 file.
let me know if you have any troubles

I asked because I had trouble. The program crashed when I tried to convert the effect file. (it is in the grso_flamethrower_5301 fb)

August 14, 2007, 01:25PM #63 Last Edit: August 14, 2007, 01:28PM by Norrin Radd
which effect file, the one you posted? because that one works fine for me

edit:
i dont know if it makes any difference but i had an extra Enter space at the end of my file:
Quote
<Effect LoopTime="0.3" RandLoopTime="0" PersistLoop="0">
<Spark Name="Blue" Count="1 1" Life="0.15 0.15" Delay="0 0" origin="0 0 0 0 0 0" velocity="75 0 0 100 0 0" acceleration="0 0 0 0 0 0" Gravity="0 0" drag="0 0" radius="0 0" radius2="0 0" height="0 0" red="0 0 0 0 0 0 10000 -10000" green="0 0 0.251 0 0 0.251 10000 -10000" blue="0 0 0.502 0 0 0.502 10000 -10000" alpha="0 -1 1 0 -1 1 10000 -10000" size="-4 3 3 -4 3 3 10000 -10000" length="-24 28 4 -24 28 4 10000 -10000" Blend="additive" orient="forward" Texture="textures/dot.png" viewoffset="0" primitiveFlags="256" spawnFlags="1073741824" Interval="0"/>
</Effect>


Both of the ones in that particular fb cause a CTD for me.

yeah it works for effects. i had a problem with the t-mansion effect, it would not convert it, so i went in with a hex-editor and saw that there was two of those square boxes before <effect>, deleted them and then it would convert it.  Maybe that's it.
Please search the forum before asking a question. I dont answer
PMs about modding, those questions should be posted in a public thread.
What im currently working on: http://marvelmods.com/forum/index.php?topic=2275.0
My mods are mine to booster/update, I will not give anybody permission to do it

That was the problem. In the .xml, there is an empty line before <effect>, and that CTDs the program.

yes i just noticed that (after i extracted that particular fb), so as long as you delete the empty space, it works
edit:
good catch nodoubt_jr

September 11, 2007, 07:01PM #68 Last Edit: September 11, 2007, 07:29PM by iammingy
Norrin Radd, can you upload Version 1.8 Special Edition again? The links don't work now. :(

EDIT: Thanks! ^^

September 11, 2007, 07:04PM #69 Last Edit: September 11, 2007, 07:09PM by Norrin Radd
sure, give me a few minutes ;)

edit:
done,
http://www.sendspace.com/file/t9j3fo

let me know if you want help converting stuff, or if you have any problems using the programs,
good luck!

The link isn't working anymore. Could you post it again? Thanks.
Canino passed away in April 2022. He will be dearly missed by the community

ok, reuploaded,

im not sure which files you will be converting, but you may also want to look into the alphabetizer and extentconverter, but those links are probably pretty old too

Thanks, man.
Canino passed away in April 2022. He will be dearly missed by the community

Sorry for reviving an old thread, but can anyone reupload the xmlconverter?