[Little questions] Where to find? How can I?

Post anything to do with editing Nexuiz here. Whether its problems you've had, questions, or if you just want to show off your work.

Moderators: Nexuiz Moderators, Moderators

Postby KICK » Wed Apr 12, 2006 10:51 pm

OK I understand how create my base entity and i put it on nexuiz_ents.def. But my model doesn't have any texture and I don't know how link th etexture to the model. Please help me.
KICK
Member
 
Posts: 25
Joined: Thu Mar 02, 2006 2:56 pm

Postby KadaverJack » Wed Apr 12, 2006 11:52 pm

KICK wrote:OK I understand how create my base entity and i put it on nexuiz_ents.def. But my model doesn't have any texture and I don't know how link th etexture to the model. Please help me.

The name of the texure is part of the model itself. So you have to set the texture in whatever 3D modeler you are using (sorry, can't help you with that, i'm not a 3D artist :)). If you set the texture to "mytex.jpg" for example, you have to copy the file to Nexuiz/data/textures/mytex.jpg.

And if you want to place a new entity on you map, you need to have a function in your qc code with the same name as the new entity's classname.

For example, when you have a entity
Code: Select all
{
"classname" "base_team1"
"origin" "23 42 0"
}
you'll need a function like that
Code: Select all
void base_team1()
{
    setorigin(self, self.origin);
    setmodel(self, "models/base_team1.md3");
    // more things that should be done with this entity on mapstart
}


With the nexuiz_ents.def however i can't help you (i'm not a mapper ;)), but it seems like you already have solved that problem.
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby KICK » Mon Apr 17, 2006 12:08 pm

Hi dudes,
I always got the same problem with textures. I create my model and his texture. I put the model in the game, but I can't link the model to the texture.

Can anybody send me an exemple?

edit:ok there's a problem with my exporter. I think i can resolve the problem.
KICK
Member
 
Posts: 25
Joined: Thu Mar 02, 2006 2:56 pm

Postby KICK » Wed Apr 19, 2006 10:27 pm

Another little problem:

I have create an entity in the *.def file. I put this entity on the map and it load perfectly on the game, with the texture(yeah). But the origin of the entity is '0 0 0'.

I affect the origin in the entity code with

setorigin(self, self.origin);

It seems the origin value doesn't send from the map to the engine.
Does someone got an idea on this problem.

Sry my messages are a bit annoying, but I'm noob with this engine.
KICK
Member
 
Posts: 25
Joined: Thu Mar 02, 2006 2:56 pm

Postby esteel » Thu Apr 27, 2006 7:47 am

Argh people with mapping experiance should take a look at this thread. You can try to load your map, open the console and enter sv_saveentfile that will save a file data/maps/YOURMAPNAME.ent that does contain a list of all the entities. This file can normaly be used to edit and change your entities without the need to recompile your map. Guess its worth taking a look at the "origin" of you entitiy in that file. And to see if it helps changing it there..
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Previous

Return to Nexuiz - Editing

Who is online

Users browsing this forum: No registered users and 1 guest

cron