/REMOVESUBFACTION not working

Issues with the server software (not campaign)

Moderators: Torren, Moderators

Post Reply
User avatar
TigerShark
Mekwars Server Operator
Posts: 678
Joined: Wed Feb 24, 2010 8:28 am

/REMOVESUBFACTION not working

Post by TigerShark » Wed Mar 08, 2017 7:04 am

As the title suggestions, the /REMOVESUBFACTION command is not removing sub-factions.

Spork
Mekwars Developer
Posts: 3868
Joined: Wed Feb 13, 2008 10:23 pm

Re: /REMOVESUBFACTION not working

Post by Spork » Wed Mar 08, 2017 4:31 pm

Are there errors thrown?
Never had much, grew up with nothing
But the music, well it was something
Been down and out, I've been on top of the world,
World that keeps on spinning on a turntable.

User avatar
TigerShark
Mekwars Server Operator
Posts: 678
Joined: Wed Feb 24, 2010 8:28 am

Re: /REMOVESUBFACTION not working

Post by TigerShark » Wed Mar 08, 2017 5:48 pm

No, no errors at all. It states "Subfaction (whatever) has been removed" but it's always there in the list when you check.

User avatar
Tuco
MegamekNET Campaign Operator
Posts: 2783
Joined: Wed Feb 13, 2008 10:23 pm

Re: /REMOVESUBFACTION not working

Post by Tuco » Thu Mar 09, 2017 9:38 am

There once was a similar issue with the /deleteaccount command, where you could enter any (incorrect and not existing) parameter and response still was that it worked.

Can you please post what you exactly entered?
When the injustice is great enough, Justice will lend me the strength needed to correct it.
None may stand against it.
It will shatter every barrier, sunder any shield, tear through any enchantment and lend its servant the power to pass sentence.
Know this: there is nothing on all the Planes that can stay the hand of justice when it is brought against them.
It may unmake armies. It may sunder the thrones of gods.
Know that for ALL who betray Justice, I am their fate... and fate carries an Executioner's Axe.

User avatar
TigerShark
Mekwars Server Operator
Posts: 678
Joined: Wed Feb 24, 2010 8:28 am

Re: /REMOVESUBFACTION not working

Post by TigerShark » Thu Mar 09, 2017 9:50 am

/removesubfaction HAF Royal Heavy-Assault#Terran Hegemony

User avatar
Tuco
MegamekNET Campaign Operator
Posts: 2783
Joined: Wed Feb 13, 2008 10:23 pm

Re: /REMOVESUBFACTION not working

Post by Tuco » Fri Mar 10, 2017 11:37 am

I think you have to use subfaction numbers as parameters and no names, starting with 0.
When the injustice is great enough, Justice will lend me the strength needed to correct it.
None may stand against it.
It will shatter every barrier, sunder any shield, tear through any enchantment and lend its servant the power to pass sentence.
Know this: there is nothing on all the Planes that can stay the hand of justice when it is brought against them.
It may unmake armies. It may sunder the thrones of gods.
Know that for ALL who betray Justice, I am their fate... and fate carries an Executioner's Axe.

Spork
Mekwars Developer
Posts: 3868
Joined: Wed Feb 13, 2008 10:23 pm

Re: /REMOVESUBFACTION not working

Post by Spork » Fri Mar 10, 2017 7:07 pm

Let me look at code real quick
Never had much, grew up with nothing
But the music, well it was something
Been down and out, I've been on top of the world,
World that keeps on spinning on a turntable.

Spork
Mekwars Developer
Posts: 3868
Joined: Wed Feb 13, 2008 10:23 pm

Re: /REMOVESUBFACTION not working

Post by Spork » Fri Mar 10, 2017 7:11 pm

No, it should be the name.

If you look at the faction .dat file after the next save, is the subfaction still in there?
Never had much, grew up with nothing
But the music, well it was something
Been down and out, I've been on top of the world,
World that keeps on spinning on a turntable.

User avatar
TigerShark
Mekwars Server Operator
Posts: 678
Joined: Wed Feb 24, 2010 8:28 am

Re: /REMOVESUBFACTION not working

Post by TigerShark » Fri Mar 10, 2017 7:18 pm

Yes, it is.

Spork
Mekwars Developer
Posts: 3868
Joined: Wed Feb 13, 2008 10:23 pm

Re: /REMOVESUBFACTION not working

Post by Spork » Fri Mar 10, 2017 7:20 pm

I'm goign to have to put some debug logic in, then.
Never had much, grew up with nothing
But the music, well it was something
Been down and out, I've been on top of the world,
World that keeps on spinning on a turntable.

User avatar
TigerShark
Mekwars Server Operator
Posts: 678
Joined: Wed Feb 24, 2010 8:28 am

Re: /REMOVESUBFACTION not working

Post by TigerShark » Sat Mar 11, 2017 1:09 am

Spork wrote:I'm goign to have to put some debug logic in, then.
In the meantime, do you think I could safely delete the subfaction data from the fraction file manually?

Spork
Mekwars Developer
Posts: 3868
Joined: Wed Feb 13, 2008 10:23 pm

Re: /REMOVESUBFACTION not working

Post by Spork » Mon Mar 13, 2017 2:39 pm

You would likely have to delete the info and change the counter that will be right before the first subfaction.
Never had much, grew up with nothing
But the music, well it was something
Been down and out, I've been on top of the world,
World that keeps on spinning on a turntable.

Post Reply