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

blkcrow

Members
  • Posts

    477
  • Joined

  • Last visited

    Never

Posts posted by blkcrow

  1. > Hmm but there is already sub SendUpdateSpellsTo, and this what you added is just same sub but renamed. I think this won´t fix anything.

    this fixes everything. As i have explained in the topic i posted above every time the server updates a spell the client requests from the server all the spells the player has learned when the spells are more than 23 the server floods. What i have make is another sub that does the same thing but sends the spells the player has learned only once at the end
  2. > Challenge Accepted… lmao.

    are you making a java engine? ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)

    @dexterxx are you gonna use vb controls for the gui? i hope not
  3. > Awt, How hard it is? D:

    depending on how much programming you know

    > Also, what new engine?

    the new development team has a new engine on the making witch will probably have a new GUI class

    > maybe he is talking about Eclipse Reborn, It's gonna be released soon…

    NO
  4. > ~~No you can't, Dx 7 doesn't support PNG's. It can't render them.~~

    GDI doesnt support PNG's that means you cant load PNG's into vb6 controls although you can achieve transparency through the use of some APIs but that will really kill your FPS. Your best bet is to use the DirectX 8 engine and modify it to render the gui with textures instead of using controls or just wait for the new engine witch is being developed
  5. > Do you have your server pc turned on for more than 25 days? Becouse it seem that gettickcount is messed. Try ER, there is different timer what isn't messed when pc is too long on

    GetTickCount becomes negative when 25 days pass so if that was the cause the cps would still count although wrong

    > Blank EO and EA or edited?

    this ^
  6. This is a fix for a bug reported here [http://www.touchofde…em/#entry873441](http://www.touchofdeathforums.com/community/index.php?/topic/130858-spells-problem/#entry873441)

    In server at modServerTCP copy paste this sub

    ```

    Sub SendSpellTo(ByVal index As Long, ByVal spellnum As Long)

    Dim buffer As clsBuffer

    Dim SpellSize As Long

    Dim SpellData() As Byte

    Set buffer = New clsBuffer

    SpellSize = LenB(Spell(spellnum))

    ReDim SpellData(SpellSize - 1)

    CopyMemory SpellData(0), ByVal VarPtr(Spell(spellnum)), SpellSize

    buffer.WriteLong SSpell

    buffer.WriteLong spellnum

    buffer.WriteBytes SpellData

    SendDataTo index, buffer.ToArray()

    Set buffer = Nothing

    End Sub

    ```

    in both client and server at modEnumerations above

    ```
    ' Make sure SMSG_COUNT is below everything else
    ```
    add

    ```
    SSpell
    ```

    in server replace sub SendSpells with

    ```

    Sub SendSpells(ByVal index As Long)

    Dim i As Long

    For i = 1 To MAX_SPELLS

    If LenB(Trim$(Spell(i).Name)) > 0 Then

    Call SendSpellTo(index, i)

    End If

    Next

    Call SendPlayerSpells(index)

    End Sub

    ```

    in client at modHandleData in sub InitMessages add

    ```

    HandleDataSub(SSpell) = GetAddress(AddressOf HandleSpell)

    ```

    and at the bottom of modHandleData add

    ```

    Private Sub HandleSpell(ByVal Index As Long, ByRef data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)

    Dim spellnum As Long

    Dim buffer As clsBuffer

    Dim SpellSize As Long

    Dim SpellData() As Byte

    If Options.Debug = 1 Then On Error GoTo errorhandler

    Set buffer = New clsBuffer

    buffer.WriteBytes data()

    spellnum = buffer.ReadLong

    SpellSize = LenB(Spell(spellnum))

    ReDim SpellData(SpellSize - 1)

    SpellData = buffer.ReadBytes(SpellSize)

    CopyMemory ByVal VarPtr(Spell(spellnum)), ByVal VarPtr(SpellData(0)), SpellSize

    Set buffer = Nothing

    Exit Sub

    errorhandler:

    HandleError "HandleSpell", "modHandleData", Err.Number, Err.Description, Err.Source, Err.HelpContext

    Err.Clear

    Exit Sub

    End Sub

    ```

    thats all
  7. i have found the problem. During login the server needs to send all spells to the client so it loops through all the spells and sent each spell in its own packet. Now when the client gets this packet it requests form the server all the spells that the player has learned and here is where the bug occurs. If you have 23 spells the clients requests the player spells 23 times that means 23 packets plus 2-3 packets that he had send before its 25+ packets. 25 is the number of packet a non admin player can send to the server. If it sends more than 25 packets the server thinks that its trying to flood him so stop processing more packets from that client.

    Anyway i am gonna write some code to fix this and post it in bug fixes

    My english is bad so i hope you understood what i wanted to say ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png)

    here [http://www.touchofdeathforums.com/community/index.php?/topic/131259-having-more-than-23-spells-flood-server-bug-fix/](http://www.touchofdeathforums.com/community/index.php?/topic/131259-having-more-than-23-spells-flood-server-bug-fix/)
  8. seems like the client for some reasons sends too big packets to the server. Can you give us some more details like when (e.g. when casting a spell, e.t.c.) the server stops sending packets to the client (players are unable to do anything)
  9. it stoped now seemed like more than one updates had been released but it only downloaded one each time for some reason.

    Anyway i found a bug where i could get unlimited number of flints i think it happens when i pass over a flint with full inventory (cant remember if thats what caused it but i am sure you need a full inventory for it to hapen) the character drops another flint to the ground.

    Another think i noticed wich i am not sure if its a bug or not is that i cant always make fire (almost all of the times i cant so i am forced to waste all my time in finding seeds and hunting for raw meat).

    When i was building a house and while adding logs to the house the frame came up and i stucked in it i couldnt get out so i had to erase that world

    Also when i die and click try again nothing happens
×
×
  • Create New...