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

Kazako

Members
  • Posts

    32
  • Joined

  • Last visited

    Never

Posts posted by Kazako

  1. I can't replicate the server crashing right now- I will make a note of it next time it happens/if it happens.

    Now I just have two problems with the grey area on my client and the hunger/thirst not killing the player at 0.

    * * *

    ```
    Private Sub HandlePlayerHp(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)
    Dim Buffer As clsBuffer

    ' If debug mode, handle error then exit out
    If Options.Debug = 1 Then On Error GoTo errorhandler

    Set Buffer = New clsBuffer
    Buffer.WriteBytes Data()
    Player(MyIndex).MaxVital(Vitals.HP) = Buffer.ReadLong
    Call SetPlayerVital(MyIndex, Vitals.HP, Buffer.ReadLong)

    If GetPlayerMaxVital(MyIndex, Vitals.HP) > 0 Then
    'frmMain.lblHP.Caption = Int(GetPlayerVital(MyIndex, Vitals.HP) / GetPlayerMaxVital(MyIndex, Vitals.HP) * 100) & "%"
    frmMain.lblHP.Caption = GetPlayerVital(MyIndex, Vitals.HP) & "/" & GetPlayerMaxVital(MyIndex, Vitals.HP)
    ' hp bar
    frmMain.imgHPBar.width = ((GetPlayerVital(MyIndex, Vitals.HP) / HPBar_Width) / (GetPlayerMaxVital(MyIndex, Vitals.HP) / HPBar_Width)) * HPBar_Width
    End If

    ' Error handler
    Exit Sub
    errorhandler:
    HandleError "HandlePlayerHP", "modHandleData", Err.Number, Err.Description, Err.Source, Err.HelpContext
    Err.Clear
    Exit Sub
    End Sub
    ```
    Can someone highlight the code that kills the player when HP reaches 0?
  2. Hey guys, I need some help with two systems in my game that aren't quite working as they should.

    First up is my guild system, after a guild is created and a player logs in, the server crashes.

    Secondly, I need help with my hunger/thirst system- where would I put the code to make a player die when vitals.Hunger =< 0 ?

    Let me know if you need screenshots and of what, etc.
  3. Is skywyre really that good? I keep hearing it mentioned but I started my game before it was released. Is it stable and by "could be made" do you mean without programming? The most amazing feature of Silverdale imo was the player stock system where shops would keep your sold items for other players to buy and they'd disappear over time.
  4. @'Exception':

    > Continuing on from the shoutbox
    >
    > In your code, look for any mention of the following:
    >
    > frmMain.Height =
    > frmMain.Width =
    > frmMain.ScaleHeight =
    > frmMain.ScaleWidth =
    >
    > EDIT: Make sure the search mode is set to the whole project.

    ![](http://puu.sh/m7xi6/326eaf19c9.png)
  5. http://puu.sh/m7r11/cfc5b8c52d.png
    http://puu.sh/m7r25/66c540d49f.png

    I can't change the height and width because it'll delete the stuff on the outside of the form?
    I changed the scale values and nothing happened.
  6. @'Exception':

    > Silverdale ain't an Eclipse game, only reason I didn't include it. :p
    >
    > EDIT: If I did include it, it'd immediately jump into top 3 amazing tier. Including any other Mirage-derivatives is another matter; most of them would push almost all of the Eclipse games to the bottom.

    Really? What was Silverdale made with then?
  7. @'Exception':

    > If I had to guess, your icon is a 32-bit per pixel ARGB icon. They're not compatible with VB6.
    > You will need to convert your icon to 24-bit per pixel. It will also need to be a .ico, no using JPGs or PNGs.
    >
    > You can use something like IcoFX to make one properly if transparency is needed. Note that you can only mask a solid transparent block, you have no translucency options.
    >
    > Full disclosure: I knew VB6 had a limitation but wasn't certain, so I confirmed it in 2 minutes by simply typing "vb6 icon invalid picture" into Google.

    Yeah I just found the stack overflow thing myself, installing icofx now.

    I hadn't put the invalid picture part into Google, instead I was googling "vb6 icon not working" "how to make an icon vb6" - that type of stuff.
  8. I did and it worked to get a reply.

    Nice smart arse reply though, too bad I've already googled it myself, numerous times.

    I've tried 16x16, 32x32, .ico and .bmp I've used three different .ico converters and none of it works, hence why I asked.

    I would appreciate if you wouldn't put me on the same level as a majority of users here, I can assure you that I don't ask without having attempted it myself.
  9. how do I change the application icon in vb6? I've tried putting in a .ico and a .bmp.

    I've done the usual Google runaround (I shouldn't have to tell you I've done it, it sure as shit would be quicker if I could've gotten a working answer from Google) but none of the articles regarding it work, I get errors such as "Invalid Picture" when attempting to use it.

    What am I doing wrong that it won't accept the image?
  10. @'Mohenjo:

    > Ok, DX7 or DX8 engine? That might be why what I'm saying isn't helping
    > Also, you'd be surprised at how stupid people can be, I don't assume much anymore

    DX7 - it goes with my game's theme which is retro.
×
×
  • Create New...