Page 1 of 2
deleting location name = Bad
Posted: Mon Sep 08, 2008 12:07 am
by Doug R.
I deleted a location name, thinking that it would default back to unnamed location. Not good. It killed the dynamic naming. Now all I have is a "." I can't change. I'm assuming that this is a side-effect of the recent change in URL that I posted about in another support thread.
Posted: Mon Sep 08, 2008 12:41 am
by marginoferror
Okay, I see the problem. Because it's normally the name itself that you click on to bring up the page to change the location name, if you blank out that space, there is nothing to click on.
Here's a workaround. Note down the type of terrain (grassland, forest, etc). Then view the page source (CTRL-U on Firefox) and search for that word (grassland, forest, etc.). If you look right before the place where it says the terrain type, there should be something like
<A HREF="index.php?dt=cz02NDQ5ODE4NjAmcGFnZT1uYW1lbG9jJmNoYXJhY3Rlcj0yMTg5MjMmaWQ9MTMx"></A>
Take the partial URL between the quotes and paste it over the corresponding part of the URL in the location bar, so that you get something like
http://www.cantr.net/index.php?dt=cz02N ... MmaWQ9MTMx
That should do the trick.
Posted: Mon Sep 08, 2008 12:53 am
by Skulty
Yep, it works, just tried it, just for fun!

Posted: Mon Sep 08, 2008 2:22 am
by Doug R.
Well, I left the town, and there's no telling when I'll be getting back there. I'll try it if I ever do. Thanks for the quick response though!
Posted: Thu Sep 18, 2008 8:07 pm
by Compay
Posted: Tue Oct 07, 2008 5:07 pm
by Razorlance
It works for vehicles too, if you go to the vehicles and buildings page then search for either an alternate name for the vehicle, (as in my case) or for a vehicle just before or after the one you want to rename, then look for the HREF tag of the blank vehicle name then apply marginoferror's fix.

Re: deleting location name = Bad
Posted: Sat Feb 20, 2010 11:06 pm
by MartialAngel
Yay! I fixed it!
Re: deleting location name = Bad
Posted: Tue Feb 23, 2010 1:42 am
by SekoETC
I just figured out how come they come out as reading <CANTR_CHARDESC> in the database even though no one writes that in. It's because it's the default description that it enters if the name is blank, and it's not taking into account that it doesn't work with locations. I should be able to fix it.
Re: deleting location name = Bad
Posted: Tue Feb 23, 2010 2:35 pm
by Doug R.
Awesome!
Re: deleting location name = Bad
Posted: Wed Jun 22, 2011 4:48 am
by IvanicDiazinum
Thank you!
I did this to a ship accidentally. Would have been rather awkward to have to get a sign tool just to give it a name again.
Re: deleting location name = Bad
Posted: Wed Jun 22, 2011 12:48 pm
by SekoETC
I just committed a change that will stop this from happening once Echoman puts it live. After the new version is up, deleting the dynamic name will make it display the default name like people have been expecting it would. But don't test it yet.
Also, there are 4198 entries in the database where the namer is 0 and 247 where the target is 0, so I was wondering if those should all be deleted, since no one can see the text under normal circumstances.
Re: deleting location name = Bad
Posted: Wed Jun 22, 2011 12:51 pm
by EchoMan
Edit: I have uploaded the script live. It works for vehicles and buildings. Locations will revert to "unnamed location" if the name is blanked out, people to " a [wo]man in his/her twenties".
Re: deleting location name = Bad
Posted: Wed Jun 22, 2011 12:55 pm
by SekoETC
No, it just deletes the old naming information, so it will display unnamed location for outside locations and the name of the building/vehicle if it's a building/vehicle.
Re: deleting location name = Bad
Posted: Wed Jun 22, 2011 12:56 pm
by Doug R.
I would assume she meant default meaning <unknown location> or the name of the building/vehicle/ship.
Re: deleting location name = Bad
Posted: Wed Jun 22, 2011 12:59 pm
by EchoMan
See my edit above. You guys are too fast.
