|
|
|
Notices |
Do you own this game? Write a review and let others know how you like it.
|
|
|
October 29th, 2024, 08:06 PM
|
|
Lieutenant Colonel
|
|
Join Date: Jun 2005
Posts: 1,377
Thanks: 101
Thanked 619 Times in 410 Posts
|
|
Re: Next Generation SHP Viewer
Some more investigation...
At one specific zoom level; I get the flashing/cycling gray box where it should be transparent, but at all other zoom levels (I think) I have transparency:
Also, if you rotate the unit; the flashing area disappears:
Current code is attached (As always, password is SPCAMO)
Last edited by MarkSheppard; October 29th, 2024 at 08:17 PM..
|
October 29th, 2024, 09:41 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Mar 2005
Location: GWN
Posts: 12,492
Thanks: 3,963
Thanked 5,702 Times in 2,814 Posts
|
|
Re: Next Generation SHP Viewer
Interesting......... I did not check different zoom levels
|
October 29th, 2024, 09:53 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Mar 2005
Location: GWN
Posts: 12,492
Thanks: 3,963
Thanked 5,702 Times in 2,814 Posts
|
|
Re: Next Generation SHP Viewer
I have seen many odd things happen with this code in the last quarter century but the flashing zone around the gun barrel that only shows when the icon is 1:1 and facing to the right is probably the strangest one of all
Just totally bizarre
However, it more complicated than that
That was reduced and enlarged in the game...
and its not just when it faces right
Last edited by DRG; October 29th, 2024 at 10:03 PM..
|
October 29th, 2024, 10:11 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Mar 2005
Location: GWN
Posts: 12,492
Thanks: 3,963
Thanked 5,702 Times in 2,814 Posts
|
|
Re: Next Generation SHP Viewer
......and just to make it more interesting the problem is inconsistent and will manifest in different ways
A trifecta of PITA....
|
October 29th, 2024, 10:12 PM
|
|
Lieutenant Colonel
|
|
Join Date: Jun 2005
Posts: 1,377
Thanks: 101
Thanked 619 Times in 410 Posts
|
|
Re: Next Generation SHP Viewer
I've been looking at the "buy menu" encyclopedia icon and the png file:
I think what's happening is this:
My compression routine starts out correctly enciphering transparent areas of the SHP images (notice how the hull is mostly good?) and then somewhere things break.
I think what's happening is something causes the pixel variable being scanned to hang in memory and refuse to be updated; explaining how the hull on the first image works mostly fine, then the turret is flashing transparent.
Either that; or the true color to indexed color flattening code is bugging out somewhere; reading index 255 as a different index (one that happens to flash)
EDIT:
And I think the reason why other zoom levels work; but not the "Default" is because your zoom and rotate routines use interpolation.
So my program is probably outputting transparent pixels as something like index 254 or something (which is a known flashing color index); so it flashes in "normal" view.
But when you zoom in; the interpolation code moves it into pixel value 255; and it becomes transparent again.
Last edited by MarkSheppard; October 29th, 2024 at 10:35 PM..
|
October 29th, 2024, 10:57 PM
|
|
Lieutenant Colonel
|
|
Join Date: Jun 2005
Posts: 1,377
Thanks: 101
Thanked 619 Times in 410 Posts
|
|
Re: Next Generation SHP Viewer
I think it's programming error on my part.
I never defined a way to pass through a palette to the SHP compression function; so it's somehow picking the first palette I defined (the full SPCAMO palette)
|
October 30th, 2024, 11:03 AM
|
|
Shrapnel Fanatic
|
|
Join Date: Mar 2005
Location: GWN
Posts: 12,492
Thanks: 3,963
Thanked 5,702 Times in 2,814 Posts
|
|
Re: Next Generation SHP Viewer
Quote:
Originally Posted by MarkSheppard
I think it's programming error on my part.
I never defined a way to pass through a palette to the SHP compression function; so it's somehow picking the first palette I defined (the full SPCAMO palette)
|
That could be why Fred added a " SP no flash" checkbox
|
October 30th, 2024, 11:42 AM
|
|
Shrapnel Fanatic
|
|
Join Date: Mar 2005
Location: GWN
Posts: 12,492
Thanks: 3,963
Thanked 5,702 Times in 2,814 Posts
|
|
Re: Next Generation SHP Viewer
I tried an experiment
I took a Recompiled.SHP generated by v.83 and loaded it into SHPedit with the NO flash box checked
I added a new Icon hull and turret into the shp and saved
I then ran it through MOBHack then the game with a special unit made for the hybrid Icon I added as a test
All the icons that were in the Recompiled.SHP that I had added an icon with SHPEdit were normal in MOBHack
The images that were already in the Recompiled.SHP still exhibited the kruf as before when viewed in the game
I changed the grey to fushia to make the areas it is in show more clearly.... it is not just the turret that has the problem. it is every pixel within the boundary of the X and Y of the image that does not have part of the icon in it that shows fushia same as if you drew a box with the max X and Y of the image then dropped the image on top of that..... any area of the background that was left unused by the image shows the grey flashing colour
The hybrid I added with SHPedit with the NO flash box checked was OK in MOBHack and the game
I think you are close to getting this solved and if it helps, Fred had some problems I help him sort out with his first version of SHPedit as well....... not quite as odd as this but there were issues that needed resolving and they were and you will too
The issue is that area within the max X and Y of the image that does not have Icon detail. Get that sorted and you are nearly there
FURTHER
I built this test to show it's the X-Y
That is just four 4 pixel squares at the outer boundary with XXX in between for the hull and the same for the turret except that uses 2 XX
Don
Last edited by DRG; October 30th, 2024 at 12:23 PM..
|
October 30th, 2024, 07:39 PM
|
|
Lieutenant Colonel
|
|
Join Date: Jun 2005
Posts: 1,377
Thanks: 101
Thanked 619 Times in 410 Posts
|
|
Re: Next Generation SHP Viewer
I ---THINK--- I have it sorted.
I had to reverse the order in which I was compressing the data:
i.e.
Do the loop that handles Transparent (skipped) pixels FIRST, rather than second.
(Replaced SPW-60Bs in Icon0128.shp, slot 4948)
So now I need to archive this version as a known "ok" version and start refining it more and testing it more before I release another version.
I grabbed the old USA REMOD files from here
https://forum.shrapnelgames.com/show...t=49329&page=4
went in; loaded the SHP files in one of gooseman's last uploads; selected one of the weird turreted bradley things and chose to export it (see attached zip for exported version)
Chose to replace the SPW-60B icon using that exported zip file; it automagically replaced the files, enlarged the canvas, and set all the SP Header data from the CSV in the zip.
End result:
Last edited by MarkSheppard; October 30th, 2024 at 08:03 PM..
|
The Following User Says Thank You to MarkSheppard For This Useful Post:
|
|
October 30th, 2024, 09:03 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Mar 2005
Location: GWN
Posts: 12,492
Thanks: 3,963
Thanked 5,702 Times in 2,814 Posts
|
|
Re: Next Generation SHP Viewer
The revised editor you used to get that result would have been nice but carry on until you are happy with it
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|