I need to edit to all character files
#1

I got a server and I 've got 20.000 Character files on my Server.
So I found a bug and I should edit all character files.I will delete my all car mods on character files.

it's like this ;

Код:
vModSlot1=0
vModSlot2=1033
vModSlot3=1026
vModSlot4=0
vModSlot5=0
vModSlot6=1029
vModSlot7=1080
vModSlot8=0
vModSlot9=1087
vModSlot10=1169
vModSlot11=1140
vModSlot12=0
vModSlot13=0
and I should edit them to 0
I try to use notepad ++ but I can't use it for that. So I need a extra program for this

I need this :

vModSlot2=* (But I can't use joker in notepad plus)

change it to
vModSlot2=0

I'M SORRY FOR MY ENG. BUT YOU CAN UNDERSTAND ME . Thanks
Reply
#2

Tick "regular expressions" in the notepad++ search dialog. Then search for something like "vModSlot2=[0-9]+" ([0-9]+ stands for "one or more numbers")
However be sure to always backup your files, you probably already did, but mentioning this anyways.
Reply
#3

If you were to do it manually for all those 20K files then at least you have something to do xD However, you can use the pawn language or any other scripting language that opens files and read the file into your script, change all values and save the file back. If you do this then you would only spend a little time to write the actual code and then all the work will be done for you in about a few seconds
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)