Dee-Nee Forums

General => RBI Baseball => Topic started by: nightwulf on 05/24/04, 02:23:36 PM

Title: RBI-editor version 2
Post by: nightwulf on 05/24/04, 02:23:36 PM
I think I've reached the "good enough" point of rbi-editor version 2. The new editor can be found at the same URL (http://nightwulf.rbicentral.com/rbi-editor) as the old.

Changes:There's still a few minor changes I need to finish, but functionally I believe the editor is complete. Please feel free to let me know of any errors you find, or any questions / comments / complaints in general.

Nightwulf
Title: Re:RBI-editor version 2
Post by: TβG on 05/24/04, 02:56:58 PM
Bless you
Title: Re:RBI-editor version 2
Post by: Gantry on 05/24/04, 07:39:18 PM
The five minute test with crappy recommendations:

1)  Put a link near the right-side login page to load a ROM, skipping registration.  Or some text saying a much, I'm going to guess that a fair % of people won't want to login and it isn't apparent at first that they can skip the login and registration...

2)  A button to revert the team colors to their original state would be nice, especially if the change is instant and you can't verify the colors you just put in...
Title: Re:RBI-editor version 2
Post by: Lips on 05/24/04, 11:07:17 PM
nightwulf, great shit!!!!  The features that you have included are cool.  I can't wait to play a game on a ROM built from this editor.  I'll have to wait until tomorrow, though.  Anyways...I went through the editor, and here are a few of my suggestions/fix requests.  Let me know what you think.

1. When initially going to the "Teams" page, even though Uniforms is selected...I cannot change the color.  I shouldn't have to re-select Uniforms.

2. To use any ERA, click "Hacks" in the menu and enable "Long batting averages." Note that this has no effect on gameplay.
-- The bolded text should be corrected to "Long ERAs".

3. In the Strings section on the "Colors / Text" page, you might want to show the previewed text (just like you did for the team icon/2 letters).  I think that would be nice to see.

4. Just like in #3, possibly showing all 10 team icons consecutively (like how they would show up on the game's team-selection menu) would probably be nice, to see if all the lettering is lined up nicely.

5. Continuing the theme...instead of having a rectangle for the grass and dirt colors, maybe show it a little bit differently.  Present a part of the game which shows off both colors.  Maybe show the pitcher mound (when in fielding mode).  Basically, present the field colors just like how you present the team colors, in the end state.

6. If you click the "Batters" link twice consecutively...the first batter, the first sub, and the first pitcher names' textbox will all get background-colored with a yellowish color.

7. After attempting to enable long ERAs, I goto a Pitchers page and change an ERA value to something like "8.79".  I still get the warning.  So when I go back to the Hacks page, I see that long batting averages are enabled...not ERAs.

8. On the same theme of #3,4,5...maybe show the preview of the both the team names (Attract mode team name and End-of-game newspaper team name).
Title: Re:RBI-editor version 2
Post by: Lips on 05/24/04, 11:10:15 PM
Yeah, I know...  My issues are a bit heavy on the UI.  Sorry about that.
Title: Re:RBI-editor version 2
Post by: nightwulf on 05/24/04, 11:47:23 PM
Quote from: Lips on 05/24/04, 11:07:17 PM
1. When initially going to the "Teams" page, even though Uniforms is selected...I cannot change the color.  I shouldn't have to re-select Uniforms.

2. To use any ERA, click "Hacks" in the menu and enable "Long batting averages." Note that this has no effect on gameplay.
-- The bolded text should be corrected to "Long ERAs".

7. After attempting to enable long ERAs, I goto a Pitchers page and change an ERA value to something like "8.79".  I still get the warning.  So when I go back to the Hacks page, I see that long batting averages are enabled...not ERAs.

The above are fixed.

Quote from: Lips on 05/24/04, 11:07:17 PM
6. If you click the "Batters" link twice consecutively...the first batter, the first sub, and the first pitcher names' textbox will all get background-colored with a yellowish color.

I was unable to reproduce this error. Can you provide more detailed steps to cause the error to occur?

Everything else I'll look at tomorrow ...

