Jump to content
IGNORED

Thorn Emi Soccer colors


Recommended Posts

I didn't dig in far enough to find where those color values are set, but "THORN EMI VIDEO" is in there 3 times consecutively, so I set the high bits and made all three black.  Is this what you are after?

 

Soccer (1982)(Thorn Emi).xex

 

If you specifically want to CHANGE the blue/purple to some other colors, it would take a bit deeper digging...

  • Thanks 1
Link to comment
Share on other sites

I looked a bit harder, but only found 1 color and the background.  Search for:

 

a9 84 8d 17 d0 a9 09 8d 0a d0

 

The "84" is the blue text far left, the "09" is the grey background.  Where the purple's set, I didn't find it.

 

EDIT: What, specifically, are you wanting to do?  More info makes it easier to figure out what needs to be done.

Edited by glurk
  • Like 1
Link to comment
Share on other sites

Well, changing the text is easy.  To remove the "THORN EMI VIDEO" in the center, just make it all zeros.  But the colors (2 of them) are set in a DLI, and they are not all clearly set in one place.  I didn't find the purple, it's in there "somewhere" but tricky to find...  It could take some time, as there is PAL detection (for speed I think) and it could be set based on that, sigh...

Link to comment
Share on other sites

74 68 6f 72 6e 00 65 6d 69 00 76 69 64 65 6f 00 00 00 b4 a8 af b2 ae 00 a5 ad a9 00 b6 a9 a4 a5 af 00 00 00 f4 e8 ef f2 ee 00 e5 ed e9 00 f6 e9 e4 e5 ef

 

All three are CONSECUTIVE.  With different high bit settings for colors.  The middle one is the b4,a8...a5,af part of it.

Link to comment
Share on other sites

39 minutes ago, glurk said:

It's a zillion times easier if you use Omnivore.  It shows the ATASCII characters...

 

You can display ATASCII in HxD. You just need an Atari font on the system you're using. Then you select it in the "Options" dialogue.

 

  • Like 3
Link to comment
Share on other sites

Well, people can use whatever they want, but if I want to rev. engineer some Atari stuff, Omnivore disassembles 6502 and display lists, works as a hex editor, works with ATASCII, Apple fonts, etc...  It show XEX segments, CAR headers, ATR image format, etc...  It does more stuff than I even remember to use.

 

To say I recommend it highly is an understatement.  It lets me do 10 times more things in one tenth the time.  I'm not at all affiliated with the program, it's just the tool I mostly use. 

  • Like 1
Link to comment
Share on other sites

I never did find the purple in the game code, so I just patched the darn thing to set it myself.  It works.  Here's one with the middle text blanked out, and both left and right "THORN EMI VIDEO" set to green:

 

Soccer (1982)(Thorn Emi).xex

 

The location offsets to the bytes to change are - BACKGROUND:$30D0 - LEFT_TEXT:$30CB - RIGHT_TEXT:$1FF7

 

I've already pointed out the text area to change.  It would be possible to make a little "patcher" utility to change the team names and colors and patch the XEX accordingly, but I'll leave that for someone else.  I'm not a sports guy at all, never played this game...

 

EDIT: Played with it some more, just for fun.  Here's one with UNITED STATES on the left, in red, white and blue and with COLUMBIA on the right, in yellow, blue, and red: Soccer (1982)(Thorn Emi).xex

Edited by glurk
  • Like 1
Link to comment
Share on other sites

17 hours ago, glurk said:

I never did find the purple in the game code, so I just patched the darn thing to set it myself.  It works.  Here's one with the middle text blanked out, and both left and right "THORN EMI VIDEO" set to green:

 

Soccer (1982)(Thorn Emi).xex 16.02 kB · 2 downloads

 

The location offsets to the bytes to change are - BACKGROUND:$30D0 - LEFT_TEXT:$30CB - RIGHT_TEXT:$1FF7

 

I've already pointed out the text area to change.  It would be possible to make a little "patcher" utility to change the team names and colors and patch the XEX accordingly, but I'll leave that for someone else.  I'm not a sports guy at all, never played this game...

 

EDIT: Played with it some more, just for fun.  Here's one with UNITED STATES on the left, in red, white and blue and with COLUMBIA on the right, in yellow, blue, and red: Soccer (1982)(Thorn Emi).xex

Your multicolor version is very nice!

 

