• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] I Can't Select My Keep Anymore?

Status
Not open for further replies.
Level 2
Joined
Nov 22, 2010
Messages
5
I am quite experienced with the editor. I am usually good about making small changes and testing for crashes if I am doing complicated stuff. I have been working on this map for a while and I decided to overhaul some systems.

I did not do a lot of testing and so here I am with a mostly running map and a single obscure oddity with virtually no explanation.

I am sure someone more experienced with coding can explain what mistake I am possibly making.

The problem: Any full-control interaction with the Keep causes Warcraft 3 to close without any errors.

I have a computer controlled city that players interact with by buying items. I have a Town Hall that can be upgraded to a Keep. The Keep is suppose to be able to be upgraded to a Castle. The problem first manifested when I purchased an item that triggers the Keep to upgrade to a Castle.

I used diagnostic triggers to determine if I can take control of the Keep to upgrade it without triggers. That is when I figured out that Warcraft 3 closes without any errors if I click on the Keep with full-control.

So now I don't know what to do. I need fresh eyes on this problem I think. There is a lot to this map. I try to keep it organized. Please ask for more details if you need them.
 

Attachments

  • Castle Quest.w3m
    744.6 KB · Views: 56
Level 5
Joined
Oct 16, 2007
Messages
67
The Problem is that in the Object Editor the Castle has the Requirement: Altar of Kings.
Once you Remove that it won't crash anymore.
 
Level 2
Joined
Nov 22, 2010
Messages
5
The Problem is that in the Object Editor the Castle has the Requirement: Altar of Kings.
Once you Remove that it won't crash anymore.
Shut the front door! That worked! Why?

The triggers require the Altar of Kings too. I figured that condition is always met for the game to run smoothly. Why would that make my Keep be completely unusable?
 
Level 5
Joined
Oct 16, 2007
Messages
67
So the Reason is... as stupid as it sounds, that you can upgrade the Altar to a Farm...

After some testing the Reason is that the Farm can be upgraded to a Altar and the Altar to a Farm, this creates a circle.
It seems like the game is now checking for Requirments this way.
So if you own a Farm you also own a Altar becouse the Altar can be upgraded to it.
It seems the game checks all buildings that can be upgraded to the building required, then does that again with the buildings found, in order to make the decision if you own the Requirment. Your map creates an infinity loop in that way.
 
Status
Not open for further replies.
Top