Last Created Unit Into Variable

Tom Jones

N/A
Reaction score
437
Did you remember to create a game cache variable named cscache, or whatever the name is of the variable the function CSCache returns:
Code:
function CSCache takes nothing returns gamecache
    if udg_cscache==null then
        call FlushGameCache(InitGameCache("CasterSystem.vx"))
        set udg_cscache=InitGameCache("CasterSystem.vx")
        call StoreInteger(udg_cscache,"misc","TableMaxReleasedIndex",100)
    endif
 return udg_[B]cscache[/B]
endfunction
The bolded part is the name of the variable you should create. This is taken from Vexorians original script, so I can't say with certainty that it's the name in the script you got, you'll have to check that out yourself. Then create a new game cache and assign that game cache to the game cache variable.
 
S

sinners1234

Guest
I dont understand what you mean this is what my script had

Code:
CSCache initializer :
    function InitCSCache takes nothing  returns nothing
        call FlushGameCache(InitGameCache("cscache"))
        set cs_cache=InitGameCache("cscache")
        set udg_cscache = cs_cache
        call ExecuteFunc("InitArrayIndexes")
        call ExecuteFunc("Pool_SetupCharMap")
    endfunction

Do i create a variable named cscache then set it in a different trigger?

lol i am so confused

Thanks

Sinners
 

Chocobo

White-Flower
Reaction score
409
I dont understand what you mean this is what my script had

Code:
CSCache initializer :
    function InitCSCache takes nothing  returns nothing
        call FlushGameCache(InitGameCache("cscache"))
        set cs_cache=InitGameCache("cscache")
        set udg_cscache = cs_cache
        call ExecuteFunc("InitArrayIndexes")
        call ExecuteFunc("Pool_SetupCharMap")
    endfunction

Do i create a variable named cscache then set it in a different trigger?

lol i am so confused

Thanks

Sinners

Variable Editor -> Create New Variable called cscache and of type gamecache.
 
S

sinners1234

Guest
created the variable and i still get the same errors
any more ideas

Thanks
sinners
 
S

sinners1234

Guest
i made one of both and it still doesnt work :( I have no idea y? I get an error saying something like missing end of line. I get two errors one at the first line and then another one on the last one

Thanks
sinners
 

Tom Jones

N/A
Reaction score
437
Code:
    function InitCSCache takes nothing  returns nothing
        call FlushGameCache(InitGameCache("cscache"))
        set cs_cache=InitGameCache("cscache")
        set udg_cscache = cs_cache
        call ExecuteFunc("InitArrayIndexes")
        call ExecuteFunc("Pool_SetupCharMap")
    endfunction
Who made this? It doesn't work, it expects a local gamecahe variable named cs_cache. Change it to this:
Code:
    function InitCSCache takes nothing  returns nothing
        call FlushGameCache(InitGameCache("cscache"))
[I]        //set cs_cache= InitGameCache("cscache")[/I]
[B]        set udg_cscache = InitGameCache("cscache")[/B]
        call ExecuteFunc("InitArrayIndexes")
        call ExecuteFunc("Pool_SetupCharMap")
    endfunction
The itallic code is excessive, the bolded part is what you need to change.
 

Sooda

Diversity enchants
Reaction score
318
Hm... dosn' t latest Vexorian Caster Systems (Known as CSCache) require Grimoire or WEHelper to implement it. Then you can tick box what says "Don' t allow WE to disable triggers and also you can disable WE syntax check.). I' m pretty positive that you need one of these "add-ons" before you can enable it. Read implementing instructions carefully.
 

Tom Jones

N/A
Reaction score
437
Heh...
>Hm... dosn' t latest Vexorian Caster Systems (Known as CSCache)

CSCache is by far the same as his caster system. And I wouldn't know if you need grimoire or wehelper for the newer versions of his caster system, because I've never used them. However his CSCache system is a simple custom script import.
 

Sooda

Diversity enchants
Reaction score
318
From CSCache 14.3 (Latest) README:
Vexorian said:
The caster system requires you to use JASSHelper which is a WEHelper plugin to save it, you can find
jasshelper at:

http://wc3campaigns.net/vexorian/jasshelper/

Note: At least version 0.9.5.1 is required

If you don't plan using 3rd party tools, avoid installing the caster system. The reasons behind the
usage of JassHelper are making it easier to implement and to give me more flexibility.
***​
** CSCache Implementation
- Open your map (With WEHelper/grimoire)

- If you are updating over a pre 14.0 version, you have to manually delete CSCache from the custom script
section AND the variables from your map.

- If you are updating over version 14.0 or greater, simply remove the CSCache trigger.

- Get to this map and copy the CSCache trigger to your map.
Are you sure you don' t need these "add-ons" ? Maybe your code is valid but CSCache requires these additional small programs to bypass WE syntax check because I remember I had same problem it gave 2 errors when trying CSCache 14.3 without PJASS parser. I mean I' m sure if mistake isn' t in your JASS you need to follow these instructions what came with your CSCache.
 

Tom Jones

N/A
Reaction score
437
Yea, that information is for Caster System and CSCache 14.3. The CSCache in that version is a dynamic integer system, so it doesn't have the debuted function, so we can conclude that sinners1234 uses a old version of the CSCache, a version that uses gamecache for storage, and does not need any third party tool. The new version of CSCache does need wehelper though.
 
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