.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Assault Task Force- Save $8.00
winSPWW2- Save $5.00

   







Go Back   .com.unity Forums > The Camo Workshop > WinSPMBT
Notices


Reply
 
Thread Tools Display Modes
  #1  
Old October 28th, 2024, 08:06 PM
MarkSheppard's Avatar

MarkSheppard MarkSheppard is offline
Lieutenant Colonel
 
Join Date: Jun 2005
Posts: 1,435
Thanks: 104
Thanked 666 Times in 448 Posts
MarkSheppard is on a distinguished road
Default Re: Next Generation SHP Viewer

I think I've made a semi breakthrough; I was stuck on trying to recompile SPCAMO stock SHP Icon111 from WW2; and I tried some other SHP files and they showed correctly:



Likewise, some old Warhammer 40K SHPs partially show up:



With this (helped by the very useful cross overlay) I think what's happening is that I've got the SHP compression code now mostly correct...

BUT somewhere along the way, the SHP header stuff is not being passed along correctly; and the SHP header stuff plays a big important part in the SHP file compression procedure; because it defines a bounding box of pixels that we compress and discard the rest (to save pixel space)
Reply With Quote
The Following User Says Thank You to MarkSheppard For This Useful Post:
  #2  
Old October 28th, 2024, 09:43 PM
MarkSheppard's Avatar

MarkSheppard MarkSheppard is offline
Lieutenant Colonel
 
Join Date: Jun 2005
Posts: 1,435
Thanks: 104
Thanked 666 Times in 448 Posts
MarkSheppard is on a distinguished road
Default Re: Next Generation SHP Viewer

So, I --THINK-- I may have gotten it to work; but it's late at night and I don't feel like editing game files; but I've validated the files in Fred's SHPEd afterwards; so they load in that at least.

Here's v0.82; once again, SPCAMO is the password to let me upload it.

big glaring warning

this is currently not validated completely; so don't use it for heavy file editing [i.e. replacing 100 icons etc] just yet.
Attached Files
File Type: zip SHPView_v0-82.zip (82.7 KB, 204 views)
Reply With Quote
The Following User Says Thank You to MarkSheppard For This Useful Post:
  #3  
Old October 28th, 2024, 10:05 PM
MarkSheppard's Avatar

MarkSheppard MarkSheppard is offline
Lieutenant Colonel
 
Join Date: Jun 2005
Posts: 1,435
Thanks: 104
Thanked 666 Times in 448 Posts
MarkSheppard is on a distinguished road
Default Re: Next Generation SHP Viewer

now that I can actually save SHPs; I'm doing some more case testing -- and I need to make some changes to the icon replacement code -- it works fine if the icon is the same size as the one being replaced; but looks horrible if there's a size disparity between the new/old icons.

To fix this, here's a quick replacement; as once again SPCAMO is password.
Attached Files
File Type: zip SHPView_v0-83.zip (82.9 KB, 188 views)

Last edited by MarkSheppard; October 28th, 2024 at 10:23 PM..
Reply With Quote
The Following 2 Users Say Thank You to MarkSheppard For This Useful Post:
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 09:15 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.