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

Out of the Park Baseball 27 Buy Now!

  

Go Back   OOTP Developments Forums > Out of the Park Baseball 24 > OOTP 24 - Technical Support > Bug Reports Forum

Bug Reports Forum Have a bug to report? Please post here.

Reply
 
Thread Tools
Old 11-06-2023, 12:55 PM   #1
FleetWalker
Minors (Double A)
 
Join Date: May 2002
Location: Granby, CT
Posts: 176
Specifying Region Cities in World_Default.xml

Regions can consist of nations, states, and/or cities. The world_default.xml file has examples of the first two.
Code:
<REGION_NATIONS>
 </REGION_NATION id="xxxxx"/>
</REGION_NATIONS>
<REGION_STATES>
 </REGION_STATE id="xxxx"/>
</REGION_STATES>
There isn't an example with a city, and the obvious approach:
Code:
<REGION_CITIES>
 </REGION_CITY id="xxxxx"/>
</REGION_CITIES>
doesn't appear to work.

Is there a way to add cities to regions in world-default.xml file or can it only be done within the game interface?
FleetWalker is offline   Reply With Quote
Old 11-06-2023, 10:00 PM   #2
Matt Arnold
OOTP Developer
 
Matt Arnold's Avatar
 
Join Date: Jun 2009
Location: Here and there
Posts: 16,254
REGION_CITY I think is the tag that should work. I think we ignore the group tag, and you need to make sure the syntax is correct (there's no leading slash in the inner one, so it's just <REGION_STATE id="2735" />).

As far as I know that should parse. If you have a sample XML that is failing, I would suggest to post it as there may be something else wrong.

Last edited by Matt Arnold; 11-06-2023 at 10:08 PM.
Matt Arnold is offline   Reply With Quote
Old 11-07-2023, 12:27 AM   #3
FleetWalker
Minors (Double A)
 
Join Date: May 2002
Location: Granby, CT
Posts: 176
Yeah; sorry that was a typo. I actually use Python code to generate the XML so it should be valid. My regions are loading.

I tried 4 variations:
Code:
<REGION id="6000" sort_order="5000" name="METRO AREA: New York City 1">
 <REGION_CITIES>
  <REGION_CITY id="840021134"/>
  <REGION_CITY id="840021136"/> 
  <REGION_CITY id="840021135"/>       
  <REGION_CITY id="840021133"/>
  <REGION_CITY id="840021137"/>
 </REGION_CITIES>
</REGION>
<REGION id="6001" sort_order="5000" name="METRO AREA: New York City 2">
  <REGION_CITY id="840021134"/>
  <REGION_CITY id="840021136"/> 
  <REGION_CITY id="840021135"/>       
  <REGION_CITY id="840021133"/>
  <REGION_CITY id="840021137"/>
</REGION>
<REGION id="6002" sort_order="5000" name="METRO AREA: New York City 3">
  <CITY id="840021134"/>
  <CITY id="840021136"/> 
  <CITY id="840021135"/>       
  <CITY id="840021133"/>
  <CITY id="840021137"/>
</REGION>
<REGION id="6003" sort_order="2000" name="METRO AREA: New York City 4">
 <CITIES>
  <CITY id="840021134"/>
  <CITY id="840021136"/> 
  <CITY id="840021135"/>       
  <CITY id="840021133"/>
  <CITY id="840021137"/>
 </CITIES>
</REGION>
None of the 4 worked. Those are valid city ids.
FleetWalker is offline   Reply With Quote
Old 11-07-2023, 12:58 AM   #4
Matt Arnold
OOTP Developer
 
Matt Arnold's Avatar
 
Join Date: Jun 2009
Location: Here and there
Posts: 16,254
OK, REGION_CITY should work, but right now in the parser, each region needs at least one state or nation or else it gets ignored. So if you add in an empty state, I think that should work.
Matt Arnold is offline   Reply With Quote
Old 11-07-2023, 08:07 AM   #5
FleetWalker
Minors (Double A)
 
Join Date: May 2002
Location: Granby, CT
Posts: 176
Thanks. I can confirm that works.
FleetWalker 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 12:51 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