JPMorgan Posted August 22, 2016 Share Posted August 22, 2016 Apparently people are getting an error when they send me trades. It tells them they have entered an invalid name. Here is my link if anyone is to try: https://politicsandwar.com/nation/id=42915 Quote Link to comment Share on other sites More sharing options...
Callum Posted August 22, 2016 Share Posted August 22, 2016 (edited) For what its worth, i also cant embargo you for the same reason. mad hacks/10 Edited August 22, 2016 by Callum Quote Link to comment Share on other sites More sharing options...
Peacity Peace Posted August 22, 2016 Share Posted August 22, 2016 (edited) It seems like your nation is messing up your leader name and your nation name or something. Since when i copy and paste "JP Morgan & Co" i'm able to trade with you. Edit: Yup, the game automatically puts your leader name into the trade menu instead of your nation name. Edited August 22, 2016 by Peacity Peace Quote Link to comment Share on other sites More sharing options...
JPMorgan Posted August 22, 2016 Author Share Posted August 22, 2016 Okay, so the ampersand is cutting off the nation name entry -- which is odd because this only started today. Quote Link to comment Share on other sites More sharing options...
Kid Winchell Posted August 22, 2016 Share Posted August 22, 2016 (edited) The issue is because of the ampersand in your name. New trade offers, when you click the link on a nation page, send you to a url ending in /nation=name. This works fine when you just have an alphanumeric name. However, the ampersand is a reserved character in URIs, and is not interpreted as plaintext (it's used to separate parameters in a url, e.g. here). The way to get around this is to percent-encode the url (e.g. here), which Sheepy has not done. I tried creating a trade with your nation percent-encoded (i.e. ending with /nation=JP%20Morgan%20%26%20Co (spaces are another character that sometimes needs percent-encoding) instead of /nation=JP Morgan & Co), but that didn't work either. After a bit of fiddling I've concluded that the game decodes the URL before processing it, meaning that it converts "%20%26%20" back to " & " before dealing with it like a normal URL (i.e. ignoring the fact that we didn't want the & to be a special &). But if you percent-encode the percent-encoded URL (i.e. ending with /nation=JP%2520Morgan%2520%2526%2520Co (the percent sign is another reserved character that needs to be encoded)) then it will work exactly as desired. tl;dr use this link (or enter things manually) until Sheepy fixes things. Edit: IPB auto-detecting URLs is dicks. Edited August 22, 2016 by Roll Sheepy 2 Quote Link to comment Share on other sites More sharing options...
JPMorgan Posted August 23, 2016 Author Share Posted August 23, 2016 It's a fix to do, but I'll just change my nation name. I was going to end up doing that anyway. Quote Link to comment Share on other sites More sharing options...
Administrators Alex Posted August 23, 2016 Administrators Share Posted August 23, 2016 Looks like it's solved, I'll make sure the links are encoded for future use. Quote Is there a bug? Report It | Not understanding game mechanics? Ask About It | Got a good idea? Suggest ItForums Rules | Game Link Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.