Regarding "normal" version, I am sorry but I am not able to find BACKGROUND:$30D0 - LEFT_TEXT:$30CB - RIGHT_TEXT:$1FF7 with Omnivore.

Is it possible to change center text color too?

 

Link to comment
Share on other sites

Those aren't things to search for, they are the actual hexadecimal offsets of the bytes that need to be changed in the patched XEX version I posted.  For example, the "BACKGROUND" color byte at offset $30D0 is $09.  Change that $09 to another color value to change it.  Same for the other two.

 

Changing the black center text is trickier, as it will change EVERY black in the whole game, unless I do another custom patched version.  Which I "can" do, if you want to tell me how you'd like it to be.  But I figured you'd want to do your own mods (?)...

 

EDIT: Let's just go back to the original XEX you posted in the first post.  Search for A9 44 (it's only in there once) and that's the PURPLE $44.   Search for A9 84 8D and that's the BLUE $84.   I know where the black is set, but you don't want to change that one, as it will affect every black in the whole game.

Edited by glurk
  • Like 1
Link to comment
Share on other sites

I just want to add - please don't take it as an insult - I usually assume that I'm talking to a knowledgeable programmer.  Which isn't always the case.  It's hard to know over the internet what someone else's experience level is.  I've been doing this silly game-hacking stuff for like 40 years, so maybe I don't explain things well enough...

 

Just trying to be helpful.  I figure "teach a man to fish" is better than just giving him a fish, LOL.  But my teaching skills may be lacking.

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

No problems, I am an humble Basic programmer (see signature) but I've no experience with hex editors.

 

I knew how to change left text, I didn't find center and right text because I didn't use Omnivore, hex editors don't show ATASCII and I didn't think about graphics 1 peculiar functioning.

BTW, I used that mode in my latest game, Vic Zombies ah ah.

 

I know how to search and replace a value but I wasn't able to find exactly $30D0, $30CB, $1FF7 locations with Omnivore. It seems easy but yesterday I must have missed something obvious.

Tonight I will search the values you mentioned above and then check the locations.

 

Unfortunately it's not possible to change pitch's part color, even with DLI. It would have been nice to change shirts colors...

I didn't think "black" banner register is used with the pitch too.

I will write the center text with the other two colors then.

 

And yes, I prefer that someone teaches me, I am grateful for you help!

Link to comment
Share on other sites

Yeah, programmers of original games don't necessarily make their stuff "hacker-friendly."  They have the source code, of course , and we don't.  So it requires reverse-engineering to go in and find stuff in the binary.

 

And if that middle black text color is set, it's used for all the blacks below on the main game screen as well.  So it would change the little player men, and the ball, and every other black.  Changing the left and right text colors is about all one can do.

 

The multicolor one I did (just as a fun experiment) required re-writing (adding to) the DLI interrupt for that text line, and would need to be different for every team colors.  I just picked USA and Columbia because they both have nice Tri-Color flags.  It was just a test hack.  I could potentially re-write the DLI in order to allow changing the middle black, but I didn't want to get into a major thing...

 

The numbers I gave were the HEX OFFSETS into the file.  Like, $0000 is the offset to the first byte, $0400 is the 1024th byte, etc.  The actual locations. 

 

Hope this all helps.

 

  • Thanks 1
Link to comment
Share on other sites

On 10/12/2021 at 3:45 PM, glurk said:

It's a zillion times easier if you use Omnivore.  It shows the ATASCII characters, and disassembles the 6502 code, and can show PM graphics, and whole heck of a lot more.

 

https://playermissile.com/omnivore/

I tried to install omnivore but I gave up....  I will start another topic showing the problems I had (in Win10)

Link to comment
Share on other sites

Yes, I should have mentioned that.  Omnivore-1.0rc4-win.exe linked above is the one I use as well.  It still is not "perfect" as that you may possibly run into a small bug or weirdness here or there, but I don't think there are going to be any further versions.  Who knows?

 

That said, once you get accustomed to it and get a workflow going, it's really quite reliable and useful!!

 

 

Link to comment
Share on other sites

Okay, thanks I tried pip to install it.. But anyway.... Another option to tweak programs is the debugger of Altirra... For example, setting a breakpoint for a change in any of the color registers and then see what is going on when that happens. You can then identify in the xex the same section of the program and modify accordingly. 

Edited by manterola
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...