| Mirage Source http://miragesource.net/forums/ |
|
| VERY wierd bug... http://miragesource.net/forums/viewtopic.php?f=201&t=5461 |
Page 1 of 1 |
| Author: | jsventor [ Sat Apr 11, 2009 12:55 am ] |
| Post subject: | VERY wierd bug... |
All of a sudden, whenever I attack an NPC, I can not kill them and their health bars disappear... I exit, and go back into the game and I still can not kill them, but they follow me >.< I dont get it. |
|
| Author: | Labmonkey [ Sat Apr 11, 2009 1:34 am ] |
| Post subject: | Re: VERY wierd bug... |
Track your attacknpc sub. Use breaks in the server. |
|
| Author: | jsventor [ Sat Apr 11, 2009 3:33 am ] |
| Post subject: | Re: VERY wierd bug... |
Well it stopped, I did what you aid alreday, but idk it was so random... anyways, I got another question, I wanna vlt something small, a 16x16 Bitmap above the players head, but I cant get it to work... Code: Sub BltWait(ByVal index As Long) Dim X As Long, Y As Long With rec .top = 16 .Bottom = .top + 16 .Left = 0 .Right = .Left + 16 End With X = GetPlayerX(index) * PIC_X + Player(index).XOffset Y = GetPlayerY(index) * PIC_Y + Player(index).YOffset - 4 Call DD_BackBuffer.BltFast(X, Y, DD_WaitSurf, rec, DDBLTFAST_WAIT Or DDBLTFAST_SRCCOLORKEY) End Sub Code: For i = 1 To MAX_PLAYERS Call BltWait(i) Next i It doesnt show anything, any help? |
|
| Author: | Matt [ Sat Apr 11, 2009 4:26 am ] |
| Post subject: | Re: VERY wierd bug... |
Are you loading the surf properly? |
|
| Author: | jsventor [ Sat Apr 11, 2009 4:30 am ] |
| Post subject: | Re: VERY wierd bug... |
I think so.. heres what I put in the DX Code.. Code: DDSD_Wait.lFlags = DDSD_CAPS DDSD_Wait.ddsCaps.lCaps = DDSCAPS_OFFSCREENPLAIN Or DDSCAPS_SYSTEMMEMORY Set DD_WaitSurf = DD.CreateSurfaceFromFile(App.Path & "\GFX\wait.bmp", DDSD_Wait) DD_WaitSurf.SetColorKey DDCKEY_SRCBLT, key Code: Public DDSD_Wait As DDSURFACEDESC2 Code: Public DD_WaitSurf As DirectDrawSurface7
|
|
| Author: | Matt [ Sat Apr 11, 2009 5:02 am ] |
| Post subject: | Re: VERY wierd bug... |
Try this: Code: With rec
.top = 0 .Bottom = .top + 16 .Left = 0 .Right = .Left + 16 End With |
|
| Author: | jsventor [ Sat Apr 11, 2009 5:10 am ] |
| Post subject: | Re: VERY wierd bug... |
Still nothing. Its weird, its just a red "Z" with a black BG.. hmm.. |
|
| Author: | GIAKEN [ Sat Apr 11, 2009 6:06 am ] |
| Post subject: | Re: VERY wierd bug... |
You're using MS4? Do: LoadSurface("wait", DD_WaitSurf, DDSD_Wait) I think it's that anyways...but yeah there's already a function for it to do it properly |
|
| Author: | jsventor [ Sat Apr 11, 2009 6:08 am ] |
| Post subject: | Re: VERY wierd bug... |
No, Im using 3.0.3 and thats not used in it.. i messed around with it for the past hour and I have gotten nothing lmao |
|
| Author: | Jacob [ Sat Apr 11, 2009 11:01 am ] |
| Post subject: | Re: VERY wierd bug... |
Moved to the correct section. |
|
| Author: | Matt [ Sat Apr 11, 2009 3:50 pm ] |
| Post subject: | Re: VERY wierd bug... |
I would have to look at the source. If you wanna send it, feel free. MSN, GTalk, AIM or PM. |
|
| Author: | jsventor [ Sat Apr 11, 2009 4:13 pm ] |
| Post subject: | Re: VERY wierd bug... |
Matt wrote: I would have to look at the source. If you wanna send it, feel free. MSN, GTalk, AIM or PM. I appreciate the offer, but I tried doing the same thing in MS4, so I'm just gonna convert everything over to MS4 and I won't have a problem with it. I would have used MS4 to begin with but I started this a long time ago >.< |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|