(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-23-24 10:00 PM
Acmlm's Board - I3 Archive - - Posts by HyperHacker
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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253
User Post
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6304 days
Last view: 6304 days
Posted on 07-15-06 04:50 AM, in MSN password Link
Use the password reset function, and write it down next time.
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6304 days
Last view: 6304 days
Posted on 07-15-06 04:54 AM, in General Super Mario 64 hacking / TT64 Progress thread Link
Originally posted by donrayiv
Well, I tried that, but the picture looks messed up. I wanted it to be pixel perfect. Like the Bob-Omb Battlefield one in Risio's Cartoon Mario 64.

You need to preserve proportions; usually you can do this by holding Shift while you resize, or you can just calculate the size yourself. Probably the easiest way is to use MSPaint's Stretch function and enter the same number for Horizontal and Vertical. Once you get it to a small enough size, then fill in the gap with whatever junk.

BTW, awesome scorebar.
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6304 days
Last view: 6304 days
Posted on 07-15-06 04:55 AM, in So, how many Cokes/Pepsis/ETC. do you drink a day? Link
I have a 710ML bottle of Pepsi maybe once every 3 days. I used to drink 2 a day but that just totally screwed up my sleep pattern, digestive system, memory etc... excessive caffiene is a very bad thing.
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6304 days
Last view: 6304 days
Posted on 07-15-06 04:58 AM, in SSOR95 Link
SMW hacking? Maybe ROM Hacking, since he didn't specify a game. But given the incredibly vague nature of his post, I think I know an even better place.

Next time, try being a bit more specific. Help with what? What the hell are you talking about? Etc.
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6304 days
Last view: 6304 days
Posted on 07-15-06 05:02 AM, in Hack Ideas (Got an Idea? Post it here!) Link
No, I mean like draw the character at an angle... bah, I'll just show you what I mean.

Attachments

(restricted)
(restricted)
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6304 days
Last view: 6304 days
Posted on 07-15-06 04:07 PM, in Happy Birthday, Smallhacker! Link
Happy birthday. Now make an SMW hacking program to celebrate.
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6304 days
Last view: 6304 days
Posted on 07-15-06 04:09 PM, in So, how bad are you at window management Link
That's probably the biggest reason I hate that grouping function - you get several AIM windows grouped and the button is just blinking nonstop. What rocks is using Gaim's tabbed windows, putting them on the other monitor, and disabling the flashing altogether.

Also, it's pi time in that shot.
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6304 days
Last view: 6304 days
Posted on 07-15-06 04:14 PM, in Hack Ideas (Got an Idea? Post it here!) Link
Oh I'm quite aware it's a stupid idea.
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6304 days
Last view: 6304 days
Posted on 07-15-06 04:21 PM, in I made some sprites... Link
At drawing Mario, yes. But I don't see any ? blocks.
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6304 days
Last view: 6304 days
Posted on 07-15-06 04:25 PM, in Mario's Lost World, first screens Link
The new, non-grainy overworld is good; it looks like you're seeing it from far up in the air, like in Chrono Trigger. Though that makes Mario look huge.
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6304 days
Last view: 6304 days
Posted on 07-15-06 05:05 PM, in LASTRESULT Overflow :\ Link
Why does 0x00002 go to 0x00003 which just goes back to 0x00002?
(restricted)
(restricted)
(restricted)
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6304 days
Last view: 6304 days
Posted on 07-15-06 08:20 PM, in calloc() returns already-allocated pointer Link
For some reason, after creating a few instances of a class (which calls calloc() in its creation), a couple malloc()s, and lots and lots of realloc()s, calloc() starts returning pointers to already-allocated memory. To be specific:

Start with a struct SHAPE3D, which among other things points to an array of structs POINT3D:
typedef struct {
Vector Position;
COLOUR Colour;
GLfloat TX, TY; //Texture coords
bool Highlighted;
unsigned char Check[16]; //DEBUG
} POINT3D;


typedef struct {
unsigned int NumPoints;
POINT3D* Point;
GLfloat NormX, NormY, NormZ; //'Normal' coords (points outward from the face)
} SHAPE3D;


1) malloc a buffer about 100KB, read some data into it.
2) realloc two buffers: Shape (array of SHAPE3D) and Point (array of POINT3D).
4) For each new element in Shape, set Shape[x].Point to various elements of Point.
5) create an instance of the class, pass it Shape and the number of elements in Shape.
6) the class's constructor callocs an array of SHAPE3D and POINT3D, and copies the data from Shape and the POINT3D structs pointed to within.
7) Repeat steps 2 through 6 about 30 times.

