HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

codemaker issues

06-03-2006, 04:16 PM#1
Xandramas
Whats wrong with this trigger? All the raw codes work. The code saves and runs sometimes and when i re-load it in world editor it gives me this stupid error again

Collapse JASS:
function HeroSave_InitializeObjects takes nothing returns nothing
 local integer H=CreatePool()
 local integer I=CreatePool()
 local integer A=CreatePool()
 //===============================================================================================
 // Hero Type Pool 
 //
    call PoolAddItem(H,'Hpal') //Paladintest
    call PoolAddItem(H,'H002') //Dark1
    call PoolAddItem(H,'H00A') //Dark2
    call PoolAddItem(H,'H009') //Dark3
    call PoolAddItem(H,'H008') //Dark4
    call PoolAddItem(H,'H00B') //Earth1
    call PoolAddItem(H,'H003') //Earth2
    call PoolAddItem(H,'H005') //Fire1
    call PoolAddItem(H,'H00C') //Fire2
    call PoolAddItem(H,'H00D') //Light1
    call PoolAddItem(H,'H007') //Light2
    call PoolAddItem(H,'H006') //Water1
    call PoolAddItem(H,'H00E') //Water2
    call PoolAddItem(H,'H00F') //Wind1
    call PoolAddItem(H,'H004') //Wind2
    call PoolAddItem(H,'U00G') //Spirit1
    call PoolAddItem(H,'U00E') //Spirit2

 //===============================================================================================
 // Item Type Pool 
 //
    call PoolAddRawcodes(I,"ankh;I00B;I005;I006;I004;l002;l003")
    call PoolAddRawcodes(I,"I001;I009;I008;I00D;I00E;I00H;I00F;I00C;I00G;mnst;will")
    call PoolAddRawcodes(I,"woms;wcyc;tsct;gslv;ofro;amrc;rwiz;ciri")
    call PoolAddRawcodes(I,"tcas;pinv")



 //===============================================================================================
 // Ability Pool (only abilities that might be on saveable heroes and you'd want to save)
 //
    call PoolAddRawcodes(A,"A015;A00T;A014;A012;A00Q" ) //Earth1
    call PoolAddRawcodes(A,"A011;A00Q;A00M;A00U;A000" ) //Earth2
    call PoolAddRawcodes(A,"A012;A00N;A00M;A01B;A014" ) //Wind1
    call PoolAddRawcodes(A,"A00N;A00M;A0EM;A00U;A012" ) //Wind2
    call PoolAddRawcodes(A,"A012;A00O;A00T;A013;A002" ) //Fire1
    call PoolAddRawcodes(A,"A00O;A00M;A00T;A019;A014" ) //Fire2
    call PoolAddRawcodes(A,"A00P;A012;A00T;A014;A004" ) //Water1
    call PoolAddRawcodes(A,"A010;A00P;A00M;A00U;A016" ) //Water2
    call PoolAddRawcodes(A,"A012;A00S;A00M;A012;A014" ) //Light1
    call PoolAddRawcodes(A,"A00S;A00M;A00U;A012;A003" ) //Light2
    call PoolAddRawcodes(A,"A012;A018;A00T;A014;A017" ) //Dark1
    call PoolAddRawcodes(A,"A012;A00R;A00M;A00U;A001" ) //Dark2
    call PoolAddRawcodes(A,"A00Z;A01C;A012;A014;A017" ) //Spirit1
    call PoolAddRawcodes(A,"A012;A01A;A00Y;A00U;A001" ) //Spirit2

                                                        //They don't need to be grouped by heroes
    call PoolAddItem(A,'Aslo') //Slow
    call PoolAddItem(A,'Adis') //Dispel Magic

    call StartHeroSave(H,I,A)

endfunction

//===========================================================================
function InitTrig_Initialize_Objects takes nothing returns nothing
    call ExecuteFunc("HeroSave_InitializeObjects")
endfunction
my problem is with this line call StartHeroSave(H,I,A)
it says its waiting for an action. but this only happens when i reload the world editor... why?

Edited by Blade.dk. Reason: USE JASS TAGS FOR JASS CODE.
06-03-2006, 10:03 PM#2
Vexorian
What do you mean by "reload the world editor"?
06-07-2006, 05:02 AM#3
Xandramas
What i mean is.. its almost like a map protection or something. Any time i open the map from new it gives that error. But if i dont close the already loaded map after I get it to work and save then it has no problems. I only happens when i open the map anew.

