Home | Webstore
Latest News: FHM 5 Available - Update OOTP 19.8 is online - OOTP 19 Available! - MLB Manager 2018 Available Now

World Series Special! OOTP 19 is 75% Off Until Nov. 1!

  

Go Back   OOTP Developments Forums > Out of the Park Baseball 19 > OOTP Mods > OOTP Mods - Names and Nations

Reply
 
Thread Tools
Old 01-30-2017, 01:16 AM   #1
thorpegiovanni
All Star Reserve
 
thorpegiovanni's Avatar
 
Join Date: Jul 2016
Posts: 501
Thanks: 196
Thanked 173x in 112 posts
XML Error

I've already posted about this in other spots, but seriously, I do not understand my issue.




I continue to tweak it little by little, and a slightly different line for the error pops up every time. I'm using TextEdit to edit the XML, by the way.
thorpegiovanni is offline   Reply With Quote
Old 01-30-2017, 07:40 AM   #2
albatross11
All Star Reserve
 
Join Date: Mar 2003
Posts: 803
Thanks: 54
Thanked 126x in 103 posts
Can't see your line numbers, so can't reply to your specific problem; however, you can try a program called EditX. It may help you. There's a free version.

XML Editor
__________________
Peace,

albatross
albatross11 is offline   Reply With Quote
Old 01-30-2017, 09:50 AM   #3
thorpegiovanni
All Star Reserve
 
thorpegiovanni's Avatar
 
Join Date: Jul 2016
Posts: 501
Thanks: 196
Thanked 173x in 112 posts
Quote:
Originally Posted by albatross11 View Post
Can't see your line numbers, so can't reply to your specific problem; however, you can try a program called EditX. It may help you. There's a free version.

XML Editor
I don't have line numbers on text edit, but I've been going by the first phrase that pops up in the error.
thorpegiovanni is offline   Reply With Quote
Old 01-30-2017, 09:58 AM   #4
thorpegiovanni
All Star Reserve
 
thorpegiovanni's Avatar
 
Join Date: Jul 2016
Posts: 501
Thanks: 196
Thanked 173x in 112 posts
Quote:
Originally Posted by albatross11 View Post
Can't see your line numbers, so can't reply to your specific problem; however, you can try a program called EditX. It may help you. There's a free version.

XML Editor
Never coded before, this is making my head spin. But opened the application, and right off the bat I'm hit with this:


I'll try to figure things out tonight.
thorpegiovanni is offline   Reply With Quote
Old 01-30-2017, 10:00 AM   #5
thorpegiovanni
All Star Reserve
 
thorpegiovanni's Avatar
 
Join Date: Jul 2016
Posts: 501
Thanks: 196
Thanked 173x in 112 posts
I got the dst part to work, it was the random ". But I keep getting the errors. I'm in for a ride.
thorpegiovanni is offline   Reply With Quote
Old 01-30-2017, 11:21 AM   #6
joefromchicago
Hall Of Famer
 
joefromchicago's Avatar
 
Join Date: Jun 2011
Posts: 2,391
Thanks: 1,301
Thanked 1,762x in 887 posts
Turn off "smart quotes." That's the cause of most of these XML errors.
joefromchicago is offline   Reply With Quote
Old 01-30-2017, 10:53 PM   #7
thorpegiovanni
All Star Reserve
 
thorpegiovanni's Avatar
 
Join Date: Jul 2016
Posts: 501
Thanks: 196
Thanked 173x in 112 posts


???
thorpegiovanni is offline   Reply With Quote
Old 01-30-2017, 11:10 PM   #8
stl jason
Major Leagues
 
stl jason's Avatar
 
Join Date: Apr 2006
Posts: 433
Thanks: 135
Thanked 196x in 124 posts
after the <STATE> entry, you have to open the city group with <CITIES>, then the next line can be the individual <CITY... entries (see 106330 and 106331 for an example). The last entry will be </CITIES> to close the group when you have entered all the cities for that state.


side note: 106332 and 106341 looks like it has an extra /> after the closing </CITIES> entry.
stl jason is offline   Reply With Quote
Old 01-31-2017, 09:34 AM   #9
albatross11
All Star Reserve
 
Join Date: Mar 2003
Posts: 803
Thanks: 54
Thanked 126x in 103 posts
Don't know if you use OpenOffice (or Excel), but here's a template someone (kq?) made that might be helpful. You fill in your info and paste it into your xml file. It can help with some of those formatting errors.


blank world_default.zip
__________________
Peace,

albatross
albatross11 is offline   Reply With Quote
Old 01-31-2017, 09:30 PM   #10
thorpegiovanni
All Star Reserve
 
thorpegiovanni's Avatar
 
Join Date: Jul 2016
Posts: 501
Thanks: 196
Thanked 173x in 112 posts
The errors I get seem to be with the tags and end-tags, rather than the actual content. No idea why. I have the same exact format throughout the edit, but some parts are alright while others are not.
thorpegiovanni is offline   Reply With Quote
Old 02-01-2017, 12:56 AM   #11
thorpegiovanni
All Star Reserve
 
thorpegiovanni's Avatar
 
Join Date: Jul 2016
Posts: 501
Thanks: 196
Thanked 173x in 112 posts
The element type "STATES" must be terminated by the matching end-tag "</STATES>".
thorpegiovanni is offline   Reply With Quote
Old 02-01-2017, 03:47 AM   #12
albatross11
All Star Reserve
 
