Dee-Nee Forums

General => RBI Baseball => Topic started by: nightwulf on 07/11/05, 03:16:49 AM

Title: Family Stadium '90 editor
Post by: nightwulf on 07/11/05, 03:16:49 AM
"I'm running on no sleep .. NO SLEEP!"

So people have been asking for an editor for jggames' translated version of Family Stadium '90 (discussed in this thread (http://forums.dee-nee.com/index.php?topic=5495.0)). Making something as comprehensive as the RBI Editor for this game would take a lot more time than I have at the moment, but I've spent some time the last few days and thrown together a simple editor for the game.

Find it here: http://nightwulf.rbicentral.com/fs90-editor

The only things editable are batter data, pitcher data, and generic pitcher batting data. Other things aren't possible (yet), but this should give our fantastic ROM authors the ability to do something with this ROM. The "base" ROM used to build new ones is the same one that jggames last posted in the thread mentioned above. So, homerun distances are still displayed in meters, but pitch speeds are in mph, and all of his translated graphics and text are included.

This editor does not use the user system from RBI Editor at all, so there's no server-side saving or loading. Instead, you can download the file directly to your hard drive, and upload it for further editing later.

The "default" data used by this editor is pulled from the Japanese version. The only difference is that the players have been renamed to "Bat01" and such. This is because the Japanese character set in the original ROM has been replaced with English (ok, Roman) letters, so I can't really use the names as they were originally.

This was thrown together over the last few days at obscene hours of the night (ok, morning), so please let me know of any problems you (will) encounter. Hopefully some time in the future I can come up with something better, but I think everyone will enjoy this for now. I can't thank you all enough for the support given to me by the community recently, so here's a little "thank you."

Nightwulf
Title: Re: Family Stadium '90 editor
Post by: TecmoGuy on 07/11/05, 04:02:32 AM
Thank you God
Title: Re: Family Stadium '90 editor
Post by: TommyD (MrOJ) on 07/11/05, 09:06:14 AM
Sweet.... dream come true.
Title: Re: Family Stadium '90 editor
Post by: jggames on 07/11/05, 09:32:55 AM
Great work nightwulf. I'm glad to see the effort I/you/ and all other contibutors put in on rom have not gone to waste. Can't wait to see a 2005 rom that you can play a season on. Once again, thank you.
Title: Re: Family Stadium '90 editor
Post by: nightwulf on 07/11/05, 03:44:46 PM
Happy to help, and glad I finally had the time to throw this together. Found and corrected a couple backend errors already. Minor things that I doubt anyone noticed, but fixed anyway.

I also changed the look just a bit to match some work I've done on the next version of RBI Editor (which will probably be released in 2012). Let me know what you think. It's probably tough to tell a difference without seeing both side-to-side, but I think this looks cleaner.

Nightwulf
Title: Re: Family Stadium '90 editor
Post by: Dryden on 07/11/05, 04:14:34 PM
Nice graphic in the upper left...

One question - any possibility to change the team names?
Title: Re: Family Stadium '90 editor
Post by: nightwulf on 07/11/05, 04:29:35 PM
Heh, glad you like it. :)

Changing teams is a bigger deal here than in RBI. The main difference is that the team icons used on the select screen and various other places throughout the game show color. Without getting into the gory details of NES name tables and tile attributes, basically you'd have to select four palettes of three colors each, and choose one palette (of three colors) to use for each of the sixteen icons. That palette data, the icon "drawing," and the icon attributes (colors) are then used in a number of places throughout the ROM.

I've got some thoughts for the backend coding of that, but finding every place that data has to be used and modifying it for each particular place it's used in the ROM will be a pain. Not to mention that I haven't even begun thinking of how to design a UI to edit them.

The team names don't really mean anything, as where the name of the team was spelled out in RBI, it's represented with an icon in FS'90. I just listed the team names for the icons that jggames drew for the ROM. Editing those icons "on-the-fly" will be a bitch.

Nightwulf
Title: Re: Family Stadium '90 editor
Post by: Bonny on 07/11/05, 04:31:49 PM
Thanks Nightwulf, that kicks ass.
Title: Re: Family Stadium '90 editor
Post by: TbT on 07/11/05, 04:45:17 PM
looks like you earned your recent "paypal loot" keep with this one.......good job, dee-nee is pleased.
Title: Re: Family Stadium '90 editor
Post by: MR RBI on 07/11/05, 05:14:37 PM
Power rating for players start at 223 .This is low correct?
Title: Re: Family Stadium '90 editor
Post by: Dryden on 07/11/05, 05:18:18 PM
Play around with them, and see where you like them.  It's all relative, anyway.
Title: Re: Family Stadium '90 editor
Post by: TempoGL on 07/11/05, 05:20:40 PM
can i get one of these ROMs burned onto a cartridge by the NESreproductions guy?  if so, i might have to contribute my life savings to your paypal account
Title: Re: Family Stadium '90 editor
Post by: nightwulf on 07/11/05, 05:36:49 PM
Quote from: MR RBI on 07/11/05, 05:14:37 PM
Power rating for players start at 223 .This is low correct?

Quote from: nightwulf on 02/15/05, 05:53:50 PM
Power is very different in this game. It's a one-byte field (0-255) and there's very little difference between them. Power numbers for players in the 14 selectable teams range from 0xD9 (217) to 0xED (237).


Quote from: Strassy on 07/11/05, 05:20:40 PM
can i get one of these ROMs burned onto a cartridge by the NESreproductions guy?  if so, i might have to contribute my life savings to your paypal account

No, unless you can find a "donor cart" using Namcot (Mapper 19) hardware for memory mapping. As far as I know, it was only used in Famicom (Japanese) games, so you'd need to find an appropriate Famicom cart, and an adapter to use it in a NES. Alternatively you could try converting the game to use something more common (MMC3 would probably be the best bet) instead of the obscure hardware it's using. It's been a while since I looked it up, but I don't think the Namcot hardware had anything terribly special. I wanna say there was some extra sound hardware, but it probably wouldn't play on the NES anyway, as the Famicom had sound capabilities that the NES did not.

Nightwulf
Title: Re: Family Stadium '90 editor
Post by: TempoGL on 07/11/05, 05:39:13 PM
hmm...unfortunately i have no idea how such a conversion would be done.  thanks for the info, though.
Title: Re: Family Stadium '90 editor
Post by: nightwulf on 07/11/05, 05:57:08 PM
Heh, frankly, neither do I. I was just kinda thinking outloud. I'm fairly familiar with MMC3, since that's the mapper used by RBI, but I know pretty much nothing about all the other mappers. I'll do some research and see if anyone has the specifics on mapper 19. Even that could be a stretch, since obviously there are no companies just handing this information out, so we have to reverse-engineer everything, and that's difficult at best for obscure mappers that were never used in the US.

Then again, older emulators (like NESticle) don't support the mapper correctly, but newer onces (like FCEU) do, so apparently someone figured something out. I can't make any promises, but I'll look into it.

Nightwulf
Title: Re: Family Stadium '90 editor
Post by: Nails on 07/11/05, 06:11:01 PM
Great stuff, Nightwulf.  Thanks for the hard work.
Title: Re: Family Stadium '90 editor
Post by: nightwulf on 07/11/05, 06:31:03 PM
Whoops. The Ability and Speed columns were reversed. Fixed.

While I'm at it, even though the three "Ability" fields (sinker, curveL, curveR) are one-byte (0-255) fields in this game, a value of 0-15 is still "expected." Using extremely high values is kinda fun though, balls start wrapping around the screen ...

Nightwulf
Title: Re: Family Stadium '90 editor
Post by: JerryD on 07/11/05, 06:37:20 PM
Kick.  Ass.


























<3
Title: Re: Family Stadium '90 editor
Post by: TempoGL on 07/11/05, 07:02:00 PM
man, i just spent like 20 minutes making an all-time white sox team...and then realized that i never changed the team on the sidebar...now the white sox are the yankees!

dah-nah!
Title: Re: Family Stadium '90 editor
Post by: nightwulf on 07/11/05, 07:06:17 PM
Quote from: Strassy on 07/11/05, 07:02:00 PM
man, i just spent like 20 minutes making an all-time white sox team...and then realized that i never changed the team on the sidebar...now the white sox are the yankees!

dah-nah!

Select Yankees, click the "switch" button by one of the players, select White Sox, click the same button again. Rinse and repeat for all batters and pitchers. Not elegant, but easier than retyping it all.

Nightwulf
Title: Re: Family Stadium '90 editor
Post by: TempoGL on 07/11/05, 07:08:12 PM
you are the man.  that is all.
Title: Re: Family Stadium '90 editor
Post by: RedBarron on 07/11/05, 08:10:58 PM
damnit.

i was going to do Family Stadium '85 and when I tried to save the yankees I hit "download" and it fucked everything up.

I'm stupid.
Title: Re: Family Stadium '90 editor
Post by: hort22 on 07/11/05, 08:13:24 PM
hey what about the home run distance in feet is that something that could still be changed for this game...oh yah and team colors...other than that helluva a job...anyone wanna start working on this for a 2005 version...what kind of rosters...ie opening day this year or now with last years stats...anyone?
Title: Re: Family Stadium '90 editor
Post by: TommyD (MrOJ) on 07/11/05, 08:31:02 PM
i'd help with that..
Title: Re: Family Stadium '90 editor
Post by: TempoGL on 07/11/05, 09:50:11 PM
i personally would love to do a 2005 version, but i want to wait for this season to end.  i'm planning to work on a version similar to the arcade version, but only using players since 1980.
Title: Re: Family Stadium '90 editor
Post by: TecmoGuy on 07/12/05, 12:30:03 AM
There are the Gods of RBI. 

Nightwulf is offically one.  You could say Gantry as well. 
Title: Re: Family Stadium '90 editor
Post by: 8-Bit All-Star on 07/12/05, 02:21:29 PM
I'm probably doing something stupid here, but I can't for the life of me figure out how to save any kind of editing.  After hitting download and saving to the hard drive as a .nes file, it opens up with all names as 00000 and batting avg of .512

Any help would be greatly appreciated
Title: Re: Family Stadium '90 editor
Post by: BeefMaster on 07/12/05, 03:19:10 PM
Has anyone played with FS90 to know how much difference there is in the power ratings?  I see that 216 is the pitcher's power, but how much difference is there between 216 and 217, for example?  The difference between pitchers and the worst position player in RBI is 68 points, but there are position players with 217 power ratings in FS90.  Also, how high does power have to be to make a player like Potatoes or Dawson?

Edit: I saw nightwulf's earlier post about the ranges in the game, but I'm wondering about equivalencies - for example, if 237 (the highest value, according to nightwulf's post) is roughly 945 (that's a complete guess), where would an 800 RBI power ranking fall on the FS90 scale?

One other question - are contact values on a similar scale in FS90 (they look like it, at least at first glance)?  Obviously, the contact rating isn't subtracted from power, unless the power value used when the ball is hit is either some multiple of the player's rating, or that value added to some constant value.
Title: Re: Family Stadium '90 editor
Post by: nightwulf on 07/13/05, 12:46:59 AM
Ok, I'm officially done fucking with the pitchers page. Switching the Ability and Speed columns fixed the display, but that introduced problems in the upload script, and possibly the build script. I restored the column order to the same order that's been used in RBI Editor, and verified that all pitcher stats are now being uploaded and built correctly. If you made any ROM already, you'll need to upload it again and check that the stats are now shown correctly, because it may have been built incorrectly. It's all working now, and my apologies for the mistake.

As far as the questions about power and contact go, I'm really not sure. I've not really done any looking into the FS'90 batting engine yet, and probably won't soon, unless it looks like there's serious interest in that information. Look how long it took me to come up with an explanation for contact in RBI. ::)

Best bet at this point is just to play around with them as Dryden suggested, and see what works for you.

Nightwulf
Title: Re: Family Stadium '90 editor
Post by: nightwulf on 07/13/05, 12:50:10 AM
Quote from: 8-Bit All-Star on 07/12/05, 02:21:29 PM
I'm probably doing something stupid here, but I can't for the life of me figure out how to save any kind of editing.  After hitting download and saving to the hard drive as a .nes file, it opens up with all names as 00000 and batting avg of .512

Any help would be greatly appreciated

I really have no idea on this one. Seeing names as '00000' sounds like a plausible error, but everyone having a batting average of .512 makes absolutely no sense to me. Which browser (and version) are you using? I really only tested things on Firefox 1.0.4, but there's really no trickery or advanced coding that would cause this to break in any recent version of IE.

Has anyone else encountered this problem? Get me a copy of the ROM the editor built for you if so.

Nightwulf
Title: Re: Family Stadium '90 editor
Post by: nightwulf on 07/13/05, 12:57:13 AM
Sorry, I'm kinda working backwards here and responding to comments ...

Quote from: hort22 on 07/11/05, 08:13:24 PM
hey what about the home run distance in feet is that something that could still be changed for this game...oh yah and team colors...other than that helluva a job...anyone wanna start working on this for a 2005 version...what kind of rosters...ie opening day this year or now with last years stats...anyone?

Thanks, I'm glad to finally have it available for everyone to use. :)

Homerun distance is not something easy to change. It looked like it was on the surface, but I ran into another issue. See, in both FS'90 and RBI 3, homerun distance is converted from an internal number to a number of meters to display onscreen. The internal number for distance looks similar in both games, so I was hoping it'd be a simple matter of identifying the "conversion" routines in both games, and dropping the routine from RBI 3 into FS'90.

The new issue is that in FS'90, homerun distance is stored as a one-byte (0-255) number. This works, because no homerun will hit 255 meters. However, it's a two-byte (0-65536) number in RBI 3, because obviously a 255-foot homer wouldn't be very impressive. So, the routines were easy enough to identify, but finding somewhere else in RAM to store the second byte and modifying the routine to use it is what I got stuck on last time. I'll give it another go soon.

Team colors are not something I'm likely to do anything with anytime soon for the same reasons as I gave earlier about editing team icons. I suppose it'd be easy enough to change just the uniform colors, but I assumed jggames modifyed those to match the team icons he redrew. If they're off, let me know and I can change the "default" ROM used to build edited ROMs to show more appropriate colors.

Nightwulf
Title: Re: Family Stadium '90 editor
Post by: nightwulf on 07/13/05, 02:59:02 AM
Ok, last thing I'm doing on the FS'90 editor tonight. You can now export player stats to a text file as you can in RBI Editor. The default ROM stats are attached for your viewing pleasure ...

Nightwulf
Title: Re: Family Stadium '90 editor
Post by: Gantry on 07/13/05, 03:18:39 AM
Might have a CR/LF issue nightwulf, these stats all blend together with Windows/Notepad/Deer Park Alpha 1
Title: Re: Family Stadium '90 editor
Post by: nightwulf on 07/13/05, 04:08:33 AM
Quote from: Gantry on 07/13/05, 03:18:39 AM
Might have a CR/LF issue nightwulf, these stats all blend together with Windows/Notepad/Deer Park Alpha 1

I had no issues with CR/LF on Firefox (98se, XP, and Slack) or IE (98se and XP). I hate to say it, but it sounds like an issue with Deer Park Alpha 1.

Get me the user agent string for DPA and I can probably code a special case for it.

Edit: yeah, I'm still stumped on this one. I just went through several hundred bugs reported in Bugzilla, and I haven't found anything quite like this yet, but there's a lot of similar problems with plaintext. You're seeing this in the new window (or tab) that opens when you click the "Player stats" link?

While I'm at it, I noticed that the page takes up to a good ten seconds to load in IE. I have no idea why. I'm gonna chalk that one up to IE's shitty Javascript implementation for now.

Nightwulf
Title: Re: Family Stadium '90 editor
Post by: Gantry on 07/13/05, 04:24:49 AM
Identical issue with IE on the same machine and Firefox 1.0.4 on another PC - it's asking to use an external app to open the text file.  Using notepad or the alternate name of txtfile. 
Title: Re: Family Stadium '90 editor
Post by: Gantry on 07/13/05, 04:32:11 AM
Quote
Edit: yeah, I'm still stumped on this one. I just went through several hundred bugs reported in Bugzilla, and I haven't found anything quite like this yet, but there's a lot of similar problems with plaintext. You're seeing this in the new window (or tab) that opens when you click the "Player stats" link?

Whoops, perhaps I didn't read this well enough...   I am talking about your attached file in the previous post, nothing on the FS90 editor itself...

Also confirmed the same problem with an IE 6.0 on Windows Server 2000...

QuoteWhile I'm at it, I noticed that the page takes up to a good ten seconds to load in IE. I have no idea why. I'm gonna chalk that one up to IE's shitty Javascript implementation for now.

Make sure you test this at a later time.  I backup the site to CDR somewhere around 4am and it cripples the system.  If you tested before 3:30am then you should be clear of backup issues, but 3:30-4:30 is ass-slow backup time...
Title: Re: Family Stadium '90 editor
Post by: nightwulf on 07/13/05, 04:33:01 AM
Give it another go. I replaced newlines with hardcoded \x0D\x0A characters. I'm still puzzled as to the cause though, as I've never encountered this problem with generated text/plain content before.

Nightwulf
Title: Re: Family Stadium '90 editor
Post by: Gantry on 07/13/05, 04:35:02 AM
Same issue, am I supposed to be looking downloading the same attachment from your 2:59am post?  I don't see an edit in that post, unless you changed the file on the server itself...

Title: Re: Family Stadium '90 editor
Post by: nightwulf on 07/13/05, 04:36:30 AM
Oh, now you tell me. :) Ok, back to newlines then. I'm in linux at the moment, but opening the attached file in a hex editor does show linux newlines, which would explain why they're not displaying correctly in windows. Let me jog over to the roommate's laptop and brainstorm ...

