wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Artist's Corner > Model & .Mdl Editing Corner
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 09-18-2008, 05:18 PM   #1
Rao Dao Zao
www.raodaozao.net
 
Rao Dao Zao's Avatar


MDL & Resource Moderator
 
Join Date: Aug 2003
Posts: 2,441

Submissions (27)

Rao Dao Zao has a brilliant future (817)Rao Dao Zao has a brilliant future (817)Rao Dao Zao has a brilliant future (817)Rao Dao Zao has a brilliant future (817)Rao Dao Zao has a brilliant future (817)Rao Dao Zao has a brilliant future (817)

Approved Map: When the Freedom Slips Away

Send a message via MSN to Rao Dao Zao
Default Essentials: Things In Models That Make the Game Crash

1. GeosetAnims With No Geoset
This problem most commonly occurs when you're removing geosets from an existing model using Magos' Model Editor. Upon deleting a geoset, the program will automatically null values in other model objects relating to the deleted object -- it removes any reference to the dead object. While we frequently love this behaviour, in the case of a GeosetAnim it can be fatal.

GeosetAnims that refer to non-existant Geosets (eg GeosetId 5 when you have only 3 Geosets) should also be avoided.

The MDL code of a "broken" geoset looks something like this:
Code:
GeosetAnim {
	Alpha 8 {
		DontInterp,
		25000: 1,
		85000: 0,
		159967: 0,
	}
}
Note the lack of a "GeosetId X," line -- without this, the model will cause a crash. The solution is to delete the GeosetAnim entirely or re-assign it to an existing geoset.

In Magos', a dodgy GeosetAnim's "Geoset" drop-down will be marked "None".

2. RibbonEmitters With No Material
A problem similar to the above, this is rather more likely to go unawares and ruin everything because nobody pays much attention to ribbon emitters. It's going to occur again when you delete "unnecessary" objects; removing the material that a ribbon refers to will see the value held in the Ribbon Emitter nulled.

RibbonEmitters that refer to materials that don't exist (eg MaterialId 6 when you have only 2 Materials) should also be avoided.

A broken RibbonEmitter will look like any other, except that it will be missing a "MaterialId X," line. The solution is to delete the RibbonEmitter or assign it to a new material.

In Magos', a broken RibbonEmitter's "Material" drop-down will be marked "None".

3. Negative Maxes and Positive Mins
This is a more ephemeral issue that doesn't always occur; it happened to me when working with the Marine and the Tauren Chieftain.

The problem here is with the "Extents" sections that appear throughout any model -- in the Model section, in every Sequence, and in Geosets. These extent values allow the game to work out when the model is off screen, and can be safely "culled". You might have noticed that when you over-scale some units they disappear before they are completely off the edge of the screen -- this is them being culled.

Code:
	Anim "Birth" {
		Interval { 41, 833 },
		NonLooping,
		MinimumExtent { -24.5901, -40.2246, 34.4112 },
		MaximumExtent { 30.8934, -47.7023, 167.684 },
		BoundsRadius 98.65,
	}

The problem above lies in the fact that there is a positive "min" value and a negative "max" value. The simple solution is just to swap the signs as necessary, though you can also use the "Recalculate Extents" option in Magos' Model Editor.

4. Team-Coloured Particle Emitters
By "team-coloured particles", I mean particles that use ReplaceableId 2 (team-colour glow texture) instead of a specific texture.

This is another ephemeral one, and I've never done any extensive testing in order to narrow down the problem -- so any information you might have on the subject would be appreciated. The problem with team-coloured particles is that in some cases they do work perfectly well -- for example, the Priestess of the Moon's Owl Scout has team-coloured particles on its wings.

5. Extreme Polycount
This isn't necessarily a model editing issue, but it's worth noting that a single model with a number of triangles in excess of several hundred thousand will cause the game to crash.

6. Billboards and No Sequences
This is an odd one. I've long held that having no sequences section (at all, not just one stand sequence like all doodads) was a bit iffy, and some recent testing proves it is squiffy... in some circumstances. If you want to have a bone Billboarded, the model requires at least one sequence or it will crash the game!

7. Anything Else?
Have you discovered anything else that might cause a model to make the game crash? Let us know!
__________________

Last edited by Rao Dao Zao : 09-01-2010 at 07:43 PM.
Rao Dao Zao is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 09-22-2008, 08:08 PM   #2
Callahan
Bullseye
 
