Author Topic: Item Name Change  (Read 1536 times)

Okay, so I was wondering, how do you change the name of a weapon?

Is this the right area?

Code: [Select]
uiName = "Classic A.Rifle";

uiName refers to the name that it appears as in your inventory, I think you have to change more than just that for it to be fully changed...there should be an event name for the addon that you can change.
« Last Edit: December 21, 2011, 12:01:11 AM by FFSO »

I'm pretty sure just changing the uiName works.

uiName refers to the name that it appears as in your inventory, I think you have to change more than just that for it to be fully changed...

Well, I looked at the file, and found that everyting else with the "Classic A. Rifle" name has to do with projectiles, damage, icons, etc.

Okay, so I'll try this. Hopefully I won't have to go deep into the script and do a mass overhaul just for a name rewrite.

if you're using notepad just use the replace function and replace the name of everything with yours

If you change only the uiName, won't datablocks like projectiles and sounds be overwritten if you have both the original and renamed gun?

if you're using notepad just use the replace function and replace the name of everything with yours

Okay. So you're saying replace anything that says "Classic A. Rifle" with my own name? Wowz.

Anyway, I can't seem to modify it. I'm using WordPad to view/modify it. When I go to save it, it says I can't save the changes because the file is "Read-Only."

Help?

*Bump*

How do you get past the "Read-Only" problem?

1. Don't use WordPad.
2. You have to edit files outside of a zip.

Sorry to bump this topic but, I did it.


1. Don't use WordPad.
2. You have to edit files outside of a zip.

Chrono, you can still use WordPad to change the coding in a script. I achieved this by:

1. Changing the uiName

2. Saving the WordPad document SOMERWHERE ELSE (not trying to overwrite the original)

3. Then inserting it into the Skins_RiflesT2 with the same name, thus overwriting the original script WITHOUT encountering the "Read-Only" problem.


You are correct though on step your step 2, Chrono.

I like to use 7zip so I can edit files inside the zips

I like to use 7zip so I can edit files inside the zips


You can do that with Winrar.

You can do that with Winrar.
so? I said I like to use 7zip to do that I never said "Winrar Can't save files inside zips"

so? I said I like to use 7zip to do that I never said "Winrar Can't save files inside zips"
This topic isn't about what you like anyways.

He made a simple suggestion for a way to edit files inside an archive. Give him a break.