Magic Armor

Over rock and under tree
Joined
Jul 20, 2011
Messages
568
Reaction score
348
After some struggle with Mr.Fikes, i left it over.. So whoever wants to use the effected Pikeman will have to disable the visual effect on Vague skill.. (deleting the mix.bmp do not resolve it, it would have to be disabled on the (game.exe) code..)


For replacing an armor with this one, you will have to change the mesh names (on those .ase's the meshes all end with XX), so you have to edit them to replace the names to the ones on the INX of the armor you want to use on them.

@edit: some have 'test'(i made with the XX ones) versions with lvl 100/102 armor/robe INX's... (like on this Atalanta of the example (the one with the trident..)

Using the armors:


Log in the game in Admin mode (with the armor you want to replace to one of those) and press f9, so you will see the INX your character is wearing..
ScreamingFox - Magic Armor - RaGEZONE Forums


Open this file to check out the mesh names, your .ase need to have the same name as the name on the INX first line. And your meshes need to have the same names of those described on the INX..
ScreamingFox - Magic Armor - RaGEZONE Forums


Leave it open while you change the meshes names.. As the files are all in .ase , it will be easy to find. Open an editor (like MadEdit or similar) and search for one of those(INX)mesh names on the .ase, but instead of typing its numbers, i put XX on the end of all meshes names. So, in this case, i would look for MAHBXX , MLHBXX, MBHBXX, MSHBXX.. and then replace the XX for the names requested by the INX you will use..
ScreamingFox - Magic Armor - RaGEZONE Forums


(just replace the mesh names for the names requested on .INX)


(testing)
ScreamingFox - Magic Armor - RaGEZONE Forums

(this effect on her head is another thing..)

I made it this way so if someone wants to add it on an armor, it would not mess up with the 103 armor (all have different texture names)..



-Changing the effected areas:
Perhaps some would like to apply effects on other parts, or take off effects on some.. Just edit the Alpha channel on the provided TGA's.. (white = visible , black = not quite like white).. Make one 'shine map'(alpha) and the next one need to have the same alpha, but inverted (where one shows the other do not).

ScreamingFox - Magic Armor - RaGEZONE Forums


texSF_01 - With reflexive effect
texSF_01b - Without effects
texSF_01c - Blinking ...

(some may be different but i would not remember which ones... but i guess i made them all on this scheme...)


-Modifying the tonality of reflexive and scrolling effects:

On the zip file there is a TMFX directory, there are all illumination maps for effects (copy them all to TMABCD), to change colors (like from 'silver' to 'golden') of effects, just edit those bmp's.. It is very easy ..

Samples:
ScreamingFox - Magic Armor - RaGEZONE Forums



ScreamingFox - Magic Armor - RaGEZONE Forums

(all physique bugs fixed (no funny vertexes))



Ps: Pikeman is bugged for using this kind of armor, so do not use it on pikemans (or disable the Vague visual effect)..


Linx:
kind of stupid imo.

@edit: Sincerely, this is more of a 'concept' as they will be heavier to load in comparison with normal armors, but, if when modelling, the person take this possibility in consideration and model the armor pieces with conveniently separated pieces, by convenience i mean to take the texture and geometry in consideration when separating pieces.. For an example:

ScreamingFox - Magic Armor - RaGEZONE Forums

(it 'spins around' the character (it is linked to the waist link) this 'cracking' on the effect is a badly arranged UVW, but now it loops quite perfectly XD, but that is not the case..) It is an example of selective effecting by layering meshes/geometry.. Those armors in this thread were made with this technique (same as Babel, by the way..)

Their Alpha channel contents:
ScreamingFox - Magic Armor - RaGEZONE Forums

(as all can see, not necessarily all parts are inverted ;) )

This cilinder (actually a extruded circle) have less than 20 polys, but imagine if i would model all these little curves, it would be just enormous.. so, this kind of 'convenient' parts are better to 'layer' duplicated meshes, other parts are positioned on parts that (on effecting) it would be more convenient to separate from the main mesh.. On this cilinder example (it has FS_SCROLLX: applied on MAP OPACITY (x because i do not remember, 8 is faster but i think its a 5 or 6..) and it is 2 of these cylinders, one with FS_REFLEX: effect and the other with 'Babel scroll' (FS_SCROLL3:)) with the layering of meshes, achieved by selecting visible and invisible parts on the texture, by editing the Alpha channel on TGA's.

