• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

C++ [TFS 1.2] getConfigValue

PRLOts

Member
Joined
Jun 24, 2017
Messages
116
Solutions
4
Reaction score
15
Hey Otland!

I have lil break of having "fun" with moving from migration from TFS 0.3.6 to TFS 1.2, anyways:

I have problem with one function, in my previous TFS 0.3.6 was a function getConfigValue and in TFS 1.2 this function is missing or its called different, and when i moved scripts from TFS 0.3.6 to TFS 1.2 I see those errors:

getconfig.png

Question: Is there any way to change for all scripts getConfigValue to a well working function on TFS 1.2? (I was searching :( )

Thanks for help and as always best regards guys ! <3
 
configManager.getString(configKeys.SERVER_NAME)
configManager.getNumber(configKeys.REVENGE_TIME)
configManager.getBoolean(configKeys.STAMINA_SYSTEM)
 
configManager.getString(configKeys.SERVER_NAME)
configManager.getNumber(configKeys.REVENGE_TIME)
configManager.getBoolean(configKeys.STAMINA_SYSTEM)


Thanks for answer, is there way to replace for all scripts getConfigValue to one of this functios?
 
Solution
Thanks for help WibbenZ, you're irreplaceable.

For me in the future or who will have same problem:

Can't change in compact.lua getConfigValue = getConfigInfo, because then scripts who use getConfigInfo are report an error so it has to be change manually in scripts.

Use notepad++ and the function "find and replace" (ctrl+f)
Then look for getConfigValue and replace with getConfigInfo
Also set the directory (your data folder) as the path / folder.
 
Use notepad++ and the function "find and replace" (ctrl+f)
Then look for getConfigValue and replace with getConfigInfo
Also set the directory (your data folder) as the path / folder.

Yee lot of work waiting for me :D Thanks for reply mate ! Best regards :)
 
Back
Top