Nightwulf
Title: Re:RBI-editor version 2
Post by: Gantry on 05/25/04, 12:34:22 AM
Two letters for you....   IE

Happened to me on the first try... IE6 on windows 2000, nothing on firefox.  Only had to click once...
Title: Re:RBI-editor version 2
Post by: nightwulf on 05/25/04, 04:04:56 AM
Bizarre. Doesn't occur in Mozilla, and making things even more interesting, it doesn't occur in IE on my machine (Windows 98se, IE 6.0.2800.1106). I'll have to try and find a way to reproduce the error ...

Nightwulf
Title: Re:RBI-editor version 2
Post by: fryak on 05/26/04, 12:24:38 AM

I'm trying to import a tab-delemited file and into RBI-editor and am not having any success.  None of the stats are being uploaded.  I'm sure it's something I'm doing wrong.  Has any one else tried this feature?  Thanks!

Title: Re:RBI-editor version 2
Post by: nightwulf on 05/26/04, 12:35:57 AM
Quote from: fryak on 05/26/04, 12:24:38 AM
I'm trying to import a tab-delemited file and into RBI-editor and am not having any success.  None of the stats are being uploaded.  I'm sure it's something I'm doing wrong.  Has any one else tried this feature?  Thanks!

Try loading any existing ROM into the editor (default NES, etc.) and export it. Make sure the file you're trying to upload matches the format of the file exported.

Nightwulf
Title: Re:RBI-editor version 2
Post by: fryak on 05/26/04, 04:25:58 AM
I got it working.

There several things to watch for when importing CVS format:
1) Make sure all the player names are exactly 6 characters
2) The BA field is actually BA*1000
3) Make sure you have 2 unknown batter columns U1 and U2.
4) Use names like team 1, 2, etc. rather than your own names.
5) Make sure pitchers have T = RO, LO, RS, or LS rather than just left or right.
Title: Re:RBI-editor version 2
Post by: nightwulf on 05/26/04, 10:39:23 AM
Quote from: fryak on 05/26/04, 04:25:58 AM
1) Make sure all the player names are exactly 6 characters
2) The BA field is actually BA*1000
3) Make sure you have 2 unknown batter columns U1 and U2.
4) Use names like team 1, 2, etc. rather than your own names.
5) Make sure pitchers have T = RO, LO, RS, or LS rather than just left or right.

I can change the parser to allow names of <6 characters, and to detect whether the batting average given is actually "BA*1000" or not. The 2 unknown batter columns can be killed too. The "RO, LO, RS, LS" is required unless someone comes up with a better suggestion to differentiate between overhand and sidearm pitchers.

The team names (TEAM1, TEAM2, etc.) are a little more complicated. Rather than "counting" lines to determine which player is which, the parser uses the "TEAMn" and player number on any given line to determine which player you're talking about. The main reasoning behind this is so that per-pitcher batting data can be included or left out. (Actually, looking at the export format, it appears that PPB is never included. Will fix shortly.) This also means that lines can be entered in any order, and files don't need to list every player in the game (if you're only working on pitchers or batters, for example).

In all due respect, please remember that personally I have no use for this tab-delimited format; it was included at the community's request per MarquisEXB's specifications. This means those who do use this feature need to let me know what works and what doesn't. :) If requiring "TEAMn" is a problem, I can go to counting lines. In this case, if anyone's using PPB, I'll need to come up with a way to signal the end of the batters (look for a line beginning with "PIT<TAB>" perhaps?).

Happy to make the format work for those who'll use it, just let me know.

Update: PPB data is now included in export. Batting averages should now work whether they're the actual BA or "BA*1000". The two unknown columns (in batters) are not required to be present. I'm a bit confused on the six-character names though. The parser looks for "one or more" of all of the characters used in player names, so names <6 characters should work. If you're familiar with regular expressions, "([A-Za-z\ \.]+)" is used to match the name.

Nightwulf
Title: Re:RBI-editor version 2
Post by: fryak on 05/26/04, 09:22:15 PM
I think the import feature is GREAT  :)   It allows you to create your game in excel (or the eq.) which makes it easy to do calculations, sort, etc.  Here's my thoughts on each item:

