Staredit Network > Forums > SC2 Assistance > Topic: [SOLVED] OneTwo's Advanced TD Tutorial Help
[SOLVED] OneTwo's Advanced TD Tutorial Help
This topic is locked. You can no longer write replies here.
Jul 22 2011, 2:08 am
By: VGFreak97  

Jul 22 2011, 2:08 am VGFreak97 Post #1



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.

http://dl.dropbox.com/u/19909454/TD.SC2Map



None.

Jul 22 2011, 2:26 am VGFreak97 Post #2



Just realized there was a tenth video, but still have problems. Help?



None.

Jul 22 2011, 3:25 am Roy Post #3

An artist's depiction of an Extended Unit Death

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


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.




Jul 22 2011, 3:32 am Ahli Post #4

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.

That's it.
edit:
plus what roy said




Jul 22 2011, 10:45 pm VGFreak97 Post #5



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.



None.

Jul 22 2011, 11:19 pm Roy Post #6

An artist's depiction of an Extended Unit Death

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.




Jul 23 2011, 12:29 am VGFreak97 Post #7



Thanks :)



None.

Jul 23 2011, 6:36 am VGFreak97 Post #8



The kill counter works correctly, but do you guys have any suggestions or notice any bugs? Lemme know :)



None.

Jul 23 2011, 6:46 pm Roy Post #9

An artist's depiction of an Extended Unit Death

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.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[08:43 am]
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?
[2024-5-26. : 7:14 pm]
Kyradax -- Hi
[2024-5-26. : 5:05 pm]
O)FaRTy1billion[MM] -- :wob:
[2024-5-25. : 9:22 am]
Zycorax -- :wob:
[2024-5-23. : 3:50 pm]
Ultraviolet -- :wob:
[2024-5-23. : 6:26 am]
UndeadStar -- :wob:
[2024-5-22. : 6:10 am]
Riney -- Somethings never change.
Please log in to shout.


Members Online: Mzelylis05