Edit: er no, I thought you were referring to the output from the editor itself the whole time.

Nightwulf
Title: Re: Family Stadium '90 editor
Post by: Gantry on 07/13/05, 04:38:56 AM
Cool, finally on the same page at least...   Dunno if I'll still be around to test, but it sounds like you have a windows PC to hammer away on
Title: Re: Family Stadium '90 editor
Post by: nightwulf on 07/13/05, 04:53:59 AM
Ok, still no idea where that came from. That file displayed fine in my text editor (on 98se), but opening it with a text editor did show linux newlines, which would explain why you saw no linebreaks. I recreated the file using the editor, using all the browsers and operating systems listed earlier, and newline characters are properly being changed per OS. Downloading it on linux gave me bare \x0A's, and downloading on Win* gave me \x0D\x0A's as expected.

No fucking clue. It appears to be working fine now, and I was still mucking with the script when I generated that file that I attached, so maybe I fucked up newlines somewhere before finishing the script. Either way, I can't reproduce it now, and I edited the above post with a correct copy of the text file.

Let me know if anyone runs into this problem again ...

Nightwulf
Title: Re: Family Stadium '90 editor
Post by: Gantry on 07/13/05, 09:11:36 AM
Looks perfect, thanks for clearing it up!
Title: Re: Family Stadium '90 editor
Post by: TβG on 07/13/05, 10:29:02 AM
the nerdery is thick.

