SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > SRB2 Discussion > Bug Reports

Reply
 
Thread Tools Search this Thread
Old 07-08-2017   #1
Monster psychic cat
 
Monster psychic cat's Avatar
Default [Not a bug] v.cachePatch ignores lowercase characters


The uppercase counterpart of the lump name is returned instead.
__________________
http://pudim.com.br/

Last edited by 犬夜叉; 07-09-2017 at 07:16 AM.
Monster psychic cat is offline   Reply With Quote
Old 07-09-2017   #2
RedEnchilada
happy, pretty, lovely!
Developer
 
RedEnchilada's Avatar
Default

Can you provide an example script to replicate the issue?
__________________
Quote:
<@toaster> '"sonic robot explosion 2", the hot new sensation for teens looking for a good time, tempts many children away from god each year'
av src
RedEnchilada is online now   Reply With Quote
Old 07-09-2017   #3
Monster psychic cat
 
Monster psychic cat's Avatar
Default

Code:
hud.add(function(v)
         v.draw(160, 160, v.cachePatch("PLAYa2a8")) -- will draw "PLAYA2A8"
end)
__________________
http://pudim.com.br/
Monster psychic cat is offline   Reply With Quote
Old 07-09-2017   #4
Monster Iestyn
Friendly Neighbour-Hood
Moderator
 
Monster Iestyn's Avatar
Default

This is intentional so I'm aware, the internal code involved with caching general patch lumps is case-insensitive. We're not going to fix this for v.cachePatch and v.PatchExists, they weren't designed for sprites in the first place anyway. (I've been working on new Lua video library functions to get sprite patches in a much better way for 2.2 anyway, especially considering the changes to character skins.)

Last edited by Monster Iestyn; 07-09-2017 at 03:50 AM.
Monster Iestyn is offline   Reply With Quote
Old 07-09-2017   #5
犬夜叉
aka: Inuyasha
Administrator
 
犬夜叉's Avatar
Default

Not a bug -- this is how the Doom engine works.
犬夜叉 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off

Forum Jump


All times are GMT. The time now is 01:07 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.