Mirage Source http://web.miragesource.net/forums/ |
|
Map item not blitting right http://web.miragesource.net/forums/viewtopic.php?f=201&t=1739 |
Page 1 of 1 |
Author: | Braydok [ Fri Apr 27, 2007 12:06 pm ] |
Post subject: | Map item not blitting right |
When I put a item on a map, it looks really weird, like its taking the GFX from some other folder, but it's not, so far as I can tell. When I try to set a item's gfx to the first one, on the map it turns up looking like a ghostl stone head. Can someone help me? |
Author: | Da Undead [ Sat Apr 28, 2007 3:45 am ] |
Post subject: | |
You sure its picking up items.bmp instead of sprites.bmp? |
Author: | Braydok [ Sat Apr 28, 2007 5:35 pm ] |
Post subject: | |
Yes, but I found out that is is blting from items.bmp, but its blitting, say the first item, on like 300 items above it, its really weird. |
Author: | Matt [ Sat Apr 28, 2007 6:00 pm ] |
Post subject: | |
What have you changed? |
Author: | Rian [ Sat Apr 28, 2007 6:00 pm ] |
Post subject: | |
Alright, I'm not too sure what's going on here, but I think I've got a pretty good guess. Sounds like your item sheet is hella long. It also sounds like all you did to compensate for the long item sheet is change the Max value of the scroll bar for the picture browser in the item editor. That would produce similar results. You need to increase MAX_ITEMS as well, and change all the variables from a byte to an integer to support more than 255 items. There used to be a tutorial around that I wrote that shows you how to do it, If you can't find let me know, and I'll help you out more, but I'm strapped for tiem. |
Author: | Matt [ Sat Apr 28, 2007 6:14 pm ] |
Post subject: | |
MAX_ITEMS has nothing to do with the item sheet though.. |
Author: | Rian [ Sat Apr 28, 2007 11:08 pm ] |
Post subject: | |
It has a little bit to do with it. If he has a scroll bar that counts to 500, and his max items is only 255, then the packet will only send a max value of 255 as the number of the picture on the item sheet, thus he will have the same picture for anything passed 255 on the scroll bar. |
Author: | Braydok [ Sun Apr 29, 2007 12:42 pm ] |
Post subject: | |
So far as I know, I haven't changed the item scroll bar, or the max items. I even restored my client to a client that worked without bugs. So I am inclined to think that it's the server, but how could the serer mess it up? |
Author: | Matt [ Sun Apr 29, 2007 12:44 pm ] |
Post subject: | |
Server could be passing off the wrong item number or something. If you want, I can take a look at it. Pass me the source, either on MSN, email, or pm. MSN - mailto:presisefa@netscape.net E-Mail - mailto:faproductions@gmail.com |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |