Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [18:37] Шιzαя∂: wuuuuuuuut
- [18:37] Шιzαя∂: but an address doesn't change even when the player dies
- [18:37] Шιzαя∂: oh wait this is client
- [18:37] Btcc22 ó_Ó: Ah but it does
- [18:37] Шιzαя∂: <-- duh
- [18:37] Btcc22 ó_Ó: :>
- [18:37] Шιzαя∂: why not just use virtualprotect?
- [18:37] Btcc22 ó_Ó: Huh?
- [18:38] Шιzαя∂: it's something phasor and sapp use to prevent reading/writing of bad addresses
- [18:38] Шιzαя∂: like obviously 532 isn't a valid address, therefore virtualprotect would prevent the server from crashing
- [18:38] Btcc22 ó_Ó: Oh
- [18:38] Btcc22 ó_Ó: Don't see how that's tied to fixing the XYZ problem
- [18:39] Шιzαя∂: well you could still read the xyz coordinates right? they would just be delayed. Or are the client structures completely dynamic?
- [18:39] Шιzαя∂: that still shouldn't be an issue, if you create a getplayercoords function...
- [18:40] Шιzαя∂: other than them being delayed
- [18:40] Btcc22 ó_Ó: Then you'd have to hold the main thread up while you do the checks and read the coordinates
- [18:40] Btcc22 ó_Ó: Which is basically the same thing as just redesigning the API anyway
- [18:40] Шιzαя∂: oh.
- [18:40] Шιzαя∂: duh
- [18:41] Шιzαя∂: api v2
- [18:41] Btcc22 ó_Ó: Yeah
- [18:41] Шιzαя∂: looking forward to it
- [18:41] Btcc22 ó_Ó: Me too
- [18:41] Шιzαя∂: don't pull an oxide and take ages because you're lazy
- [18:41] Шιzαя∂: that's literally his reason 80% of the time lol
- [18:41] Btcc22 ó_Ó: I'll try not to
- [18:41] Btcc22 ó_Ó: Can't blame him
- [18:41] Btcc22 ó_Ó: He's bored of Halo
- [18:42] Шιzαя∂: then there's the fact that he's almost done
- [18:42] Btcc22 ó_Ó: :>
- [18:42] Шιzαя∂: well...... that's what I was telling myself, until I thought of communication with hac2
- [18:42] Btcc22 ó_Ó: Heh
- [18:43] Btcc22 ó_Ó: Perhaps when I get some free time, I'll give it a couple of weeks of my time
- [18:43] Шιzαя∂: you still plan to sandbox scripts in the new api though
- [18:43] Шιzαя∂: give phasor a couple weeks? or hac2?
- [18:43] Btcc22 ó_Ó: HAC
- [18:43] Шιzαя∂: k
- [18:44] Шιzαя∂: something you should do though, organize your C functions by what they do, and then put them into a class
- [18:45] Шιzαя∂: like lua has a math library, where you do math.random() math.frexp math.floor math.ceil etc
- [18:45] Btcc22 ó_Ó: I'll keep that in mind
- [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
- [18:47] Шιzαя∂: so are you getting bored of halo as well or are you just low on free time?
- [18:47] Btcc22 ó_Ó: Both
- [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
- [18:48] Btcc22 ó_Ó: :P
- [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()
- [18:49] Шιzαя∂: how the heck did 3 hours pass
- [18:49] Шιzαя∂: you must be very entertaining, I swear it was like 3:00 like 2 minutes ago
- [18:54] Шιzαя∂: dumb question: where do I put hac2 scripts to make them load? idk why I can't find your website D:
- [18:56] Btcc22 ó_Ó: Nice :>
- [18:56] Btcc22 ó_Ó: C:\Users\Btcc22\Documents\My Games\Halo CE\hac\packs
- [18:57] Btcc22 ó_Ó: Or whatever your user is
- [18:57] Шιzαя∂: oh
- [18:57] Btcc22 ó_Ó: ...and then they need to be zipped
- [18:57] Шιzαя∂: oh wth?
- [18:57] Шιzαя∂: like just the script? or a folder?
- [18:57] Шιzαя∂: so guessing I create the packs folder
- [18:58] Шιzαя∂: why do they have to be zipped? that's weird.
- [18:58] Btcc22 ó_Ó: http://blog.haloanticheat.com/wp-content/uploads/2014/11/halo4.zip
- [18:58] Btcc22 ó_Ó: Probably easier to check an example
- [18:58] Btcc22 ó_Ó: You'll understand why
- [18:58] Шιzαя∂: your site will not load for me
- [18:58] Btcc22 ó_Ó: Did you try that link?
- [18:58] Шιzαя∂: oh nevermind, delay
- [18:58] Шιzαя∂: so it isn't me, your site is down
- [18:59] Шιzαя∂: that sucks
- [18:59] Btcc22 ó_Ó: Then you have to do 'optic load zipnamehere' at the console
- [18:59] Шιzαя∂: so I can't make it load automatically?
- [18:59] Шιzαя∂: aw
- [18:59] Btcc22 ó_Ó: Well
- [18:59] Btcc22 ó_Ó: It'll load automatically after you've loaded it the first time
- [18:59] Btcc22 ó_Ó: IIRC!
- [18:59] Шιzαя∂: oh neat
- [19:00] Шιzαя∂: uh, one more question
- [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?
- [19:01] Btcc22 ó_Ó: It does indeed
- [19:01] Шιzαя∂: O_o probably shouldn't have removed it
- [19:01] Btcc22 ó_Ó: Nope
- [19:01] Шιzαя∂: lol I only made like 3 changes and I can call it perfect
- [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
- [19:02] Btcc22 ó_Ó: :P
- [19:02] Шιzαя∂: so nice job
- [19:02] Шιzαя∂: you wrote an excellent first script
- [19:02] Btcc22 ó_Ó: Thanks ;)
- [19:03] Btcc22 ó_Ó: Now the question is whether the script will work properly with the upwhatever variables
- [19:03] Шιzαя∂: XD it will
- [19:03] Шιzαя∂: well
- [19:03] Шιzαя∂: actually for once I don't know
- [19:03] Btcc22 ó_Ó: I don't see how if it's the same as C's static
- [19:03] Шιzαя∂: I never used JIT before :p
- [19:03] Шιzαя∂: lol i don't know what that means because I don't know C
- [19:04] Шιzαя∂: lol and it's called
- [19:04] Шιzαя∂: upvalues
- [19:04] Btcc22 ó_Ó: In this context it means the variable will retain its value even after the function ends
- [19:04] Шιzαя∂: no..
- [19:04] Btcc22 ó_Ó: But that doesn't mean it can be accessed in other functions
- [19:04] Btcc22 ó_Ó: Otherwise it's just another way of saying global
- [19:04] Шιzαя∂: basically all it means is
- [19:04] Шιzαя∂: you can't access it from C
- [19:05] Шιzαя∂: and it's faster because it's indexed directly instead of using the global hashtable
- [19:05] Btcc22 ó_Ó: Hm
- [19:05] Шιzαя∂: what does cb stand for, by the way?
- [19:06] Btcc22 ó_Ó: callback
- [19:06] Шιzαя∂: i know what it is, but why the letters 'cb'
- [19:06] Шιzαя∂: ...duh
- [19:06] Btcc22 ó_Ó: ;]
- [19:06] Шιzαя∂: alright let's see if it worked
- [19:06] Шιzαя∂: it compiled successfully
- [19:07] Шιzαя∂: but... I used a lua 5.2 interpreter, now let's see if hac2 works with it..
- [19:07] Шιzαя∂: wut
- [19:08] Шιzαя∂: an error occured while attempting to read the metadata
- [19:08] Шιzαя∂: oh I zipped it wrong... whoops
- [19:08] Btcc22 ó_Ó: :P
- [19:08] Шιzαя∂: i zipped a folder of halo4 which contained the files... whoops
- [19:08] Btcc22 ó_Ó: Heh
- [19:09] Шιzαя∂: uh oh
- [19:09] Шιzαя∂: is there such a thing as 'script logs' in HAC2?
- [19:09] Btcc22 ó_Ó: No
- [19:09] Btcc22 ó_Ó: What purpose would that serve?
- [19:10] Шιzαя∂: finding errors and what line they were on...
- [19:10] Btcc22 ó_Ó: It'll tell you in the console
- [19:10] Шιzαя∂: it told me the error
- [19:10] Шιzαя∂: just not the line it happened on
- [19:10] Шιzαя∂: or the stack trace
- [19:10] Btcc22 ó_Ó: Шιzαя∂: an error occured while attempting to read the metadata
- [19:10] Btcc22 ó_Ó: This?
- [19:10] Шιzαя∂: yea
- [19:10] Шιzαя∂: no line number
- [19:10] Btcc22 ó_Ó: That's not a Lua error
- [19:10] Шιzαя∂: no stack trace
- [19:10] Btcc22 ó_Ó: It's a "you got your zip wrong" error
- [19:10] Шιzαя∂: oh sorry
- [19:10] Шιzαя∂: not that
- [19:10] Шιzαя∂: 'attempt to call nil value' was the other one
- [19:11] Шιzαя∂: which I just fixed
- [19:11] Btcc22 ó_Ó: There will be a line number
- [19:11] Btcc22 ó_Ó: Look harder :P
- [19:11] Шιzαя∂: lol it's 5 words in red, i'm not blind D:
- [19:11] Btcc22 ó_Ó: :X
- [19:11] Btcc22 ó_Ó: I'd need proof of that :P
- [19:12] Шιzαя∂: you're planning on rewriting the api anyway
- [19:12] Шιzαя∂: so it's all good
- [19:12] Btcc22 ó_Ó: ;]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement