So I've been working on an ORPG map for a few weeks now and I'm starting to have some real difficulties with a few things such as units renaming themselves, certain units and their abilities owned by dependencies being uneditable, and my map seemingly claiming ownership of units that belong to dependencies.
Here are some screenshots of the unit my map has seemed to claim ownership of. I'm making this claim from information I'm getting from the Text Editor (F8) and I don't fully understand it, so I may be way off base.
This screenshot shows me selecting the Zergling in the data editor. You can see that it's owned by Liberty.SC2Campaign. In the Text editor on the right however it's showing up under data source: My map.
I edited the Text Entry field to make this clear.
What's going on here?
This screenshot shows the custom units I've created so far.
I've selected the second "Zergling" in the list and opened it's Properties. You can see that it's ID is LargeRatBurrowed (the burrowed counterpart to rawn mob Large Rat, which I'm not experiencing problems with). In the text editor on the right I've selected the only mention of "LargeRatBurrowed" in the list, and it's the Editor Suffix. Why isn't it under Unit/Name/~ ?? This unit and the one above it (HugeRatBurrowed) rename themselves every time I open my map. I have no idea what's going on here.
My other problem is with certain units and their abilities, etc, becoming completely uneditable. I can't open the unit properties tab or change any fields on the right. Double clicking them or selecting and hitting enter does nothing. For some units, I can edit fields on the right, but not access the unit properties tab. This problem seems to increase in severity, affecting more and more units as time goes on.
This problem seems to be limited to data from dependencies, an not data that I've created or duplicated before this problem began.
If anyone could shed any light on these issues I would greatly appreciate it! I'd really hate to restart this map.
There is probably something wrong with your XML files. I had some issues with object ids being present multiple times, which created uneditable duplicates similar to the stuff you describe, but it never went viral like that for me.
If you know a little about the xml files SC2 creates, you can try to have a look and find irregularities.
Would you mind sharing the map here, or send it to people you can "trust" here privately? (well, whom can you really trust here, if you just registered :p) This could speed up the process of finding the error.
The map, is nothing more than an archive for multiple files. You can open it with an MPQ editor or save the map as a component list to get access to the files.
The XML view and the files should essentially be identical, but if you experience bugs like this, I wouldn't trust the XML view within the editor.
Aah, I searched around and figured it was some kind of MPQ archive, but I wasn't able to open the map in a MPQ editor for some reason. However I was able to save it as a component list so I'll be taking a peak at the files in there.
If I'm unable to make heads or tails of it I'll probably post it up here.
Great! So I've been looking at the XML data for the Large Rat (Burowed) and Huge Rat (Burowed) units and what I noticed is under the <CUnit id> line there was <Name value="Unit/Name/Zergling". So I changed that to "Unit/Name/LargeRatBurrowed" and committed the XML changes and the unit showed up in the Text Editor!
Wanting my naming conventions to remain consistent I opened the Unit Properties dialog and named it correctly (Name: Large Rat (Burrowed); ID: LargeRatBurrowed) and something curious happened. The <Name value=""> line disappeared from the XML view. ?? But the unit still shows up properly in the Text Editor and doesn't rename itself upon saving and reloading.
It's strange that that line went away but I'm not too concerned about it. Now I'll just be going through and making sure the names and ID's of trouble units aren't the same and see if that helps with my other issues.
I'm not too optimistic about the dependency units being uneditable issue because the vast majority of them I've never duplicated, copied or otherwise messed with, but we'll see.
So I've been working on an ORPG map for a few weeks now and I'm starting to have some real difficulties with a few things such as units renaming themselves, certain units and their abilities owned by dependencies being uneditable, and my map seemingly claiming ownership of units that belong to dependencies.
Here are some screenshots of the unit my map has seemed to claim ownership of. I'm making this claim from information I'm getting from the Text Editor (F8) and I don't fully understand it, so I may be way off base.
This screenshot shows me selecting the Zergling in the data editor. You can see that it's owned by Liberty.SC2Campaign. In the Text editor on the right however it's showing up under data source: My map. I edited the Text Entry field to make this clear. What's going on here?
This screenshot shows the custom units I've created so far. I've selected the second "Zergling" in the list and opened it's Properties. You can see that it's ID is LargeRatBurrowed (the burrowed counterpart to rawn mob Large Rat, which I'm not experiencing problems with). In the text editor on the right I've selected the only mention of "LargeRatBurrowed" in the list, and it's the Editor Suffix. Why isn't it under Unit/Name/~ ?? This unit and the one above it (HugeRatBurrowed) rename themselves every time I open my map. I have no idea what's going on here.
My other problem is with certain units and their abilities, etc, becoming completely uneditable. I can't open the unit properties tab or change any fields on the right. Double clicking them or selecting and hitting enter does nothing. For some units, I can edit fields on the right, but not access the unit properties tab. This problem seems to increase in severity, affecting more and more units as time goes on. This problem seems to be limited to data from dependencies, an not data that I've created or duplicated before this problem began.
If anyone could shed any light on these issues I would greatly appreciate it! I'd really hate to restart this map.
Hey, and welcome.
There is probably something wrong with your XML files. I had some issues with object ids being present multiple times, which created uneditable duplicates similar to the stuff you describe, but it never went viral like that for me.
If you know a little about the xml files SC2 creates, you can try to have a look and find irregularities.
Would you mind sharing the map here, or send it to people you can "trust" here privately? (well, whom can you really trust here, if you just registered :p) This could speed up the process of finding the error.
Thanks for the reply!
By XML files do you mean putting the data editor into XML view mode? If not could you tell me where these xml files can be found?
The map, is nothing more than an archive for multiple files. You can open it with an MPQ editor or save the map as a component list to get access to the files.
The XML view and the files should essentially be identical, but if you experience bugs like this, I wouldn't trust the XML view within the editor.
Aah, I searched around and figured it was some kind of MPQ archive, but I wasn't able to open the map in a MPQ editor for some reason. However I was able to save it as a component list so I'll be taking a peak at the files in there.
If I'm unable to make heads or tails of it I'll probably post it up here.
Thanks again for the lead.
Great! So I've been looking at the XML data for the Large Rat (Burowed) and Huge Rat (Burowed) units and what I noticed is under the <CUnit id> line there was <Name value="Unit/Name/Zergling". So I changed that to "Unit/Name/LargeRatBurrowed" and committed the XML changes and the unit showed up in the Text Editor!
Wanting my naming conventions to remain consistent I opened the Unit Properties dialog and named it correctly (Name: Large Rat (Burrowed); ID: LargeRatBurrowed) and something curious happened. The <Name value=""> line disappeared from the XML view. ?? But the unit still shows up properly in the Text Editor and doesn't rename itself upon saving and reloading.
It's strange that that line went away but I'm not too concerned about it. Now I'll just be going through and making sure the names and ID's of trouble units aren't the same and see if that helps with my other issues.
I'm not too optimistic about the dependency units being uneditable issue because the vast majority of them I've never duplicated, copied or otherwise messed with, but we'll see.