Originally Posted by
Darkleth
Ok steps do doing this (keep in mind i am NOT taking credit for this technique)
Create a new file called CarboniteRegister.lua and copy in the code i posted
Put the name and realm of the character you need to validate for.
Add CarboniteRegister.lua to the Carbonite.toc
Log on and sit around. The validate pop up shouldn't pop up
Quit wow.
Remove CarboniteRegister from Carbonite.toc
Good to go
This isn't working for me either. Here's what I have
Code:
my_realmName = "";
my_playerName = "";
my_oldLoadString = _G.loadstring
function my_ISV(var)
return 1;
end
function my_GRN()
return my_realmName;
--return GetRealmName();
end
function my_UN(var)
if var == "player" then
return my_playerName, nil;
else
return UnitName(var);
end
end
function my_loadstring(str)
local newStr = string.gsub(str, "issecurevariable", "my_ISV");
newStr = string.gsub(newStr, "GetRealmName", "my_GRN");
newStr = string.gsub(newStr, "UnitName", "my_UN");
return my_oldLoadString(newStr);
end
_G.loadstring = my_loadstring
And my ToC looks like:
Code:
## Interface: 30000
## Title: Carbonite
## Version: 1.9
## Author: Carbon Based Creations, LLC
## Notes: Copyright 2007-2008 Carbon Based Creations, LLC
## DefaultState: Enabled
## LoadOnDemand: 0
## SavedVariables: NxData, NxCombatOpts, NxMapOpts
## SavedVariablesPerCharacter: NxCData
CarboniteRegister.lua
Localization.lua
Carbonite.lua
Carbonite.xml
Any suggestions?
Edit: After reading a bit more of the original post, I realised I may have been editing the wrong line. I've tried also changing the "GetRealmName" and "UnitName" to the my server / Character names as well, i've also tried using the names that the addon is actually registered to.
If its working for you, would you mind posting exactly what yours looks like, both the ToC, and the other file? Thanks a lot.