wc3edit.net
https://forum.wc3edit.net/

World editor's added code screws things up
http://forum.wc3edit.net/deprotection-cheating-f64/world-editor-s-added-code-screws-things-up-t35220.html
Page 1 of 1

Author:  BzB [ July 20th, 2018, 8:46 pm ]
Post subject:  World editor's added code screws things up

So I have a map with copied code in the world editor.

It's throwing me errors for two functions which appear in the trigger editor (code I copied):
config, and InitCustomTeams.

These two functions are also added automatically to the script from what I understand. When an error is thrown, it's for "Symbol already defined" (and this causes more errors).

problem is, each pair of functions (config in the code and auto-added config; InitCustomTeams in the code and auto-added one) are very similar, but very slightly different.

I've tried to delete one of them (InitCustomTeams), but now I'm getting an error that it's not defined (it's called in the auto-generated code, as well as the one that's part of the trigger, both in config I think).

So I either get that it's defined too many times, or not at all.

How the hell do I get out of this? which version of the code do I need? is the auto-added code the default or is there some way to control it? because it's almost identical to what was in the original war3map.j but a bit different.

I would guess that the added code is created based on war3map.w3i since it contains the player aliance/start positions that are in the data, but I don't want to replace it with an empty one because then I wouldn't be able to debug the code in the ShapeCraft world editor...

Thank you!

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/