If one invert the Alpha channel of an image, then apply the original (on the original geometry/mesh) and the one with inverted Alpha channel on the duplicate geometry. It is very logical to think that 'where one is visible, the other is invisible, and where the first is invisible, the second is visible'.. so taking it in consideration one can achieve very delicate complex effecting (test the mage's shoulder), that would kind of emulate a way higher poly mesh appearance (on the case of FS_REFLEX, especially when the character is moving)...

Example of separating mesh/applying Multi-Sub Material.. (separated mesh and the in-game result of the concept):
ScreamingFox - Magic Armor - RaGEZONE Forums

(SunnyZ sword)

Well what i meant is that armors can perfectly be created to implement effects with no relevant difference in size/processing (for an example, separating all the "thorns" and "jewels" (that have a geometry) to another mesh (but if i would do such thing in those armors i would end this in a way longer time XDD, so, it is kind of for the future, with a demonstration with this armor (that people love to make alternative textures XDD, now they can take it to a whole other level :)..)
...
 
Last edited:
Ahhh now I see how you did the selective glowing!
I did it via the actual polygons, separated the bits I wanted to glow.
Never even thought about using tgas and their alpha layers

So much easier your way, thanks for sharing your ase's!
 
Ahhh now I see how you did the selective glowing!
I did it via the actual polygons, separated the bits I wanted to glow.
Never even thought about using tgas and their alpha layers

So much easier your way, thanks for sharing your ase's!

Yes, but it is better on low-poly (and low poly with complex textures ... :)

(i explain it with more images on this thread)
 
You can "cull" parts of the mesh which are static on the alpha, I presume. That should reduce poly-count?
 
Yes, exactly, what i meant is that when the texture is far more complex than the mesh it is ideal to 'layer' meshes, and when the geometry is far more complex than the texture it would be ideal to separate parts/assign a different submaterial..

Cutting the parts to other mesh/assigning different submaterial to effected would be the 'platonic' thing to make effects (would have the same 'poly count' as normal items), but complex parts of texture difficult it..

For an example, on that 'guardian' sword, there are the glowing writings..
ZhC1l - Magic Armor - RaGEZONE Forums

That would be impraticable to separate (it could separate, but it would probably generate 1000's of unnecessary vertexes..)

But on other parts (the 'thorns' on some armors for an example) i would be far more convenient to separate mesh or applying other submaterial..
 
Yes, but if you had a complex armour, and wanted an even more complex effect on... the belt... (for example) you could take just the belt part to make an overlayed bit-masked effect. Then the armour could be high poly, and the belt detail could also be high, but you only duplicate the polygons in the belt, not the entire armour.

This way, you could have ultra complex looking armour, and still keep actual complexity (size and processing) to a minimum.

I mean... you are reasonably free to mix and match these techniques.
 
sorry ,I find that in my PT client CHAR/tmABCD,it can only read .smd file.Each time I put your files into the folder(I have done as you said and I am sure what i did is OK) and when i put on the armor ingame,it crashes. And i find that in tmABCD,there are only a few .ase files,most of them are .smd files.So i think that my GAME.EXE can only read clothes of smd format.
Can you teach me how to convert your ase to SMD file(not 3DMAX method)?I have no 3DMAX experience...
Or,can you conver it for me?I really like your release and want to apply it in my personnal server.
Sorry for bad English and thX again for your beautiful share!
 

Attachments

  • 111 - Magic Armor - RaGEZONE Forums
    111.webp
    25 KB · Views: 118
  • 222 - Magic Armor - RaGEZONE Forums
    222.webp
    35.7 KB · Views: 103
Last edited:
Does not work here? It has nothing to do with 3DStudio, except that ASE is a 3DStudio standard file.
 
I have used this tool,it can convert SMD file to ASE.But i want to know how to convert ASE to SMD FILE.Maybe you can help me ,thanks for your reply,bobsobol.
 
Last edited:
Ahh. To convert ASE to SMD, and possibly SMB, where biped animation is involved, just place the ASE where the client expects to find it, and play the game.

When the client reads the ASE, it compresses (encodes in a compiled, binary form) it into memory, and stores that "compiled" / "compressed" binary "cache" (as it effectively is) to SMD and / or SMB files. That's all they are, and the only reason they exist is so the client doesn't have to encode them into binary again every time it plays. ^_^

If your client will not read *any* ASE, then it is possible some hacker developing it has decided to disable that feature.

The server will do the same when it finds an ASE for which there is no existing cache. (SMD / SMB file)

[highlight]Note also[/highlight] that neither the client nor the server will bother with the ASE if an equivalent binary (SMD / SMB) is available. Since that would destroy the entire point of the "cacheing". Though many clients will accept a command line parameter to force them to ignore all .smd and .smb files and recreate them from the .ASE. [strike](I can't remember what the parameter is right now)[/strike]

--- EDIT ---
Got it. The parameter is /reload. :D:
Reference:-
Quoting standard 4096 Server code @ 0x412E20 in memory
Code:
mov eax,[esp+4]                                  ; 4096.fnReadCmdLnReload(guessed Arg1)
push offset 4096.005E11B0                        ; /Arg2 = ASCII "/reload="
push eax                                         ; |Arg1 => [Arg1]
call 00412DC0                                    ; \4096.00412DC0
add esp,8
test eax,eax
je 00412F03
xor ecx,ecx
lea esp,[esp]
mov dl,[eax+ecx]
cmp dl,20
je 00412EEB
cmp dl,26
je 00412EEB
test dl,dl
je 00412EEB
mov dl,[eax+ecx+1]
cmp dl,20
je 00412EEB
cmp dl,26
je short 00412EEB
test dl,dl
je short 00412EEB
mov dl,[eax+ecx+2]
cmp dl,20
je short 00412EEB
cmp dl,26
je short 00412EEB
test dl,dl
je short 00412EEB
mov dl,[eax+ecx+3]
cmp dl,20
je short 00412EEB
cmp dl,26
je short 00412EEB
test dl,dl
je short 00412EEB
mov dl,[eax+ecx+4]
cmp dl,20
je short 00412EEB
cmp dl,26
je short 00412EEB
test dl,dl
je short 00412EEB
mov dl,[eax+ecx+5]
cmp dl,20
je short 00412EEB
cmp dl,26
je short 00412EEB
test dl,dl
je short 00412EEB
mov dl,[eax+ecx+6]
cmp dl,20
je short 00412EEB
cmp dl,26
je short 00412EEB
test dl,dl
je short 00412EEB
mov dl,[eax+ecx+7]
cmp dl,20
je short 00412EEB
cmp dl,26
je short 00412EEB
test dl,dl
je short 00412EEB
add ecx,8
cmp ecx,10
jl 00412E40
push eax
call 005C7D38
add esp,4
test eax,eax
jne short 00412F03
push 1
push eax
call 00460F70
add esp,8
mov eax,1
ret
4096 is the most common, but this code exists in most clients too, with different offsets. Possibly slight optimization changes from newer compiles too, but I assure you it is usually there. (EPT and BPT may have stripped it)

Easy find... locate standard WinMain (usual manner)
Code:
WinMain   /$   sub esp,44                                       ; INT 4096.WinMain(guessed hCurrInstance,hPrevInstance,CmdLine,ShowState)
          |    push ebx
          |    push ebp
          |    mov ebp,[esp+58]
          |    push esi
          |    mov esi,[esp+54]
          |    push edi
          |    push ebp                                         ; /Arg2 => [CmdLine]
          |    push offset 4096.gblCmdLine                      ; |Arg1 = 4096.gblCmdLine
          |    mov [726B2C],esi                                 ; |
          |    call [<&KERNEL32.lstrcpyA>]                      ; \KERNEL32.lstrcpy
          |    call fnReadCmdLnHanGame                          ; [4096.fnReadCmdLnHanGame
          |    call fnCache3D                                   ; [4096.fnCache3D
          |    push offset 4096.gcsz_hotuk                      ; /Arg1 = ASCII "hotuk.ini"
          |    call fnReadHotuk                                 ; \4096.fnReadHotuk
          |    push offset 4096.gcsz_ShortCut                   ; ASCII "ShortCut.ini"
          |    call fnReadShortcut
          |    push ebp                                         ; /Arg1 => [CmdLine]
          |    [highlight]call fnReadCmdLnReload                           ; \4096.fnReadCmdLnReload[/highlight]
 
Last edited:
I have had some trouble on my internet connections, so i did not notice this hindrance you had.


Some clients do not read ase files, but if you want to convert the ase to smd it is just to use another client, like a (original) kpt, the 'game.exe' converts the ase to smd (it creates an smd based on the current ase), and then use on the client that does not support the ase.
 
I personally love this release.
However theres seem to be a bug with the knight cape while in "Fighting stance"
Shown in this picture
ScreamingFox - Magic Armor - RaGEZONE Forums

(Im using selfmade textures however the bug still remains with untouched files)

Is there anyway to fix this?
Im guessing its a bug with the .ase file, but im a scrub when it comes to 3d.
 
It can be a little glitch on the alpha maps, you edited the alphas and gave it a 'golden' reflex bmp right? (the 'yellow' parts on the knight seem more 'lively' so i guessed those parts have the 'reflex'..).


Remember that: "where one is visible, the other shall be not, and where the other is visible, the first shall not be seen". Therefore, on the parts with effects, the effected part's alpha channel must be the black where the other is white, and white where the other is black. Strange glitches can happen if 2 parts are visible on the same spot.. :)
 
ive checked the alpha maps and theyre fine, even on unedited files the bug is still there.

Edit: Tried removing all alpha maps on the cape yet unfortunately same strange bug happens.
It seem only to occur while standing still in a "Monster" map. While running,walking and standing in a town, it seems fine
Any ideas what could be causing it?
ScreamingFox - Magic Armor - RaGEZONE Forums


Its not that big of a deal, but im kinda strict when it comes to skins :ott1:
 
Last edited:
It was silly of me, i was testing some weapons and noticed that which you spoke of.

It has really nothing related to the alpha maps. It is the animation, the cape is 2 meshes (of elements of a mesh), and that upper part is coming under the lower part, on the animation, kind of 'sinking' on the lower part of the cape.. so it is really the animation, not the maps..
 
It was silly of me, i was testing some weapons and noticed that which you spoke of.

It has really nothing related to the alpha maps. It is the animation, the cape is 2 meshes (of elements of a mesh), and that upper part is coming under the lower part, on the animation, kind of 'sinking' on the lower part of the cape.. so it is really the animation, not the maps..
yeah figured as much, hopefully u can help me with another problem :)


Been trying to add the scrolling effect on a new armor, which worked however im having trouble with what parts should glow and which parts that shouldnt, instead the parts that shoudlnt glow become transparent.
I guess i need to add a "background" layer but im not sure how to go about that.
ScreamingFox - Magic Armor - RaGEZONE Forums

(Sorry if u feel like im hijacking this thread or spamming it)
 
Yes they become transparent indeed, they are supposed to :)


On those i released, they have the same transparency, but there are 2 objects "on the same space", 1 has some transparent parts, and, curiously, the other is visible right where the first is not. That 'cunning' or 'astuteness' is the secret for effecting via Alpha :)..


On this case, the other 'layer' is an copy of the first mesh..

-You go to the armor's ase (first, convert the armor to ase...)
-Imagine that 'no effects' is an effect...
-For each effect (with this 'technique') you got to have one mesh.
-If the effecting you look for have 2 different effects (ex: effected and non-effected parts) you have to duplicate, if it has 3 effects you would got to have 3 meshes, etc.. But just 2 is easier to understand.
-Duplicate the [GEOMOBJECT] block of the parts you will effect (copy indeed, both will have the same name).
-On the duplicated geomobject, change the number of "*MATERIAL_REF" to (the original number of materials + 1)
-Duplicate the Material the mesh would be using (material parts are on the very beginning of the ase text) pay attention on '[' ']'closing and opening, etc...
-On the duplicated material, change its number to (the original number of materials +1).
-So now you have 2 materials and 2 meshes, the first material must receive TGA's with Alpha Channel inverse to the TGA's alphas that the second material will receive.
-So on the mesh you want to effect (or not) you will give the *MATERIAL_REF of the effected material, and the same thing on the other (except for the effect lines, etc..)


On some ocasions, the smd to ase conversion can ruin the Physique rig, but that is rather unusual (on those i released it happened with just 2 of 8 chars..) so you would have to rig it on 3dsmax, but on your mech from what i could see it did not bug the rig..


Check those 2 threads for more information:

Notes on Armors
Selective effecting and effect lines..
 
--- bobsobols' edit ---
I trimmed the quote which, I couldn't see any need to include. I did this to allow this post to comply with viii, but I don't want to make a major fuss over it. It does annoy me greatly to have to re-read an entire post I only read yesterday in order to find out what's new though, so please be courteous to readers in future. :wink:
Check those 2 threads for more information:

Notes on Armors
Selective effecting and effect lines..

thanks it cleared up a few things. However every time i try to import the .ase file i converted into 3dsmax 7 it crashes.
I used tmbA19.ase and tmbA01.smb when i converted, the .ase works fine ingame just wont import into 3dsmax. what am i doing wrong?
Sorry for being a scrub :(
 
Last edited by a moderator:
Back