[OPTing] OPTech v2

Want to edit the game, build your own craft and missions? Here you'll find help, tools, guides and people to discuss with.
Post Reply

Re: [OPTing] OPTech v2

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sat Apr 20, 2019 12:45 pm

UPDATE
I've updated OPTech.
Changes are:
- added support for bmp files with less than 256 colors

User avatar
ual002
XWAU Member
Posts: 983
Joined: Wed Sep 24, 2008 2:23 am

Post by ual002 » Mon Apr 22, 2019 5:17 am

Lets say I goofed and added an extra texture somewhere creating an errant extra flight group color. I cant remember where, is there a way to just delete anything associated with a specific flight group color?
Image Image Image Image Image

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Mon Apr 22, 2019 12:54 pm

UPDATE
I've updated OPTech.

The changes are:
- add the fg count to the facelist
- add a button to sort the faces by fg count
- add a button to remove a fg

User avatar
ual002
XWAU Member
Posts: 983
Joined: Wed Sep 24, 2008 2:23 am

Post by ual002 » Mon Apr 22, 2019 1:13 pm

[Kneels]

Your generosity knows no bounds master.
Image Image Image Image Image

User avatar
ual002
XWAU Member
Posts: 983
Joined: Wed Sep 24, 2008 2:23 am

Post by ual002 » Tue Apr 23, 2019 1:19 am

JeremyaFr, this is an example of my project. If you go ahead and create the opt, all the new textures are pink in game, even after your update. I could run them all thru that online converter and it would fix them but that seems silly. Take a look and see what you think.

https://www.dropbox.com/s/dgb24dcrmvq8a ... ut.7z?dl=0
Image Image Image Image Image

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Tue Apr 23, 2019 3:52 am

If you don't have Paintshop Pro or want to keep using the online convertor you could download this Image Editor called Gimp it's free to download , it has Tutorials, it could be your answer

Export file as palleted 8bit per pixel BMP from GIMP
“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
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Tue Apr 23, 2019 8:25 am

Thanks for the sample.
I've found what is the problem. I will fix it.

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Tue Apr 23, 2019 10:28 am

UPDATE

I've updated the texture reading. The problem was that the bmp files contained extra bytes at the end.

User avatar
ual002
XWAU Member
Posts: 983
Joined: Wed Sep 24, 2008 2:23 am

Post by ual002 » Tue Apr 23, 2019 11:04 am

Right on. And yes DS gimp was a good idea. I totally forgot about it.
Image Image Image Image Image

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Thu May 30, 2019 6:39 am

Jeremy I came across this error, while importing a opz into an opz, then trying to move the LOD from the imported opz, to the original opz

Code: Select all

