importing model?

importing model?

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
ghobot21
Posts: 30
Joined: 11 Jun 2007, 10:37

importing model?

Post by ghobot21 »

does anyone know how to move a model from a mod to another?
as an example, i want to move the core commander model from xta to another mod.how can i do this?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Um, just replace the file?
ghobot21
Posts: 30
Joined: 11 Jun 2007, 10:37

Post by ghobot21 »

i tried that.only the arm commander get changed.i moved xta arm commander .3do and succeded.however the core commander have .3do and s3o.i moved both and still i got the old model.so, do i have to change any setting?
Saktoth
Zero-K Developer
Posts: 2665
Joined: 28 Nov 2006, 13:22

Post by Saktoth »

Open the core commander .fbi file and add .s3o to the end of the 'objectname' variable.

.s3o's neeed to have the extension, while 3do's are the default and thus you dont need to put the extension on.
ghobot21
Posts: 30
Joined: 11 Jun 2007, 10:37

Post by ghobot21 »

ok.it work.the only problem now is

when the core commander shoot, the laser/dgun come out of its chest and his arm is targeting the air :shock: :?:
User avatar
yuritch
Spring 1944 Developer
Posts: 1018
Joined: 11 Oct 2005, 07:18

Post by yuritch »

That means the unit's script doesn't correspond to its model. Try to copy the CORCOM.COB file (it's in the scripts directory) and see if that fixes your problem.
ghobot21
Posts: 30
Joined: 11 Jun 2007, 10:37

Post by ghobot21 »

ok.it work.the laser will come out from its hand.but when i use dgun and build command, the game will crash
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post by Neddie »

You need a dgun sprite for the weapon, and a buildtree for building units.
ghobot21
Posts: 30
Joined: 11 Jun 2007, 10:37

Post by ghobot21 »

here is the log before i copied xta commander script to a mod(well,i didnt want to copy the script because it cause the game to crash)

coberror: invalid piecenumber for show(flare) (in scripts/CORCOM.cob:fireprimary at 757
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

It doesn't work like that.
ghobot21
Posts: 30
Joined: 11 Jun 2007, 10:37

Post by ghobot21 »

ok.i give up.no more editing.will play just the way it was meant to be, unless someone give me a good solution on how to edit it :|
Post Reply

Return to “Game Development”