HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Making map 1.24 usable and removing WEU advanced triggers.

02-22-2011, 09:01 PM#1
Dp1983
I've done so much work on my map but it won't load in game or in the normal editor or NewGen.

Can someone please help me convert it into a useable form? Do I have to remove these advanced triggers? Is there anyway I can just copy my triggers and terrain over?

Thank you for any help.
02-22-2011, 09:16 PM#2
tooltiperror
Hello again.

I'm not sure the question. Are you trying to remove Return Bug instances? If you are, you'd need to look in your script for this script,

Collapse JASS:
function H2I takes handle h returns integer
    return h
    return 0
endfunction

// And Replace it with:

function H2I takes handle h returns integer
    return GetHandleId(h)
endfunction

If you are trying to get rid of WEU GUI triggers, you'll need to find those specific triggers, delete them, and when they're all gone you should be able to open your map in NewGen.
02-23-2011, 05:09 AM#3
Dp1983
Thanks I use an old System in my map so I am probably going to need that.

I decided to integrate WEU with NewGen but when I try to save JASSHELPER finds sytax problems inside the WEU advanced trigger script. I don't know what to do about this.

says:

Identifier redeclared: "Commander"
previously declared here

Thanks again for any help.


Found this link to someone with my exact problem. Is this just bad WEU script or what? Why wasn't it a problem before?

http://www.thehelper.net/forums/show...r-from-the-WEU
02-23-2011, 05:33 AM#4
DioD
simple replacement wont work, main problem - integer to type conversion.
02-23-2011, 09:55 AM#5
Anitarf
As that thread you linked to points out, the solution to this particular problem is simple: simply find the function TributeGold (assuming the error you get is exactly the same as in that thread) and change all instances of "Commander" in that function to "Commander1" or something like that. This will eliminate the conflict between the function argument "Commander" (which will now be renamed) and the function "Commander" (which will remain the same).