making ctf map, always crashes

T

TaK-MP

Guest
Im trying to make a map which is based on capture the flag....the problem is that whenever i capture a flag i get a fatal error and the game quits out ... i have no idea how to fix it :/
 
L

LedZepplin

Guest
Not sure if i can help but im sure if you posted your triggers that revolve around the flag someone will be able to help you out.
 

Tonks

New Member
Did you steal this map? I know for a fact that Thew put a trigger in his maps that shuts it down if anything is changed.
If it's not stolen, post all your triggers for me. I already have a Capture the Flag made, and can probably give you a better trigger. Note that if you aren't very experienced with World Editor, this map will most likely turn out to be a dud. Special features and effects are needed for the map to be interesting.

*Post the map on this thread.*
 

exge

New Member
Tonks said:
Did you steal this map? I know for a fact that Thew put a trigger in his maps that shuts it down if anything is changed.
wow how did he do that .. i would like to add that to my map too ... so people can learn from my map but not steal it
 
T

TaK-MP

Guest
k heres my triggers

-Events
A unit enters team1flag <gen>
-Conditions
((Item carried by (Triggering Unit) of type Team 2 Flag) is owned) Equal to True
-Actions
Item - Move (Item being manipulated) to (Center of Team2Flag <gen>)
Set Score[1] = (Score[1] + 5)
Leaderboard - Change value for team1 in (Last created leaderboard) to Score[1]
Leaderboard - Sort (Last created leaderboard) by Value in Descending order.

EDIT: and no, its not stolen :p
 

AceHart

Your Friendly Neighborhood Admin
There is no "item being manipulated" with that event.

Try with boolean, hero - hero has item of type, for the condition.
And Item - Move item carried by hero of type, to move it.
 
T

TaK-MP

Guest
AceHart said:
Try with boolean, hero - hero has item of type, for the condition.
And Item - Move item carried by hero of type, to move it.
just tried that, doesnt work :/

EDIT: by not working i mean it still crashes
 

Xenoche

Member
Bombers_scores
Events
Unit - A unit enters alpha goal <gen>
Conditions
(((Entering unit) belongs to an ally of Player 1 (Red)) Equal to True) and (((Entering unit) has an item of type Bombers Flag) Equal to True)
Actions
Hero - Drop (Item carried by (Entering unit) of type Bombers Flag) from (Entering unit)
Item - Remove (Last dropped item)

Set Score_Count[1] = (Score_Count[1] + 1)
Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to Score_Count[1]
Game - Display to (All players) the text: |cff32cd32THE BOMBERS SCORE!!!|r
Trigger - Run <restartgame> (ignoring conditions)

This is my CTF scoring trigger.
I've got 1 of these for each team, and it works fine.
-Use a boolean as the condition for the item_type check as AceHart said, it works.
-Instead of trying to recycle the same item, just remove it and create another.
 
T

TaK-MP

Guest
Xenoche said:
Bombers_scores
Events
Unit - A unit enters alpha goal <gen>
Conditions
(((Entering unit) belongs to an ally of Player 1 (Red)) Equal to True) and (((Entering unit) has an item of type Bombers Flag) Equal to True)
Actions
Hero - Drop (Item carried by (Entering unit) of type Bombers Flag) from (Entering unit)
Item - Remove (Last dropped item)

Set Score_Count[1] = (Score_Count[1] + 1)
Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to Score_Count[1]
Game - Display to (All players) the text: |cff32cd32THE BOMBERS SCORE!!!|r
Trigger - Run <restartgame> (ignoring conditions)
I tried that too, still crashes :O
 

Xenoche

Member
Well then, i guess its crashing from another source because I use that exact trigger and it works fine. :shades:

Are you able to post any other triggers that run during that period of time?

Other than that, I have no idea :confused:
 
T

TaK-MP

Guest
thats the only trigger which happens on that event...ive tried everything i can think of and it still crashes
 

Sud

"[If life=Dota] I'd have quit long ago" -- Acehart
I find one big source of all out crashes is when the map is trying to reference or manipulate an object or event that does not exist or is an impossibility.

Suggestions:

- team1flag <gen> does not exist or has been deleted
- Item carried by (Triggering Unit) [are all units on your map capable of carrying items? I know item incapable units queried for items can possibly cause crashes]
- Team 2 Flag does not exist or has been deleted
- Item being manipulated [as Ace said, no item is being manipulated in this event. This is an invalid action option given the event type].
- Team2Flag <gen> does not exist or has been deleted
- Score does not exist or has been deleted OR is being accessed beyond the scope of the array [referencing an out of bound array can cause a crash]
- Last Created Leaderboard does not exist or has been deleted
 
T

TaK-MP

Guest
This is what the trigger looks like after changes:

-Event
A unit enters (team1flag <gen>)
-Condition
((Item carried by (Triggering unit) of type Team 2 Flag) is equal to true
-Actions
Item - Move (Item carried by (Triggering unit) of type Team 2 Flag) to (Center of team2flag <gen>)
Set Score[1] = (Score[1] + 5)
Change value for team1 in (Last created leaderboard) to Score[1]

I checked all those things mentioned which could cause a crash and they are all fine...but it still crashes when this event happens
 

Sud

"[If life=Dota] I'd have quit long ago" -- Acehart
I still see the possibility of one of my exclusions to occur.

For example, you didn't change the code of the event. For example, to prevent the accidental occurance of a normal unit triggering the event (instead of the intended hero) you could have added "triggering unit is a hero = true" as one of the conditions. That would have, for example, prevented the possibility of a hero that is not item enabled of tripping the trigger and crashing the map (because an item disabled unit cannot be polled with item carried by)

But, I'll help you with the process of elimination if you provide the screenshots proving me wrong. Screenshot for me:

- The team1flag <gen> location
- Team 2 Flag's item entry
- The team2flag <gen> location
- The variable screen entry for Score
- The leaderboard including depictions of the existance of team1

ALSO - are you sure that you can put that value of Score[1] directly into the leaderboard like that? Don't you need to do a string conversion, or numerical conversion? That part looks fishy.

Sounds like a lot of work, perhaps, but it'll allow us to be able to see what the heck is going on and eliminate the possibilities. Unfortunately for an old tech support vet like myself "I did that already" doesn't work ;)
 

Tonks

New Member
Okay.. Here's my map. I can't see anything wrong with your triggers. They are different from mine, though.
Go ahead and use anything in there that you want. It's a dud project, and I want a good CTF out, too :)
Hope it helps ya out. :D

:I had to take out all the terrain and sounds and a lot of triggers and all the sounds to be able to upload it onto this site. Please tell me when you've downloaded it so I can remove it. If you want a full version of it PM me and I'll email the original to you.:
 
T

TaK-MP

Guest
ok i got the screenshots, just a couple things. the variable score is actually named kills, and the trigger actually adds kills to players 1-6 i just said team1 to make less typing lol. i hope these images work :O





EDIT: agh how do you put images into posts correctly? they arent showing for me
 

Tonks

New Member
You have to upload this online to a webhosting site. Look at Mr.Apples's Tutorial to Writing Tutorials. That explains it pretty thoroughly.
 

Sud

"[If life=Dota] I'd have quit long ago" -- Acehart
Or add them as attachments if Mr. Helper has given you enough attachment space. Otherwise hit imageshack
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • tom_mai78101 tom_mai78101:
    I have a GIF though
  • tom_mai78101 tom_mai78101:
    In the GIF, I've configured it so the lower the "Main Value" is, the better. I had to compress it pretty far down though.
  • tom_mai78101 tom_mai78101:
    And this is the thread with the video that shows the wall clip. https://tasvideos.org/Forum/Topics/23453
    +2
  • tom_mai78101 tom_mai78101:
    Hmm, about the Headline News, I noticed threads are being moved into the subforum (Health News, Environmental News, etc.). When that happens, the TH Forum Home page loses the articles, and instead would show old articles posted 1 or 2 weeks ago.
  • tom_mai78101 tom_mai78101:
    What do we do with the Home page?
  • Ghan Ghan:
    I added those forums to the filter for that widget.
  • tom_mai78101 tom_mai78101:
    Oh nice. They're back. Thanks.
  • tom_mai78101 tom_mai78101:
    Now I think it makes more sense for me to put news in their own subforums, without worry.
  • The Helper The Helper:
    Awesome Ghan thanks! I was purposely not moving the first 15 news articles in Headline news to the different subforums but I guess I don't have to do that now?
  • tom_mai78101 tom_mai78101:
    Question: Is there a way to remove thread redirects? It creates a copy of the moved thread and takes up space, and I am leaning towards wanting to remove them in the Headline News. But if they have an expiration date, I guess I'm fine with it.
  • The Helper The Helper:
    If you move a thread please leave a permanent redirect. You can delete any redirects after 6 months. The redirects are left to help Search Engines find the moved content.
  • tom_mai78101 tom_mai78101:
    What if you move the permanent redirect, not the thread?
  • The Helper The Helper:
    I think that works but I have not messed with it. You can delete redirects though if you have to that will not delete the original thread
  • The Helper The Helper:
    if a redirect ends up in the same forum as the post it goes to though I think the redirect drops or fails or something but they are not bugged out and when you are working on an indirect the original post is safe.
  • The Helper The Helper:
    Happy Early Friday :)
    +1
  • V-SNES V-SNES:
    Happy Friday :)
  • tom_mai78101 tom_mai78101:
    Fun Friday for me
  • tom_mai78101 tom_mai78101:
    Happy Fun Friday to all.
    +2
  • The Helper The Helper:
    Happy Sunday everyone!!!
  • V-SNES V-SNES:
    Happy Sunday!!!
    +1
  • jonas jonas:
    Happy monday :p
  • jonas jonas:
    Everyone hates mondays?
    +1
  • The Helper The Helper:
    Happy Tuesday!
  • jonas jonas:
    Happy belated tuesday

    Staff online

    Members online

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top