---------------------------
Press Ctrl+C to copy the text
---------------------------
System.InvalidOperationException: Sequence contains no matching element
   at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source, Func`2 predicate)
   at OPTech.CXXX.CreateCall2() in C:\projects\optech\OPTech\OPTech\CXXX.cs:line 214
   at OPTech.RenderScreenControl.renderscreen_OpenGLDraw(Object sender, OpenGLEventArgs args) in C:\projects\optech\OPTech\OPTech\RenderScreenControl.xaml.cs:line 104
   at SharpGL.WPF.OpenGLControl.timer_Tick(Object sender, EventArgs e)
   at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
   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

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Thu May 30, 2019 1:56 pm

Hello,
I've fixed the error.
Please redownload OPTech.

PS: Have you had time to try the new xwopter?

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Thu May 30, 2019 2:11 pm

Thanks for the fix Jeremy,

xwaopter? No, sorry I didn't realize that you finished it, I'll take a look now :D (rubs hands)
“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
Vince T
Fleet Admiral (Administrator)
Posts: 14045
Joined: Fri Apr 27, 2001 11:01 pm
Contact:

Post by Vince T » Wed Jun 12, 2019 2:11 pm

Hey Jeremy, I've got a 'little' request.
Not sure if it's been asked before, but would it be possible to add an Undo function?
Your ship, Captain. I need a drink. - Vince Trageton
Vince T's X-Wing HQ - where the bad guys get their gear

User avatar
Trevor
Lieutenant JG
Posts: 541
Joined: Thu Dec 04, 2014 7:11 pm

Post by Trevor » Wed Jun 12, 2019 5:02 pm

what is the difference between xwaopt and optech? is it purely cosmetic at this point (and source language .NET/MFC) or does one have features the other will never have?

Trev

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Wed Jun 12, 2019 7:22 pm

Hello,
The app already has a basic undo/redo functionality (see the panel at the right). So yes, it can be extended.

User avatar
Vince T
Fleet Admiral (Administrator)
Posts: 14045
Joined: Fri Apr 27, 2001 11:01 pm
Contact:

Post by Vince T » Wed Jun 12, 2019 9:18 pm

Ah yes, ok. Took me a moment to figure out how it works. But that should do it. Thanks Jeremy!
Your ship, Captain. I need a drink. - Vince Trageton
Vince T's X-Wing HQ - where the bad guys get their gear

User avatar
Vince T
Fleet Admiral (Administrator)
Posts: 14045
Joined: Fri Apr 27, 2001 11:01 pm
Contact:

Post by Vince T » Thu Jun 13, 2019 7:53 am

Trevor wrote:
Wed Jun 12, 2019 5:02 pm
what is the difference between xwaopt and optech? is it purely cosmetic at this point (and source language .NET/MFC) or does one have features the other will never have?

Trev
XWA OPTer (or OPT fix) is a different program, whose main and only function is to fix numerous shading issues on OPTs, making edges sharper and stops flat surfaces from appearing round. The program has been in use for years (Available from DS' site > File Archive > OPT Editors) but uses old coding. Jeremy has made an effort to convert it to C#.
Your ship, Captain. I need a drink. - Vince Trageton
Vince T's X-Wing HQ - where the bad guys get their gear

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Thu Jun 13, 2019 2:14 pm

The main difference between OPTech and XwaOptEditor is the creation process.
With OPTech, you import an untextured model in a DXF file (or an other format) and do the texturing in the program.
With XwaOptEditor, you import an already textured model in a OBJ file (or an other format).

User avatar
Trevor
Lieutenant JG
Posts: 541
Joined: Thu Dec 04, 2014 7:11 pm

Post by Trevor » Thu Jun 13, 2019 2:28 pm

ah cool, XWAOptEditor would defiantly be the process model I would use :P

Trev

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Wed Jun 19, 2019 6:57 pm

UPDATE

I've included the Scaling Factor dialog from XwaOptEditor.
You can scale the entire opt (when no mesh is selected) or just the selected meshes.

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Wed Jun 19, 2019 6:59 pm

Thanks mate, that's great :)
“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

Bman
Lieutenant Commander
Posts: 1167
Joined: Mon Apr 05, 2004 11:01 pm

Post by Bman » Thu Jun 20, 2019 6:23 am

Hi, is this new scaling update for Optech or OPTer? The latter is one GT mentioned. Couldn't find updated link.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.

User avatar
Vince T
Fleet Admiral (Administrator)
Posts: 14045
Joined: Fri Apr 27, 2001 11:01 pm
Contact:

Post by Vince T » Thu Jun 20, 2019 12:32 pm

The update is for OPTech
Your ship, Captain. I need a drink. - Vince Trageton
Vince T's X-Wing HQ - where the bad guys get their gear

User avatar
Trevor
Lieutenant JG
Posts: 541
Joined: Thu Dec 04, 2014 7:11 pm

Post by Trevor » Sat Jun 22, 2019 4:49 pm

(lol)
I had a quick look at the wiki and it might be an idea to add said utilities there with brief explanation of differences

Trev

User avatar
Vince T
Fleet Admiral (Administrator)
Posts: 14045
Joined: Fri Apr 27, 2001 11:01 pm
Contact:

Post by Vince T » Wed Jun 26, 2019 10:16 pm

Hm thought I'd put something in there. Will do later this week.
Your ship, Captain. I need a drink. - Vince Trageton
Vince T's X-Wing HQ - where the bad guys get their gear

Post Reply