Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,519,599
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 05-03-24 06:22 AM
Guest: Register | Login

Main - Posts by MathOnNapkins

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32

MathOnNapkins
Posted on 02-25-07 10:56 AM, in "You are posting threads too fast" Link | Quote | ID: 7321


Super Koopa
Level: 62

Posts: 24/842
EXP: 1936559
Next: 48127

Since: 02-19-07
From: durff

Last post: 4495 days
Last view: 4018 days
I was so shocked by this that I totally forgot what thread I was going to post in the first place. So I came here to the help/suggestiosn/bug reports forum. Then I tried to post a thread about this problem. About three minutes later it went away. Is there a 1 thread per 24 hour limit in force or something? Or was it just a fluke b/c I've only posted one thread and that was almost a day ago, if not more.

____________________
Zelda Hacking Forum
hobbies: delectatio morosa

MathOnNapkins
Posted on 02-27-07 05:19 AM, in IRC quotes thread Link | Quote | ID: 8245


Super Koopa
Level: 62

Posts: 25/842
EXP: 1936559
Next: 48127

Since: 02-19-07
From: durff

Last post: 4495 days
Last view: 4018 days
This stuff is from my old profile at the Third board incarnation but I want to repost it anyway. It features more Apophis hilarity .

[19:39] Drewseph: why the hell do people make penis decals?
[19:39] Drewseph: its a penis
[19:39] Drewseph: that means they are gay
[19:39] Drewseph: since they obviously like the penis
-------------------------
[06:00] MathOnNapkins: What's up Apopiss
[06:01] ApophiStudyin`: me
[06:01] ApophiStudyin`: exam this afternoon
[06:01] MathOnNapkins: What are you studying?
[06:01] ApophiStudyin`: fucking all-night
[06:01] ApophiStudyin`: *all-nighter
[06:01] MathOnNapkins: sex education?
[06:01] ApophiStudyin`: anthropology
[06:01] MathOnNapkins: same diff
[06:02] MathOnNapkins: I always thought anthropologists were pervs
[06:02] ApophiStudyin`:
[06:02] ApophiStudyin`: I just reread my typo and figured out why you said that
[06:02] MathOnNapkins: lol

____________________
Zelda Hacking Forum
hobbies: delectatio morosa

MathOnNapkins
Posted on 02-27-07 12:41 PM, in Programming Poll #1: Indent Style Link | Quote | ID: 8336


Super Koopa
Level: 62

Posts: 28/842
EXP: 1936559
Next: 48127

Since: 02-19-07
From: durff

Last post: 4495 days
Last view: 4018 days
Drag: that style drives me nuts. I wonder if there's a tool out there that converts between East Coast and West Coast coding style .

____________________
Zelda Hacking Forum
hobbies: delectatio morosa

MathOnNapkins
Posted on 03-02-07 07:28 AM, in ?How do i stop some zelda3 GFX from mirroring Link | Quote | ID: 9376


Super Koopa
Level: 62

Posts: 29/842
EXP: 1936559
Next: 48127

Since: 02-19-07
From: durff

Last post: 4495 days
Last view: 4018 days
I'm not even sure what you're talking about. Screenshots might help.

____________________
Zelda Hacking Forum
hobbies: delectatio morosa

MathOnNapkins
Posted on 03-02-07 01:08 PM, in What are your oppinions on various langauges? Link | Quote | ID: 9414


Super Koopa
Level: 62

Posts: 30/842
EXP: 1936559
Next: 48127

Since: 02-19-07
From: durff

Last post: 4495 days
Last view: 4018 days
No, the extra control of pointers is not useful

......... I'm just can't believe you would say this. Not useful? *foams at mouth and dies*

In any case, I'd say I have just as many errors when writing java programs as with C or C++ programs.


movl (%eax), (%ebx) not working? Can't you write a macro?

____________________
Zelda Hacking Forum
hobbies: delectatio morosa

MathOnNapkins
Posted on 03-02-07 01:15 PM, in Drawing Offscreen in Windows GDI Link | Quote | ID: 9417


Super Koopa
Level: 62

Posts: 31/842
EXP: 1936559
Next: 48127

Since: 02-19-07
From: durff

Last post: 4495 days
Last view: 4018 days
Is there any way to force a window to draw itself, including all its controls like buttons and edit controls, while offscreen? Or is there anyway to simulate this while the window is invisible so I can copy what would normally appear into a DC?

I'm trying to do something like this: You've got a 500 x 500 window that is scrollable but contains nothing. You've also got a 1000x1000 window that is either invisible or offscreen, but it's the one that contains all your controls and other stuff.

What's the point? I think if I could do this it could simplify scrolling mechanisms for windows with controls on them. But every single article I've dredged up on google leaves me with answers that don't work or don't apply. I even tried PrintWindow( ) and I couldn't even get that to import. Some bizarre problem with user32.lib not importing correctly. I'm using Visual Studio 7 and it seems to be a bit more restrictive than VS 6 >8(.

____________________
Zelda Hacking Forum
hobbies: delectatio morosa

MathOnNapkins
Posted on 03-03-07 12:36 PM, in AP Testing Thread Link | Quote | ID: 9908


Super Koopa
Level: 62

Posts: 32/842
EXP: 1936559
Next: 48127

Since: 02-19-07
From: durff

Last post: 4495 days
Last view: 4018 days
Don't be a pussy. Take the BC Calculus exam. It's not just about not paying for college, it's proving how much you kick ass.

The lowest score I got was a 2 out of all the ones I took, and that was French Language (not lit) AP. Man that test was a BITCH. I mean a BITCH.

Four years ago I got:
English Composition: 5
Chemistry: 4
French Lang.: 2
BC Calculus: 5

I don't think I took any others. I could have taken AP US History b/c i was in the class, but I didn't see the point of taking the test. Not an interesting subject to me, and I don't think it would have earned me any credit anyways. Chemistry and Calculus BC netted me 8 credit hours each for my scores. It was a sweet deal .

____________________
Zelda Hacking Forum
hobbies: delectatio morosa

MathOnNapkins
Posted on 03-04-07 02:42 AM, in AP Testing Thread Link | Quote | ID: 10201


Super Koopa
Level: 62

Posts: 33/842
EXP: 1936559
Next: 48127

Since: 02-19-07
From: durff

Last post: 4495 days
Last view: 4018 days
The BC boils down to this...

most of the additional material is on series and convergence of series. L'hopital's rule is something I'd think you would have already covered anyway. Euler's method must have been added in the time since I took the test. But it's not extremely hard to understand anyway. I would say the hardest part of BC is figuring out how to find an interval or radius of convergence. The other stuff is relatively simple. Velocity? 1st Derivative. Acceleration? 2nd Derivative. (of a paremetric curve anyway).

The more obscure material is on curvature and stuff in 3 dimensions but it boils down to memorizing formulas.

____________________
Zelda Hacking Forum
hobbies: delectatio morosa

MathOnNapkins
Posted on 03-05-07 01:41 AM, in AP Testing Thread Link | Quote | ID: 10565


Super Koopa
Level: 62

Posts: 34/842
EXP: 1936559
Next: 48127

Since: 02-19-07
From: durff

Last post: 4495 days
Last view: 4018 days
SamuraiX: series stuff is not really that time consuming, imo. Pick up the BC testing guide that is made by the actual AP testing company. They look like plain workbooks, and you won't likely find them in a Barnes and Noble, or what have you. You'll have to order them. Hell, order the AB and the BC, as it will provide additional practice even if you don't end up taking the BC. Your teacher can likely procure these for you, my teacher even got them for us for free somehow. As far as I can tell, they were the best study guides for the AP exam. Ones made by outside companies tended to have more typos, and have less relevant material.

Though, I'll have to be honest, BC might not be worth it if you don't expect to have to take Calculus II as a class in college. Physics, Medical sciences, and a few others require it (Math obviously), but I'm not sure on the particulars.

Taylor Series basically is this:

you take a function f(x). Provided certain conditions, like f(x) being infinitely differentiable ( in other words, you can take (n) derivatives of f(x) and the result will still be differentiable.) you can express f(x) as a polynomial series. e.g. sin(x) near the x-value x = 0. The Taylor series at that point is:

sin(x) = x - (x^3)/3! + (x^5)/5! - ... + ((-1)^(2n-1)x^(2n-1))/(2n-1)!

how do you get that? Taylor Series is:

f(x) (near x = 0) = f(0) + f'(0)x + (f''(0)x^2)(2!) + ... + (f(n)(0)x^n)/n!

This is actually how a calculator calculates the values of the sine function, and the cosine functione, etc. Since the series is always finite, you need a certain number of terms to achieve a certain amount of accuracy. That's the more complicated stuff though.

In any case, you can always look at the guides and try to work some of the problems. If you find that you cannot absorb the material, then you should probably just stick with AB.

____________________
Zelda Hacking Forum
hobbies: delectatio morosa

MathOnNapkins
Posted on 03-11-07 04:55 PM, in Z80 Question Link | Quote | ID: 13857


Super Koopa
Level: 62

Posts: 38/842
EXP: 1936559
Next: 48127

Since: 02-19-07
From: durff

Last post: 4495 days
Last view: 4018 days
Although I don't know that much about Zilog 80 Assembly.... it's usually the case that certain registers are designed for one thing more than the other. With just a casual glance at the Z80 instruction set, it looks like the E register was designed to help change the program counter, whereas the A register is more general purpose. Things like this can restrict how you code, but you have to deal with them.

____________________
Zelda Hacking Forum
hobbies: delectatio morosa

MathOnNapkins
Posted on 03-13-07 04:35 AM, in Broke a C-String on my cello. Link | Quote | ID: 14583


Super Koopa
Level: 62

Posts: 39/842
EXP: 1936559
Next: 48127

Since: 02-19-07
From: durff

Last post: 4495 days
Last view: 4018 days
WTF... guitar strings are like $5 for a whole set. What are those things made out of. Generally speaking, I think that playing an instrument with out all the strings in place will cause an imbalance in the bridge, meaning it could possibly start twisting to one side. But I'm not sure exactly how Cellos are rigged, it might be a bit different from a guitar. Just out of principle I'd replace the string b/c it would bother the hell out of me, even at $40 a pop.

____________________
Zelda Hacking Forum
hobbies: delectatio morosa

MathOnNapkins
Posted on 03-18-07 06:44 PM, in Swollen Eye Lid Link | Quote | ID: 16541


Super Koopa
Level: 62

Posts: 48/842
EXP: 1936559
Next: 48127

Since: 02-19-07
From: durff

Last post: 4495 days
Last view: 4018 days
That's what you call a stye. I got one out of nowhere earlier this year and it drove me crazy for about 2-3 days. It went away on its own finally. Basically you picked up some bacteria somewhere on your hands or whatever and it got into your eye when you rubbed it. Might want to check your towels in your house and make sure they're all clean, as that's where I think I got mine (from someone else's towel I used on accident after a shower.)

____________________
Zelda Hacking Forum
hobbies: delectatio morosa

MathOnNapkins
Posted on 03-22-07 08:49 PM, in Tiny question about max value in accumulator/variables(SNES) Link | Quote | ID: 18074


Super Koopa
Level: 62

Posts: 53/842
EXP: 1936559
Next: 48127

Since: 02-19-07
From: durff

Last post: 4495 days
Last view: 4018 days
On stuff like adding and subtracting, the performance hit is neglegible when acting on numbers larger than 16 bits (65536 or whatever). You could add and subtract numbers as large as 128 bit without a significant penalty. It's doing stuff like multiplying and dividing that would be much more time consuming. It's all a matter of properly using the carry flag.

____________________
Zelda Hacking Forum
hobbies: delectatio morosa

MathOnNapkins
Posted on 03-23-07 03:57 PM, in Here's a dumb question. Link | Quote | ID: 18401


Super Koopa
Level: 62

Posts: 54/842
EXP: 1936559
Next: 48127

Since: 02-19-07
From: durff

Last post: 4495 days
Last view: 4018 days
imo, the graphics are just compressed. I've tried with a couple games to view graphics but all I get is garbage, even from the FAT filesystem after you extract it.

On the other hand, there are probably some unsupported formats that the DS has introduced. e.g. many different kinds of 256 bitmaps have been introduced.

____________________
Zelda Hacking Forum
hobbies: delectatio morosa

MathOnNapkins
Posted on 03-26-07 08:26 PM, in C#/.NET Rendering Image (rev. 2 of 03-27-07 04:40 AM) Link | Quote | ID: 19525


Super Koopa
Level: 62

Posts: 55/842
EXP: 1936559
Next: 48127

Since: 02-19-07
From: durff

Last post: 4495 days
Last view: 4018 days
I've got an idea but I'll have to do a little more research first. It depends on whether you can do memory mapped files in C# or not.

http://www.bobpowell.net/lockingbits.htm <- best lead I've come up with so far.

____________________
Zelda Hacking Forum
hobbies: delectatio morosa

MathOnNapkins
Posted on 03-27-07 11:35 AM, in Looking for a little advice on working with headers in C++ Link | Quote | ID: 19904


Super Koopa
Level: 62

Posts: 56/842
EXP: 1936559
Next: 48127

Since: 02-19-07
From: durff

Last post: 4495 days
Last view: 4018 days
I've been using C and C++ for years, and time and time again, when I want to do a major modification of my code I will wind up with massive linker errors. The stock response "the #include directive copy and pastes the contents of the header file into the other file" seems like a giant lie to me. i.e. it might be an over simplification.

The chief reason I use header files and multiple source files, is of course, to make code easier to read. Scanning a 10,000 line file for one entry is a pain and doesn't make sense from an organizational standpoint.

Inevitably I will end up with a hierarchical arrangement when I use headers. i.e. I paint myself into corners where say, if I have a function in file3.cpp, I can call it in file1.cpp since it is declared in a low level header and I #include file3.h in file1.cpp. But it doesn't work the other way around. If there's a function in file1.cpp I can't ever seem to find out a way to call it in file3.cpp. So is there anyway to break this hierarchy?

I would prefer to program in such a way that any .cpp file can access any function declared in any .h file in my project. Furthermore, I would prefer to program in such a way that I could access any variable declared in any .h file (and defined in any .cpp file)

I would call that a flat arrangement, and basically a partitioning of one source file into several source files that while they are physically seperate, are logically one. I just would like some advice on how to achieve that.

example of my typical situation in C:

file1.cpp (#includes file1.h)
----file1.h (#includes file2.h)
----file2.cpp(#includes file2.h)
--------file2.h (#includes file3.h)
--------file3.cpp (#includes file3.h)
------------file3.h

Any advice would be greatly appreciated, as I usually end up with circular references of one sort or another in attempting a flat arrangement of files.

____________________
Zelda Hacking Forum
hobbies: delectatio morosa

MathOnNapkins
Posted on 03-27-07 12:23 PM, in Wiki Discussion Link | Quote | ID: 19913


Super Koopa
Level: 62

Posts: 57/842
EXP: 1936559
Next: 48127

Since: 02-19-07
From: durff

Last post: 4495 days
Last view: 4018 days
Posted by Kernal
Well, if you remain a prominent posting member of Acmlm's Board II and people start updating the wiki, someone might make you an article.


I can't wait!



____________________
Zelda Hacking Forum
hobbies: delectatio morosa

MathOnNapkins
Posted on 03-27-07 12:36 PM, in Orgasms Link | Quote | ID: 19914


Super Koopa
Level: 62

Posts: 58/842
EXP: 1936559
Next: 48127

Since: 02-19-07
From: durff

Last post: 4495 days
Last view: 4018 days
Rubber Duckies?

Yeah... I'm wondering the same thing. Unless he's referring to sex in the shower, which is a lot harder than you'd think to pull off. Really depends upon traction and the size of the shower.

Posted by Kles
1) Get hard


Try to move the shower head away from you. Too much water flow will mess up any lubrication you have going on. (which is why I also find de facto shower sex difficult)

____________________
Zelda Hacking Forum
hobbies: delectatio morosa

MathOnNapkins
Posted on 03-28-07 12:04 AM, in Looking for a little advice on working with headers in C++ Link | Quote | ID: 20060


Super Koopa
Level: 62

Posts: 60/842
EXP: 1936559
Next: 48127

Since: 02-19-07
From: durff

Last post: 4495 days
Last view: 4018 days
I already had those, what the problem really was was something to do with declarations and definitions. I was getting errors like "thisVar is already defined in file1.obj" errors or other similar stuff. I think I finally understand how this stuff works. for so long it seemed like magic, but I spent a long time messing around with it last night and it finally clicked. Thanks for your consideration though.

But Cellar Dweller, there's another question that has been bothering me for quite some time. It stems from a discussion you had with Guy Perfect over files and memory overlays on the last board incarnation. This concerns me a bit b/c I plan on some day porting (or letting someone else port) my code to another platform. So if I do something like

char* dataFile;

// ...
// Do some stuff that loads a file and copies the contents into a properly allocated
// dataFile char*
// ...

typedef struct
{
int* offset1;
int* offset2;
int* offset3;
int* offset4;
} fileStruct;

// Let's say that 0x30 bytes into the file, we expect to see a fileStruct embedded into
//it.
fileStruct fs = *(fileStruct*) &(dataFile[0x30]);

Now that thread got me worried that I shouldn't do stuff like this, at least if I expect my files to be on different platforms. i.e. let's say someone uses a version of my program on a Mac and another uses it on a Linux machine. The dataFile that gets created and stored is likely to be incompatible across platforms, yes?

You mentioned stdint.h types (which doesn't even ship with Visual Studio, if you use that, at least VS 6 and 7 didn't...) How does this, and shifting bits into and from files solve the endianness problem? Is there any easy way to construct custom file types without sacrficing cross platform potential?



____________________
Zelda Hacking Forum
hobbies: delectatio morosa

MathOnNapkins
Posted on 03-28-07 05:06 AM, in Looking for a little advice on working with headers in C++ (rev. 2 of 03-28-07 05:10 AM) Link | Quote | ID: 20189


Super Koopa
Level: 62

Posts: 61/842
EXP: 1936559
Next: 48127

Since: 02-19-07
From: durff

Last post: 4495 days
Last view: 4018 days
The second question is, the first question is a generalized question. E.g. far I've made a system that puts all the dungeon data into a .dng file so that other clients of the editor can import that data into their own roms. But if it's on a Power PC macintosh, the endianness is reversed (afaik), so you could have some potential problems importing that same .dng data file from a windows machine into the ported proram running on MacOS.

00 03 00 00 <-- say this is the offset in the file to tell you where a certain thing is.

that's 0x300 for windows users (big endian)

a little endian system would read it as 0x30000 (big difference)

I guess I shouldn't really be that worried about it. I've already written functions that kind of deal with the endianness problem:

unsigned int GetBufferDWord(bufPtr source, unsigned int offset)
{
// error checking

unsigned int result = (unsigned int) ( ( (source->contents) + offset)[0] & 0xFF );
result |= (unsigned int) ( ( (source->contents) + offset)[1] << 8 & 0x00FF00);
result |= (unsigned int) ( ( (source->contents) + offset)[2] << 16 & 0xFF0000);
result |= (unsigned int) ( ( (source->contents) + offset)[3] << 24 & 0xFF000000);

return result;
}

Whether or not the file originated on big endian or little endian, the result in memory will be the same with this function.

____________________
Zelda Hacking Forum
hobbies: delectatio morosa
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32


Main - Posts by MathOnNapkins

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.277 seconds. (332KB of memory used)
MySQL - queries: 141, rows: 173/173, time: 0.265 seconds.