Avorion Forum

General => Mods => Topic started by: Korenos on March 18, 2017, 01:24:57 PM

Title: [Ext]Ship converter
Post by: Korenos 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

(http://img1.imagilive.com/0317/Fonda08.png)

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.  :-\
Title: Re: [Ext]Ship converter
Post by: LogicSocket 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.
Title: Re: [Ext]Ship converter
Post by: Korenos 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
Title: Re: [Ext]Ship converter
Post by: Wilponderoci on March 18, 2017, 05:37:47 PM
Your program threw an error and would not start
Title: Re: [Ext]Ship converter
Post by: Korenos 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.
Title: Re: [Ext]Ship converter
Post by: Wilponderoci 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

 
Title: Re: [Ext]Ship converter
Post by: Korenos 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
Title: [REQ] Avorion 3d conversion tool
Post by: Wilponderoci 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/
Title: Re: [Ext]Ship converter
Post by: LordHavoc on March 24, 2017, 11:40:40 AM
Blender-to-Avorion add-on would be amazing
Title: Re: [Ext]Ship converter
Post by: SpinFire on March 24, 2017, 04:09:00 PM
Not working.Writing error.
Title: Re: [Ext]Ship converter
Post by: Laggas 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

(http://i.imgur.com/cZGcESS.jpgG)
Title: Re: [Ext]Ship converter
Post by: Espcevan 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)
Title: Re: [Ext]Ship converter
Post by: Wilponderoci on April 03, 2017, 04:28:30 AM
Is this seriously working?
Title: Re: [Ext]Ship converter
Post by: Espcevan on April 03, 2017, 10:26:22 AM
Is this seriously working?

Yes this is working....


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

Title: Re: [Ext]Ship converter
Post by: Laggas 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.
Title: Re: [Ext]Ship converter
Post by: Wilponderoci on April 06, 2017, 03:10:46 AM
The program will not run. It just errors... everything else I get. I understand it. All the steps. No problem.

The program just throws an exception every time and generates no log. Can anyone here with more than 2 posts confirm that this tool works?

Pretty much 100% confirm that this tool is bullshit but I would love it if anyone else could please check
Title: Re: [Ext]Ship converter
Post by: Jcewazhere on April 07, 2017, 09:09:00 PM
The voxelizer website works, some of the time, and is pretty cool. Especially the 2d slicer feature. But the avorion converter download just crashes when I try to run it.
Title: Re: [Ext]Ship converter
Post by: Wilponderoci on April 08, 2017, 02:57:17 AM
yes the voxel website is cool but the avorionconverter.exe is bogus to my knowledge
Title: Re: [Ext]Ship converter
Post by: Korenos on April 18, 2017, 08:51:49 AM
Hello,

Yes, the converter is working properly, it's not a virus or anything else.

The known problems are:

Required to run in administrator mode.
Checked this vertion .NET Framework.
Problem on Windows versions earlier than 10.

I recall that I did this program quickly to be able to implements ships created via blender for personal use and I thought you would like it.

Sorry for my bad English.

Thank you.
Title: Re: [Ext]Ship converter
Post by: Rinart73 on April 18, 2017, 12:24:53 PM
Windows 8.1 x64.
Have all installed .NET frameworks from oldest to 4.5.2.
Program works just fine, great work :)

It's sad that there is no 'voxelizer' that can make not only voxels, but triangles too.
Title: Re: [Ext]Ship converter
Post by: Wilponderoci on April 18, 2017, 04:49:15 PM
Windows 7

Everything is up to date all my redists and .net

I would love to be able to use this tool a little.

Anyone have any solution?

Source was made available.
Title: Re: [Ext]Ship converter
Post by: VoltairesPuppet on April 19, 2017, 02:00:40 PM
Why does it need to run as administrator?

 :'(
Hello,

Yes, the converter is working properly, it's not a virus or anything else.

The known problems are:

Required to run in administrator mode.
Checked this vertion .NET Framework.
Problem on Windows versions earlier than 10.

I recall that I did this program quickly to be able to implements ships created via blender for personal use and I thought you would like it.

Sorry for my bad English.

Thank you.
Title: Re: [Ext]Ship converter
Post by: mavillar on April 19, 2017, 08:12:28 PM
Another website for searching 3d models.

https://www.stlfinder.com (https://www.stlfinder.com)

I think it will be very useful.
Title: Re: [Ext]Ship converter
Post by: Wilponderoci on April 20, 2017, 09:41:48 PM
Again anyone have any idea how to make this work properly on win7 x64?

Title: Re: [Ext]Ship converter
Post by: Rinart73 on April 20, 2017, 09:47:18 PM
I have ~some~ skill in C#, but the app is written with XAML and it's not possible for me to open it in IDE (because Visual Studio doesn't want to work on my PC anymore) so I'm using Xamarin.
Title: Re: [Ext]Ship converter
Post by: Dorkas on April 30, 2017, 02:21:04 PM
It work!

