HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Kattana's Handle System and Vex's Caster System

06-21-2006, 02:21 PM#1
Hero12341234
Ok....i am having a problem between The Handle System and the Caster system...

I first created spells with the no custom script...but then needed the handle system so i put it in the map script did w/e it said to do and it worked...now i have at least created 2 simple spells from the Caster System(made by Vexorian)
so i thought of implementing it in my map....

BUT, before i implemented it i had spells using the Handle SYstem(by Kattana)

I implemented the caster system, and it working perfectly(the implementation part)
but now idk why it keeps giving me errors in the spells the kattana's handle system was used in..is there an apparent reason why this is happening?

my theory is that the Caster and Handle system can't work together...so do i have to change all those spells using the Handle System to use the CS System instead?

Ty for you help

-Hero12341234

P.S. could this be a bug that was not founded yet?

and yes i searched for the question and found nothing which is why i made this
06-21-2006, 02:34 PM#2
Vexorian
obvious question would be does the custom script section have both function packs? Also what is the error? I have had handle vars and caster system in my own map at the same time without problems
06-21-2006, 02:38 PM#3
Hero12341234
Yes the custom script has both function packs your Caster System and the Handle Custom Script....now for the errors...it says that everything i have in jass is an error..including the Players Script located in the map inti. and other scripts that only exisit in the map header.
EDIT
Here u can see the errors as screen shots....

http://www.wc3campaigns.net/pastebin...13fa644be4203d
06-21-2006, 03:38 PM#4
Vexorian
It seems you have CS_H2I twice, but well you can copy your custom script section to a txt file and attach that file so I can figure out the actual problem
06-21-2006, 03:44 PM#5
Hero12341234
Here ya go the link to the pastebin with the .txt file...

http://www.wc3campaigns.net/pastebin...65448dacdb71d6
06-21-2006, 03:54 PM#6
Vexorian
I can't find anything that could cause problems, what is the first error? I only need the first error and 3 lines:

- The Line before the line with the first error
- The line with the first error
- The line after the line with the first error
06-21-2006, 04:01 PM#7
Hero12341234
Above Error 1 is this

//===========================================================================
// Trigger: CSCache
//===========================================================================
function InitTrig_CSCache takes nothing returns nothing
endfunction

//***************************************************************************
//* *
//* CSCache 13.4 *
//* ¯¯¯¯¯¯¯¯¯¯¯¯ *
//* Requires: *
//* ¯¯¯¯¯¯¯¯¯ *
//* - The functions *
//* · Select all the text from //##Begin to engine## *
//* · Copy it to clipboard *
//* · Go to your map and open its custom script section, and paste *
//* *
//* - Required Variables (Make sure to have them) *
//* *
//* gamecache udg_cscache *
//* *
//* Note: The "Needed Variable CSCache" Trigger allows you to instantly *
//* copy the variable to your map instantly *
//* *
//***************************************************************************


//##Begin of CS Gamecache engine##
//=================================================================================================
// GameCache - Return bug module : Without gamecache or return bug, JASS would be a
// retarded-limited scripting language.
//
//=================================================================================================
// a.k.a H2I, changed name to CS_H2I to prevent conflicts with other systems (I intended this
// system to be easy to copy
//

that is above error 1 along with the whole caster system...


Error 1

Expected name

function CS_H2I takes handle h returns integer

Error 2

Expected Name

return h

Error 3

expected a code statment

return 0



and thats is only 3 of 2990 errors


if u need the map i will be more than glad to send it to if it will help
06-21-2006, 07:01 PM#8
Vexorian
Why did you paste the CSCache trigger? You already had CSCache in custom script section
06-21-2006, 09:23 PM#9
Rising_Dusk
Be sure you didn't accidentally paste a function twice or something.
Stuff like that usually causes errors that high up in the script.
I beleive that is what the problem is in that you have an empty InitTrig for the CSCache and you also likely have it somewhere else.

That problem also always gives the error of "expected a name", so it would make sense.

EDIT: Upon further investigation, I actually think that is what Vex said in his post. :3
06-22-2006, 06:06 PM#10
Hero12341234
Ok so delete the CS Cache trigger?

cause i have it in my custom map script alrdy and i will check for double of scripts ty...(hope it helps)

EDIT:

YES TY u guys so much the problem was i never deleted the trigger with the CS Cache and the Caster System...now i works...ty u so much ..and ty Vexorian for the helpful system


+rep to both of u