Author Topic: [Ext]Ship converter  (Read 22231 times)

Korenos

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    9
    • View Profile
on: March 18, 2017, 01:24:57 PM
Hello everyone,  :D

I present my ship converter in C #.

How it works :

Create or download a 3D object (.obj), navigate to a site that allows you to change a 3D object to a cube.

Retrieve cubic positions in .xml format from the site and use the program to convert this file so that it is recognized by Avorion.

Open the .xml file in note or notepad++ block and not in web.

Sorry for my not very good English and have fun  :P



Update your .NET Framework in 4.5.2 : https://www.microsoft.com/en-us/download/details.aspx?id=42643

Site of 3D objects : http://www.yeggi.com/q/eve+online/3/

Programm : https://www.dropbox.com/s/mpjrvi0gpp8syam/CovertAvorion.exe?dl=0

PS. Additions such as the ability to change the material of a ship will be made, send me a message if there are any bugs.  :-\
« Last Edit: March 19, 2017, 06:28:30 PM by Korenos »



LogicSocket

  • Jr. Member
  • **
  • Status:
    Offline
    Posts:
    76
  • Necessity is the mother of invention.
    • View Profile
on: March 18, 2017, 02:42:04 PM
Quote
navigate to a site that allows you to change a 3D object to a cube.

Would be helpful to include links for this part.



Korenos

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    9
    • View Profile
on: March 18, 2017, 02:50:19 PM
The link in question can be accessed via the program with a button.

http://drububu.com/miscellaneous/voxelizer/index.html



Wilponderoci

  • Full Member
  • ***
  • Status:
    Offline
    Posts:
    203
  • one fish two fists
    • View Profile
on: March 18, 2017, 05:37:47 PM
Your program threw an error and would not start
“Everything that irritates us about others can lead us to an understanding of ourselves.”



Korenos

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    9
    • View Profile
on: March 18, 2017, 05:49:45 PM
Is ok, i think.  :)

See the logo ?

I have a problem with the deployment I do not know why.
« Last Edit: March 18, 2017, 05:52:46 PM by Korenos »



Wilponderoci

  • Full Member
  • ***
  • Status:
    Offline
    Posts:
    203
  • one fish two fists
    • View Profile
on: March 18, 2017, 07:17:29 PM
does it generate a log?

if so where is it.

I tried to run a /L*V

but it doesnt install or even complete the run process before it errors.

ALSO are you using Cheat Engine to do part of it???

For some reason Its creating some awful suspicious .tmp files

 
“Everything that irritates us about others can lead us to an understanding of ourselves.”



Korenos

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    9
    • View Profile
on: March 18, 2017, 08:56:00 PM
Here is the source of the program, I warn, there is no comment.

The code is very simple but the problem does not come from there but from deployment.

I programmed it in C # with Visual Studio 2015.

Thank you for your help.

https://www.dropbox.com/sh/9yun283xj814wc1/AACFWgny56LxVHIjlQL9FUXpa?dl=0



Wilponderoci

  • Full Member
  • ***
  • Status:
    Offline
    Posts:
    203
  • one fish two fists
    • View Profile
on: March 23, 2017, 10:27:46 PM


this does not work as far as I can tell


but wouldnt it be amazing if it did?


Some one has commissioned someone to make a working tool

https://www.reddit.com/r/avorion/comments/5shqa1/3d_model_conversion_tool_commision/
« Last Edit: March 23, 2017, 11:59:40 PM by Wilponderoci »
“Everything that irritates us about others can lead us to an understanding of ourselves.”



LordHavoc

  • Full Member
  • ***
  • Status:
    Offline
    Posts:
    145
    • View Profile
on: March 24, 2017, 11:40:40 AM
Blender-to-Avorion add-on would be amazing



SpinFire

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    1
    • View Profile
on: March 24, 2017, 04:09:00 PM
Not working.Writing error.



Laggas

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    2
    • View Profile
on: March 30, 2017, 12:49:03 PM
Well it works for me, but when i want to apply the plan in build mode my ship just blows up.

Edit: I tested the website and let it make a 3x3x2 cube and put that through the converter still same happens ship blows up. So i think it is not the website.

Edit2: Well I found the issue when it gets out of the converter lower/upper xyz values might have a 0,5 1,5 2,5 etc. value. If you change this to a round number it works for me.
 
Edit3: It worked

« Last Edit: March 30, 2017, 04:11:12 PM by Laggas »



Espcevan

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    7
    • View Profile
on: April 02, 2017, 11:00:07 PM
Oh my Wowzers!  This is the greatest tool  have seen for Avorion so far. Thank you for making this and putting it out there.
 8) 8) 8) 8) 8) 8) 8) 8) 8)



Wilponderoci

  • Full Member
  • ***
  • Status:
    Offline
    Posts:
    203
  • one fish two fists
    • View Profile
on: April 03, 2017, 04:28:30 AM
Is this seriously working?
“Everything that irritates us about others can lead us to an understanding of ourselves.”



Espcevan

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    7
    • View Profile
on: April 03, 2017, 10:26:22 AM
Is this seriously working?

Yes this is working....

  • Download Convert Avorion
  • Download a 3D Object file like This One
  • Once you have your 3D Object download go Here
  • Upload your OBJ or STL file and save it as XML
  • Open the Avorion Converter as Administrator
  • Click Open and Select the newly saved XML file and click Convert
  • Put the Converted XML file into your %appdata%/Avorion/ships/  folder and loginto a server or single player game
  • Found a new Ship, go into your saved ships and Find the newly added Ship

There will most likely be some editing to the ship that needs done to make it all good.




Laggas

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    2
    • View Profile
on: April 03, 2017, 10:35:29 AM
Yeah it works just like Espcevan said. I only had to do 1 extra step to make it work and that is to replace all ,5 with nothing. Maybe i did something wrong or something else is doing something weird.