What happens is after creating 7 of these class instances, on the 8th attempt, when it tries to calloc() an array of SHAPE3D, the pointer it gets back doesn't point to free memory! It points to Shape[0].Point instead. Making Point a large static/malloc()ed array and never realloc()ing it prevents this problem, but the size of the array needed varies, so this solution is no good (and seems to be more of a band-aid fix than anything).

The one odd thing I notice about the problematic realloc() call is that sometimes it returns addresses around 0x11000000-0x12FFFFFF, and other times they're around 0x00030000-0x0003FFFF. This happens every time when creating the 8th class instance, which is when things go wrong, but it also happens when creating the first which works fine. I even tried doing a manual realloc() - malloc() a new buffer, copy the old one into it, and free the old one - it still returns these ranges, and although calloc() doesn't return that one specific pointer anymore, something still gets messed up and the program crashes trying to read Shape[0].Point.

It seems like some memory corruption is screwing up the realloc()/calloc() calls, but there's no allocation functions being used before this, nor even anything being written to an array. The only thing I can see that could cause a problem is reading data from a file in step 1, but disabling that doesn't fix it.

[edit] I tried not creating any instances of the class at all, and just doing the same calloc() that the class constructor would do. It didn't change anything.

[reedit] Using malloc() or realloc() in place of calloc() doesn't help, and also, I wrote a quick function to test allocation:
void AllocTest(int n)
{
void* P[16];
void* A;

int i, j, k;
for(i=0; i<16; i++)
{
A = calloc(sizeof(SHAPE3D), 120);
if(!A)
{
DebugOut(DO_MAJOR | DO_NO_ERROR | DO_NO_MSGBOX, "Alloc %d failed on check %d\n", i, n);
for(k=0; k MK64UnloadLevel();
free(LevelObject);
exit(1);
}

for(j=0; j {
if(A == P[j])
{
DebugOut(DO_MAJOR | DO_NO_ERROR | DO_NO_MSGBOX, "Alloc %d error on check %d\n", i, n);
for(k=0; k MK64UnloadLevel();
free(LevelObject);
exit(1);
}
}
P[i] = A;
}

for(k=0; k<16; k++) free(P[k]);
}

I call this in 8 different places before doing the stuff I described above. It doesn't fail, and there's almost no memory corruption - calloc() returns a valid pointer, and the program runs, but there's still a few things corrupted. Again, using malloc() instead in this function doesn't change anything.

And damn that [i] tag.


(edited by HyperMackerel on 07-15-06 08:58 PM)
(edited by HyperMackerel on 07-15-06 09:29 PM)
(edited by HyperMackerel on 07-15-06 09:30 PM)
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6304 days
Last view: 6304 days
Posted on 07-15-06 08:28 PM, in So NOW what do you with your PSP? Link
Originally posted by Ogre
My DS has just about every SNES RPG and a large wad of my puzzle games on it. (Yay for 4GB SD cards)

What emulator do you use? I know of two, one that barely does anything and one that only supports flash carts.
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6304 days
Last view: 6304 days
Posted on 07-15-06 08:31 PM, in Mario's Lost World, first screens Link
Having custom blocks in the area doesn't cause slowdown, just having them installed does. The custom block code used by Blocktool isn't that good, nor is SMW's sprite handler, so both running at the same time multiple times can slow the game down.
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6304 days
Last view: 6304 days
Posted on 07-15-06 08:41 PM, in Sprite Tool, public test release Link
Did you try ".\Super Mario World.smc" and ".\sprites.txt"?
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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253
Acmlm's Board - I3 Archive - - Posts by HyperHacker


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.030 seconds; used 444.20 kB (max 578.31 kB)