Bribe
vJass errors are legion
- Reaction score
- 67
Once again, Jesus4Lyf proves to be a smart cookie.
Solved!
Solved!
This is beginning to ruin everything I've been striving to accomplish.
Here's what's happening: struct parent doesn't have any business with calling the "guy" method. Only a child struct wants that method. Problem is that importing a module into the child struct, even though that module contains "guy", nothing happens. The message "guy" never gets displayed.
• By putting the module in the parent struct, "guy" gets displayed.
• By putting guy into the child struct directly, "guy" gets displayed.
• By omitting "defaults nothing" from the interface, a compile-error says "guy" does not exist.
• By viewing this in the war3map.j file, the trigger arrays which are supposed to launch "guy" are never assigned to a trigger.
JassHelper doesn't recognize the module at any point in the compile process as an actual part of the child struct.
I'm going to switch to a textmacro now, see if that works, but I'm helping the community be aware of this glitch.]
JASS:
module bull
method guy takes nothing returns nothing
call BJDebugMsg("guy")
endmethod
endmodule
interface console
method guy takes nothing returns nothing defaults nothing
endinterface
struct parent extends console
static method onInit takes nothing returns nothing
call thistype(0).guy()
endmethod
endstruct
struct child extends parent
implement bull
endstruct
Here's what's happening: struct parent doesn't have any business with calling the "guy" method. Only a child struct wants that method. Problem is that importing a module into the child struct, even though that module contains "guy", nothing happens. The message "guy" never gets displayed.
• By putting the module in the parent struct, "guy" gets displayed.
• By putting guy into the child struct directly, "guy" gets displayed.
• By omitting "defaults nothing" from the interface, a compile-error says "guy" does not exist.
• By viewing this in the war3map.j file, the trigger arrays which are supposed to launch "guy" are never assigned to a trigger.
JassHelper doesn't recognize the module at any point in the compile process as an actual part of the child struct.
I'm going to switch to a textmacro now, see if that works, but I'm helping the community be aware of this glitch.]