Home | Webstore
Latest News: OOTP 27 Preorder - FHM 12 Available - OOTP Go! Available

Out of the Park Baseball 27 Pre Order Now!

  

Go Back   OOTP Developments Forums > Out of the Park Baseball 26 > OOTP Mods > OOTP Mods - Logos, Graphics, and HTML

Reply
 
Thread Tools
Old 10-08-2022, 02:45 PM   #1
HRBaker
Hall Of Famer
 
HRBaker's Avatar
 
Join Date: Apr 2010
Posts: 2,369
Trying to modify a bb_card XML file...

I've included two images; one of the card as it stands, and a second of the code I'm having trouble with. What I'm trying to do is add a team logo to the card in the HTML, but I think I'm lost as to how to do it. I don't get any error messages with the current code, but the logo doesn't show up either.


Can any of you HTML gurus lead me in the right direction? Ideally, I'd like the logo to appear in the upper left corner of the card.


HRB
Attached Images
Image Image 

Last edited by HRBaker; 10-08-2022 at 04:21 PM.
HRBaker is offline   Reply With Quote
Old 10-09-2022, 11:20 AM   #2
zappa1
Hall Of Famer
 
zappa1's Avatar
 
Join Date: Apr 2012
Location: Pennsylvania
Posts: 2,162
I could never write my own XML file, either. Sorry I can't help you, but I know just what you mean. It's like learning another language to me. Good luck. Wish there was an easier way.
zappa1 is offline   Reply With Quote
Old 10-09-2022, 11:55 AM   #3
HRBaker
Hall Of Famer
 
HRBaker's Avatar
 
Join Date: Apr 2010
Posts: 2,369
Thanks for the comment. I think most of the old XML guys that created the baseball card formats have since left the building I'm hoping one of them will come across my post and be willing to give me some direction.
HRBaker is offline   Reply With Quote
Old 10-10-2022, 04:25 PM   #4
STLRS95
All Star Reserve
 
STLRS95's Avatar
 
Join Date: Jun 2016
Location: North Carolina
Posts: 673
I have added many logos to baseball cards, the last version was OOTP22. This looks a little different. Not sure if OOTP23 changed the baseball cards.

From first glance you don't have a width and height set for the photo. For content I always had them in the image folder and was able to do content="ROY" and it will bring in the file name ROY. I don't think you should have align ="center" as that's what the x and y is for, positioning.

Again not sure if 23 changed it and this is coming from memory. I can check on it later tonight. Should be an easy fix to figure out, I have done many logos on the front and back of existing cards.
__________________
The WIBL is coming in 2024.
STLRS95 is offline   Reply With Quote
Old 10-10-2022, 04:52 PM   #5
STLRS95
All Star Reserve
 
STLRS95's Avatar
 
Join Date: Jun 2016
Location: North Carolina
Posts: 673
Try the below line where you have the highlighted line. If it works, you can adjust the placement of the logo with the x and y coordinates and the size of course with the width and height. I took this from a fhomess xml file. I use a lot of his cards.

Hopefully this helps, let me know how it goes.

<ELEMENT type="image" x="11" y="25" zorder="5" width="35" height="35" facegen_zoom="random" content="TEAM_LOGO" />
__________________
The WIBL is coming in 2024.

Last edited by STLRS95; 10-10-2022 at 05:24 PM.
STLRS95 is offline   Reply With Quote
Old 10-10-2022, 05:53 PM   #6
HRBaker
Hall Of Famer
 
HRBaker's Avatar
 
Join Date: Apr 2010
Posts: 2,369
Quote:
Originally Posted by STLRS95 View Post
Try the below line where you have the highlighted line. If it works, you can adjust the placement of the logo with the x and y coordinates and the size of course with the width and height. I took this from a fhomess xml file. I use a lot of his cards.

Hopefully this helps, let me know how it goes.

<ELEMENT type="image" x="11" y="25" zorder="5" width="35" height="35" facegen_zoom="random" content="TEAM_LOGO" />

My hat is off to you Sir - it worked Here is a sample of the result...
Attached Images
Image 
HRBaker is offline   Reply With Quote
Old 10-10-2022, 06:11 PM   #7
Ty Cobb
Hall Of Famer
 
Ty Cobb's Avatar
 
Join Date: Mar 2013
Location: Grayling, MI
Posts: 4,610
Nice!
__________________
"You could not live with your own failure. Where did that bring you? Back to me."
Thanos
Ty Cobb is offline   Reply With Quote
Old 10-10-2022, 07:02 PM   #8
STLRS95
All Star Reserve
 
STLRS95's Avatar
 
Join Date: Jun 2016
Location: North Carolina
Posts: 673
Quote:
Originally Posted by HRBaker View Post
My hat is off to you Sir - it worked Here is a sample of the result...
Looks good. Glad I could help.
__________________
The WIBL is coming in 2024.
STLRS95 is offline   Reply With Quote
Old 10-10-2022, 08:06 PM   #9
fhomess
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 3,680
Quote:
Originally Posted by STLRS95 View Post
<ELEMENT type="image" x="11" y="25" zorder="5" width="35" height="35" facegen_zoom="random" content="TEAM_LOGO" />
You don't need the facegen_zoom tag. That's just for the player pics.
__________________
StatsLab- PHP/MySQL based utilities for Online Leagues
Baseball Cards - Full list of known templates and documentation on card development.
fhomess is offline   Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:46 PM.

 

Major League and Minor League Baseball trademarks and copyrights are used with permission of Major League Baseball. Visit MLB.com and MiLB.com.

Officially Licensed Product – MLB Players, Inc.

Out of the Park Baseball is a registered trademark of Out of the Park Developments GmbH & Co. KG

Google Play is a trademark of Google Inc.

Apple, iPhone, iPod touch and iPad are trademarks of Apple Inc., registered in the U.S. and other countries.

COPYRIGHT © 2023 OUT OF THE PARK DEVELOPMENTS. ALL RIGHTS RESERVED.

 

Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Copyright © 2024 Out of the Park Developments