Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Map item not blitting right
#1
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?
Reply
#2
You sure its picking up items.bmp instead of sprites.bmp?
Reply
#3
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.
Reply
#4
What have you changed?
Reply
#5
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.
Reply
#6
MAX_ITEMS has nothing to do with the item sheet though..
Reply
#7
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.
Reply
#8
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?
Reply
#9
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)