Join Date: Mar 2003
Posts: 803
Thanks: 54
Thanked 126x in 103 posts
If you're referring to your example, the closing tag </STATES> shouldn't be there at line 16333. You haven't finished with all of your states yet. The one at line 16352 is the one you want to close out your <States> with. Try taking out the first one (line 16333).
__________________
Peace,

albatross
albatross11 is offline   Reply With Quote
Old 02-01-2017, 08:55 AM   #13
stl jason
Major Leagues
 
stl jason's Avatar
 
Join Date: Apr 2006
Posts: 433
Thanks: 135
Thanked 196x in 124 posts
just scanning over the screenshot posted... here are some issues to fix (some already addressed by Albatross):

106315: opens the new continent, but needs to be: <CONTINENT id="7" name="Atlantis".... (etc)... >

106316: delete this line. The </CONTINENT> entry is used to close it once you've added all your nations, states and cities. Assuming you aren't adding another continent, you can update line 106354 to </CONTINENT> to close it out. Line 106355 then closes out all continents.

You'll want to add a lines above 106354, first to close out the nation of Atlantis with </NATION>, and then to close out all nations with </NATIONS>; again, assuming you aren't adding more.

Line 106332: delete the extra /> after the </CITIES> entry.

Line 106333: change to </STATE> as you are only closing a single state, not finishing all state entries.

Line 106335: add <CITIES> to open the city group before entering the city data.

Line 106337: looks like this is supposed to be part of line 106335 (the longitude and abbr for that city).

Line 106341: delete the extra /> after the </CITIES> entry.

Line 106344: add <CITIES> above this entry to open the city group for the new state.

Line 106349: add <CITIES> above this entry to open the city group for the new state.
stl jason is offline   Reply With Quote
Old 02-01-2017, 09:05 AM   #14
albatross11
All Star Reserve
 
Join Date: Mar 2003
Posts: 803
Thanks: 54
Thanked 126x in 103 posts
Quote:
Originally Posted by stl jason View Post
just scanning over the screenshot posted... here are some issues to fix (some already addressed by Albatross):

106315: opens the new continent, but needs to be: <CONTINENT id="7" name="Atlantis".... (etc)... >

106316: delete this line. The </CONTINENT> entry is used to close it once you've added all your nations, states and cities. Assuming you aren't adding another continent, you can update line 106354 to </CONTINENT> to close it out. Line 106355 then closes out all continents.

You'll want to add a lines above 106354, first to close out the nation of Atlantis with </NATION>, and then to close out all nations with </NATIONS>; again, assuming you aren't adding more.

Line 106332: delete the extra /> after the </CITIES> entry.

Line 106333: change to </STATE> as you are only closing a single state, not finishing all state entries.

Line 106335: add <CITIES> to open the city group before entering the city data.

Line 106337: looks like this is supposed to be part of line 106335 (the longitude and abbr for that city).

Line 106341: delete the extra /> after the </CITIES> entry.

Line 106344: add <CITIES> above this entry to open the city group for the new state.

Line 106349: add <CITIES> above this entry to open the city group for the new state.
Yep
__________________
Peace,

albatross
albatross11 is offline   Reply With Quote
Old 02-01-2017, 09:44 AM   #15
thorpegiovanni
All Star Reserve
 
thorpegiovanni's Avatar
 
Join Date: Jul 2016
Posts: 501
Thanks: 196
Thanked 173x in 112 posts
Actually, the problem is slightly different because I've changed certain things since the last post.
Here it is now:
thorpegiovanni is offline   Reply With Quote
Old 02-01-2017, 09:48 AM   #16
thorpegiovanni
All Star Reserve
 
thorpegiovanni's Avatar
 
Join Date: Jul 2016
Posts: 501
Thanks: 196
Thanked 173x in 112 posts
I opened <CITIES> on line 42 and 47 as well. My only remaining issue is this <STATES> things.
thorpegiovanni is offline   Reply With Quote
Old 02-01-2017, 10:09 AM   #17
stl jason
Major Leagues
 
stl jason's Avatar
 
Join Date: Apr 2006
Posts: 433
Thanks: 135
Thanked 196x in 124 posts
106333: delete the / at the end of the line between "APO" and >
stl jason is offline   Reply With Quote
Old 02-01-2017, 08:24 PM   #18
thorpegiovanni
All Star Reserve
 
thorpegiovanni's Avatar
 
Join Date: Jul 2016
Posts: 501
Thanks: 196
Thanked 173x in 112 posts
With the help of txranger, I've gotten it to work! Thanks to all for advice and help.
thorpegiovanni is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

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:14 PM.

 

Major League Baseball trademarks and copyrights are used with permission of MLB Advanced Media, L.P. Minor League Baseball trademarks and copyrights are used with the permission of Minor League Baseball. All rights reserved.

The Major League Baseball Players Association (www.MLBPLAYERS.com ) is the collective bargaining representative for all professional baseball players of the thirty Major League Baseball teams and serves as the exclusive group licensing agent for commercial and licensing activities involving active Major League baseball players. On behalf of its members, it operates the Players Choice licensing program and the Players Choice Awards, which benefit the needy through the Major League Baseball Players Trust, a charitable foundation established and run entirely by Major League baseball players. Follow: @MLB_Players; @MLBPAClubhouse; @MLBPlayersTrust

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 © 2017 OUT OF THE PARK DEVELOPMENTS. ALL RIGHTS RESERVED.

 

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