Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
1 user currently in Rom Hacking: hukka | 2 guests
Acmlm's Board - I2 Archive - Rom Hacking - Uba SMB3 Editor Programming Update
  
User name:
Password:
Reply:
 

UserPost
beneficii
Posts: 155/567
Thanks, BMF. I'll look at the post and see exactly what you did.

I have been making progress on my hack. I have two more classes to finish, the toolbox and the starting_table classes, before I start on the API. The code you saw in my post was part of the lock_table class, which, unlike most of the functions, was not declared in the class and written later, but out of a bit of laziness and being tired of scrolling all the way down was written within the class definition itself. The blank window and the resource.h file were (I thought obviously) jokes, just a bit of stress release from all the work I put into the project. Again, I think I may be done this week. I don't know for sure, because that depends on if other things come up this week. Anyway, back to work!
BMF98567
Posts: 940/1261
Uh, blacky...just because the board messed up his code doesn't mean the thread needed to be closed. I'm interested in his progress.

beneficii: The board interprets [i] as "italics," and browsers interpret anything between <> angle brackets as a tag (even if they're invalid). In the future, try sticking a <z> tag somewhere between them. It won't show up in any browsers that I know of, and it'll keep your code from being tag-ified.

Examples:

[i] becomes [<z>i]
<windows.h> becomes <<z>windows.h>
blackhole89
Posts: 733/971
Pointless and witnessing of absolute lack of any programming knowledge whatsoever.

Closed.

btw, your code snippet wouldn't even work. There is nothing behind that #include tag.
MathOnNapkins
Posts: 2008/2189
I'm just messing with you guys.

Read the thread HH.

and this as a code snippet is hilarious:

#include

#define IDI_ICON 0x1000
HyperLamer
Posts: 5124/8210
Well you could always just escape the < and > symbols. Also those screenshots and code snippets say absolutely nothing... A blank window and a piece of code that's in nearly every Windows program.
beneficii
Posts: 153/567
According to the thing I have 752 lines of code in my cpp file and I have 852 lines of code in my header file. I hope to get the thing done this week. Wish me luck!

BTW, here's some code from it:

#include <windows.h>

#define IDI_ICON 0x1000



And here's a picture of my main screen:



The other screen I showed you was of my concept-testing program.

I'm just messing with you guys. Here's a piece of code that updates the lock data after the user edits it. It's part of the lock_table class:

void update(LOCKDATA *lockdata) {
for(int i = 0; i < TBL_LOCK_NUM; i++) {
clearset[i] = lockdata[i].xpos >> 4;
expx[i] = ((clearset[i] | 0x0f) << 4) | ((clearset[i] | 0xf0) >> 4);
expy[i] = lockdata[i].ypos;
if(expy[i] > 0x70) expy[i] = 0x70; if(expy[i] < 0x0) expy[i] = 0x0;
clearset[i] = clearset[i] | ((0x80 >> (expy[i] >> 4)) << 8);
expy[i] = lockdata[i].ypos + 0x20;
if((lockdata[i].replacingtile==TBL_ROAD_HORZ)||(lockdata[i].replacingtile==TBL_ROAD_HORZ_2))
replacementtiles[i] = replace_lock_b;
if(lockdata[i].replacingtile==TBL_ROAD_VERT)
replacementtiles[i] = replace_lock_a;
if(lockdata[i].replacingtile==TBL_BRIDGE)
replacementtiles[i] = replace_river;
tileimitated[i] = lockdata[i].replacingtile;
todraw[i] = 0x2880 + 40 * (lockdata[i].ypos >> 4) + 2 * ((lockdata[i].xpos & 0xff) >> 4);
}}

EDIT: Dang it! I wish you guys had some sort of code tag!

EDIT #2: Fixed by BMF.
Acmlm's Board - I2 Archive - Rom Hacking - Uba SMB3 Editor Programming Update


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.003 seconds.