.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   WinSPMBT (http://forum.shrapnelgames.com/forumdisplay.php?f=78)
-   -   Next Generation SHP Viewer (http://forum.shrapnelgames.com/showthread.php?t=53129)

DRG October 15th, 2024 03:09 PM

Re: Next Generation SHP Viewer
 
How close do you think you are to allowing Icons to be added?

MarkSheppard October 15th, 2024 06:06 PM

Re: Next Generation SHP Viewer
 
Probably a week or two. I tried adding SHP recompression capability; but it wasn't quite there; lots of errors and corrupted data; so I shelved that for the time being to work on usability improvements.

Latest usability improvement I whipped up this morning was to add the option for icon slot #s to be drawn onto icons:

https://i.imgur.com/tPCw4GX.png

MarkSheppard October 15th, 2024 09:37 PM

Re: Next Generation SHP Viewer
 
Perhaps longer. I wasted a few hours; and I'm at my wits end here. It's easy to READ something; because you can take hacks and shortcuts; but if you want to write it into a correct compatible format... :cold:

DRG October 16th, 2024 01:52 PM

Re: Next Generation SHP Viewer
 
Take a break. Go do something else for awhile. Trust me it can help

DRG October 16th, 2024 01:58 PM

Re: Next Generation SHP Viewer
 
This may be what you are trying to do or it might be impossible but for me a great way to add icons into a Shp file would be drag and drop the image into where I want to put it in the SHP file then click on where I want the crosshairs to be to center the two parts ( if there are two parts )

DRG October 16th, 2024 02:01 PM

Re: Next Generation SHP Viewer
 
...and as you noticed in post #12..... I don't always use the standard 89x89 image size because with SHPEdit I don't have to but most things are just out of old habits

DRG October 16th, 2024 02:04 PM

Re: Next Generation SHP Viewer
 
......and in case you didn't know.... the game and Fred sometimes built code that counted from zero and sometimes counted from one............ this is why SHPEdit reports the image as 88x88 when it is actually 89x89

MarkSheppard October 17th, 2024 06:29 PM

Re: Next Generation SHP Viewer
 
Quote:

Originally Posted by DRG (Post 856907)
This may be what you are trying to do or it might be impossible but for me a great way to add icons into a Shp file would be drag and drop the image into where I want to put it

My first try at adding image replacement capability was to simply right click on the icon slot you wanted to use; select REPLACE and then choose replacement image using the system file dialog.

Quote:

in the SHP file then click on where I want the crosshairs to be to center the two parts ( if there are two parts )
That was close to my concept as well; I think I can easily make a SHP Header editor; since you can edit header data without having to touch the compressed SHP files.

MarkSheppard October 17th, 2024 09:45 PM

Re: Next Generation SHP Viewer
 
I've been working at refactoring the program some more; and I've discovered that it probably does not implement the SHP RLE logic correctly -- it does it well enough to pass with SPCAMO files; but when I throw age of rifles (AOR) or Panzer General (PG) SHPs at it; it starts coughing.

This is probably why when compression is reversed; it's not doing it correctly.

lukerduker123 October 18th, 2024 01:27 AM

Re: Next Generation SHP Viewer
 
Lol this came out AFTER I finished adding all the icons to my mod. For real though, given this runs in browser I'm incredibly impressed. Here I was thinking my browser was only good for playing youtube and browsing Battletech (And Steel Panthers) forums. Good job, I can't wait to see this thing fully fleshed out!


All times are GMT -4. The time now is 04:47 PM.

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