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

Growlith1223

Members
  • Posts

    2042
  • Joined

  • Last visited

Everything posted by Growlith1223

  1. take a look at the sub DrawPlayer, you'll see something along the lines of DrawPaperdoll, now look at the order of rendering with the player and the paperdolls, that should give you an idea
  2. i would also do the timers for everything else if you know how, too tired to give an example
  3. 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
  4. 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.
  5. @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
  6. You /should/ be fine? i don't remember there ever being an issue with doing this on one side only.
  7. 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 ```
  8. ``` 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.
  9. 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.
  10. god damn, that looks beautiful
  11. either TempPlayer or the .buffer variable has not been initialized
  12. Would help to know which engine exactly that you are using, there's a million and a half CVs on this site to begin with, all with changes to various mechanics and some added.
  13. 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.
  14. 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
  15. Could you specify which error exactly it is? saying you get an error doesn't help you or the ones helping you in succeeding in doing so.
  16. Yes it will, it'll create completely blank maps
  17. 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!
  18. 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!
  19. holy shat that fps lol, thanks for the reply btw, Mellowz! and it's never too late, im actually redoing the way im rendering it to kind boost efficiency and whatnot, i should have a new test soon!
  20. Growlith1223

    The "ban wave"

    yea if a dick is turnt, you might want to have a doctor look at that man
  21. Growlith1223

    The "ban wave"

    tbh you're not wrong. im bi afterall LOL, try and turn my jokes against me some more XD
  22. Growlith1223

    The "ban wave"

    You took the dick the wrong way then. you're supposed to just let it slide in
  23. Growlith1223

    The "ban wave"

    i don't see how your feeble mind came up with it being a dick move but ok
  24. there's only been 2 bans within the past few weeks, not sure where yall are comin from with there's been over a million bans a day? and tbh about the donation thing, you shouldn't really have special privledges to be a dick just because you have donated lol
×
×
  • Create New...