Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

DopeyBiach

Members
  • Posts

    81
  • Joined

  • Last visited

    Never

Posts posted by DopeyBiach

  1. Right, so my port is open and working according to the various port checker tools on the internet.

    I have another laptop, using the same hub as me (bthomehub4) and for some reason no matter what IP I try I can't get it to connect to my server.

    I have a dynamic DNS setup which works perfectly everywhere.. EXCEPT on the other laptop!

    On the other laptop, however, I CAN access my websites on my XAMPP server?

    I just can not connect to my EO server :/

    ANY IDEAS!? D:
  2. Okay the Blt code without DDBLT_KEYSRC:

    ![](http://freemmorpgmaker.com/uploadfiles/796b6baa05708a264600932fe48c5d0c.png)

    There is a simple little button, it's only use is to Blt, when pressed without DDBLT_KEYSRC, it goes from this:

    ![](http://freemmorpgmaker.com/uploadfiles/8c569011532c4f12a76188ca279677d8.png)

    To this - as it should:

    ![](http://freemmorpgmaker.com/uploadfiles/0ea67468dc1a8daa466dcb615ff58cad.png)

    Now when I add DDBLT_KEYSRC (the key is set earlier in the code as you can see, check the original post to see how and where) the Blt code looks like this:

    ![](http://freemmorpgmaker.com/uploadfiles/d810cec2f079610ddccdfb6f8fd3fa4f.png)

    Now - when I press the process button it goes from this:

    ![](http://freemmorpgmaker.com/uploadfiles/8c569011532c4f12a76188ca279677d8.png)

    To this:

    ![](http://freemmorpgmaker.com/uploadfiles/8c569011532c4f12a76188ca279677d8.png)

    Without returning a single error or anything.

    I can't for the life of me figure out what exactly I'm doing wrong.

    Unless anyone can find a solution maybe a last resort is someone to write a code to od the exact same thing and if it works - provide me with it. Then I should be able to see exactly where I'm going wrong, as it may be small and difficult to find without writing it yourself.

    It's going to be something so small and silly, isn't it? ![:(](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/sad.png)

    Thanks to all for helping once again.
  3. Thank you for trying to help, it should be simple, incredibly simple.

    As they say though - "It's always the simple things.." ![<_<](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/dry.png)

    I've tried so many different ways to do this it's unreal.
  4. I have done. I'm having no luck though, I can't seem to understand why either. If I was getting an error then I would be happy as I'd know where I was going wrong, but I get get nothing.

    With DDBLT_KEYSRC there nothing renders at all, yet without DDBLT_KEYSRC it renders fine, but I want transparency. =/

    I've been developing at a wicked pace recently, yet something so simple seems to stump me lol.
  5. I've been there many times already. I've also been to countless forums and other resources.

    I'm relatively new to DX7, most of the examples use full screen - which is difficult for me to set back to window in order to get the code to work.

    Simple all I want to do. Is with DX7 draw a bitmap to a picture box and remove the background, in a window.

    No fullscreen applications or dodgy masking techniques and such, it should be such a simple procedure, yet I really seem to be missing something?

    Thank you for the reply, urgh. D:
  6. This is REALLY grating on me. I can't for the life of me figure out what I'm missing here. It's a simple program where a picture is blitted into a picturebox with the black background removed.

    When I remove:

    ```

    Or DDBLT_KEYSRC

    ```

    from:

    ```
    DDRVAL = DDS_Primary.Blt(r1, DDS_Buffer, r2, DDBLT_WAIT Or DDBLT_KEYSRC)
    ```

    It then works fine, but that defeats the object as ALL I want to do is simply blit a bmp, to a picturebox, with the background removed.

    Here is the source, PLEASE HELP. ![:(](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/sad.png)

    ```

    Option Explicit

    Dim DX As New DirectX7

    Dim DD As DirectDraw7

    Dim DDS_Primary As DirectDrawSurface7

    Dim DDS_Buffer As DirectDrawSurface7

    Dim DDSD_Primary As DDSURFACEDESC2

    Dim DDSD_Buffer As DDSURFACEDESC2

    Dim DD_Clipper As DirectDrawClipper

    Dim ColorKey As Integer

    Dim CKey As DDCOLORKEY

    Dim PixelFormat As DDPIXELFORMAT

    Dim bInit As Boolean

    Private Sub cmdProcess_Click()

    Call Blt

    End Sub

    Private Sub Form_Load()

    Init

    End Sub

    Private Sub Init()

    Set DD = DX.DirectDrawCreate("")

    Call DD.SetCooperativeLevel(Me.hWnd, DDSCL_NORMAL)

    DDSD_Primary.lFlags = DDSD_CAPS

    DDSD_Primary.ddsCaps.lCaps = DDSCAPS_PRIMARYSURFACE

    Set DDS_Primary = DD.CreateSurface(DDSD_Primary)

    DDSD_Buffer.lFlags = DDSD_CAPS

    DDSD_Buffer.ddsCaps.lCaps = DDSCAPS_OFFSCREENPLAIN

    Set DDS_Buffer = DD.CreateSurfaceFromFile(App.Path & "image.bmp", DDSD_Buffer)

    ColorKey = vbBlack

    CKey.high = ColorKey

    CKey.low = ColorKey

    Call DDS_Buffer.SetColorKey(DDCKEY_SRCBLT, CKey)

    Set DD_Clipper = DD.CreateClipper(0)

    Call DD_Clipper.SetHWnd(picScreen.hWnd)

    Call DDS_Primary.SetClipper(DD_Clipper)

    bInit = True

    End Sub

    Private Sub Blt()

    If bInit = False Then

    Call MsgBox("DirectDraw has not been initialized yet!", vbInformation, "Application Error")

    Exit Sub

    End If

    picScreen.Cls

    Dim DDRVAL As Long

    Dim r1 As RECT ' Screen

    Dim r2 As RECT ' Buffer

    Call DX.GetWindowRect(picScreen.hWnd, r1)

    With r2

    .Bottom = DDSD_Buffer.lHeight

    .Right = DDSD_Buffer.lWidth

    End With

    DDRVAL = DDS_Primary.Blt(r1, DDS_Buffer, r2, DDBLT_WAIT Or DDBLT_KEYSRC)

    End Sub

    Private Sub picScreen_Paint()

    DD.RestoreAllSurfaces

    Init

    End Sub

    ```
  7. Nvm.. I forgot to remove the layer I orginally wanted to add but couldn't, over-reacted, freaked.. (I've done 2 all nighters in the past 3 days working on my project).. I'm shattered, sorry for the hassle.. But omg, did I REALLY just do that.. LOOOOOOOOOOOOOOOOOOOOOOOOOOOOL!!!!1 ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png)
  8. It happens to me each and every time I add a new map layer, literally if I just add one more line under Fringe2 in enumerations I get it ![-_-](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/sleep.png)

    Humbug..

    ![](http://i50.tinypic.com/14av0v4.png)
  9. > I know but it does too no damage ;-) I tryed it to set the damage at the pic from the projectiles and at ther normal damage scroll but both has not worked…

    > In Sub PlayerAttackNpc before:
    >
    > Name = Trim$(Npc(npcNum).Name)
    >
    > Insert:
    >
    > If npcNum < 1 Then Exit Sub

    Comment out "If npcNum < 1 Then Exit Sub" and if it works, then you've put this in the wrong place. ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)
  10. > In **Sub PlayerAttackNpc** _before:_
    >
    > ```
    > Name = Trim$(Npc(npcNum).Name)
    > ```
    > _Insert:_
    >
    > ```
    > If npcNum < 1 Then Exit Sub
    > ```

    ```
    If npcNum < 1 then exit
    ```

    Should be AFTER

    ```
    npcNum = MapNpc(mapnum).Npc(mapNpcNum).Num
    ```

    To avoid confusion

    Like this:

    ```
    mapnum = GetPlayerMap(attacker)

    npcNum = MapNpc(mapnum).Npc(mapNpcNum).Num

    Name = Trim$(Npc(npcNum).Name)

    If npcNum < 1 Then Exit Sub
    ```

    ![:lol:](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/laugh.png)
  11. > Must be from jscnider's force spawn thing. Check it out wigga

    Thanks for that, this force spawn thing is server side I gather??.. Any ideas when this forced spawn is used, that would help a lot.
  12. Omg I can.. Actually.

    Edit:

    Heres how..

    Make a blank map with 3 npcs in the corner.. Make sure you can kill them very quickly..

    Kill all 3 (making sure you have the admin panel up and ready) and warp to the same map the second youve killed the third..

    Respawn the map, whatever, nothing apart from warping to that map for a second time gets rid of the bug.

    You can still attack the npcs.. but cant see them?

    Another Edit: Added to tracker.
  13. The Npcs DO respawn.. Just seem to be invisible (only for the person who warped/died though) other players just see that person walk through the npcs the person who warped cant see.. It's a small but irritating bug, most likely caused by me, where do I start looking though lol? :L

    (Sorry for double post then..)
×
×
  • Create New...