12it123 Posted August 6, 2009 Author Share Posted August 6, 2009 Hey, I'm not much of an active member but I decided to post as I am in need of assistance. My question is what would I need to edit to allow Sprite sizes greater than 32x64 to be used by players? I know I would need to edit the source and I'm more than capable of doing that. I have yet to see a tutorial cover this question. Thanks in advance. Link to comment Share on other sites More sharing options...
12it123 Posted August 7, 2009 Author Share Posted August 7, 2009 Bump, Sorry if I seem eager I really just want to solve this problem and be done with it. :icon_crap: Link to comment Share on other sites More sharing options...
Kimimaru Posted August 8, 2009 Share Posted August 8, 2009 I'm not really sure of how to do it, but I believe that you may be able to change it here:```Public Sub NpcEditorBltSprite()  If frmNpcEditor.BigNpc.Value = Checked Then    frmNpcEditor.picSprites.Top = frmNpcEditor.scrlSprite.Value * 64    frmNpcEditor.picSprites.Left = 3360    Call BitBlt(frmNpcEditor.picSprite.hDC, 0, 0, 64, 64, frmNpcEditor.picSprites.hDC, 3 * 64, frmNpcEditor.scrlSprite.Value * 64, SRCCOPY)  Else    frmNpcEditor.picSprites.Left = 3600    If SpriteSize = 1 Then      frmNpcEditor.picSprites.Top = frmNpcEditor.scrlSprite.Value * 64      Call BitBlt(frmNpcEditor.picSprite.hDC, 0, 0, PIC_X, 64, frmNpcEditor.picSprites.hDC, 3 * PIC_X, frmNpcEditor.scrlSprite.Value * 64, SRCCOPY)    Else      frmNpcEditor.picSprites.Top = frmNpcEditor.scrlSprite.Value * PIC_Y      Call BitBlt(frmNpcEditor.picSprite.hDC, 0, 0, PIC_X, PIC_Y, frmNpcEditor.picSprites.hDC, 3 * PIC_X, frmNpcEditor.scrlSprite.Value * PIC_Y, SRCCOPY)    End If  End IfEnd Sub```I believe this is for NPCs, though. This is located in **modGameEditor** on the client side. It seems to me that you may need to change the 64's to a number of your choice, although I can be wrong.There are numerous other areas in the source that have something like this. The ones you should probably only consider should be in **modGameEditor**. Search "SpriteSize," and you may see something like what I have up there.Again, this is just a suggestion, and I really don't know if what I said was correct or not, but if you decide to try out what I suggested, **please make backups of your source files first.**Good luck! Link to comment Share on other sites More sharing options...
12it123 Posted August 9, 2009 Author Share Posted August 9, 2009 Nope, What you posted has to do with the Game Editor which I believe is the Npc, Item, Map, ect. Editors. I found what I was looking for I just have little to no Idea what I am doing. In modGameLogic I edited some stuff in BltPlayer and was able to get 48x64 working on the body. The head though is still messed up. I tried editing some stuff in BltPlayerTop but that didn't work. If anyone could help I would be very grateful.@KimimaruThanks for at least trying ; ) Link to comment Share on other sites More sharing options...
Guest Posted August 10, 2009 Share Posted August 10, 2009 you gotta change all the DX stuff,its not just bltplayertop its alot more, just search bltplayer Link to comment Share on other sites More sharing options...
Kimimaru Posted August 13, 2009 Share Posted August 13, 2009 @12it123:> Nope, What you posted has to do with the Game Editor which I believe is the Npc, Item, Map, ect. Editors. I found what I was looking for I just have little to no Idea what I am doing. In modGameLogic I edited some stuff in BltPlayer and was able to get 48x64 working on the body. The head though is still messed up. I tried editing some stuff in BltPlayerTop but that didn't work. If anyone could help I would be very grateful.> > @Kimimaru> > Thanks for at least trying ; )Sorry for the late reply; I just got back from a trip. Sorry about that; I meant to post my code and tell you to look in **modGameLogic**, lol. Anyway, I hope everything worked out. Link to comment Share on other sites More sharing options...
12it123 Posted August 14, 2009 Author Share Posted August 14, 2009 I feel I'm so close to sorting this out, The head is still messed up other than that I'm ready to go. Does anyone have a solution? I don't want my players playing with a retarded head… Link to comment Share on other sites More sharing options...
JayT Posted September 3, 2009 Share Posted September 3, 2009 can you post a pic of what you are seeing? maybe we can sort this if we see what you see ;) Link to comment Share on other sites More sharing options...
12it123 Posted September 3, 2009 Author Share Posted September 3, 2009 Here's what I'm seeing ![](http://i60.photobucket.com/albums/h8/12it123/Untitled-1-3.jpg) Link to comment Share on other sites More sharing options...
Kimimaru Posted September 3, 2009 Share Posted September 3, 2009 Maybe you can try moving the heads on the **Heads** file in your **GFX** folder? Link to comment Share on other sites More sharing options...
12it123 Posted September 3, 2009 Author Share Posted September 3, 2009 Nope, I'm not using Custom. It has to do with BltPlayerTop in the source code if anyone has any idea on how to fix this then Post it up ; ) Please? Link to comment Share on other sites More sharing options...
JayT Posted September 3, 2009 Share Posted September 3, 2009 also not to bug you more but your name and hp bar seems to be slightly off aswell Link to comment Share on other sites More sharing options...
Owen F Posted September 3, 2009 Share Posted September 3, 2009 IF that is what you see you are not doing it right.Clearly that is two different heads.I have never worked with source ever really but this looks like it has just moved over 32pixels from where it is normally trying to view the head from. Link to comment Share on other sites More sharing options...
Kimimaru Posted September 3, 2009 Share Posted September 3, 2009 @12it123:> Nope, I'm not using Custom. It has to do with BltPlayerTop in the source code if anyone has any idea on how to fix this then Post it up ; ) Please?Do you think you can post some of the code that changes the head sizes, please? Link to comment Share on other sites More sharing options...
12it123 Posted September 3, 2009 Author Share Posted September 3, 2009 @Kimimaru:> Do you think you can post some of the code that changes the head sizes, please?I'm trying to do that myself =0 That's all I need fixing the body I did myself and It should be easy to change to any size I feel like once I get the head working which is what I am in need of help with. Link to comment Share on other sites More sharing options...
emblem Posted September 3, 2009 Share Posted September 3, 2009 BltPlayer draws the whole player.Then BltPlayerTop makes sure that the "top" part of the player is aligned properly.Make sure that in BltPlayerTop, you have the X/Y properly calculated when doing all the Blts. Link to comment Share on other sites More sharing options...
12it123 Posted September 3, 2009 Author Share Posted September 3, 2009 I'm pretty sure I mentioned that I have zero knowledge with VB6\. I tried messing around with the X and Y's seeing as all I did to make the body 48x64 was change some 32's to 48 until I got lucky. It's not working out much for the head = ( I'd also like to thank everyone who has recently posted since I wasn't getting my help before. The name and the HP bar can be easily alligned later. Link to comment Share on other sites More sharing options...
Patrick Posted September 8, 2009 Share Posted September 8, 2009 You must not have changed the alignment ofthe sprites from 32 to 48\. Try doing that? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now