Ich habe schon einige obj-stl-Vorlagen umgearbeitet. Wer Hilfe brauch, zumindest auf Deutsch, kann mich gerne anschreiben.
Title: Re: [Ext]Ship converter
Post by: JWT on April 30, 2017, 02:39:53 PM
Blender-to-Avorion add-on would be amazing
Thumbs up! GG! YEYY! Approved! I'd love to see that, especially, if it could also take into account the only available building blocks, and if it'd then try to seamlessly convert .. say.. rounded edges into the cubical directional matrix, that this game runs on.

Blender 4 da win!
Title: Re: [Ext]Ship converter
Post by: Incredibad on May 08, 2017, 01:19:23 PM
is is possible that it can make the craft backwords? if so can it be changed?
Title: Re: [Ext]Ship converter
Post by: Korenos on May 17, 2017, 01:41:47 PM
Hello, sorry for not being too active, I wait for the news update.

The problem for rounding the edges is that I do not see at all how to take it.

Wilponderoci : Trying to install Visual Studio, with it you should be able to open the source and execute it, moreover it seems that it is win 7 the problem because it is not compatible with WPF but I am wrongly wrong.

Rinart73 : You can not use Visual Studio because you probably have to worry about what is already installed, completely removes everything related to Visual Studio.
Removes the "Microsoft Visual C ++ 20 ** Redistributable".

VoltairesPuppet : Some people had to throw it that way but you do not necessarily have to, I do not need.

JWT : Yes, you can design a 3D object using blender to convert it to a cube via the site and finally, you have to convert the received file using the converter I designed and a file you can Use in avorion will create, then you have to retouch this cubic object to give the appearance of a magnificent vessel.

Incredibad : I'm sorry but I did not understand your question.

Here is my creation made with the help of the converter, it is the Hel ship of Eve Online.





Title: Re: [Ext]Ship converter
Post by: mrcalzon02 on May 18, 2017, 03:37:17 AM
Followed listed steps, Program does not start, thanks for the attempt! any one else willing to give it a shot?
Title: Re: [Ext]Ship converter Update Install
Post by: Korenos on May 30, 2017, 10:20:58 AM
Hello,

I created a new installation file for those who do not manage to execute the first.

I do not know if it works but give me some news.

Thanks you for your help.

Here is the link : https://www.dropbox.com/s/gisay7lfqa0ojzn/Converter.zip?dl=0

P.S. I'm converting the C# project to Java
Title: Re: [Ext]Ship converter
Post by: Fox on May 30, 2017, 11:30:41 AM
uhm, might be me, but the only executable in your new .zip only generates a reealy strange popup i've never seen before!
Same Error Message after clicking Install as before... Win7 x64 here, too, btw
Effort appreciated nevertheless!  8)
Title: Re: [Ext]Ship converter
Post by: Korenos on May 30, 2017, 02:09:54 PM
Hello, thanks for your reply.

I will do this program in java hoping that there haven't bug.





Title: Re: [Ext]Ship converter
Post by: Kucki on June 05, 2017, 09:25:19 AM
Hey guys,

I had a problem converting the Valdore (https://www.thingiverse.com/thing:1426915) using this tool. I did everythign as described and used the website provided. Everything worked as expected, but ingame the ship didn't show any blocks and all I got was a black preview of the ship.

I compared the generated .xml with my other files and realized, that the generated .xml from this tool used commas "," instead of points "." to display decimal numbers (eg. 4,5 instead of 4.5). Using an editor to replace everty comma with a point worked and fixed the problem for me.

Greetings
Title: Re: [Ext]Ship converter
Post by: hexster on June 26, 2017, 09:26:45 PM
Is there a way to get the converter to use a blender XML file of a ship?
Title: Re: [Ext]Ship converter
Post by: iWAR on August 04, 2017, 06:46:02 AM
I've tried it without any problems and worked great. Great post bud.
Title: Re: [Ext]Ship converter
Post by: Operator on August 13, 2017, 02:31:18 AM
I have tried everything, i can not get this to work for me, I even tried removing doubles on the 3d model. every time i try to run the converter it gives me an unnamed error in white text then does nothing. I have followed every step to the letter.
And one else have a fix? this would have been so cool.

Okay I can confirm this no longer works, i even tried to use an avorion ship file and convert it, it started to convert then crashed.

I tried again, using the online converter to change my obj to stl then convert that to XMP, didn't work.

It just gives me a white text saying Error, not even an error message, just error.

Tried again with new models to test it, nothing. same error message. just small white text over the loading bar when I click convert.
Title: Re: [Ext]Ship converter
Post by: EST on August 13, 2017, 03:26:43 AM
Thank you for a wonderful program :)

I have a strange problem.
When converting the XML of Online Voxelizer, we now issue an error.
But I believe the convertAvorion.Xml  is normal.
because XML files that have previously converted the same OJC / STL file can be successfully converted to AVORION.XML.
Now, converting XML with Online Voxelizer will fail with convert AVORION.XML.
Even if I converted the same OJC / STL file to XML, I got an error.
Did something happen?

