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

DX8 Chat System [EM, EFF]


escfoe2
 Share

Recommended Posts

If anyone would be kind enough to shed a detailed explanation of how the RenderChatTextBuffer sub works and what each variable for the chat system is used for, I would be greatly appreciative and will donate 100 points. (maybe more)
Link to comment
Share on other sites

oks hunt down deathbeam use a spear and make him explain how he made the think a mess to understand XD ?

iill throw in 500 if the answer is completely understandable to full detail. xD
Link to comment
Share on other sites

> What is with DMF liking everyone's post?

It's a basic 'Thank You' to those offering to help. Don't you like the fact that people are trying to help get a reply to a question everyone wants an answer to? I know I do.

Someone has to have the answer. You're being offered way more points to help than I feel it's even worth, so please do.

I'll add another 200 to my original offer to make my total to be 300 and an increased total payout of a whopping **2500 points**.

Thank you all by the way.
Link to comment
Share on other sites

> Post the code you want explained in pastebin, I'm not downloading anything.

```

' Chat Box

Public Sub RenderChatTextBuffer()

Dim srcRect As RECT

Dim v2 As D3DVECTOR2

Dim v3 As D3DVECTOR2

Dim I As Long

'Clear the LastTexture, letting the rest of the engine know that the texture needs to be changed for next rect render

Direct3D_Device.SetTexture 0, gTexture(Font_Default.Texture.Texture).Texture

If ChatArrayUbound > 0 Then

Direct3D_Device.SetStreamSource 0, ChatVBS, FVF_SIZE

Direct3D_Device.DrawPrimitive D3DPT_TRIANGLELIST, 0, (ChatArrayUbound + 1) \ 3

Direct3D_Device.SetStreamSource 0, ChatVB, FVF_SIZE

Direct3D_Device.DrawPrimitive D3DPT_TRIANGLELIST, 0, (ChatArrayUbound + 1) \ 3

End If

End Sub

```
Link to comment
Share on other sites

**[escfoe2](http://www.touchofdeathforums.com/community/index.php?/user/44860-escfoe2/)**

> ```
>
> ' Chat Box
>
> Public Sub RenderChatTextBuffer()
>
> Dim srcRect As RECT
>
> Dim v2 As D3DVECTOR2
>
> Dim v3 As D3DVECTOR2
>
> Dim I As Long
>
> 'Clear the LastTexture, letting the rest of the engine know that the texture needs to be changed for next rect render
>
> Direct3D_Device.SetTexture 0, gTexture(Font_Default.Texture.Texture).Texture
>
> If ChatArrayUbound > 0 Then
>
> Direct3D_Device.SetStreamSource 0, ChatVBS, FVF_SIZE
>
> Direct3D_Device.DrawPrimitive D3DPT_TRIANGLELIST, 0, (ChatArrayUbound + 1) \ 3
>
> Direct3D_Device.SetStreamSource 0, ChatVB, FVF_SIZE
>
> Direct3D_Device.DrawPrimitive D3DPT_TRIANGLELIST, 0, (ChatArrayUbound + 1) \ 3
>
> End If
>
> End Sub
>
> ```

**[escfoe2](http://www.touchofdeathforums.com/community/index.php?/user/44860-escfoe2/) is that what you need im ready to donate my 400 points**

i
Link to comment
Share on other sites

> **[escfoe2](http://www.touchofdeathforums.com/community/index.php?/user/44860-escfoe2/)**
>
> **[escfoe2](http://www.touchofdeathforums.com/community/index.php?/user/44860-escfoe2/) is that what you need im ready to donate my 400 points**
>
> i

Go back and read what I posted.
Link to comment
Share on other sites

> Go back and read what I posted.

He quoted you lol. Yes, that and any other variables associated with the chat system.

> if it was that simple we wouldnt need asking >.> that code is all over i couldnt track alot of it. so : P if u wont actualy take alook y did you post . >.>

I don't ask for anything unless I'm honestly having trouble figuring it out myself. I'll eventually get it but not in an efficient amount of time, especially since it's for the next update of EFF.

Thank you all very much for your help. I appreciate it greatly.
Link to comment
Share on other sites

…......1 thats not what he needed and that lil code wont explain the chat system

Buffer : controls the change of the chat box zone i would think.

Render : displays text.

UP/Down Arrow. : moves the text.

^ thats whats rlly making up the chat system and hell hard to find all of the code or even make sense. lol

Escfoe... my comment wasnt to u it was at " lt. Topper Harley".

but ya basic is those 3 area's but i got no idea how they work at all. ik the the arrows are in mod constants for some of it.

best clue i got.
Link to comment
Share on other sites

> I think it clears the chat texture and draws some primitives. Specifically to Triangle Lists. Not sure what the SetStreamSource does.

I think everyone here can read English, Captain Obvious.

Stop posting in Q&A topics if you don't know what you're talking about; everyone here can read the damn calls that're going on inside the method.

I'd recommend everyone else to go read documentation on DirectX 8 implementation in a Visual Basic 6.0 environment.

[http://directx4vb.vb…UT_DX8Start.asp](http://directx4vb.vbgamer.com/DirectX4VB/TUT_DX8Start.asp)
Link to comment
Share on other sites

> I think everyone here can read English, Captain Obvious.
>
> Stop posting in Q&A topics if you don't know what you're talking about; everyone here can read the damn calls that're going on inside the method.
>
> I'd recommend everyone else to go read documentation on DirectX 8 implementation in a Visual Basic 6.0 environment.
>
> [http://directx4vb.vb…UT_DX8Start.asp](http://directx4vb.vbgamer.com/DirectX4VB/TUT_DX8Start.asp)

Everyone can read. But most of the people here won't understand.
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...