you guys are awesome, keep up the good work.
Title: Re: Family Stadium '90 editor
Post by: RedBarron on 07/13/05, 08:41:10 PM
can someone tell my dumbass how to save a FS90 Rom?    I'm stoked about creating a year for this game, but don't want to lose my work.
Title: Re: Family Stadium '90 editor
Post by: nightwulf on 07/13/05, 08:48:29 PM
Click "Download" and save it to your hard drive.

Nightwulf
Title: Re: Family Stadium '90 editor
Post by: RedBarron on 07/13/05, 09:12:58 PM
even i can't fuck that up
Title: Re: Family Stadium '90 editor
Post by: TommyD (MrOJ) on 07/14/05, 01:14:29 AM
Quote from: Ryno on 07/13/05, 09:12:58 PM
even i can't fuck that up

funny thing... even I can't fuck that up!  But I think I just did... idiot
Title: Re: Family Stadium '90 editor
Post by: ericdavisfan on 07/14/05, 09:56:35 AM
stunned
Title: Re: Family Stadium '90 editor
Post by: RedBarron on 07/14/05, 12:36:13 PM
Quote from: MrOrangeJuice21 on 07/14/05, 01:14:29 AM
Quote from: Ryno on 07/13/05, 09:12:58 PM
even i can't fuck that up

funny thing... even I can't fuck that up! But I think I just did... idiot


I'll say it a gain.

Go fuck yourself.
Title: Re: Family Stadium '90 editor
Post by: hort22 on 07/20/05, 04:07:37 PM
anyone make any up to date roms with this thing yet...
Title: Re: Family Stadium '90 editor
Post by: nightwulf on 07/21/05, 10:51:17 PM
I rewrote the routine that "makes" your ROM from scratch. This version now does a whole lot more in memory and almost nothing on disk. Let me know if you notice any problems. The new routine should run at about the same speed (trading initialization into memory for lots of disk access), and Gantry's hard drive might not hate me as much.

Quote from: hort22 on 07/20/05, 04:07:37 PM
anyone make any up to date roms with this thing yet...

This tool is still relatively new. I haven't seen a new ROM "published" yet, but several are playing around with it. Give people a little time.

Nightwulf
Title: Re: Family Stadium '90 editor
Post by: MR NEW YORK on 07/31/05, 07:22:09 PM
Any updates yet?
Title: Re: Family Stadium '90 editor
Post by: RedBarron on 08/17/05, 06:46:38 PM
bumpst, dawg