Page 1 of 1

Changing CP names?

Posted: Fri Apr 17, 2009 7:18 pm
by matax91
so I saw in the ***c_Con.lua that there was a place with the names of the CP's, can those be changed from the numbers to names maybe?

And if so where all would I have to change to get the names to show up ingame?

Re: Changing CP names?

Posted: Fri Apr 17, 2009 7:23 pm
by Frisbeetarian
CP name and numbers are only relevant in the game in two places. One, is the number you're referring to, which each CP must have to be represented on the minimap. (You also need to learn the difference between an integer and a string and what they mean in programming terms. The function must have an integer input in this case.)

The second place that a CP name shows up is if you are following THIS tutorial found in the FAQ thread that lets the actual names that you give the CPs to pop up when they change hands.

Re: Changing CP names?

Posted: Fri Apr 17, 2009 7:29 pm
by matax91
so there isn't a way to change the way the function wants the input from integer to string?

Re: Changing CP names?

Posted: Fri Apr 17, 2009 9:52 pm
by Frisbeetarian
Functions are hard coded into the executable.

Re: Changing CP names?

Posted: Sun Apr 19, 2009 12:03 am
by matax91
ah darnit, oh well, thx anyway

Re: Changing CP names?

Posted: Sun Apr 19, 2009 6:06 pm
by [RDH]Zerted
What function are you guys talking about?

Re: Changing CP names?

Posted: Sun Apr 19, 2009 6:30 pm
by Frisbeetarian
[RDH]Zerted wrote:What function are you guys talking about?
A really bad memory I suppose.

Thanks for making me check what I was saying. Yes, the function in the Lua does take a string and that is the name you assign in ZE. However, the essence of what I was saying should still stand. As far as I know, you can't change the integer numbers on the minimap to names, and the only way for the names of the command posts to matter are through the link I posted.

Checking myself does leave a question though, how does the game assign numbers to the command posts for the minimap? From what I could gather, after listing the command posts in number order in the Lua, cp1 showed up as "2" on the minimap, and cp3 showed up as "0."