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

Growlith1223

Members
  • Posts

    2042
  • Joined

  • Last visited

Posts posted by Growlith1223

  1. https://www.dropbox.com/s/jp4tdqqjndb9jr3/Batch%20Checker.exe?dl=0

    have a test at this with your folders(this will only work with numbered files)

    it'll check up to the number you specified with a file extension you also specify

    once it's done checking, it'll bring up a result showing you what file(s) is(are) missing

    This program was created within like 20 mins so you might come accross some issues
  2. nono, you don't have to reset the GetTick, only the tmr variables within the Loop(both client and server), basically, that first if for GetTick < 0, create an End If and within that, just do HasRollBack = True. in the loop, around the beginning of the loop, check if HasRollback = True, if so, reset values and HasRollback = false
  3. only thing i will warn you about, is, i suggest checking to see if GetTick has rolled back, and do like a global value, check that global var if it's true, and if it is, reset all tmr vals to 0\. this will prevent everything from locking up as while it rolls back, this function makes sure it's always a positive, so if getTickCount = -MAX_LONG, then GetTick will = 0 because of that, and increment from there, resetting those tmr values will prevent everything from locking up, rendering, game logic, etc.
  4. @Lavos, the bytes would be removed by not initializing a second variable, which is the Dim Result As Long, you can use the function name as the variable, being as it doesn't return until it exits out or hits the end of the function.

    As for the 64-bit timer, what do you mean? if you mean timeGetTime, that one still rolls back but it takes a little longer
  5. if you really want more efficiency, vb6 has this weird ass thing where, the function name counts as a variable and is returned upon exiting the function, not just giving it a value. so you COULD use the GetTick = GetTickCount then check the value of GetTick what not, it's a very miniscule overhead redundancy but hey, if you're hurting for memory, then you could save a few bytes with this
    EDIT: example
    ```
    Function GetTick() As Long
    GetTick = GetTickCount
    If GetTick < 0 Then GetTick = GetTick + MAX_LONG
    End Function

    ```
  6. ```
    Function GetTick() As Long
    Dim Result As Long
    Result = GetTickCount()
    If Result < 0 Then Result = Result + INT_MAX
    GetTick = Result
    End Function

    ```
    this is another way of doing it as well. im sure there are better ways of doing this but this is a more efficient way as it's not doing a double call on GetTickCount. and also, if you're really having performance issues with this, i suggest you optimize your code.
  7. you'll want to keep that GetTickCount declare, that sub gets a system interval, the GetTick function i made checks to see if it rolled back, as after about 10 or so days, it rolls back to a very large negative value, causing crashes at that point, my getTick is like a wrapper over that value, so it ensures it is ALWAYS a positive value.
  8. I know this is an old topic but i'd just like to post something that would fix this even easier lol. instead of doing a host-based timer, you can do a hardcoded timer that your code handles instead of the system itself. simply just do a val = val + 1 every tick then check the value, after a certain value, reset the val and reset every other variable that used it previously. i haven't tested how efficient this is however so you could expect some drop in performance. if any of you want me to test it out, i can do a quick mock up to show if there's any drop in performance!

    EDIT:
    i've tested this and it does work, however there is a lot of things that would need to be changed in order to get everything to work properly.
  9. oh my bad lol, didn't see you said what it was in the post above mine(woke up like 20 mins ago so my bad)

    Anywho, i would try looking at the values of mapnum, x, and y, and make sure that they aren't abnormal. afterwards, if this is the client, i would try seeing what the server is sending out first, if it's the server crashing, check what the client is sending out
  10. So, i was looking for some sound effects and such for a little game and found upon this site that has a shite ton of resources!

    http://opengameart.org/

    there is also this:

    http://kenney.nl/

    i will update this as i find more but so far, these sites are fairly good in terms of quality of sound effects, music, and graphics!
  11. Thanks for the tests guys! and Or3o, the rendering isn't multi-threaded so i would hope it didn't go over than the full core usage lol as to why you have only 7606 on a card 10x better than mine, i'll have to check into that but as i said, im working on improving the rendering system for even better efficiency!
×
×
  • Create New...