Hey guys, I have been using OneTwo's Advanced Tower Defence tutorial, working a while on it and recently completed it. After the triggers were done, I ran it and Wave 2 wouldn't start, the game gave me 1000 minerals or so when I won it, and the killboard didn't work. These are the problems I have encountered, and here's the link to the last 3 videos where I got messed up:
If anyone can discover the problems, which I believe to be incorrect placement of triggers, please let me know, here is the link to the dropbox download.
Are you aware that your game produces several errors when it's running? Here's a message from the error logs (which you can find in Documents\Starcraft II\GameLogs):
Error Log
Code
USER 225 14.063 14.063 More than one CActorUnit persisting in the same unit scope: USER 228 14.250 14.267 More than one CActorUnit persisting in the same unit scope: USER 251 15.688 15.721 More than one CActorUnit persisting in the same unit scope: USER 358 22.375 22.375 Can only create one CActorAction per effect [PhotonCannonLM]. USER 365 22.813 22.813 Data configuration error; ActionImpact message arrived before commenced. USER 370 23.125 23.125 Can only create one CActorAction per effect [PhotonCannonLM]. USER 370 23.125 23.125 Can only create one CActorAction per effect [PhotonCannonLM]. USER 375 23.438 23.438 Data configuration error; ActionImpact message arrived before commenced. USER 377 23.563 23.563 Data configuration error; ActionImpact message arrived before commenced. USER 381 23.813 23.813 Can only create one CActorAction per effect [PhotonCannonLM]. USER 382 23.875 23.875 Can only create one CActorAction per effect [PhotonCannonLM]. USER 384 24.000 24.000 Can only create one CActorAction per effect [PhotonCannonLM]. USER 385 24.063 24.063 Data configuration error; ActionImpact message arrived before commenced. USER 388 24.250 24.250 Data configuration error; ActionImpact message arrived before commenced. USER 391 24.438 24.438 Data configuration error; ActionImpact message arrived before commenced. USER 392 24.500 24.500 Can only create one CActorAction per effect [PhotonCannonLM]. USER 393 24.563 24.563 Can only create one CActorAction per effect [PhotonCannonLM]. USER 396 24.750 24.750 Can only create one CActorAction per effect [PhotonCannonLM]. USER 396 24.750 24.750 Data configuration error; ActionImpact message arrived before commenced. USER 396 24.750 24.750 Data configuration error; ActionImpact message arrived before commenced. USER 402 25.125 25.125 Data configuration error; ActionImpact message arrived before commenced. USER 403 25.188 25.188 Can only create one CActorAction per effect [PhotonCannonLM]. USER 406 25.375 25.375 Can only create one CActorAction per effect [PhotonCannonLM]. USER 406 25.375 25.375 Data configuration error; ActionImpact message arrived before commenced. USER 408 25.500 25.500 Data configuration error; ActionImpact message arrived before commenced. USER 414 25.875 25.875 Can only create one CActorAction per effect [PhotonCannonLM]. USER 416 26.000 26.000 Can only create one CActorAction per effect [PhotonCannonLM]. USER 418 26.125 26.125 Data configuration error; ActionImpact message arrived before commenced. USER 419 26.188 26.188 Can only create one CActorAction per effect [PhotonCannonLM]. USER 419 26.188 26.188 Data configuration error; ActionImpact message arrived before commenced. USER 422 26.375 26.375 Data configuration error; ActionImpact message arrived before commenced. USER 427 26.688 26.688 Can only create one CActorAction per effect [PhotonCannonLM]. USER 428 26.750 26.750 Can only create one CActorAction per effect [PhotonCannonLM]. USER 430 26.875 26.875 Can only create one CActorAction per effect [PhotonCannonLM]. USER 430 26.875 26.875 Data configuration error; ActionImpact message arrived before commenced. USER 431 26.938 26.938 Data configuration error; ActionImpact message arrived before commenced. USER 434 27.125 27.125 Data configuration error; ActionImpact message arrived before commenced.
Quote
More than one CActorUnit persisting in the same unit scope:
This sounds like a Data Editor problem, perhaps from copying/duplicating something. I believe this is saying more than one actor is assigned to a single unit, and it doesn't know which one to display. This occurs when a Spore Tower completes.
Quote
Can only create one CActorAction per effect [PhotonCannonLM].
Sounds like another Data Editor problem, similar to the other one. More than one actor is attempting to be used by the PhotonCannonLM effect. This occurs when the Spore Towers are attacking. I believe the issue for this is when you're specifying "any" effect state. Try a state like "Start."
Quote
Data configuration error; ActionImpact message arrived before commenced.
Another Data Editor issue. I think this is coming from the Spore Attack's Impact effect.
I'm not very knowledgeable on the Data Editor, and I'm sorry I can't help with these issues.
Anyway, on to your trigger problem! Look at your "Unit Dies" trigger. You're getting a stack overflow error because you are recursively calling the trigger at the end, causing an infinite loop. I believe the trigger you WANT it to call is "Wave End." This will fix your income issue and Wave loop issue.
As far as the displays go, you are missing some code. In your initialization, add "Variable - Set Wave Timer Window = (Last created timer window)" after you create your timer window. In your "Unit Dies" trigger, look at your action setting the leaderboard value. You are saying "(last created leaderboard)" when you should be using your global variable, "Killboard."
That's it! Your triggers should work as expected after you make those changes.
I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.
-Unit enters end region is missing the condition that the owner of the triggering unit is player 3.
-"Unit dies" calls "Units dies". Basically you have an infinite loop there that would give you infinite money. That's how you get that much money. It should call "Wave end" to check if that was the last unit of the wave.
Now my game won't go past wave 8. Any idea why? Also, I can't find this "repasir resource" thing he talks about for selling the towers Oh and the numbers for the killboaad don't show up.
Your "Variable - Set Wave Timer Window = (Last created timer window)" in the initialization is before you create a timer window, so this variable is not properly set. Place it after the "Timer - Create a timer window for (Last started timer), with the title "Wave 1 in", using Remaining time (initially Visible)" action. This will fix your Timer display.
Wave 8 doesn't end because one of the enemies doesn't move. If you kill this enemy, the wave will end as expected. This might be because the unit gets trapped and stops trying to move. Try reapplying the order command periodically to prevent stuck units.
Your leaderboard values in your initialization got screwed up somewhere between your original post and now. It should look like this:
Variable - Set Killboard = (Last created leaderboard) Leaderboard - Add player 1 to Killboard Leaderboard - Add player 2 to Killboard ------- Set Killboard Player Column Leaderboard - Set Killboard item text at column 1 and row Header to "Player" Leaderboard - Set Killboard item text at column 1 and row 1 to (Name of player 1) Leaderboard - Set Killboard item text at column 1 and row 2 to (Name of player 2) ------- Set Killboard Kills Column Leaderboard - Set Killboard item text at column 2 and row Header to "Kills" Leaderboard - Set Killboard item text at column 2 and row 1 to "0" Leaderboard - Set Killboard item text at column 2 and row 2 to "0" Leaderboard - Show all leaderboards for (All players)
Finally, "Killing Player" is not zero-based, so you need to change the leaderboard action in your Unit Dies trigger to use "row (Killing Player)" instead of "row (Killing Player + 1)."
I'm not sure on the repair resource thing, because I haven't looked at the videos. Maybe it's your "Sell Tower" ability in the Data Editor? Or maybe the "Queue (5) Copy" ability, which you seem to have forgotten to rename or something.
Post has been edited 1 time(s), last time on Jul 22 2011, 11:24 pm by Roy.
From a trigger perspective, everything except the timer window is operating as expected. There are still those actor warning issues from the Data Editor, though.
To fix the timer window issue, go to your initialization trigger and move the "Variable - Set Wave Timer Window = (Last created timer window)" action two actions down, so it is below the action creating the timer window.
Maybe you should include the price of building a tower, instead of having floating text showing how much it was after a player makes one.
If you want feedback on your project, I would suggest making a topic in the Map Production section. All I can really suggest right now is to make it your own, and have fun with it.
TheHappy115 -- Yea, thats the issue. Thanks. It would also explain why my deleted map couldn't get updated. Updated version reduced collision on units (only thing added) since was dodging game (players collide with each other)
[2024-5-28. : 5:26 am]
Ultraviolet -- If so, I'd just focus on getting them on scmscx.com and then you can link to that in the showcase thread for your maps
[2024-5-28. : 5:25 am]
Ultraviolet -- I can't upload my EUD maps, I think the DLDB has some issue with handling them. Are you trying to upload EUD maps?
[2024-5-28. : 2:06 am]
TheHappy115 -- Its been awhile but ever since I requested one of the Maps I posted to be deleted since I couldn't delete it myself (or update it), I haven't been able to upload any more maps. Any reason for that?