HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

lol problem with save/load :P

02-05-2006, 02:31 PM#1
SrPrez
Well its probably super noob or w/e, but Ive tried implementing ure save/load code like 4 times, always yielding the same error. It said come here in the text if it kept failing, well so here I am. Anyways, its the very beginning when you put the ascii functions + codemaker functions into your maps custom script directory.. simple enough right? uhhh well after I put those two in I get like 7000 compile errors in my map :(, ive copied the vars and stuff, any help would be super nice :P thx
02-06-2006, 12:42 PM#2
Vexorian
copied the variable?
02-06-2006, 10:11 PM#3
SrPrez
By that I assume you mean the variable copy trigger? (unless it doesnt have all the vars needed in it :|) and yea I brought that to my map, maked sure the variables got copied in, then deleted it.
02-06-2006, 11:05 PM#4
Vexorian
well it should work all right. So you made a mistake somewhere . If you are able to save the map with errors and send it to me or something do so
02-07-2006, 02:42 PM#5
SrPrez
thx, errr where should I send it to w/ an attachment? (or shall I upload it somewhere and give you a link)
02-08-2006, 01:38 AM#6
Vexorian
Depends on how many people you would like to be able to see the map
02-08-2006, 04:12 PM#7
SrPrez
preferably just you :P
02-08-2006, 04:24 PM#8
Vexorian
email it then. I 'll pm you the mail address
02-08-2006, 10:15 PM#9
SrPrez
Msg sent :P, btw thx again for doin this, ill give u rep now despite whether u can fix my stupidity or not :P just cuz uve been so helpful
02-09-2006, 01:25 AM#10
Orc Dork
Trust me, Vex has more rep that you can imagine. Thats because he does so much helpful stuff like this.
02-09-2006, 01:28 AM#11
Vexorian
Seems codemaker conflicts with WEU.

Well it is all about this WEU function :

Collapse JASS:
function AsciiCharToInteger takes string char returns integer
local string charMap = " !\"#$%%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"
local string u = SubString(char, 0, 1)
local string c
local integer i = 0
if u == "" or u == null then
return 0
elseif u == "\b" then
return 8
elseif u == "\t" then
return 9
elseif u == "\n" then
return 10
elseif u == "\f" then
return 12
elseif u == "\r" then
return 13
endif
loop
set c = SubString(charMap, i, i + 1)
exitwhen c == ""
if c == u then
return i + 32
endif
set i = i + 1
endloop
return 0
endfunction
It is included both in WEU and codemaker .

I'll have to update the codemaker and say something about the % bug and also rename that function.

If you locate it and delete the first function (WEU's) from custom script section it fixes the compile error.

You can do so manually or:
newcustomscriptsection.zip
download this file that includes a text file with a a working custom script section for your map.

I'll try to locate pitzermike and talk. I think that all weu functions should have a distinctive preffix, probably weu_ or maybe zz_ since that preffix is used by its variables already.
Attached Files
File type: zipnewcustomscriptsection.zip (82.5 KB)
02-09-2006, 01:55 PM#12
SrPrez
Ahhhh thx so much man this clears it up, hopefully it can get straigtened out with pitzer, cuz I have a love affair with WEU lol and itd prob help out anyone else that has a problem similar to this

02-11-2006, 08:24 PM#13
SrPrez
errr so close to freedom :(, got a new problem now... Basically when I run my map at the start theres a check for if players are in the game, normally works. I think ive narrowed it down to "Player slot status = is playing" doesn't work anymore with that new script section. I dunno if it had something to do with that function in WEU but its a simple trigger, that now doesn't seem to pick up when that status is playing. IE. Simple, if the player is in the game create a hero selector. Doesnt work nemore :P anyways itd be great if u could help with this one ;/ or at least verify that it has to do with those WEU functions.

Thx
02-11-2006, 08:40 PM#14
Vexorian
I seriously can't see any relationship with those. Shall testing on the old map you sent me reproduce the bug?
02-12-2006, 06:50 PM#15
SrPrez
If you implement that script you gave me into the map and test it, it should yield the bug. I also have the codemaker_init call at the start... so with those 2 things it should let u see whats goin on.