Forum

Changing Weapon Models?

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Changing Weapon Models?

Postby Karall » Thu Jul 15, 2010 5:26 pm

And actully making weapon models. I wanna make models and replace the original ones with the ones i made. Help me please!
Karall
 
Posts: 128
Joined: Thu Jul 15, 2010 5:23 pm

Postby ceriux » Thu Jul 15, 2010 6:09 pm

its very easy. learn a very little ammount of qc. ( im sure theres a tutorial.) and learn how to model. put your model in the progs folder. make sure its frames are the same as the orginals ( or change the qc to match yours ) same with file names . go! all done.
User avatar
ceriux
 
Posts: 2223
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby Karall » Thu Jul 15, 2010 7:04 pm

Well i do know how to model quite good in blender, altough i have no idea how to make it a mdl file so i can use it with Quake I. And dont you have to fix around with that pak file? Becouse i cant find the weapon models in progs.
Karall
 
Posts: 128
Joined: Thu Jul 15, 2010 5:23 pm

Postby goldenboy » Thu Jul 15, 2010 7:13 pm

Personally, to make Quake models, I use Blender, save my stuff as .md3, then use Sajt's "qwalk" program to convert that to .mdl format. There is a thread about his model converter in one of the subforums here, it is still a pretty young program.

Other people use QME though. It is good to study or modify existing models, because getting .mdl files into Blender and back again isn't so easy.

Quake .mdls go into a "progs" folder, ie "id1/progs" or "mymod/progs". You don't have to use pak files unless you want to replace existing weapons - stuff in pak files overrides stuff outside pak files. I think a program like pakexplorer or similar exists to unpack .pak files.

Once you have a model, you have to write QC for it (or make it replace an existing weapon). For new player weapons, look at the self.weaponframe stuff in player.qc. You can browse the original progs 1.06 at inside3d.com, and look how the existing weapons are done. Also download mods that have custom weapons and look how it is done there.

For your weapon to do anything new, look at weapons.qc and see how the existing weapons are set up.

There are tutorials for this kind of stuff on the inside3d.com front page, linked from the sidebar there.
User avatar
goldenboy
 
Posts: 924
Joined: Fri Sep 05, 2008 11:04 pm
Location: Kiel

Postby Arkage » Thu Jul 15, 2010 7:13 pm

The best method i found to get to mdl is to export as a .md3 then use Sajts Qwalk to convert it to an .mdl.

Edit: Got beat to the post.
User avatar
Arkage
 
Posts: 66
Joined: Thu Nov 19, 2009 4:17 pm

Postby Karall » Thu Jul 15, 2010 8:32 pm

Gold, thanks a massive lot!
Karall
 
Posts: 128
Joined: Thu Jul 15, 2010 5:23 pm

Postby frag.machine » Thu Jul 15, 2010 9:08 pm

goldenboy wrote:You don't have to use pak files unless you want to replace existing weapons - stuff in pak files overrides stuff outside pak files.


Huh ? Isn't actually the opposite ?
AFAIK you don't need to use .pak files at all, unless of course as a more convenient way to distribute a mod.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2090
Joined: Sat Nov 25, 2006 1:49 pm

Postby mankrip » Thu Jul 15, 2010 10:03 pm

frag.machine wrote:
goldenboy wrote:You don't have to use pak files unless you want to replace existing weapons - stuff in pak files overrides stuff outside pak files.


Huh ? Isn't actually the opposite ?

No, goldenboy is right. Back then, PAK files having higher priority over plain files were also one of the techniques implemented to make sure that no one could play mods without a registered copy of Quake.
Ph'nglui mglw'nafh mankrip Hell's end wgah'nagl fhtagn.
==-=-=-=-=-=-=-=-=-=-==
Dev blog / Twitter / YouTube
User avatar
mankrip
 
Posts: 915
Joined: Fri Jul 04, 2008 3:02 am

Postby DukeInstinct » Fri Jul 16, 2010 3:04 am

There is a Blender script that lets you export directly to an .mdl and it worked fine for me. I don't remember where I got the script from but you can probably just search on Google for "quake mdl Blender script".
Image
User avatar
DukeInstinct
 
Posts: 20
Joined: Sat Jul 10, 2010 11:20 pm
Location: DukeLand

Postby goldenboy » Fri Jul 16, 2010 6:16 pm

mk wrote:
frag.machine wrote:
goldenboy wrote:You don't have to use pak files unless you want to replace existing weapons - stuff in pak files overrides stuff outside pak files.


Huh ? Isn't actually the opposite ?

No, goldenboy is right. Back then, PAK files having higher priority over plain files were also one of the techniques implemented to make sure that no one could play mods without a registered copy of Quake.


Of course, for modders today this is a major inconvenience. When I packed up RMQ's patch 1 recently, every time I wanted to test something, say progs.dat, I had to create a pak file from all the loose files...

should this behaviour be changed? Are there any drawbacks to changing it?
User avatar
goldenboy
 
Posts: 924
Joined: Fri Sep 05, 2008 11:04 pm
Location: Kiel

Postby frag.machine » Fri Jul 16, 2010 6:32 pm

goldenboy wrote:
mk wrote:
frag.machine wrote:
goldenboy wrote:You don't have to use pak files unless you want to replace existing weapons - stuff in pak files overrides stuff outside pak files.


Huh ? Isn't actually the opposite ?

No, goldenboy is right. Back then, PAK files having higher priority over plain files were also one of the techniques implemented to make sure that no one could play mods without a registered copy of Quake.


Of course, for modders today this is a major inconvenience. When I packed up RMQ's patch 1 recently, every time I wanted to test something, say progs.dat, I had to create a pak file from all the loose files...

should this behaviour be changed? Are there any drawbacks to changing it?


I am still confused. I NEVER had to pack anything to use with Quake, as long I didn't use id1 folder directly. I always had the habit of create a blah folder, slap my code/models/maps/sounds there and run Quake directly without any hassle. Are we talking about the same thing or not ?
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2090
Joined: Sat Nov 25, 2006 1:49 pm

Postby Spike » Fri Jul 16, 2010 7:14 pm

pak files are found after the directories that contain them.
thus they have a higher priority than the directory that contains them.
basically.

its a bug, okay? geez
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby Karall » Sat Jul 17, 2010 8:33 pm

Kinda noob question but i saved as md3 now, how do i use qwalk?
Karall
 
Posts: 128
Joined: Thu Jul 15, 2010 5:23 pm

Postby Karall » Sat Jul 17, 2010 8:34 pm

Actully how do i save it as md3 file. saving as blah.md3 didnt seem to work...
Karall
 
Posts: 128
Joined: Thu Jul 15, 2010 5:23 pm

Postby goldenboy » Sun Jul 18, 2010 9:53 am

http://www.katsbits.com/tools/

Download those md3 im/exporter scripts.

Put into blender/scripts, they should appear in the menu then.

I think the qwalk thread on this forum describes how to run it, but I'm not sure. I might look it up later.
User avatar
goldenboy
 
Posts: 924
Joined: Fri Sep 05, 2008 11:04 pm
Location: Kiel


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest