| 05-31-2010, 10:17 PM | #1 |
![]() Uploaded with ImageShack.us I have tried Vexorian's tutorial on how to fix the errors and my map didn't crash, but it's making my head spin. I do not know how to fix the errors. The errors refer to a line in the box below but that does me no good as I have no idea what trigger in the thousands of triggers I have the error is referring too. I can go threw the triggers one by one and fix them, but I don't understand exactly what I'm fixing. I don't understand JASS either. If this is beyond my skill set, I can upload the unprotected version of the map on here and be eternally grateful to anyone that can help me fix it. I want to update and finish the map as I am still getting about 5 e-mails a day from people asking me when the next version is... Please someone help!!! ![]() BTW using WE Unlimited v1.20 |
| 05-31-2010, 10:36 PM | #2 |
Well, if you used my tutorial correctly, try posting the 5 lines before and the 5 lines after the error'd line, it would at least give us a clue, I think. |
| 06-01-2010, 01:36 AM | #3 |
Ok I can't open the map in newgen because I created the map using WE Unlimited. I did this about a month ago and still have the info from it. I might have did something wrong but I'm not sure. ![]() Uploaded with ImageShack.us Instead of opening it with the NORMAL map editor I did it with WE Unlimited and the list of errors doesn't jump to the actual line. I attached the merged blizzard.j file and a copy of my map unprotected. I don't see what I'm doing wrong ![]() Also, it won't let me download the blizzard.j file from your post, so hopefully I used the most recent one. |
| 06-01-2010, 02:28 AM | #4 |
WEU is hyped to be something useful in the tutorials here and HiveWorkshop, but those tutorials are extremely outdated. In recent patches it is strongly discouraged from using WEU. I will hack away at your code if someone doesn't beat me to it, and tell you what I did to make it work. |
| 06-01-2010, 02:46 AM | #5 |
Thanks man, I appreciate it, but once I've already saved and used the map with WEU I can't use the regular map editor with it correct? |
| 06-01-2010, 03:24 AM | #6 |
Yes, but you should be able to open it in NewGen, and I believe NewGen has a feature that auto-converts your WEU functions (not sure if it's working these days, you'd have to try it to see if it works). NewGen + JassHelper are state-of-the-art. Sadly here, I have to disappoint you. As I cannot open it in NewGen (undeclared trigger functions) and your map script is an ungainly 90,000 lines of code, it would take me weeks to find the source of the error. World Editor Unlimited functions must be manually search & destroyed, so I would tell you to start there by removing all things associated with the add-on requirement of WEU (that external command-utility thing, never had tolerance for it myself). |
| 06-01-2010, 03:57 AM | #7 |
Ya dude this map has had over 3 years of constant work put into it daily. So you can only imagine the amount of triggers involved :( I guess I'll have to try to find what I used from WEU. I have no clue... Assuming it's trigger related. But even if I do that, I won't be able to save the map due to the errors.... So how do I fix it lol ? |
| 06-01-2010, 07:09 PM | #8 |
Ok, so like I said earlier, I have no problem going threw my thousands of triggers one by one and fixing this map manually, but I DON'T know what I need to fix... Can someone please explain what I need to do? |
| 06-02-2010, 02:24 AM | #9 |
functions returning the wrong type of variable (by way of the return bug) JASS:function H2I takes handle h returns integer return h return 0 endfunction And sometimes it will also throw a false positive of functions that have tons of returns within if then else blocks JASS:function FalsePositive takes nothing returns integer if something then return 0 elseif somethingelse then return 1 elseif somethingelseagain then return 2 elseif something2 then return 3 elseif something3 then return 4 elseif something4 then return 5 elseif something5 then return 6 elseif something6 then return 7 elseif something7 then return 8 elseif something8 then return 9 else return 10 endif endfunction |
| 06-02-2010, 03:12 AM | #10 |
Thanks, but is there any way this could be represented in non-JASS? I really don't understand it. Like what type of trigger is the return referring to? |
| 06-02-2010, 03:33 AM | #11 |
3 years working on a map I think you can spend 3 days to learn JASS (or 3 weeks if you suck like i did when i was starting). |
| 06-02-2010, 04:46 AM | #12 |
Oh, your map's in GUI? |
| 06-02-2010, 05:02 AM | #13 |
But if the map is all GUI wouldn't it be easier to just stick with GUI? |
| 06-02-2010, 05:12 AM | #14 |
Taking the easier route won't fix the problem. |
| 06-02-2010, 05:28 AM | #15 |
Ok then is it possible to convert the GUI into JASS? |
