View Issue Details

IDProjectCategoryView StatusLast Update
0000553Gameplay + OpenGL[All Projects] Featurepublic2017-04-15 06:27
Reportercotton_disciple 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionno change required 
Summary0000553: DrawImage weaponicon
DescriptionMake weaponicon changes possible in TEXTURES through GRAPHIC than SPRITE
TagsNo tags attached.

Relationships

Activities

RockstarRaccoon

RockstarRaccoon

2017-04-09 12:33

reporter   ~0001287

I can't figure out what you're asking him to add... Did you mean "then" instead of "than"?
cotton_disciple

cotton_disciple

2017-04-09 14:20

reporter   ~0001289

i've meant "than" cause it draws image on hud which can be scaled/cropped/etc only by using SPRITE (not GRAPHIC), and that one affects weapon (pickup) sprite, which isn't good.
Graf Zahl

Graf Zahl

2017-04-09 15:20

administrator   ~0001291

Is this about SBARINFO or ZScript?
And I also have no idea what doesn't work here.
 Do you have an example?
cotton_disciple

cotton_disciple

2017-04-10 11:34

reporter   ~0001301

this is about sbarinfo

for example: we got mp40 icon through drawimage weaponicon, which we want to reverse (horizontal) using TEXTURES lump. if you use GRAPHIC it wont have any effect at all, if you use SPRITE we will got what we want, but it also affects global sprite.
Graf Zahl

Graf Zahl

2017-04-10 13:43

administrator   ~0001304

Can you make an example that shows what works and what does not?
I still have absolutely no idea how to trigger this.
cotton_disciple

cotton_disciple

2017-04-11 05:31

reporter   ~0001308

Last edited: 2017-04-11 05:34

View 5 revisions

how to trigger it:
1) write in SBARINFO
drawimage weaponicon, x, y
where x, y - desired coordinates 2) pick any weapon icon you want to change through TEXTURES lump. Let's change MP40I0 3) write in TEXTURES
GRAPHIC MP40I0, 39, 16 { Patch MP40I0, 0, 0 { FlipX } } 

4) ... and nothing changed (pic. 1)
5) change GRAPHIC to SPRITE
SPRITE MP40I0, 39, 16 { Patch MP40I0, 0, 0 { FlipX } } 

6) now it works (pic. 2) but global sprite changed too... (bottom of pic. 3) and it's falling down below the floor...

images too large to upload here

Graf Zahl

Graf Zahl

2017-04-12 19:37

administrator   ~0001322

Can you post the weapon's DECORATE? This looks like a texture priority issue but I only can tell when seeing the weapon's definition.
cotton_disciple

cotton_disciple

2017-04-15 06:14

reporter   ~0001386

decorate from pb 2.03. that happens with every gun in every mod

https://pastebin.com/4KbwuRQ1
Graf Zahl

Graf Zahl

2017-04-15 06:26

administrator   ~0001387

The problem is actually very simple:

Your weapons do not set an icon. If that is the case the pickup state's sprite will substitute for the icon. Obviously a GRAPHIC with the same name is not the pickup sprite so defining such a thing will have no effect.

Give all your weapons an 'Inventory.Icon' property with a texture name different from the pickup sprite, define that one properly and the problem should go away.

Issue History

Date Modified Username Field Change
2017-04-09 08:40 cotton_disciple New Issue
2017-04-09 12:33 RockstarRaccoon Note Added: 0001287
2017-04-09 14:20 cotton_disciple Note Added: 0001289
2017-04-09 15:20 Graf Zahl Note Added: 0001291
2017-04-10 11:34 cotton_disciple Note Added: 0001301
2017-04-10 13:43 Graf Zahl Note Added: 0001304
2017-04-11 05:31 cotton_disciple Note Added: 0001308
2017-04-11 05:32 cotton_disciple Note Edited: 0001308 View Revisions
2017-04-11 05:33 cotton_disciple Note Edited: 0001308 View Revisions
2017-04-11 05:34 cotton_disciple Note Edited: 0001308 View Revisions
2017-04-11 05:34 cotton_disciple Note Edited: 0001308 View Revisions
2017-04-12 19:37 Graf Zahl Note Added: 0001322
2017-04-15 06:14 cotton_disciple Note Added: 0001386
2017-04-15 06:26 Graf Zahl Note Added: 0001387
2017-04-15 06:27 Graf Zahl Status new => resolved
2017-04-15 06:27 Graf Zahl Resolution open => no change required