Mass text replacer in files
This is a tool I made to replace filenames in levels on a large scale, considering half of Maloria's levels were filled with (what I considered) badly named files.
For example, I wanted to replace all occurrences of the text "malinn_sign.gif" from all levels with the text "mal_malinn-sign.gif": PHP Code:
Replaced text 1 times in levels/levels/overworld/mal-g06.nw! Done! Replaced text a total of 1 times!
For this to work, you need to give (npcserver) rw to the submitted folder, as well as it's subfolders. PHP Code:
:D |
Nice job, this is awesome. :)
|
Awesome, thanks!
|
v.cool :D i like ^^
|
I don't like looking back and seeing my Code Library entries being really outdated and some not even working anymore, so I'll start updating them I suppose!
To start off, I've made this function more reliable in it's behaviour. The old code tended to randomly skip text to replace. PHP Code:
|
1 Attachment(s)
x_x I love you too much...
|
All times are GMT +2. The time now is 06:08 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.