• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Mdl Help

Status
Not open for further replies.
Level 12
Joined
May 12, 2012
Messages
631
I was editing awhile ago for a request all was fine until I imported a weapon in the model and it started to error. the error said in Magos Model Editor that "Expected a "}", got "0" in group "EventObject" in "Wolfrider.mdl"

I opened the file using notepad and I searched for the error, when I found it I tried deleting it but the Magos now won't load the file, I tried changing the "0" to "1" and it still doesn't load...

please can anyone help me?

here is what is in the text
}
EventObject "SNDXDRAI" {
ObjectId 260,
EventTrack 1 {
34667,
}
}
EventObject "FPTxFPL0" {
ObjectId 261,
EventTrack 1 {
7533,
}
}
EventObject "FPTxFPR0" {
ObjectId 262,
EventTrack 1 {
7600,
}
}
EventObject "FPTyFPL0" {
ObjectId 263,
EventTrack 1 {
7767,
}
}
EventObject "FPTyFPR0" {
ObjectId 264,
EventTrack 1 {
7767,
}
}
EventObject "SPLxHBL1" {
ObjectId 265,
EventTrack 1 {
34833,
}
}
EventObject "SPLxOBL2" {
ObjectId 266,
EventTrack 1 {
35933,
}
}
EventObject "SPLxOBL1" {
ObjectId 267,
EventTrack 1 {
35067,
}
}
EventObject "SPLyOBS2" {
ObjectId 268,
EventTrack 1 {
35133,
}
}
EventObject "SPLyOBL3" {
ObjectId 269,
EventTrack 1 {
36167,
}
}
EventObject "SPNxOBWR" {
ObjectId 270,
EventTrack 1 {
34667,
}
}
EventObject "SNDXABSK" {
ObjectId 271,
EventTrack 1 {
287232,
}
}
EventObject "SNDXDGRU" {
ObjectId 272,
EventTrack 1 {
216800,
}
}
EventObject "FPTxFBR1" {
ObjectId 273,
EventTrack 1 {
211267,
}
}
EventObject "FPTxFBL1" {
ObjectId 274,
EventTrack 1 {
211267,
}
}
EventObject "SPLxOBL1" {
ObjectId 275,
EventTrack 1 {
216800,
}
}
EventObject "SPLxOBS2" {
ObjectId 276,
EventTrack 1 {
216800,
}
}
EventObject "SPLxOBL2" {
ObjectId 277,
EventTrack 1 {
216800,
}
}
EventObject "SPLxOBS0" {
ObjectId 278,
EventTrack 1 {
216800,
}
}
EventObject "SPLxOBL3" {
ObjectId 279,
EventTrack 1 {
216800,
}
}
EventObject "SPNxOBG0" {
ObjectId 280,
EventTrack 1 {
216800,
}
}
EventObject "SNDXABSK" {
ObjectId 281,
EventTrack 1 {
426497,
}
}
EventObject "SNDXDGRU" {
ObjectId 282,
EventTrack 1 {
356065,
}
}
EventObject "FPTxFBR1" {
ObjectId 283,
EventTrack 1 {
350532,
}
}
EventObject "FPTxFBL1" {
ObjectId 284,
EventTrack 1 {
350532,
}
}
EventObject "SPLxOBL1" {
ObjectId 285,
EventTrack 1 {
356065,
}
}
EventObject "SPLxOBS2" {
ObjectId 286,
EventTrack 1 {
356065,
}
}
EventObject "SPLxOBL2" {
ObjectId 287,
EventTrack 1 {
356065,
}
}
EventObject "SPLxOBS0" {
ObjectId 288,
EventTrack 1 {
356065,
}
}
EventObject "SPLxOBL3" {
ObjectId 289,
EventTrack 1 {
356065,
}
}
EventObject "SPNxOBG0" {
ObjectId 290,
EventTrack 1 {
356065,
}
}
EventObject "SNDXDTCH" {
ObjectId 291,
EventTrack 1 {
519631,
}
}
EventObject "SNDXKTC1" {
ObjectId 292,
EventTrack 1 {
512931,
}
}
EventObject "SNDXKTC2" {
ObjectId 293,
EventTrack 1 {
514564,
}
}
EventObject "FPTxFCR3" {
ObjectId 294,
EventTrack 1 {
509331,
}
}
EventObject "SNDxFDFR" {
ObjectId 295,
EventTrack 1 {
509331,
}
}
EventObject "FPTxFCL3" {
ObjectId 296,
EventTrack 1 {
509331,
}
}
EventObject "SNDxFDFL" {
ObjectId 297,
EventTrack 1 {
510331,
}
}
EventObject "SNDxDDSO" {
ObjectId 298,
EventTrack 1 {
519631,
}
}
EventObject "SPLxOBL1" {
ObjectId 299,
EventTrack 1 {
519631,
}
}
EventObject "SPLyOBS2" {
ObjectId 300,
EventTrack 1 {
519631,
}
}
EventObject "SPLyOBL3" {
ObjectId 301,
EventTrack 0 {
0
,
}
}
EventObject "SNDXAOWS" {
ObjectId 302,
EventTrack 1 {
521931,
}
}
EventObject "SPNxOBTC" {
ObjectId 303,
EventTrack 1 {
519631,
}
}

I highlighted the error text
 
Level 24
Joined
Mar 29, 2004
Messages
1,991
I think you've fixed the wrong error.

When you see a block like EventTrack 1 { // blah, that "1" is the number of entries in the following list. Magos' uses this number so that it knows how many entries to expect, so if the actual number of entries and the stated number of entries don't match then it breaks.

So since you've got 1 entry, the number above should be 1 too.

YobGul's old MDL/X file converter doesn't take account of these numbers, so converting to MDX and back using that can sort these issues if they're hard to track down.
 
Status
Not open for further replies.
Top