--- I have a few skills that repeat for instance the... A012 Would that be the problem?

Collapse JASS:
call PoolAddRawcodes(A,"A015;A00T;A014;A012;A00Q" ) //Earth1
call PoolAddRawcodes(A,"A011;A00Q;A00M;A00U;A000" ) //Earth2
call PoolAddRawcodes(A,"A012;A00N;A00M;A01B;A014" ) //Wind1
call PoolAddRawcodes(A,"A00N;A00M;A0EM;A00U;A012" ) //Wind2
call PoolAddRawcodes(A,"A012;A00O;A00T;A013;A002" ) //Fire1
call PoolAddRawcodes(A,"A00O;A00M;A00T;A019;A014" ) //Fire2
call PoolAddRawcodes(A,"A00P;A012;A00T;A014;A004" ) //Water1
call PoolAddRawcodes(A,"A010;A00P;A00M;A00U;A016" ) //Water2
call PoolAddRawcodes(A,"A012;A00S;A00M;A012;A014" ) //Light1
call PoolAddRawcodes(A,"A00S;A00M;A00U;A012;A003" ) //Light2
call PoolAddRawcodes(A,"A012;A018;A00T;A014;A017" ) //Dark1
call PoolAddRawcodes(A,"A012;A00R;A00M;A00U;A001" ) //Dark2
call PoolAddRawcodes(A,"A00Z;A01C;A012;A014;A017" ) //Spirit1
call PoolAddRawcodes(A,"A012;A01A;A00Y;A00U;A001" ) //Spirit2

Edited by Blade.dk. Reason: USE JASS TAGS FOR JASS CODE.
06-07-2006, 01:44 PM#4
Vexorian
I've never seen that happen, what are the errors?
06-07-2006, 07:31 PM#5
Xandramas
Here u will see what I mean about it. I disabled save triggers so I can save but if u re-enable them and save you will see the error.
Attached Files
File type: w3xElements Open Rpg v035.w3x (731.8 KB)
06-07-2006, 07:36 PM#6
Vexorian
Sure you copied all the required things to custom script section?
06-08-2006, 03:12 AM#7
Xandramas
Everything.

The way i got it to work and save right before was... I took the origional trigger with paladin, arch mage... etc your origional trigger and i copied my new info into your trigger and it saved. It doesnt work anymore. And all I did was copy the info.. I really dont get why it worked before.
06-14-2006, 07:36 AM#8
ventuz
I have been always wanting to make some sort of ORPG type of game with save and load codes. I went took a look, first thing I did is export your triggers and import into a new map. I changed charmap to 32, changed save hero to chat event "-save as exact match" and changed load hero to chat event "-load as exact match" and lastly changed to "Set tmPlayer = (Triggering player)".

I went to test the map, -save success, but -load (/password prompt) doesn't work.. it gave me Error 3... which means "belong to another player". I can't figure out how to remedy it, can anyone explain why it does that? Or point out I do somethin wrong?
06-14-2006, 01:19 PM#9
Vexorian
I can't guess, you'd have to show the modiffied triggers
06-15-2006, 07:13 AM#10
Xandramas
Well the engine has potential but this error is really really really frustrating. I dont know why its doing this I do exactly as your tutorial says. and it works. I install it it works. I put in my information and it doesnt work. whats the point in having a saveload that only saveloads half the time... and vexorian why wont u just download the map i posted and look at it u will find the error and understand what went wrong for anybody else who might have the problem again. Ive tried and tried and tried to fix it and its just problem after problem. I am about to go find a different save system. I would rather have yours though.
06-15-2006, 12:32 PM#11
Vexorian
Ok, I guess that I can load the map in the bugged version of the editor when you use wine on linux
06-15-2006, 01:03 PM#12
Vexorian
It seems to crash when there is an error on linux. I'll have to reboot but later please
06-15-2006, 09:25 PM#13
Xandramas
There is also about a 3 minute pause during the load so if thats what your experiencing its just loading the map. Right when it gets to the O in load
06-15-2006, 09:27 PM#14
Vexorian
It crashes, and when I save (on linux) I am now going to try on windows though
06-15-2006, 09:38 PM#15
Vexorian
I tried to reproduce the error and nothing happens.