New model utilities

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Capt. Slog
Dangerous
Dangerous
Posts: 84
Joined: Sun Apr 26, 2009 10:24 pm

Post by Capt. Slog »

radcapricorn, I must have misread your post. Thanks.
User avatar
Cmdr Radan
Competent
Competent
Posts: 63
Joined: Sat Feb 19, 2011 6:06 pm
Location: UK

Re: New model utilities

Post by Cmdr Radan »

Hi, I'm tring to make a ship...

I've made a basic model in wings3d and got it saved as a .obj

but, as I'm a total noob to this, I can't seem to get any further.
I DLed Python and I get what looks like a Dos box.
typed "obj2dat.py newship.obj" and got an error.

anyone got the time/inclanation to help?
Ship:- Custom Cobra DTX ' The Narcissi '
Status:- Clean
Rating:- Competent
Occupation:- Trader/freelance private transporter
Location:- G1

'Would it help if I got out and pushed?'
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Re: New model utilities

Post by Thargoid »

Sounds like you're using the Python command-line box. Don't do that, just open a normal windows command prompt (go to "run" on the start menu and type "command" or "cmd" for example, or find it under accessories or somewhere like that).

Then navigate to the folder where your .obj file is and type obj2dat.py <yourfilenamehere>.obj . Have the obj2dat.py file also in the same directory (I think it can also be done using the search path, but I normally don't do that myself) and it should then belch out a corresponding .dat file.
User avatar
Cmdr Radan
Competent
Competent
Posts: 63
Joined: Sat Feb 19, 2011 6:06 pm
Location: UK

Re: New model utilities

Post by Cmdr Radan »

thanks, where do i find/get this? (obj2dat.py file)
I'm assuming, I can put it into a file (any) along side my ship.obj
then follow the instructions
Ship:- Custom Cobra DTX ' The Narcissi '
Status:- Clean
Rating:- Competent
Occupation:- Trader/freelance private transporter
Location:- G1

'Would it help if I got out and pushed?'
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Re: New model utilities

Post by Thargoid »

They (obj2dat.py and dat2obj.py - guess what the latter does...) should be available for download I think from Berlios, That said I'm not sure offhand from exactly where.

If all else fails I can put the copies I have onto my box.net account, but they may not be the latest, most up to date or official versions (although they work for me).

I'm sure someone with a better memory than me can point you at the proper copies online somewhere...
User avatar
Cmdr Radan
Competent
Competent
Posts: 63
Joined: Sat Feb 19, 2011 6:06 pm
Location: UK

Re: New model utilities

Post by Cmdr Radan »

searched for it, google sent me back here :lol:

went to the Berlios site and searched.....nothing.

never mind, I'm not good at this stuff anyhow (I fix broken stuff for a living) nothing technical, I'll leave ship making to the experts.

Thanks anyhow.
Ship:- Custom Cobra DTX ' The Narcissi '
Status:- Clean
Rating:- Competent
Occupation:- Trader/freelance private transporter
Location:- G1

'Would it help if I got out and pushed?'
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Re: New model utilities

Post by Thargoid »

As I said, give it a little while. If no-one can point you to the correct place by the end of the day I'll upload my personal copies and send you links.
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Re: New model utilities

Post by Gimi »

Cmdr Radan wrote:
searched for it, google sent me back here :lol:
went to the Berlios site and searched.....nothing.
never mind, I'm not good at this stuff anyhow (I fix broken stuff for a living) nothing technical, I'll leave ship making to the experts.
Thanks anyhow.
There is a link in the first post in this thread, but it is very old and I don't know if those are still valid.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Re: New model utilities

Post by Thargoid »

Seems as good as any to me.

Cmdr Radan - try those and see how you get on. Personally I use obj2dat.py rather than any of the other variants available there.
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: New model utilities

Post by Commander McLane »

Aren't obj2dat.py etc linked from somewhere in the ship-modeling manuals on the Wiki?

You could also search for links here on the boards (there is a search function at the top right of the page).
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: New model utilities

Post by Cody »

Commander McLane wrote:
(there is a search function at the top right of the page).
Worth mentioning Dizzy's search tool. I think it's still available and still works.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
Cmdr Radan
Competent
Competent
Posts: 63
Joined: Sat Feb 19, 2011 6:06 pm
Location: UK

Re: New model utilities

Post by Cmdr Radan »

Ok, clicked on the link on page 1...got a list

* Dat2Mesh.py
* Dat2Obj.py
* Dat2ObjTex.py
* DatScale.py
* DropDat2Mesh.app/
* DropMesh2Dat.app/
* DropMesh2DatTex.app/
* DropObj2DatTex.app/
* Mesh2Dat.py
* Mesh2DatTex.py
* Mesh2Obj.app/
* Mesh2Obj.py
* Obj2DatTex.app/
* Obj2DatTex.py/
* Obj2DatTexNorm.py

Clicked on Obj2DatTex.py and went to a page of text. What next?
Ship:- Custom Cobra DTX ' The Narcissi '
Status:- Clean
Rating:- Competent
Occupation:- Trader/freelance private transporter
Location:- G1

'Would it help if I got out and pushed?'
User avatar
Cmdr Radan
Competent
Competent
Posts: 63
Joined: Sat Feb 19, 2011 6:06 pm
Location: UK

Re: New model utilities

Post by Cmdr Radan »

Cmdr Radan wrote:
Ok, clicked on the link on page 1...got a list

* Dat2Mesh.py
* Dat2Obj.py
* Dat2ObjTex.py
* DatScale.py
* DropDat2Mesh.app/
* DropMesh2Dat.app/
* DropMesh2DatTex.app/
* DropObj2DatTex.app/
* Mesh2Dat.py
* Mesh2DatTex.py
* Mesh2Obj.app/
* Mesh2Obj.py
* Obj2DatTex.app/
* Obj2DatTex.py/
* Obj2DatTexNorm.py

Clicked on Obj2DatTex.py and went to a page of text. What next?
*edit* sorry to be a nusance, this is driving me crazy
Ship:- Custom Cobra DTX ' The Narcissi '
Status:- Clean
Rating:- Competent
Occupation:- Trader/freelance private transporter
Location:- G1

'Would it help if I got out and pushed?'
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: New model utilities

Post by Svengali »

Create a new file and copy the content into it or look at Ahrumans post https://bb.oolite.space/viewtopic.php?f= ... y&start=27. Use right click, save as.

Copy it in the same folder as your obj file, then follow the instructions https://bb.oolite.space/viewtopic.php?f=6&t=5669&start=3
User avatar
TGHC
---- E L I T E ----
---- E L I T E ----
Posts: 2157
Joined: Mon Jan 31, 2005 4:16 pm
Location: Berkshire, UK

Re: New model utilities

Post by TGHC »

Keep at it Cmdr Radan, there's a huge amount of goodwill and help offered in this community they will get you there in the end, if you get stressed have a jellybaby and all will be well.
The Grey Haired Commander has spoken!
OK so I'm a PC user - "you know whats scary? Out of billions of sperm I was the fastest"
Post Reply