1) pad names with spaces if < 6 characters
2) the BA thing
3) add the batter U1 and U2 fields if the user didn't include them
4) None of these are too big of deal so I wouldn't even worry about this if it's too much trouble.  I misunderstood the meanning of the field.  I had names like At, Bo, Ch, etc.  I thought you were using the names like keys to a data structure so if a line had a like key it would be added to the structure.  Like I said, I wouldn't sweat it.
5) This wasn't a big deal for me, but I didn't know about it.  I would include a note for it on your website.

Thanks again!  Awesome editor!
Title: Re:RBI-editor version 2
Post by: Dryden on 05/28/04, 04:16:05 PM
Night-

I can't seem to get the slaughter hack to work at all, either in FCEU or Nesem...  it seems to not work with either the 96 or 256k ROMs.  I'm not sure if the other hacks are interfering with it or not, but if I try setting it to 0 or to 200, it still gets called after 10 runs...

Any thoughts?
Title: Re:RBI-editor version 2
Post by: nightwulf on 05/28/04, 11:21:57 PM
Quote from: Dryden on 05/28/04, 04:16:05 PM
Night-

I can't seem to get the slaughter hack to work at all, either in FCEU or Nesem...  it seems to not work with either the 96 or 256k ROMs.  I'm not sure if the other hacks are interfering with it or not, but if I try setting it to 0 or to 200, it still gets called after 10 runs...

Any thoughts?

None of the other hacks overwrite the "slaughter hack"; this hack overwrites existing ROM code and doesn't add anything else like the others do. I tried this both in Nester and Fceud, in 96k and 256k flavors, with and without other hacks enabled, in 2p and "watch" modes, and it worked in all cases.

Can you provide further information? Specifically, which hacks are enabled, what is the number of runs for a called game set to, and which game mode (1p, 2p, watch) did the hack not work in? If you can get me a copy of the errant ROM as well, that'd be great.

Nightwulf
Title: Re:RBI-editor version 2
Post by: Dryden on 05/29/04, 08:13:51 PM
Here it is, dawg.

Got long ERAs, long BAs, and no pinch-hitter bonus going on.  It didn't work in 1P mode - that's the only mode I've tested in.

Runs in this ROM is set to 200, but also appears not to work with 0, either (again, in 1 player mode).
Title: Re:RBI-editor version 2
Post by: Not Gantry on 05/31/04, 07:25:52 AM
Great Editor Nightwulf!

One problem I have run into is sometimes, not all the time which makes it weird, but sometimes when you put in a number for a team name in the attract name and the newspaper name, like 84 tigers,  it causes the rom to be unable to save.

I use mozilla.
Title: Re:RBI-editor version 2
Post by: nightwulf on 06/01/04, 12:49:19 AM
Quote from: Dryden on 05/29/04, 08:13:51 PM
Here it is, dawg.

Got long ERAs, long BAs, and no pinch-hitter bonus going on.  It didn't work in 1P mode - that's the only mode I've tested in.

Runs in this ROM is set to 200, but also appears not to work with 0, either (again, in 1 player mode).

I'm puzzled on this one. Browsing through the attached ROM I did find the number of runs changed to 200, and it played correctly in Fceud and Nester. I set a breakpoint in the debugger just before the "slaughter hack" to make sure it was executing correctly, and it did.

The number of runs can be found at offset B561 (1B561 in 256k ROMs). It should be whatever you've set this number as in the editor, or 234 if you set this number to zero. I have absolutely no idea why it's not working for you, and I'm open to suggestions ...

Nightwulf
Title: Re:RBI-editor version 2
Post by: Dryden on 06/01/04, 01:39:15 AM
Just played it in Nester (nester public beta 4, from nester.dranalli.com) in single player mode, still stopped at 10 run slaughter...

Is there some game genie setting or something you're turning on?  Or does it just not work in single player mode (vs. computer)?

Have you gotten it to work in 1 player mode at all?
Title: Re:RBI-editor version 2
Post by: Gantry on 06/01/04, 10:12:16 AM
Some brainstorms without thinking:

There is more than one place to set the slaughter, perhaps as a combo of two fields?

The entire byte of this address isn't used for the slaughter?

Slaughter for 1P, 2P and/or CPU are in different places?

