Jump to content

Custom map objects to the game


Dzsekszon

Recommended Posts

Hy!

I'm converting an object to the game, but I've got a problem!

 

- In gta.dat I wrote these lines:

IMG DATA\MAPS\nimitz\nimitz.IMG under IMG MODELS\CUTSCENE.IMG

- Copy the nimitz.img to GTA San Andreas\data\maps\nimitz folder

- After that I start MED

- At IDE I click on New file, and create a nimitz.ide in the nimitz folder

- I've got a new .IDE file in the list, and i click on New Item, and I browse the nimitz.dff

- At IPL I click on New file, and.....

- I've got a new .IPL file in the list, and I click on New, and in the nimitz.ide I open the nimitz! That's appear now in the screen!

- At Scene I load the nimitz and the SFw ipls

- I set the coordinates, after that I save it!

- Start a new game, and it's crashed!

What did I wrong?

Is there a poly limit about the LOD and the colision? Or is it possible that my colision is wrong? Because if I delete the LOD lines, the game doesn't crash, but the object doesn't load! There's nothing!

 

Here's the ide file:

objs

18631, nimitz, nimitz, 299, 0

18632, lodnimitz, lodnimitz, 1000, 0

end

 

And the ipl:

inst

18631, nimitz, 0, -2100, 1770, 7, 0, 0, 0.707108188464, -0.707105373907, -1

18632, lodnimitz, 0, -2100, 1770, 7, 0, 0, 0.707108188464, -0.707105373907, 0

end

 

Ok, it hasn't got texture yet, now the txd file it's just another texture for test it!

 

And a picture in MED:

http://gtasarwmod.atw.hu/bmw/nimitz/nimitz1.jpg

 

Somebody has got any ideas?

Thanks

Link to comment
Share on other sites

looks texture less doesn't it, TXD set for SA?, also check all the model's textures are in the nimix.txd

.

Link to comment
Share on other sites

It's necessary? Because if I import a model to img tool without txd, it works in the game! Yes, the ship hasn't got textures yet, I set a txd file as nimitz.txd, but now there aren't any textures on it! Or if I add a texture with material editor as for example base.tga, then add it to the nimitz.txd, it would be work?

Link to comment
Share on other sites

 

inst18631, nimitz, 0, -2100, 1770, 7, 0, 0, 0.707108188464, -0.707105373907, -118632, lodnimitz, 0, -2100, 1770, 7, 0, 0, 0.707108188464, -0.707105373907, 0end

 

 

should be

 

 

inst18631, nimitz, 0, -2100.0, 1770.0, 7.0, 0, 0, 0.707108188464, -0.707105373907, 118632, lodnimitz, 0, -2100.0, 1770.0, 7.0, 0, 0, 0.707108188464, -0.707105373907, -1end

 

 

edit: added ".0" to end of coords, don't think it will cause an issue, but may.

 

Also, there is no need for col in SA for LOD objects, as long as they are used

properly. Consult This Post for LOD in SA explained in depth, in plain form.

Edited by derty

LUCK FOR A BUCK!!!!! f*ck Yea!

 

GTAF's Most Annoying Unbanned Member.

user posted image

bai. -jllr

Link to comment
Share on other sites

Thanks!

Now the game loads, but if I get near to the ship (Doherty garage area for example) the game is crashing! I made a new LOD model, made textures for the models (add a gray base.tga texture)! And set the material as a standard gta material! Or is this the problem? The map object doesn't need gta materials, just textures?

Link to comment
Share on other sites

is this your WHLOLE inst section above? Your IPL has ONLY those lines?

 

Also, let's try with different ID numbers, 19999 and 19998. Those worked

for me in a little request I did for someone.

 

I can look at your files with you if we can't troubleshoot this here, good luck.

LUCK FOR A BUCK!!!!! f*ck Yea!

 

GTAF's Most Annoying Unbanned Member.

user posted image

bai. -jllr

Link to comment
Share on other sites

Yes!

I restart the whole thing in MED! Now that's the new datas:

 

IDE:#Item Definition File created by MapEditorobjs18631, nimitz, nimitz, 299, 018632, lodnimitz, lodnimitz, 999, 0endtobjend2dfxend

 

 

 

IPL:#Item Placement File created by MEdinst18631, nimitz, 0, -2100.0, 1710.0, 7.0, 0, 0, 0, 1, 118632, lodnimitz, 0, -2100.0, 1710.0, 7.0, 0, 0, 0, 1, -1end

 

 

And it's still crashing!

If I rewrite the ID's to 19998 and 19999: crash

If I write ".0" after the zeros and 1: It doesn't crash, but there's is nothing in the game!

 

I try to remove the GTA materials, if the game will crash, I will be totally puzzled! That's my last idea. mercie_blink.gif

 

Edit:

Reset the original materials (but keep the base.tga): crash!

