1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

Is there a specific reason CW saves by Faction Name and not Faction ID?

Discussion in 'Discussion' started by ZeMysticalTaco, Oct 23, 2014.

  1. ZeMysticalTaco

    ZeMysticalTaco yo i'm a taco have some lunch Clockwork Customer

    IE it saves as Metropolice Force and not FACTION_MPF or MPF

    So if you change a faction name it wipes all the characters.

    Kind of rude.
     
  2. duck

    duck Phant0m Legend

    FACTION_MPF is Metropolice Force. I do see that this may be a problem though.
     
  3. FACTION_MPF is just a global variable that stores the faction name in it. Makes code a bit more abstract in terms of faction name changes and allows plugins to work on servers that have different names for the same faction without having to be editted.

    A little bit weird that factions don't use uniqueID's like items do, but to be honest it's not that big of a deal as it's easy enough to make factions show up as a different name without actually changing their name (just got to change how they show on scoreboard and character selection, pretty much).
     
  4. But that unwhitelists everyone unless you update all database stuff as well.
     
  5. duck

    duck Phant0m Legend

    https://dl.dropboxusercontent.com/u/32687773/renamefaction.zip

    1. /RenameFaction "Original Name" "New Name"
    2. Stop server.
    3. Go to the faction file and change the name.
    4. Restart server.

    Backup your database just to be safe.
     
  6. ZeMysticalTaco

    ZeMysticalTaco yo i'm a taco have some lunch Clockwork Customer

    It also deletes all character entries.

    It just seems making edits to the schemas via plugin/otherwise alot more easier. Maybe better indexing too. I don't know.
     

Previous Readers (Total: 0)