Callahan's Avatar
 
Join Date: Jan 2006
Posts: 977

Submissions (72)

Callahan is a splendid one to behold (688)Callahan is a splendid one to behold (688)Callahan is a splendid one to behold (688)Callahan is a splendid one to behold (688)

Default

When a material use a textures animation that doesn't exist or has been deleted.
You must fix the material.
__________________
Current project:
-Singleplayer RPG:World of Genesia
-Heroes of Genesia

_________
I support every RPG map maker.
_______
OMG!My signature doesn't countains subliminal messages anymore!
Callahan is offline   Reply With Quote
Old 09-22-2008, 08:22 PM   #3
Kyrbi0
~There we go~
 
Kyrbi0's Avatar
 
Join Date: May 2008
Posts: 2,900

Submissions (1)

Kyrbi0 is a jewel in the rough (152)Kyrbi0 is a jewel in the rough (152)

Send a message via MSN to Kyrbi0
Default

Very helpful; especially the part about empty geosetanims (gosh that's happened too many times for me...) +Rep (Ok, never mind, it won't let me)...

If you support Magos help, could you describe what some of the more common errors are (and how to fix them, if possible)? Like ~Unknown tag "KRAL" in RibbonEmitter~.
__________________
My Projects, Resources, + Tutorials: ~Just got back from my mission. Glad to be back. Woot! :P~
=It was brought to my attention recently that the ":P" icon stands for "tongue-sticking out", and not the "smirky half-smile" I was using it for all these years. = Thusly I apologize for any unintentional juvenilization of my messages to anyone so afflicted.=

Last edited by Kyrbi0 : 09-22-2008 at 08:23 PM.
Kyrbi0 is offline   Reply With Quote
Old 09-22-2008, 09:23 PM   #4
Rao Dao Zao
www.raodaozao.net
 
Rao Dao Zao's Avatar


MDL & Resource Moderator
 
Join Date: Aug 2003
Posts: 2,441

Submissions (27)

Rao Dao Zao has a brilliant future (817)Rao Dao Zao has a brilliant future (817)Rao Dao Zao has a brilliant future (817)Rao Dao Zao has a brilliant future (817)Rao Dao Zao has a brilliant future (817)Rao Dao Zao has a brilliant future (817)

Approved Map: When the Freedom Slips Away

Send a message via MSN to Rao Dao Zao
Default

It's not really my place to support Magos' Model Editor; if you have a problem like that which is an actual bug in his program (either it's a tag the editor can't support, or it's an incorrect tag it's incorrectly producing), you'll have to take it up with him. The errors I describe above are the results of the operator not paying attention, not from any actual issues in his program.
__________________
Rao Dao Zao is offline   Reply With Quote
Old 09-23-2008, 02:55 AM   #5
Kyrbi0
~There we go~
 
Kyrbi0's Avatar
 
Join Date: May 2008
Posts: 2,900

Submissions (1)

Kyrbi0 is a jewel in the rough (152)Kyrbi0 is a jewel in the rough (152)

Send a message via MSN to Kyrbi0
Default

Alright, kewl.
__________________
My Projects, Resources, + Tutorials: ~Just got back from my mission. Glad to be back. Woot! :P~
=It was brought to my attention recently that the ":P" icon stands for "tongue-sticking out", and not the "smirky half-smile" I was using it for all these years. = Thusly I apologize for any unintentional juvenilization of my messages to anyone so afflicted.=
Kyrbi0 is offline   Reply With Quote
Old 10-04-2008, 11:07 PM   #6
Callahan
Bullseye
 
Callahan's Avatar
 
Join Date: Jan 2006
Posts: 977

Submissions (72)

Callahan is a splendid one to behold (688)Callahan is a splendid one to behold (688)Callahan is a splendid one to behold (688)Callahan is a splendid one to behold (688)

Default

I found another thing.
It may not cause the game or WE crash but an Eventobject with no event track will cause your model to not be shown in game/WE.
__________________
Current project:
-Singleplayer RPG:World of Genesia
-Heroes of Genesia

_________
I support every RPG map maker.
_______
OMG!My signature doesn't countains subliminal messages anymore!
Callahan is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 09:13 PM.


Donate

Affiliates
The Hubb http://bylur.com - Warcraft, StarCraft, Diablo and DotA Blog & Forums The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2014, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services