X
Xikini
Guest
Reason for script.
I write down all of the storage values I have used inside scripts, so I never have to worry about which ones are used and not used. My friend doesn't always write them into the text document though. And the random people that helped with the project in the past never did either, they just used storage values willy-nilly.
I want to write into a text document all storage values that are called in the server.
I've already searched using Notepad++ in all documents for key words, and believe I have found most/all of the storage values used.. But I want a back-up assurance, in case I missed anything.
To the specifics.
Looking for a script to install in the server. (TFS 0.3.7)
Although, I expect this script would only require actual lua functions, figured I'd state the tfs version. xD
Specifically wanting this for the functions..
(These would be two separate text documents)
Script needs to monitor all function calls, and when certain function calls are called, write them to a text document.
In my case, I want it to grab the storage number used in the above functions, and the directory path from where the function call originated.
Best case scenario, the script would be able to search for specific information inside the text document, before writing the information into it, so there are no duplicate entries.
In a perfect scenario, the script would also be able to organize the information numerically and alphabetically.
I hope this is enough information for someone to help.
I'm certain I'm not the only person in a similar situation, so this script would benefit a lot of people.
I'm not wanting to parse all documents, as I've already done that.
This is a back-up assurance, in case someone has set-up a function to use multiple storage values, without actually declaring those storages.
If you have any specific questions, feel free to PM me, or post below.
Thanks for reading!
Xikini
I write down all of the storage values I have used inside scripts, so I never have to worry about which ones are used and not used. My friend doesn't always write them into the text document though. And the random people that helped with the project in the past never did either, they just used storage values willy-nilly.
I want to write into a text document all storage values that are called in the server.
I've already searched using Notepad++ in all documents for key words, and believe I have found most/all of the storage values used.. But I want a back-up assurance, in case I missed anything.
To the specifics.
Looking for a script to install in the server. (TFS 0.3.7)
Although, I expect this script would only require actual lua functions, figured I'd state the tfs version. xD
Specifically wanting this for the functions..
(These would be two separate text documents)
Code:
doPlayerSetStorageValue
doCreatureSetStorage
setPlayerStorageValue
Code:
setGlobalStorageValue
doSetStorage
In my case, I want it to grab the storage number used in the above functions, and the directory path from where the function call originated.
Code:
45629 | data/actions/scripts/bbbbbb.lua
45629 | data/creaturescripts/scripts/aaaaaaaa.lua
45901 | data/movements/scripts/aaaaa.lua
45629 | data/creaturescripts/scripts/aaaaaaaa.lua
45629 | data/creaturescripts/scripts/ggggggg.lua
45157 | data/talkactions/scripts/dddddddd.lua
44289 | data/weapons/scripts/ttttttttt.lua
45629 | data/creaturescripts/scripts/aaaaaaaa.lua
48295 | data/spells/scripts/sorcerer spells/uuuuuuuu.lua
45629 | data/creaturescripts/scripts/aaaaaaaa.lua
Best case scenario, the script would be able to search for specific information inside the text document, before writing the information into it, so there are no duplicate entries.
Code:
45629 | data/actions/scripts/bbbbbb.lua
45901 | data/movements/scripts/aaaaa.lua
45629 | data/creaturescripts/scripts/aaaaaaaa.lua
45629 | data/creaturescripts/scripts/ggggggg.lua
45157 | data/talkactions/scripts/dddddddd.lua
44289 | data/weapons/scripts/ttttttttt.lua
48295 | data/spells/scripts/sorcerer spells/uuuuuuuu.lua
In a perfect scenario, the script would also be able to organize the information numerically and alphabetically.
Code:
44289 | data/weapons/scripts/ttttttttt.lua
45157 | data/talkactions/scripts/dddddddd.lua
45629 | data/actions/scripts/bbbbbb.lua
45629 | data/creaturescripts/scripts/aaaaaaaa.lua
45629 | data/creaturescripts/scripts/ggggggg.lua
45901 | data/movements/scripts/aaaaa.lua
48295 | data/spells/scripts/sorcerer spells/uuuuuuuu.lua
I hope this is enough information for someone to help.
I'm certain I'm not the only person in a similar situation, so this script would benefit a lot of people.
I'm not wanting to parse all documents, as I've already done that.
This is a back-up assurance, in case someone has set-up a function to use multiple storage values, without actually declaring those storages.
If you have any specific questions, feel free to PM me, or post below.
Thanks for reading!
Xikini