OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: ticilli on 15 May 2004, 20:29:12

Title: Import 3ds and ingame
Post by: ticilli on 15 May 2004, 20:29:12
Hi, i have imported my .3ds into o2, re applied the textures, and follow bbresb's (sp?) tutorial on putting weapons ingame, made the memory LOD, the 0.000 LOD and left it (as that is all he asks).

The problem come when i save the .p3d, compile and attempt to play, it jut says "cannot open mp5sd/mp5sd6.p3d".

is this a defect for importing .3ds files or am i doing something wrong.

thanks for any help
Title: Re:Import 3ds and ingame
Post by: Planck on 16 May 2004, 00:07:24
I think the faulty line in your config might possibly be :

model="mp5sd/mp5sd6.p3d";

it probably should read:

model="\mp5sd\mp5sd6.p3d";


Try it and see.


Planck
Title: Re:Import 3ds and ingame
Post by: ticilli on 16 May 2004, 16:03:43
yeah, i always make that mistake, changed but still says the same thing, but i think it's something to do with the model, not that it's corrupt cos o2 can read it, but it just wont open ingame.

If you want i can give you a run down i what i did...i'll post later

here goes:

Modelled, UVWed and textured Using PS6 and Studio Max 6

Exported from there as a .3ds, preserving maxs texture co-ordinates

Imported into o2, and resized using ak47_proxy supplied with OFPanim

Deleted the AK47 and pointed my weapon towards it texture files

Selected the weapon and named the selection "zbran"

Created a new LOB called "memory", and placed the 4 vertices
(usti hlavne, konec hlavne, nabojnicestart, nabojniceend)
and selected all, and named the selection "zbran" also

Didn't make a zasleh as an MP5SD6 wouldn't need one

Saved it to it's folder (mp5sd6\mp5sd6.p3d) with textures in the aswell

Pointed Bresebs .cpp (from his tutorial) in there, pointing towards my weapon instead of his.

Saved that, Compiled it using stuffpbo

I go ingame, editor, civilian->stalker hunter (from the .cpp)

then i get the error "cannot open object mp5sd6\mp5sd6.p3d
Title: Re:Import 3ds and ingame
Post by: DBR_ONIX on 16 May 2004, 17:55:37
Hmm..
Lose the .p3d at the end of the file name (In the config)
:)
99.998% sure that will now work

- Ben
Title: Re:Import 3ds and ingame
Post by: ticilli on 16 May 2004, 18:34:18
Well, i had hoped it would aswell, but by that 0.002% margin you were wrong, same error, which leaves me to believe that it's the models fault, but this being my 1st weapon i know not how to fix it
Title: Re:Import 3ds and ingame
Post by: Planck on 16 May 2004, 19:02:29
I think you need the '\' at the beginning:

model="\mp5sd\mp5sd6.p3d";


mp5sd would be the name of your PBO.
mp5sd6.p3d is the model file which is inside said PBO.


Planck
Title: Re:Import 3ds and ingame
Post by: ticilli on 16 May 2004, 19:43:20
I think you need the '\' at the beginning:

model="\mp5sd\mp5sd6.p3d";


mp5sd would be the name of your PBO.
mp5sd6.p3d is the model file which is inside said PBO.


Planck

I read this carefully, and never realised that it was

\addonname\foldername\modelname

So i pointed to it and it WORKED!

Sir i am indebted to you and your vast knowledge...of...addons

edit:as it so rightly says below my name, i am a llama
Title: Re:Import 3ds and ingame
Post by: Planck on 16 May 2004, 19:48:02
Glad to have helped.

 ;D


Planck
Title: Re:Import 3ds and ingame
Post by: DBR_ONIX on 16 May 2004, 20:14:17
Heheh
Glad to hear it worked
Bet you'll never make that mistake again :P

If it's always the simple thing, why isn't everything simple? ::)
- Ben