Advertisement
th3w1zard1

Untitled

Apr 20th, 2015
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.26 KB | None | 0 0
  1. [18:37] Шιzαя∂: wuuuuuuuut
  2. [18:37] Шιzαя∂: but an address doesn't change even when the player dies
  3. [18:37] Шιzαя∂: oh wait this is client
  4. [18:37] Btcc22 ó_Ó: Ah but it does
  5. [18:37] Шιzαя∂: <-- duh
  6. [18:37] Btcc22 ó_Ó: :>
  7. [18:37] Шιzαя∂: why not just use virtualprotect?
  8. [18:37] Btcc22 ó_Ó: Huh?
  9. [18:38] Шιzαя∂: it's something phasor and sapp use to prevent reading/writing of bad addresses
  10. [18:38] Шιzαя∂: like obviously 532 isn't a valid address, therefore virtualprotect would prevent the server from crashing
  11. [18:38] Btcc22 ó_Ó: Oh
  12. [18:38] Btcc22 ó_Ó: Don't see how that's tied to fixing the XYZ problem
  13. [18:39] Шιzαя∂: well you could still read the xyz coordinates right? they would just be delayed. Or are the client structures completely dynamic?
  14. [18:39] Шιzαя∂: that still shouldn't be an issue, if you create a getplayercoords function...
  15. [18:40] Шιzαя∂: other than them being delayed
  16. [18:40] Btcc22 ó_Ó: Then you'd have to hold the main thread up while you do the checks and read the coordinates
  17. [18:40] Btcc22 ó_Ó: Which is basically the same thing as just redesigning the API anyway
  18. [18:40] Шιzαя∂: oh.
  19. [18:40] Шιzαя∂: duh
  20. [18:41] Шιzαя∂: api v2
  21. [18:41] Btcc22 ó_Ó: Yeah
  22. [18:41] Шιzαя∂: looking forward to it
  23. [18:41] Btcc22 ó_Ó: Me too
  24. [18:41] Шιzαя∂: don't pull an oxide and take ages because you're lazy
  25. [18:41] Шιzαя∂: that's literally his reason 80% of the time lol
  26. [18:41] Btcc22 ó_Ó: I'll try not to
  27. [18:41] Btcc22 ó_Ó: Can't blame him
  28. [18:41] Btcc22 ó_Ó: He's bored of Halo
  29. [18:42] Шιzαя∂: then there's the fact that he's almost done
  30. [18:42] Btcc22 ó_Ó: :>
  31. [18:42] Шιzαя∂: well...... that's what I was telling myself, until I thought of communication with hac2
  32. [18:42] Btcc22 ó_Ó: Heh
  33. [18:43] Btcc22 ó_Ó: Perhaps when I get some free time, I'll give it a couple of weeks of my time
  34. [18:43] Шιzαя∂: you still plan to sandbox scripts in the new api though
  35. [18:43] Шιzαя∂: give phasor a couple weeks? or hac2?
  36. [18:43] Btcc22 ó_Ó: HAC
  37. [18:43] Шιzαя∂: k
  38. [18:44] Шιzαя∂: something you should do though, organize your C functions by what they do, and then put them into a class
  39. [18:45] Шιzαя∂: like lua has a math library, where you do math.random() math.frexp math.floor math.ceil etc
  40. [18:45] Btcc22 ó_Ó: I'll keep that in mind
  41. [18:46] Шιzαя∂: it wouldn't be a bad idea, i'm guessing phasor and sapp didn't do it because of their limited knowledge of the lua language
  42. [18:47] Шιzαя∂: so are you getting bored of halo as well or are you just low on free time?
  43. [18:47] Btcc22 ó_Ó: Both
  44. [18:47] Шιzαя∂: most of my scripting time isnt even related to halo so I guess that's why I'm not sick of it
  45. [18:48] Btcc22 ó_Ó: :P
  46. [18:48] Шιzαя∂: like for example I just created this amazing class system for my commands, where all commands inherit variables and methods from the commands table whenever I call Commands.Create()
  47. [18:49] Шιzαя∂: how the heck did 3 hours pass
  48. [18:49] Шιzαя∂: you must be very entertaining, I swear it was like 3:00 like 2 minutes ago
  49. [18:54] Шιzαя∂: dumb question: where do I put hac2 scripts to make them load? idk why I can't find your website D:
  50. [18:56] Btcc22 ó_Ó: Nice :>
  51. [18:56] Btcc22 ó_Ó: C:\Users\Btcc22\Documents\My Games\Halo CE\hac\packs
  52. [18:57] Btcc22 ó_Ó: Or whatever your user is
  53. [18:57] Шιzαя∂: oh
  54. [18:57] Btcc22 ó_Ó: ...and then they need to be zipped
  55. [18:57] Шιzαя∂: oh wth?
  56. [18:57] Шιzαя∂: like just the script? or a folder?
  57. [18:57] Шιzαя∂: so guessing I create the packs folder
  58. [18:58] Шιzαя∂: why do they have to be zipped? that's weird.
  59. [18:58] Btcc22 ó_Ó: http://blog.haloanticheat.com/wp-content/uploads/2014/11/halo4.zip
  60. [18:58] Btcc22 ó_Ó: Probably easier to check an example
  61. [18:58] Btcc22 ó_Ó: You'll understand why
  62. [18:58] Шιzαя∂: your site will not load for me
  63. [18:58] Btcc22 ó_Ó: Did you try that link?
  64. [18:58] Шιzαя∂: oh nevermind, delay
  65. [18:58] Шιzαя∂: so it isn't me, your site is down
  66. [18:59] Шιzαя∂: that sucks
  67. [18:59] Btcc22 ó_Ó: Then you have to do 'optic load zipnamehere' at the console
  68. [18:59] Шιzαя∂: so I can't make it load automatically?
  69. [18:59] Шιzαя∂: aw
  70. [18:59] Btcc22 ó_Ó: Well
  71. [18:59] Btcc22 ó_Ó: It'll load automatically after you've loaded it the first time
  72. [18:59] Btcc22 ó_Ó: IIRC!
  73. [18:59] Шιzαя∂: oh neat
  74. [19:00] Шιzαя∂: uh, one more question
  75. [19:00] Шιzαя∂: api_version that's defined at the top, is that there just for shows, or does hac2 actually do something with that?
  76. [19:01] Btcc22 ó_Ó: It does indeed
  77. [19:01] Шιzαя∂: O_o probably shouldn't have removed it
  78. [19:01] Btcc22 ó_Ó: Nope
  79. [19:01] Шιzαя∂: lol I only made like 3 changes and I can call it perfect
  80. [19:02] Шιzαя∂: made all your functions (except the register_callback ones) local and emptied the tables instead of recreating them (waste of memory), and localized all the variables at the top
  81. [19:02] Btcc22 ó_Ó: :P
  82. [19:02] Шιzαя∂: so nice job
  83. [19:02] Шιzαя∂: you wrote an excellent first script
  84. [19:02] Btcc22 ó_Ó: Thanks ;)
  85. [19:03] Btcc22 ó_Ó: Now the question is whether the script will work properly with the upwhatever variables
  86. [19:03] Шιzαя∂: XD it will
  87. [19:03] Шιzαя∂: well
  88. [19:03] Шιzαя∂: actually for once I don't know
  89. [19:03] Btcc22 ó_Ó: I don't see how if it's the same as C's static
  90. [19:03] Шιzαя∂: I never used JIT before :p
  91. [19:03] Шιzαя∂: lol i don't know what that means because I don't know C
  92. [19:04] Шιzαя∂: lol and it's called
  93. [19:04] Шιzαя∂: upvalues
  94. [19:04] Btcc22 ó_Ó: In this context it means the variable will retain its value even after the function ends
  95.  
  96. [19:04] Шιzαя∂: no..
  97. [19:04] Btcc22 ó_Ó: But that doesn't mean it can be accessed in other functions
  98. [19:04] Btcc22 ó_Ó: Otherwise it's just another way of saying global
  99. [19:04] Шιzαя∂: basically all it means is
  100. [19:04] Шιzαя∂: you can't access it from C
  101. [19:05] Шιzαя∂: and it's faster because it's indexed directly instead of using the global hashtable
  102. [19:05] Btcc22 ó_Ó: Hm
  103. [19:05] Шιzαя∂: what does cb stand for, by the way?
  104. [19:06] Btcc22 ó_Ó: callback
  105. [19:06] Шιzαя∂: i know what it is, but why the letters 'cb'
  106. [19:06] Шιzαя∂: ...duh
  107. [19:06] Btcc22 ó_Ó: ;]
  108. [19:06] Шιzαя∂: alright let's see if it worked
  109. [19:06] Шιzαя∂: it compiled successfully
  110. [19:07] Шιzαя∂: but... I used a lua 5.2 interpreter, now let's see if hac2 works with it..
  111. [19:07] Шιzαя∂: wut
  112. [19:08] Шιzαя∂: an error occured while attempting to read the metadata
  113. [19:08] Шιzαя∂: oh I zipped it wrong... whoops
  114. [19:08] Btcc22 ó_Ó: :P
  115. [19:08] Шιzαя∂: i zipped a folder of halo4 which contained the files... whoops
  116. [19:08] Btcc22 ó_Ó: Heh
  117. [19:09] Шιzαя∂: uh oh
  118. [19:09] Шιzαя∂: is there such a thing as 'script logs' in HAC2?
  119. [19:09] Btcc22 ó_Ó: No
  120. [19:09] Btcc22 ó_Ó: What purpose would that serve?
  121. [19:10] Шιzαя∂: finding errors and what line they were on...
  122. [19:10] Btcc22 ó_Ó: It'll tell you in the console
  123. [19:10] Шιzαя∂: it told me the error
  124. [19:10] Шιzαя∂: just not the line it happened on
  125. [19:10] Шιzαя∂: or the stack trace
  126. [19:10] Btcc22 ó_Ó: Шιzαя∂: an error occured while attempting to read the metadata
  127.  
  128. [19:10] Btcc22 ó_Ó: This?
  129. [19:10] Шιzαя∂: yea
  130. [19:10] Шιzαя∂: no line number
  131. [19:10] Btcc22 ó_Ó: That's not a Lua error
  132. [19:10] Шιzαя∂: no stack trace
  133. [19:10] Btcc22 ó_Ó: It's a "you got your zip wrong" error
  134. [19:10] Шιzαя∂: oh sorry
  135. [19:10] Шιzαя∂: not that
  136. [19:10] Шιzαя∂: 'attempt to call nil value' was the other one
  137. [19:11] Шιzαя∂: which I just fixed
  138. [19:11] Btcc22 ó_Ó: There will be a line number
  139. [19:11] Btcc22 ó_Ó: Look harder :P
  140. [19:11] Шιzαя∂: lol it's 5 words in red, i'm not blind D:
  141. [19:11] Btcc22 ó_Ó: :X
  142. [19:11] Btcc22 ó_Ó: I'd need proof of that :P
  143. [19:12] Шιzαя∂: you're planning on rewriting the api anyway
  144. [19:12] Шιzαя∂: so it's all good
  145. [19:12] Btcc22 ó_Ó: ;]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement