care_police wrote:Weirdly, when I try adding the code like i usually do with another cheatpack, with this one i'm getting a random error while trying to host the game. basically it's an empty messagebox with a red !. any ideas ?
here's my .j file + map in CC, maybe you can see something I don't.
Thanks again!
Usually map script is too big, so when someone runs a script optimizer on it, it rename some integers, like
- Code: Select all
Before optimization process
integer map_exp = 0
After optimization process
integer m = 0
And on very rare cases, these integers get the same names as JJCP's integers, you can see that on line
69410- Code: Select all
function r2r takes unit T_x,integer IDo returns real
return HRv[(GetUnitUserData((T_x)))]*(15000.+2.5*vvo((GetUnitUserData((T_x)))))
endfunction
You can see that this function name is "r2r", but theres the same name on a real from JJCP's globals, line
11314- Code: Select all
real r2r
When that happens, you can do two things: Use a version of JJCP that has mostly unique names for integers and functions; Optimize map again so you can get unique names again.
Long time ago i made two different versions of JJ's CP with every name renamed, you can download it from attachment here.
Good luck.
You do not have the required permissions to view the files attached to this post.