There is a bounds check on the slaughter, causing it to ignore a number that is too large?
Title: Re:RBI-editor version 2
Post by: nightwulf on 06/01/04, 12:18:08 PM
Quote from: Dryden on 06/01/04, 01:39:15 AM
Just played it in Nester (nester public beta 4, from nester.dranalli.com) in single player mode, still stopped at 10 run slaughter...

Have you gotten it to work in 1 player mode at all?

See the attached picture. Using Nester public beta 4, in 1-player mode. I playing as St. Louis, pitching down the middle to San Francisco, and letting them run the bases. While there's no means in this emulator for me to easily confirm that 200 is actually the number the game will be called at, it's definitely not stopping at 10.

Quote from: Dryden on 06/01/04, 01:39:15 AM
Is there some game genie setting or something you're turning on?  Or does it just not work in single player mode (vs. computer)?
Quote from: Gantry on 06/01/04, 10:12:16 AM
Some brainstorms without thinking:

There is more than one place to set the slaughter, perhaps as a combo of two fields?

The entire byte of this address isn't used for the slaughter?

Slaughter for 1P, 2P and/or CPU are in different places?

There is a bounds check on the slaughter, causing it to ignore a number that is too large?

This has nothing to do with Game Genie whatsoever ...

The relevant statements are located in RAM at B550 (B560 in ROM, or 1B560 in 256k ROM). The same block of code is used regardless of game type (1p/2p/watch), as shown by setting breakpoints and watching execution in all three modes. The check is a simple CMP (compare with accumulator) operation; it's not a matter of not using the whole byte or a bounds check or anything else. For the benefit of Gantry or anyone else unfortunate enough to be familiar with assembler ...

$B550:C9 0A     CMP #$0A
$B552:B0 01     BCS $B555
$B554:60        RTS

When this code is executed, the accumulator currently holds the number of away team runs subtracted from the number of home team runs (see B53C-B542). That number is compared with 0A (10 decimal), and the subroutine is exited if the difference is not greater than or equal to 0A. The editor changes the value at B551 to whatever number is specified by the user, or changes B550/B551 to CLC/NOP if the user enters zero.

Nightwulf
Title: Re:RBI-editor version 2
Post by: Gantry on 06/01/04, 12:51:56 PM
Quote

$B550:C9 0A    CMP #$0A
$B552:B0 01    BCS $B555
$B554:60        RTS

When this code is executed, the accumulator currently holds the number of away team runs subtracted from the number of home team runs (see B53C-B542). That number is compared with 0A (10 decimal), and the subroutine is exited if the difference is not greater than or equal to 0A. The editor changes the value at B551 to whatever number is specified by the user, or changes B550/B551 to CLC/NOP if the user enters zero.

Confirmed the game does end after 10 runs for me as well...

I did the opposite as you, and this is likely where the issue lies.  I had the away team (batting first) take a 10 run lead and struck out the home team.  The check for the slaughter should take place here at the end of the bottom of the inning.  

Is there where this code snippet takes place or is this part checked after every AB in the bottom of the inning?  

If you still can't reproduce this error, I'll play with the RAM, but I haven't touched any code in awhile and you can likely find the issue before I figure out how to watch RAM again...

