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 | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
beneficii

Lakitu
Level: 36

Posts: 153/567
EXP: 299656
For next: 8454

Since: 06-27-04
From: Cordova, TN, USA

Since last post: 14 hours
Last activity: 6 hours
Posted on 06-20-05 08:28 PM Link | Quote
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.


(edited by beneficii on 06-20-05 11:31 AM)
(edited by beneficii on 06-20-05 11:32 AM)
(edited by beneficii on 06-20-05 11:34 AM)
(edited by beneficii on 06-20-05 11:39 AM)
(edited by beneficii on 06-20-05 11:39 AM)
(edited by beneficii on 06-20-05 11:40 AM)
(edited by BMF54123 on 06-21-05 01:17 AM)
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 5124/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 06-20-05 10:38 PM Link | Quote
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.
MathOnNapkins

Math n' Hacks
Level: 67

Posts: 2008/2189
EXP: 2495887
For next: 96985

Since: 03-18-04
From: Base Tourian

Since last post: 1 hour
Last activity: 32 min.
Posted on 06-20-05 10:53 PM Link | Quote
I'm just messing with you guys.

Read the thread HH.

and this as a code snippet is hilarious:

#include

#define IDI_ICON 0x1000
blackhole89

LOLSEALS
Moderator of ROM hacking
EmuNET IRC network admin
Head GM of TwilightRO
Level: 47

Posts: 733/971
EXP: 739208
For next: 26995

Since: 03-15-04
From: Dresden/Germany

Since last post: 14 hours
Last activity: 12 hours
Posted on 06-21-05 12:07 AM Link | Quote
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.
BMF98567
BLACK HAS BUILT A SILLY DICE-MAZE!
GO!

Current list of BURNING FURY >8( recipients:
- Yiffy Kitten (x2)
- Xkeeper
Level: 53

Posts: 940/1261
EXP: 1094149
For next: 62970

Since: 03-15-04
From: Blobaria
Special Move: Rising Meatloaf Backhand Combo

Since last post: 21 hours
Last activity: 1 hour
Posted on 06-21-05 10:14 AM Link | Quote
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>


(edited by BMF54123 on 06-21-05 01:22 AM)
(edited by BMF54123 on 06-21-05 01:26 AM)
beneficii

Lakitu
Level: 36

Posts: 155/567
EXP: 299656
For next: 8454

Since: 06-27-04
From: Cordova, TN, USA

Since last post: 14 hours
Last activity: 6 hours
Posted on 06-21-05 10:35 AM Link | Quote
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!
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
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.042 seconds.