WC Crashes

Cloud_FF

New Member
Reaction score
5
I know what ou think and I know what you're gonna say. I know the reasons for crashes and I did all that I found that can be done to prevent it but, had little effect.

Firstly I redid all the triggers involving unit movements with the _udg.... script removal for variables. Since there are 7 different paths and spawn locations I have 14 (one for the spawn trigger and one for the pathing triggers for each type) so that they don't mix up, considering the number of units moving along the map.

The thing is the game still crashes. There are also other triggers involving rolling of dice for a chance drop of different items, which appear at the position of the dead units. I use a separate variable there (DropPos) and a removal code (call RemoveLocation(udg_DropPos)).

There are also some triggers involving conditions (if a unit is dead or not) and they have custom varibales too.

Also there are vendor shops and Item Recipes, which are not custom scripted. Could they be the issue? If they are how can I fix them?

Example:

Event:
-Unit - A unit Acquires and item

Condition:
-Or - Any (Conditions) are true
--Conditions
---(Item-type of (Item being manipulated)) Equal to Old Metal Boots
---(Item-type of (Item being manipulated)) Equal to Multi Functional Polisher
--((Hero manipulation item) has item type Old Metal Boots) Equal to True
--((Hero manipulation item) has item type Multi Functional Polusher) Equal to True

Actions:
-Item - Remove (Item carried by (Triggering unit) of type Old Metal Boots)
-Hero - Create Shiny Old Boots and give it to (Triggering unit)

P.S. In this case the Polisher is not removed due to the fact that it's "Multi Functional" and it can be used many times.
 

darkbeer

Beer is Good!
Reaction score
84
hm, i guess you have an infinitive loop somewhere, e.g. a tigger thats executing himself.

your example shouldnt be the problem but maybe some other trigger (if the last 2 conditions arent in the Or - block), did you try disabling one trigger after another to find out which one is causing the problem?

you could try something like this to improve teh code, but actually yours should work fine as well
Code:
Event:
-Unit - A unit Acquires and item
Condition:
((Triggering Unit) has item type Old Metal Boots) Equal to True
((Triggering Unit) has item type Multi Functional Polusher) Equal to True
Actions:
-Trigger Disable (This Trigger)
-Item - Remove (Item carried by (Triggering unit) of type Old Metal Boots)
-Hero - Create Shiny Old Boots and give it to (Triggering unit)
-Trigger enable (This Trigger)
 

Flare

Stops copies me!
Reaction score
662
[del]Thats because everytime your hero has an item, and you have the Polisher, you are being given boots (which, in turn, trigger your event).

All your conditions are in an Or block. You only need the first 2 conditions (hero has item A, hero has item B) and they must both be true.[/del]

EDIT: Ugh... please put that code into code tags, it's hard to tell what is/isn't in the Or block

Try disabling and re-enabling your triggers one-by-one and see when it stops/starts crashing
 

Cloud_FF

New Member
Reaction score
5
This will literally take me 1 day since the map is 4,6 MB and takes a while to load. And there are 400-500 triggers.
 

Cloud_FF

New Member
Reaction score
5
No I don't get boots when I have a polisher. All my Item triggers execute correctly as they are. There are no miss created items, nor items that are not created. In this case the polisher just remains there and when and only then when the old boots appear the new ones are created.

P.S. How do I put it in code?

P.S. 2 The game crashes when I leave it roll without using those triggers. Just leaving the attackers attack and run along. I ran a specific test without using the heroes at all.
 

Cloud_FF

New Member
Reaction score
5
Code:
Event:
Unit - A unit Acquires and item

Condition:
Or - Any (Conditions) are true
  Conditions
    (Item-type of (Item being manipulated)) Equal to Old Metal Boots
    (Item-type of (Item being manipulated)) Equal to Multi Functional Polisher
((Hero manipulation item) has item type Old Metal Boots) Equal to True
((Hero manipulation item) has item type Multi Functional Polusher) Equal to True

Actions:
Item - Remove (Item carried by (Triggering unit) of type Old Metal Boots)
Hero - Create Shiny Old Boots and give it to (Triggering unit)
 

Cloud_FF

New Member
Reaction score
5
I'll first run tests with all drops disabled then a test with all recipes disabled then I'll turn all on and do the On/Off trigger suggestion.
 

Cloud_FF

New Member
Reaction score
5
Well I did the tests, the problem is not in the Item-related triggers (drop, uses, combinations). So I need to find where the problem is.

The other set of triggers are triggers related to creating heroes and setting the levels of spells (which are upgrade-learned).
There are triggers which make units cast spells when they are created. For example a Frozen Minion is summoned and it is ordered to cast "Frost Armor".
There are time related triggers. Every 5 mins the rank of an ability for all enemy units is increased by 1.
There is a trigger which uses "Pick all players and do Actions'' (Bounty on for picked player).
There are triggers which "Pick all units and do Actions".
There are triggers related to "Unit comes within range of Unit".
 

tom_mai78101

The Helper Connoisseur / Ex-MineCraft Host
Staff member
Reaction score
1,710
Upload your map to a file sharing site, then post the link. We'll help you with it, just as long as our computers are faster than yours.
 

tom_mai78101

The Helper Connoisseur / Ex-MineCraft Host
Staff member
Reaction score
1,710
By the looks of it, you need to wait.

Try RapidShare or MegaUpload or FileFront, if you're desperate.

Those are good.
 

Cloud_FF

New Member
Reaction score
5
*Link Removed*

Please do not steal the map. I've worked on it for half an year (not every day, but when I feel like) and I've put a lot of effort in it. Either way there are some important triggers which haven't been created yet.

I have tagged the triggers which I have tested as safe with an "OK" in the trigger category name.

The map isn't too complex, it just has a lot of imported files (icons mainly), the only possible lag points are when units are created for the first time. After that everything runs smoothly.
 

tom_mai78101

The Helper Connoisseur / Ex-MineCraft Host
Staff member
Reaction score
1,710
The map isn't too complex, it just has a lot of imported files (icons mainly), the only possible lag points are when units are created for the first time. After that everything runs smoothly.

Place those units in the map, and then after an elapsed time of 0 seconds, use a trigger to remove it in-game.

It's something other mapmakers done in the past to fix that lag point.
 

Cloud_FF

New Member
Reaction score
5
Well you have the map now, feel free to make edits and to note them somewhere so I'd know what has been changed.
 

Cloud_FF

New Member
Reaction score
5
Well either way, anyone have any ideas how to fix the "Pick All units"? Apparently it is a potential crash point.
 

Cloud_FF

New Member
Reaction score
5
Crash problem solved. The bugged trigger was one which animated a buff when a unit enters a rect.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top