HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trouble compiling map with CS 14.2

01-17-2007, 09:53 AM#1
Moss
I just upgraded my map from 13.9 to 14.2 of the caster system. When I try saving the map it says "private outside library/scope definition", referring to the line that says "private timer array T" in the following code.

Hidden information:
Collapse JASS:
    // Random Groups
    integer array gg_rg_000
    integer array gg_rg_001
    integer array gg_rg_002
    integer array gg_rg_003
    integer array gg_rg_004

        gamecache               cs_cache   = null
        integer array           cs_array1
        integer array           cs_array3
        integer array           cs_array2
        integer array           cs_freeindexes
        integer array           cs_pairx
        integer array           cs_pairy
        integer array           cs_freepairs


        gamecache               udg_cscache = null //udg_ for compat!

        private timer array T
    private integer N = 0
        //
        // Caster Unit type rawcode  (changes betwen maps, always use it inside '')
        //
        constant  integer    cs_CasterUnitId         = 'e001'


Of course the problem line is within a library, I copied the whole Documentation category from the Caster System map so I don't know what the problem is.
01-17-2007, 12:00 PM#2
Vexorian
Disable WEHElper's global merge preprocessor.
01-17-2007, 07:37 PM#3
Moss
Oh that was easy. I kinda left the JassHelper instructions before that part about sorting the preprocessors, but I don't see where it says to disable the WEHelper Globals thing.
01-18-2007, 01:08 AM#4
Vexorian
It doesn't since Jasshelper is supposed to be called before that preprocessor but it doesn't seem to work, I guess I'll have to add the advice to the readme
01-18-2007, 06:26 AM#5
Moss
Actually I just tried enabling the built-in globals preprocessor and it seemed to save fine. I think the problem like I said was that I skipped that part of the instructions about ordering the preprocessors the first time I read the instructions.