Now I'm puzzled confused.gifconfused.gifconfused.giforly.gif

Edited by Dzsekszon
Link to comment
Share on other sites

Ok then, check it out, the fastest and easiest way to do this is to PM

me the files I'll try to sort it out, and update you here with what it was

and help to understand it. If you need a place to hos the file, please

use discretion for my sake tounge.gif yousendit.com was pretty good, and will

delete the link in 7 days wink.gif

LUCK FOR A BUCK!!!!! f*ck Yea!

 

GTAF's Most Annoying Unbanned Member.

user posted image

bai. -jllr

Link to comment
Share on other sites

A reply is in order, rather than edit, I believe.

 

I received your nimitz files, the issue is clear, however I've not fixed or tested.

 

In your img file, you have a col for LOD file, which is not needed in SA.

Also, you'll need your img file set up by IDE (DFFs, then TXDs, then Col

Libraries, meaning it should list like this:

 

user posted image

edit2: sorry, i didnt include your lod txd, it should be before the col file blush.gif

 

Now, take into consideration that while LOD does not take COL files in SA,

you are not merely looking at the removal of your LOD col file. Nor is it only

the reordering of your IMG file.

 

The nimitz.col file would be considered your col library. In other words, if your

IDE and IPL were named mymap.ide/ipl (ipl does not require same name), but

your DFF was still named "nimitz.dff", then your col (single file per IDE) would

be named mymap.col, which upon opening that file, one would find nimitz.col inside. smile.gif

 

A clear visual comparison is as follows:

 

user posted image

 

Notice that I name LOD with a standard of Z before the name (ie: zsunoco),

naming is not important, I do this to speed my work. Also, notice that though

there is LOD for all you see in the col file, there is no entries in the COl file

for LOD, it is all only standard view frame objects.

 

Does this help? Are you up and running now, no problems? smile.gif

HERE is another look at SA lod tutorial to know everything else.

Edited by derty

LUCK FOR A BUCK!!!!! f*ck Yea!

 

GTAF's Most Annoying Unbanned Member.

user posted image

bai. -jllr

Link to comment
Share on other sites

So, I must to rebuild my img, like this?

user posted image

 

I understand LOD's col file doesn't need! And what should I need to do after I rebuild the img!?

(Sry, but my english isn't so good, and I can't understand what should I need to do! Or I'm understand it, just dunno what and where must I do this! biggrin.gif Sry)

Link to comment
Share on other sites

That's intresting! I changed the LOD model to the aircaft carrier's model (you know, it is in SF, and you can take off from with a Hydra), and now, finally, it works! BUT! If I very close to the ship, the game is crashing! biggrin.gif:D But I can see the LOD model, I think the colisions are bad! How can I delete the LOD's colision? And I dunno why wrong is the model's colision, it has got Bounding Box, Bounding Sphere, and a CM_nimitz

Edited by Dzsekszon
Link to comment
Share on other sites

LOD uses no collison. LOD = NO col model.

 

How big is this model? the size of the ship???

 

Ok, Im going to go ahead and load it up and see if I can clear this up with more study wink.gif

LUCK FOR A BUCK!!!!! f*ck Yea!

 

GTAF's Most Annoying Unbanned Member.

user posted image

bai. -jllr

Link to comment
Share on other sites

Hey hey hey!

Can you see it? biggrin.gif

http://gtasarwmod.atw.hu/bmw/nimitz/nimitz2.jpg

 

But the model's colision is wrong, it's 100%! But I'm happy now, yeah, it works!

 

Edit: But this is the colision model too, so the model is good, something wrong with the Bounding stuffs, or I dunno! So if it works as a LOD, it must be works as a col! No?

Edited by Dzsekszon
Link to comment
Share on other sites

it works up close too, or still crashes when you get close.

 

Collision is wrong? Meaning, broken/cause crashes, or meaning it is not lined up to dff?

 

Looks very detailed biggrin.gif

LUCK FOR A BUCK!!!!! f*ck Yea!

 

GTAF's Most Annoying Unbanned Member.

user posted image

bai. -jllr

Link to comment
Share on other sites

Wow, that is so huge.

 

I wonder if you have tried making this into 2 objects? It will make bounding spheres a lot smaller.

LUCK FOR A BUCK!!!!! f*ck Yea!

 

GTAF's Most Annoying Unbanned Member.

user posted image

bai. -jllr

Link to comment
Share on other sites

Well, I tried some ways!

Without the island:

http://users.cwi.hu/sgupload/1200764742.jpg

Crashed

 

With the island:

http://users.cwi.hu/sgupload/1200764876.jpg

Crashed

 

Only just the island:

http://users.cwi.hu/sgupload/1200764899.jpg

Crashed

 

But I can get real close to the ship! I'm close to crash with the ship, need a half Hydra and I could! biggrin.gif

Any ideas? confused.gif

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.