DopeyBiach
-
Posts
81 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Calendar
Posts posted by DopeyBiach
-
-
Nothing still. :(
Thank you for trying, though. -
Bump. Is this really that unsolvable..? D:
-
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. -
Nope, nothing. Thank you for trying, didn't even get an error - I just get nothing. ![:(](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/sad.png)
-
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. -
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. -
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: -
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
``` -
Sorry for the necro, but if anyone's worrying about this. This might bring some reassurance.
http://www.crn.com/news/applications-os/240001689/windows-8-will-favor-ipv6-but-continue-ipv4-support.htm -
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)
-
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) -
I am and have always been a lover of 2D games, I love the atmosphere of a 2D game, I also love Ultima IV. Ultima IV…... It's like virtual crack.
-
EDited out, nvm
-
Could you please upload it to a post or pm it to me? :] - It's only bubblechat.bmp I want ![^_^](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/happy.png)
-
> 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) -
Does anyone have this file? - chatbubble.bmp
The one used in this rip?
Please PM me or attach if you do, thank you! -
Does anyone have this file? - chatbubble.bmp
The one used in the Crystalshire Bubble Chat rip?
Please, please post it here if you do, thanks! -
> 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) -
BUMP
-
I don't have a single checkbox on my map props form lol..? I'm using version 2.3.
-
> 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. -
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. -
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..) -
Event System 2.3 ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)
Can't connect to server.. (other comp on network)
in Q & A
Posted
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: