[OPTing] OPTech v2
Re: [OPTing] OPTech v2
- Driftwood
- Posts: 2174
- Joined: Wed Oct 22, 2003 11:01 pm
- Contact:
Yeah, I haven't really had time to prioritize to writing anything myself at this point, but the Wiki is pretty sparse right now, to confirm.
- Darksaber
- Posts: 10931
- Joined: Mon Jan 10, 2000 12:01 am
- Contact:
Found a error Jeremy
Code: Select all
---------------------------
Press Ctrl+C to copy the text
---------------------------
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at OPTech.MainWindow.opzopenmenu_Click(Object sender, RoutedEventArgs e) in C:\projects\optech\OPTech\OPTech\MainWindow.xaml.cs:line 2616
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
---------------------------
OK
---------------------------
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- JeremyaFr
- Posts: 3998
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Hello,
Can you share an opz file please?
Can you share an opz file please?
- Darksaber
- Posts: 10931
- Joined: Mon Jan 10, 2000 12:01 am
- Contact:
I'm sorry, not of that particular opz, I can try and recreate the opz, I know what I did,
In a opt I'm creating at the moment, I noticed some triangle faces, so I used your XwaOpzTrianglesFixer.exe on the opz and saved as a new name, tried opening the new named opz and got that error. I tried this twice creating the opt in question each time I received the same error, as a work around I removed the faces manually, there was only 8 faces.
In a opt I'm creating at the moment, I noticed some triangle faces, so I used your XwaOpzTrianglesFixer.exe on the opz and saved as a new name, tried opening the new named opz and got that error. I tried this twice creating the opt in question each time I received the same error, as a work around I removed the faces manually, there was only 8 faces.
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- JeremyaFr
- Posts: 3998
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Thanks for the details.
I'm able to repro the error. I will fix it.
I'm able to repro the error. I will fix it.
- JeremyaFr
- Posts: 3998
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
I've updated XwaOpzTrianglesFixer.
I think I've fixed the exception.
I think I've fixed the exception.
- Darksaber
- Posts: 10931
- Joined: Mon Jan 10, 2000 12:01 am
- Contact:
I've PMed you the opz folder
Can you point me in the right direction to download the XwaOpzTrianglesFixer I can't remember where the link is thanks
Edit, Sorry found it lol
Can you point me in the right direction to download the XwaOpzTrianglesFixer I can't remember where the link is thanks
Edit, Sorry found it lol
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- JeremyaFr
- Posts: 3998
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Thanks.
The link is here:
Edit: Link removed, thanks so much though
The link is here:
Edit: Link removed, thanks so much though
- Darksaber
- Posts: 10931
- Joined: Mon Jan 10, 2000 12:01 am
- Contact:
lol, thanks yeah I found it, I'll remove the link above as it's pointing to private forum
And the new version of XwaOpzTrianglesFixer fixed the problem
And the new version of XwaOpzTrianglesFixer fixed the problem
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- ual002
- Posts: 983
- Joined: Wed Sep 24, 2008 2:23 am
Feature request:
Can you somehow make optech read textures based on thier assigned filenames, and if there is a similar file name with maybe FGXX at the end it auto loads that file in that flight group slot and fills the previous slots in with the first texture if there are any gaps?
Just have a button that auto loads textures. When editing textures, more of my work flow revolves around assigning textures in OpTech than actually making the textures.
Can you somehow make optech read textures based on thier assigned filenames, and if there is a similar file name with maybe FGXX at the end it auto loads that file in that flight group slot and fills the previous slots in with the first texture if there are any gaps?
Just have a button that auto loads textures. When editing textures, more of my work flow revolves around assigning textures in OpTech than actually making the textures.
- Darksaber
- Posts: 10931
- Joined: Mon Jan 10, 2000 12:01 am
- Contact:
Jeremy, Do you have a clue what this means?
One minute the opt saved ok, then I fixed a texture tried to save it as an Opt again and got this, I've checked the textures, they are fine, I opened the opz txt file, everything seems ok there(???)
Is it a memory thing?
One minute the opt saved ok, then I fixed a texture tried to save it as an Opt again and got this, I've checked the textures, they are fine, I opened the opz txt file, everything seems ok there(???)
Is it a memory thing?
You do not have the required permissions to view the files attached to this post.
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- Darksaber
- Posts: 10931
- Joined: Mon Jan 10, 2000 12:01 am
- Contact:
I solved it by resaving the bmp files, but I can recreate the as I still have the original images
I'll give it a go
I'll give it a go
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- Darksaber
- Posts: 10931
- Joined: Mon Jan 10, 2000 12:01 am
- Contact:
the is the report
Code: Select all
---------------------------
create .OPT (XWA)
---------------------------
System.IO.IOException: An attempt was made to move the file pointer before the beginning of the file.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.SeekCore(Int64 offset, SeekOrigin origin)
at System.IO.FileStream.Seek(Int64 offset, SeekOrigin origin)
at OPTech.MainWindow.optxwacreatemenu_Click(Object sender, RoutedEventArgs e) in C:\Users\Jérémy\Documents\GitHub\OPTech\OPTech\OPTech\MainWindow.xaml.cs:line 5019
---------------------------
OK
---------------------------
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- JeremyaFr
- Posts: 3998
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
It seems that the program failed to read the palette of the texture.
What is the format, width and height of the texture?
Can you post an image that causes the error?
What is the format, width and height of the texture?
Can you post an image that causes the error?
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- JeremyaFr
- Posts: 3998
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've merged the changes from the WIP version to the stable version.
Hello,
I've merged the changes from the WIP version to the stable version.
-
- Posts: 28
- Joined: Fri Jun 14, 2019 1:35 am
Howdy. I don't think this is this same as the error above but if it is apologies. Ive been getting this error when trying to import a dfx after opening a an opz or trying to start a new one.
---------------------------
Press Ctrl+C to copy the text
---------------------------
System.FormatException: Input string was not in a correct format.
at System.Number.ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt)
at OPTech.MainWindow.dxfimportmenu_Click(Object sender, RoutedEventArgs e) in C:\projects\optech\OPTech\OPTech\MainWindow.xaml.cs:line 3202
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
---------------------------
OK
---------------------------
---------------------------
Press Ctrl+C to copy the text
---------------------------
System.FormatException: Input string was not in a correct format.
at System.Number.ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt)
at OPTech.MainWindow.dxfimportmenu_Click(Object sender, RoutedEventArgs e) in C:\projects\optech\OPTech\OPTech\MainWindow.xaml.cs:line 3202
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
---------------------------
OK
---------------------------
- JeremyaFr
- Posts: 3998
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Hello,
Can you share a DXF file that causes the error?
Can you share a DXF file that causes the error?
- JeremyaFr
- Posts: 3998
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Thanks.
The fix will be available in the next update.
The fix will be available in the next update.
- JeremyaFr
- Posts: 3998
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've updated OPTech.
Changes are:
Hello,
I've updated OPTech.
Changes are:
- separate display buttons. You can select wireframe or textured or both.
- fix the dxf file import.
- the Shear button will shear the texture.
- the Shear UV button will shear the texture based on the UV coords.
- the Shear XY button will shear the texture on the XY plane.
- the Shear XZ button will shear the texture on the XZ plane.
- the Shear YZ button will shear the texture on the YZ plane.
- improve the geometry/texture UI.