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

This Month's Specials

Raging Tiger- Save $9.00
The Star and the Crescent- Save $9.00

   







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


Reply
 
Thread Tools Display Modes
  #1  
Old October 28th, 2024, 10:29 AM
DRG's Avatar

DRG DRG is offline
Shrapnel Fanatic
 
Join Date: Mar 2005
Location: GWN
Posts: 12,700
Thanks: 4,145
Thanked 5,934 Times in 2,920 Posts
DRG will become famous soon enough
Default Re: Next Generation SHP Viewer

Just curious, was there any difficulty setting up the SHPEdit code in HTML5 ?
__________________


"You are never to old to rock and roll if you are too young to die".--- What do you expect to be doing when you are 80?


https://www.youtube.com/watch?v=8kWt8ELuDOc
Reply With Quote
  #2  
Old October 28th, 2024, 08:06 PM
MarkSheppard's Avatar

MarkSheppard MarkSheppard is offline
Lieutenant Colonel
 
Join Date: Jun 2005
Posts: 1,424
Thanks: 103
Thanked 658 Times in 440 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:
  #3  
Old October 28th, 2024, 09:43 PM
MarkSheppard's Avatar

MarkSheppard MarkSheppard is offline
Lieutenant Colonel
 
Join Date: Jun 2005
Posts: 1,424
Thanks: 103
Thanked 658 Times in 440 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, 173 views)
Reply With Quote
The Following User Says Thank You to MarkSheppard For This Useful Post:
  #4  
Old October 28th, 2024, 10:05 PM
MarkSheppard's Avatar

MarkSheppard MarkSheppard is offline
Lieutenant Colonel
 
Join Date: Jun 2005
Posts: 1,424
Thanks: 103
Thanked 658 Times in 440 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, 157 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 01:32 AM.


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