May 17, 2016 at 7:16 AM
Join Date: Nov 23, 2015
Location: Somewhere within a world far away from reality...
Posts: 381
Age: 24
Pronouns: he/him
Which entity?Sorry, should of asked 'where's the offset for the teleporting function?'
Which entity?Sorry, should of asked 'where's the offset for the teleporting function?'
Which entity?
NPC111 is for Quote teleporting out, NPC112 is for Quote teleporting in.Any entity???
Do they not all share the same teleporting funtion? I'm looking for like the Quote teleporting in and out ones because I want to make a custom teleporting animation.
NPC111 is for Quote teleporting out, NPC112 is for Quote teleporting in.
All NPC animations are within the code themselves. If you want to edit all teleporting codes, you'd have to edit them separately.I mean they're assembly code TO TELEPORT.
Okay, new question, new answer. I'm pretty sure Cave Story was written in C or C++ or C# or something shifty like that, so that code is incredibly slow and inefficient. If you want to, you can optimise the codes with Local Variables, usually used for framerects.I mean they're assembly code TO TELEPORT.
Wait, why am I so dumb? I could just be looking at the code in olly and figuring it myself.
So new question, why does every NPC use local variables when you could just mov the numbers directly?
I'm pretty sure Cave Story was written in C or C++ or C# or something shifty like that, so that code is incredibly slow and inefficient.
"Written in C or C++ or C#"
"incredibly slow and inefficient"
Yeah I think you might be a little confused there/have no idea what you're talking about (and probably don't know about pipelining when it comes to compiling code).
Of course, code written in ASM will generally be faster than code that has to be compiled (like C), but it's a stretch to call C code (or the code you've pointed out here) "inefficient".
map #72I'm new to modding and I am trying to find out how to change the start-up scene where it shows the Doctor with the captured Balrog and Misery. If anyone can tell me how to do this it would be greatly appreciated
Huh yeah, that quote got messed up somehow. Changed it to ThomasXin, the guy I was actually quoting.I think your quoting the wrong person???
Anyways, Big9ize, If you want to change the starting scene you need to edit the map named "Kings" that's the map used in the beginning cutscene.
Huh yeah, that quote got messed up somehow. Changed it to ThomasXin, the guy I was actually quoting.
It's quite a lot more space-consuming than assembly, and I'm not sure if you have a grudge against me or something, but you're talking to me as if I owe you something."Written in C or C++ or C#"
"incredibly slow and inefficient"
Yeah I think you might be a little confused there/have no idea what you're talking about (and probably don't know about pipelining when it comes to compiling code).
Of course, code written in ASM will generally be faster than code that has to be compiled (like C), but it's a stretch to call C code (or the code you've pointed out here) "inefficient".
Space consuming != inefficient. When writing programs you're generally more concerned with how fast they execute, not how much space the instructions take up (which is normally small/dwarfed by the memory used by the program for variables/data anyways). Space consumption is only really an issue when you don't have the source code, when you are modified the compiled executable by itself, which is a bit of a rare scenario to be in.It's quite a lot more space-consuming than assembly, and I'm not sure if you have a grudge against me or something, but you're talking to me as if I owe you something.
Sorry...?Space consuming != inefficient. When writing programs you're generally more concerned with how fast they execute, not how much space the instructions take up (which is normally small/dwarfed by the memory used by the program for variables/data anyways). Space consumption is only really an issue when you don't have the source code, when you are modified the compiled executable by itself, which is a bit of a rare scenario to be in.
The C code compiles to more instructions, due in part to it trying to take advantage of pipelining and due in part to it just translating C instructions to ASM reliably (but perhaps "dumbly), but the resulting ASM from the C code doesn't execute much slower than the ASM alternative you proposed, even though it's more instructions/takes up more space. I'd have to explain a bit about how pipelining works though in order for that to make sense since logically, more steps should make it slower. But thanks to how it orders those instructions they can go faster than you'd think, due to the pipelining of the processor.
I'm really just kind of offended that you'd call C of all languages "inefficient", since it's probably one of the most efficient (fastest) languages out there. It just shows ignorance in your post.
I'm not really calling it inefficient as in, bad code. I meant it takes more space, but it still runs slightly slower.
But I still think it's faster than, say, Javascript.
Also, why are you so easily offended? Lol
Thank you for trying to turn this into an argument. But I'd appreciate if you'd just shut up and stop trying to turn this into a thing, because I never meant to offend anyone, u̶n̶l̶i̶k̶e̶ ̶y̶o̶u̶. I realised my mistake in the other post, but that doesn't mean you should bump in to say something sarcastic like thatSo at first it was "incredibly slow and inefficient" and now it only "runs slightly slower" than the literal fastest way to execute instructions? Nice turnaround there, subtle and all.
Gee thank you for your insight. You didn't really strain yourself to make that statement, huh? It's better to stay on the safe side I guess
It's a figure of speech. But honestly, what you wrote was so perfectly wrong and ignorant it was almost actually offensive.
Seriously, how can a piece of code exactly the same as another, but with more commands run faster with all that extra useless pipelining?
Also, why are you so easily offended? Lol
Also for the record, Cave Story is written in C++, which is a shifty language but not for the reasons you mentioned, as it's barely slower than C.
Okay, I admit it. I've never had experience with C or C++, and I'd never noticed which type of code was faster, so I just assumed that the one using more space was slower.See this is just proof you don't really understand what the pipelining is. Those extra "useless" commands can be run basically 2 at a time with the commands they're between, since together those sets of 2 instructions don't touch the same registers. The compiler sets the pointer basically every other command to keep it handy and also just to take advantage of the pipelining.
I'd have less of an issue with this if you didn't say something so provably and universally false. It's like if someone said the earth was flat.
Cave Story is an odd little program, since it was written/compiled in C++, but it's programmed mostly like a C program (using structs instead of objects, and mostly static memory).
Okay, I realised that. But you guys could correct me, which would be more productive than those sarcastic insults.it's spreading misinformation which hurts everybody because those who don't know any better may mistake it for truth