Again (in case I didn't make sense), take a 10 run lead with the top of the inning and see what happens.  The game should go to the 2nd inning, but it ended for me...
Title: Re:RBI-editor version 2
Post by: Gantry on 06/01/04, 01:46:01 PM
Now I'm confused...  I just opened the attached file of Dryden's on this forum post and I see 0A for B561h - nightwulf are you checking his emailed file on the one on the forum?
Title: Re:RBI-editor version 2
Post by: nightwulf on 06/01/04, 02:17:47 PM
Quote from: Gantry on 06/01/04, 01:46:01 PM
Now I'm confused...  I just opened the attached file of Dryden's on this forum post and I see 0A for B561h - nightwulf are you checking his emailed file on the one on the forum?

The relevant statements are located in RAM at B550 (B560 in ROM, or 1B560 in 256k ROM).

Nightwulf
Title: Re:RBI-editor version 2
Post by: Gantry on 06/01/04, 02:19:17 PM
Whoops, didn't look at the ROM size.  Were you able to reproduce the error when the away team has the lead?  

And what emu do you use to dump/watch ram again?
Title: Re:RBI-editor version 2
Post by: Gantry on 06/01/04, 02:21:19 PM
PS - 0B5A0 (1b5A0 in 256k) has the same instruction "C9 0A"

I'll test it out...
Title: Re:RBI-editor version 2
Post by: Gantry on 06/01/04, 02:32:45 PM

In Dryden's ROM, changing the value at 1B5A1 fixed the issue.  So B561 must be the slaughter limit for the home team and B5A1 is for the away team...
Title: Re:RBI-editor version 2
Post by: Dryden on 06/01/04, 02:49:36 PM
Thanks, guys, for the help with this - 'tis much appreciated.

Night- any plans to update the editor to cover both cases?
Title: Re:RBI-editor version 2
Post by: nightwulf on 06/01/04, 03:04:52 PM
Bah, was playing a game in fceud watching for something to read the number of runs once the away team was ahead by more than 10. Yeah, the block of code immediately following the one modified is almost identical. The first block runs any time a run is scored, so maybe the second runs between innings (to catch the away team being ahead)? I dunno, not worried about figuring it out atm.

New version of the build routine is up, and addresses this issue. Thanks for  bringing it to my attention.

Nightwulf
Title: Re:RBI-editor version 2
Post by: Gantry on 06/01/04, 03:53:37 PM
QuoteThe first block runs any time a run is scored, so maybe the second runs between innings (to catch the away team being ahead)?

That's gotta be it, since the away team has to let the home team play a full inning for "last wraps"  

Or is it last raps?
Title: Re:RBI-editor version 2
Post by: nightwulf on 06/01/04, 05:25:25 PM
Quote from: Not Gantry on 05/31/04, 07:25:52 AM
One problem I have run into is sometimes, not all the time which makes it weird, but sometimes when you put in a number for a team name in the attract name and the newspaper name, like 84 tigers,  it causes the rom to be unable to save.

I was also unable to reproduce this error. By "unable to save," are you referring to saving the ROM on the server, or downloading it? Can you give specific examples ("84 tigers" saved fine for me) which produce the error you describe?

Thanks in advance.

Nightwulf
Title: Re:RBI-editor version 2
Post by: Felonious Gunk on 06/12/04, 12:24:30 AM
I'm having minor problems trying to get the confuddled thing to work.  I saved my edits, but I can't reload them.  Proably my screwy computer being dickish about scripts (Win 98/IE6[Problem #1], before you ask)
Title: Re:RBI-editor version 2
Post by: nightwulf on 06/12/04, 05:05:35 AM
Quote from: G-Funk on 06/12/04, 12:24:30 AM
I'm having minor problems trying to get the confuddled thing to work.  I saved my edits, but I can't reload them.  Proably my screwy computer being dickish about scripts (Win 98/IE6[Problem #1], before you ask)

Sorry, I ran into a bunch of problems with file access permissions. I thought I had all the usernames corrected, but apparently I missed yours.

The problem should be fixed now, but if it's not, send me a private message with your username and I'll make sure I see to it.

Nightwulf
Title: Re:RBI-editor version 2
Post by: Felonious Gunk on 06/12/04, 11:31:43 PM
I will, but I still think it's mostly my piece of shit computer.  I'd know for a fact it was if I tried to load and got a random crash or BSOD.  Time for new memory, or a new computer...   :'(
Title: Re:RBI-editor version 2
Post by: ultimate7 on 12/22/04, 01:09:15 PM
Quote from: nightwulf on 05/26/04, 12:35:57 AM
Quote from: fryak on 05/26/04, 12:24:38 AM
I'm trying to import a tab-delemited file and into RBI-editor and am not having any success.  None of the stats are being uploaded.  I'm sure it's something I'm doing wrong.  Has any one else tried this feature?  Thanks!

Try loading any existing ROM into the editor (default NES, etc.) and export it. Make sure the file you're trying to upload matches the format of the file exported.

Nightwulf

Bump for me, I'm trying to figure out the layout and don't want to have to keep searching for this thread if I need it.