I am sorry, I am not good at English. :'(
Title: Re: [Ext]Ship converter
Post by: Operator on August 13, 2017, 03:47:13 AM
Ah ha! I knew it. okay so it isn't me then. I bet the Voxelizer was changed and therefor it broke the converter.

I can't use any xml with the converter sadly. but the voxelizer works fine, any chance of getting a fix for this?
Title: Re: [Ext]Ship converter
Post by: Operator on August 13, 2017, 08:24:39 PM
So I think someone on the steam forum found the problem, here is his post.

"LHammonds  [author] 1 hour ago
Yes, it seems the online voxelizer website changed its format slightly. Not sure what is breaking it but I do have the resulting XML file before the update and after the update. From an initial glance, they changed the indentation to be at least one space further in. The original conversion was 57,448 lines, the new file is 39,935 lines total."

Alright using one old file (working) and one new file ( broken) I found the problem. the Format of the voxelizer changed here is the lines from the older XML file

<?xml version="1.0" encoding="utf-8"?>
 <content>
  <dimensions>
   <width>26</width>
   <height>36</height>
   <depth>127</depth>
  </dimensions>
  <voxel_data>
   <position>
    <object>voxel 0</object>
     <x>5</x>
     <y>22</y>
     <z>36</z>
   </position>
   <position>
    <object>voxel 1</object>
     <x>5</x>
     <y>21</y>
     <z>36</z>
   </position>


Here is line 1 - 20 on the new
<?xml version="1.0" encoding="utf-8"?>
 <content>
   <dimensions>
     <width>26</width>
     <height>36</height>
     <depth>127</depth>
   </dimensions>
   <voxel_data>
     <name>voxel 0</name>
     <position>
       <x>1</x>
       <y>4</y>
       <z>0</z>
     </position>
     <name>voxel 1</name>
     <position>
       <x>26</x>
       <y>4</y>
       <z>0</z>
     </position>

Okay I got it, what needs to be changed in the converter.

object has become name
and lines 9 and 10 have changed places in the voxelizer exported xmp.
thus this breaks the avorion importer stopping it from working. should be a simple fix for someone who knows coding
Title: Re: [Ext]Ship converter
Post by: Operator on August 13, 2017, 09:05:29 PM
CONFIRMED IT WORKS NOW

Open your voxelized XML file in note pad ++ find and replace every name with object. and save! your converter will now work.
Title: Re: [Ext]Ship converter
Post by: Rueful on October 14, 2017, 09:34:03 AM
I just use http://drububu.com/miscellaneous/voxelizer/ (http://drububu.com/miscellaneous/voxelizer/) as it has an option to save the file in Avorion format already so no need to use any programs.  Only issue is it does take a while to save the file when using avorion format, and the block count can be very high although it does show the block count in the gui.

Kind Regards
Rueful
Title: Re: [Ext]Ship converter
Post by: keviiinl on December 12, 2017, 03:33:16 AM
This works great, very easy to do as well!
Title: Re: [Ext]Ship converter
Post by: DasVoid on January 09, 2018, 10:19:03 AM
Everything works for me but I am having 1 big problem. When I load the ship up in the builder it is always backwards. I have tried highlighting the entire ship and rotating it but Avorion wont allow me to do that apparently. Is there something I am doing wrong that is causing the ships to be built backwards?
Title: Re: [Ext]Ship converter
Post by: Ulrich_Rüstungjäger on January 11, 2018, 07:13:05 AM
Seems like this project has just stopped, which is quite sad. But I guess I will trow out a post real quick. As of yesterday 1/10/2018 drububu.com has updated their online voxelizer. This update has broken how convert avorion functions. Constant errors are thrown when attempting to use any new files produced by the online voxelizer. If the creator is still around and working on this very helpful project I would love to see either a fix or an update put out.

~610th Technical Evaluation Division
Title: Re: [Ext]Ship converter
Post by: mega_byte on February 24, 2018, 12:07:35 PM
Ok, looking at the voxelizer site, it has an option to save as AVORION.xml , sweet!

(https://imgur.com/a/AENCj)
(https://i.imgur.com/eqAk1UP.png)(https://i.imgur.com/4jwWuik.png)

(https://www.avorion.net/forum/imgur.com/eqAk1UP)
Title: Re: [Ext]Ship converter
Post by: Merizumo on July 23, 2018, 10:22:19 PM
I'm looking to use this amazing program but I seem to be getting the same error as Wilponderoci (I have updated my .Net), it throws an error. Could I ask someone its working for to maybe convert a file for me ?
Title: Re: [Ext]Ship converter
Post by: Desolator on February 15, 2019, 01:39:09 PM
I cna't get this program to work :( I have a pretty big ship that I'd like to convert (.obj to avorion), is there anyone who can help me with that?