Results 1 to 7 of 7

Thread: Deactivate a Faction

  1. #1
    Member Member Danish Paladin's Avatar
    Join Date
    Aug 2003
    Location
    Denmark
    Posts
    2

    Default

    Hey guys...

    I'm still working on the rebelworld idead i have...

    in the early.txt it says for example :
    SetActiveFaction:: FN_ALMOHAD FT_MAJOR

    How do i deactivate factions ?

  2. #2
    Member Member Al Shama'ar's Avatar
    Join Date
    Apr 2003
    Location
    Lisboa, Portugal
    Posts
    164

    Default

    From my limited experience i'd do this

    //SetActiveFaction:: FN_ALMOHAD FT_MAJOR

    but further down the road I discovered that these factions are hardcoded.

    For instance, once I tried deactivating the Aragonese and duplicate its every sigle line for a Portuguese faction. When I thought I had everything right, I started having these errors that I trace down to the units and building_prod files, and I coudn't get past it. So unless I'm wrong, and I could very well be, the starting factions can't be deactivated, although I would like to see it done.

    Cheers

    Al

    Amateurs talk Tactics, Professionals talk Logistics

  3. #3
    Member Member Westland's Avatar
    Join Date
    Feb 2003
    Location
    Holland
    Posts
    71

    Default

    I think that you have to change the region owner part of the startpos file. Faction owned regions look like this:
    SetRegionOwner:: ID_ALGERIA FN_ALMOHAD
    while rebel regions look like this:
    //SetRegionOwner:: ID_PORTUGAL Portuguese
    Maybe it´s enough to just add // before every province. Otherwise you have to replace every faction name with the name of the local people.
    The place leader part of the file may give problems as wel. So put some slashes before those lines to.

    To Al Shama´ar: Creating a new faction is more work than just making some changes in the startpos. I suggest you take a look in the Dungeon to learn about this. I think there is already a mod with a Portuguese faction made by Portuguese Rebel.

    Good luck and keep trying DP.

  4. #4
    The Lordz Modding Collective Senior Member Lord Of Storms's Avatar
    Join Date
    Jan 2003
    Location
    Paisley,Florida
    Posts
    2,302

    Cool

    Westland is correct in saying by tabbing out // the setregionowner line will make that province a rebel province, and a starting faction or any faction for that matter can be totally deactivated or removed in one way or another, for our Napoleonic Mod I removed the entire Byzantine faction from the game, you can also set Major factions to Minor in startpos to make them unplayable.If you try to remove a faction totally you have to be careful to cover all the areas in startpos like PlaceLeader, faction or culture specific units,agents etc. or you will have problems. LOS
    Taking life one day at a time!

  5. #5
    Member Member Al Shama'ar's Avatar
    Join Date
    Apr 2003
    Location
    Lisboa, Portugal
    Posts
    164

    Default

    To Westland:

    I'm already playing a Portuguese Mod with a little help from the Rebel, only this is a Portuguese instead of Aragone faction. It's not a new faction mod.

    I know it's not only the startpos file you have to change. How do you think i traced the problem (when trying to add a new faction) to the building and prod files? Just by staring at the startpos file? :P

    I'm still waiting for a stable new faction mod to appear, so I can, shamelessly, steal enough knowledge to make my own

    Al

    PS: I think you're right too. It'll be enough to change the SetRegionOwner entry.

    Amateurs talk Tactics, Professionals talk Logistics

  6. #6
    Member Member Portuguese Rebel's Avatar
    Join Date
    Feb 2003
    Location
    Portugal
    Posts
    1,401

    Default

    Al Shama'ar, if you want to add a new faction you must used the predefined labels. you can use FN_FREE01 for the portuguese but you will have to make changes in the unit graphics also since they will crash your battles, wich suks...

    You use FN_free01 and then you must use the translation files to turn the free01 into the portuguese, but only change the stuff between {...} or else, if you change stuff in the labels [...] you will have a crash. If you decide to do the mod with the new faction fell free to use my stuff if you want. I don't mind at all , i would do it myself but don't have much time these days...
    Legacy for the airwaves.

  7. #7
    Member Member Aragorn's Avatar
    Join Date
    Aug 2003
    Location
    England
    Posts
    10

    Default

    just change the faction you want to deactivate from MAJOR to MINOR it workes for me.
    "They have taken the bridge and the second hall.We have barred the gates... ...but cannot hold them for long.The ground shakes.Drums... ...drums in the deep.We cannot get out.A shadow moves in the dark.We cannot get out they are coming"--Gandalf The Grey--

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO