Model questions
Moderator: Graf Zahl
- justin023
- Posts: 165
- Joined: Wed Sep 21, 2005 10:51
- Location: Illinois
- Contact:
Model questions
I have a couple questions about models:
1. What lump are the model definitions supposed to go into (already tried decorate)?
2. How does the model definition tie in with decorate? Would the defined sprite-frame (Sprite Q2CRA Frame "5") be used in decorate like a normal sprite (Q2CR A -1)?
1. What lump are the model definitions supposed to go into (already tried decorate)?
2. How does the model definition tie in with decorate? Would the defined sprite-frame (Sprite Q2CRA Frame "5") be used in decorate like a normal sprite (Q2CR A -1)?
-
- Posts: 58
- Joined: Sun Sep 11, 2005 20:31
- Location: nj
- Contact:
- justin023
- Posts: 165
- Joined: Wed Sep 21, 2005 10:51
- Location: Illinois
- Contact:
-
- Posts: 58
- Joined: Sun Sep 11, 2005 20:31
- Location: nj
- Contact:
- chaoscentral
- Posts: 113
- Joined: Tue Aug 30, 2005 14:08
- Location: E1M1
- Contact:
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
It has yet to be documented. Right now I am busy with other things but if it helps, here's a demo lump. It has to be named MODELDEF:
All paths are absolute paths in the .zip being loaded.
Code: Select all
Model SteelCrate
{
Path "Models/Crate"
Model 0 "Steelc.md2"
Skin 0 "Steelc.png"
Frame COL1 A 0 "frame01"
}
Model SteelTransport1
{
Path "Models/Transport2"
Model 0 "Steelt2.md2"
Skin 0 "Steelt2.png"
FrameIndex COL2 A 0 0
}
Model SteelTransport2
{
Path "Models/Transport1"
Model 0 "Steelt1.md2"
Skin 0 "Steelt1.png"
FrameIndex COL3 A 0 0
}
Model SteelTransport3
{
Path "Models/Transport3"
Model 0 "Steelt3.md2"
Skin 0 "Steelt3.png"
FrameIndex COL4 A 0 0
}
- justin023
- Posts: 165
- Joined: Wed Sep 21, 2005 10:51
- Location: Illinois
- Contact:
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
- chaoscentral
- Posts: 113
- Joined: Tue Aug 30, 2005 14:08
- Location: E1M1
- Contact:
- justin023
- Posts: 165
- Joined: Wed Sep 21, 2005 10:51
- Location: Illinois
- Contact:
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
- Enjay
- Developer
- Posts: 4748
- Joined: Tue Aug 30, 2005 23:19
- Location: Scotland
- Contact:
Yeah, in the past I've noticed that any file can be added to te command line but anything other than files with a WAD extension (and maybe deh?) will not load when dropped onto the exe. Presumably Graf will want to add drag and drop support for the zip, and maybe pk3, extension now that zips are supported.chaoscentral wrote:I also noticed something with the zips... whenever i drag and drop them onto gzdoom they dont work, but when i use command line it works perfectly.
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
- Enjay
- Developer
- Posts: 4748
- Joined: Tue Aug 30, 2005 23:19
- Location: Scotland
- Contact:
Funny thing is, that it is just an extension check (as far as I can tell). If I make up a file - eg MAPINFO.TXT - and drop it onto Zdoom.exe, it gets ignored. However, if I change the name to have a WAD extension (MAPINFO.WAD in this case) it works even though it's not actually a WAD. I know Zdoom supports any kind of known lump from the command line, and it seems it will also accept any kind of known lump from a drag and drop, but only if you fool it in to trying to load the file by pretending it is a WAD.