[OPTing] OPTech v2

Need help editing the game? Check for help here!

Moderators: Darksaber, General_Trageton, Forceflow

Re: [OPTing] OPTech v2

User avatar
Driftwood
Lieutenant Commander
XWAU Member
Posts: 1714
Joined: Wed Oct 22, 2003 11:01 pm
Contact:

Post by Driftwood » Thu Jun 27, 2019 1:46 am

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.

User avatar
Darksaber

Fleet Admiral (Administrator)
Posts: 10320
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Sat Jul 06, 2019 3:07 pm

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

JeremyaFr
Lieutenant Commander
XWAU Member
Posts: 1611
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sat Jul 06, 2019 4:09 pm

Hello,
Can you share an opz file please?

User avatar
Darksaber

Fleet Admiral (Administrator)
Posts: 10320
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Sat Jul 06, 2019 6:27 pm

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.
“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

JeremyaFr
Lieutenant Commander
XWAU Member
Posts: 1611
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sat Jul 06, 2019 7:46 pm

Thanks for the details.
I'm able to repro the error. I will fix it.

JeremyaFr
Lieutenant Commander
XWAU Member
Posts: 1611
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sat Jul 06, 2019 8:02 pm

I've updated XwaOpzTrianglesFixer.
I think I've fixed the exception.

User avatar
Darksaber

Fleet Admiral (Administrator)
Posts: 10320
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Sat Jul 06, 2019 8:08 pm

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
“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

JeremyaFr
Lieutenant Commander
XWAU Member
Posts: 1611
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sat Jul 06, 2019 8:11 pm

Thanks.
The link is here:
Edit: Link removed, thanks so much though :)

User avatar
Darksaber

Fleet Admiral (Administrator)
Posts: 10320
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Sat Jul 06, 2019 8:16 pm

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
“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

User avatar
ual002
Ensign
Galactic Empire
Posts: 488
Joined: Wed Sep 24, 2008 2:23 am

Post by ual002 » Wed Jul 10, 2019 7:32 pm

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.
For the glory of his majesty Emperor Palpatine! Image Image Image Image

User avatar
Darksaber

Fleet Admiral (Administrator)
Posts: 10320
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Tue Aug 13, 2019 5:48 pm

Jeremy, Do you have a clue what this means?
Error1.jpg
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

JeremyaFr
Lieutenant Commander
XWAU Member
Posts: 1611
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Tue Aug 13, 2019 6:30 pm

Hello,
Here is wip version.

I've changed the error message to show more details.


EDIT: link removed
Last edited by JeremyaFr on Wed Aug 14, 2019 7:07 pm, edited 1 time in total.

User avatar
Darksaber

Fleet Admiral (Administrator)
Posts: 10320
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Tue Aug 13, 2019 7:02 pm

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 :)
“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

User avatar
Darksaber

Fleet Admiral (Administrator)
Posts: 10320
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Tue Aug 13, 2019 7:14 pm

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

JeremyaFr
Lieutenant Commander
XWAU Member
Posts: 1611
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Tue Aug 13, 2019 7:27 pm

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?

User avatar
Darksaber

Fleet Admiral (Administrator)
Posts: 10320
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Tue Aug 13, 2019 7:36 pm

I'll PM you some
“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

JeremyaFr
Lieutenant Commander
XWAU Member
Posts: 1611
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Wed Aug 14, 2019 7:10 pm

Hello,
I think I've fixed it. In the bitmap files, the image size was not correct.


EDIT: link removed
Last edited by JeremyaFr on Thu Aug 15, 2019 4:52 pm, edited 1 time in total.

User avatar
Darksaber

Fleet Admiral (Administrator)
Posts: 10320
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Wed Aug 14, 2019 7:15 pm

Yep that fixed it, thanks
“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

JeremyaFr
Lieutenant Commander
XWAU Member
Posts: 1611
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Thu Aug 15, 2019 4:53 pm

UPDATE
Hello,
I've merged the changes from the WIP version to the stable version.

Rebelyell
Cadet 4th Class
Posts: 21
Joined: Fri Jun 14, 2019 1:35 am

Post by Rebelyell » Thu Aug 22, 2019 8:10 pm

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
---------------------------

JeremyaFr
Lieutenant Commander
XWAU Member
Posts: 1611
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Fri Aug 23, 2019 8:28 am

Hello,
Can you share a DXF file that causes the error?

Rebelyell
Cadet 4th Class
Posts: 21
Joined: Fri Jun 14, 2019 1:35 am

Post by Rebelyell » Fri Aug 23, 2019 5:38 pm

I sent along a dfx thats giving me that error

JeremyaFr
Lieutenant Commander
XWAU Member
Posts: 1611
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Fri Aug 23, 2019 7:22 pm

Thanks.
The fix will be available in the next update.

JeremyaFr
Lieutenant Commander
XWAU Member
Posts: 1611
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Fri Aug 23, 2019 8:24 pm

UPDATE
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.

Rebelyell
Cadet 4th Class
Posts: 21
Joined: Fri Jun 14, 2019 1:35 am

Post by Rebelyell » Fri Aug 23, 2019 9:29 pm

Great job!

Post Reply