Unit Creation Error

WarLuvr3393

Hmmm...too many things to play (WoW, COD4, WC3)
Reaction score
54
There was an error in the generated map script where the units are created at certain rects. Take a look at the sample:

Code:
//***************************************************************************
//*
//*  Unit Creation
//*
//***************************************************************************

//===========================================================================
function CreateUnitsForPlayer0 takes nothing returns nothing
    local player p= Player(0)
    local unit u
    local integer unitID
    local trigger t
    local real life

    set gg_unit_h000_0011 = CreateUnit(p , 'h000' , - 2905.4 , - 3069.9 , 270.000)
endfunction

For some reason, it's giving me an error stating the variable "gg_unit_h000_XXXX" was NOT declared and these units are currently pre-placed on the map.

What's the problem here?
 

WarLuvr3393

Hmmm...too many things to play (WoW, COD4, WC3)
Reaction score
54
try to make a local (this from a noob lol! :D)

JASS:
local region unit
set unit = CreateUnit(p , 'h000' , - 2905.4 , - 3069.9 , 270.000)

You don't understand, that's the script generated from the editor. I'd have to save the map, open it up with winmpq, extract the .j file, edit the locals, save it, then stick it back into the map.
 

Trollvottel

never aging title
Reaction score
262
i had a similar error like this before, the only difference was it was about items. so i removed all this items, saved the map closed it reopened it and placed the items again. it worked. but maybe someone else has a better solution
/edit: 1000th post ^^
 

AdamGriffith

You can change this now in User CP.
Reaction score
69
@ Flare
I was just saying, why would you try to overwrite it? =S
Maybe that's what is causing problems?

EDIT:
OH! I understand now. No idea, sorry.

EDIT2: Is this upon save? Or are you clicking the syntax check button thingy?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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