Aller au contenu

Photo

What’s wrong with my Custom Fractions? (Solved)


  • Veuillez vous connecter pour répondre
11 réponses à ce sujet

#1
Alupinu

Alupinu
  • Members
  • 528 messages
My default fractions are working fine. But any time I try to make a custom fraction it comes up hostile doesn’t matter if I set the player column to 100 or to 0. The creature is hostile to the player and all other creatures of deferent fractions no matter what the setting. (0,50,100)

The custom fractions where working a couple of weeks ago. Then suddenly their not, not sure if it’s some of the custom content that I installed.  Can’t figure out how or why that would effect it but now it’s a mess.

Any ideas, Thank you.

Modifié par Alupinu, 24 mars 2012 - 09:26 .


#2
Kaldor Silverwand

Kaldor Silverwand
  • Members
  • 1 598 messages
Typing on iPhone?

Did you set UsesPersonalReputations to True? I always leave that False and I do not have any problem with a custom neutral faction. Note that I believe that custom factions have to be set up in each module in a campaign separately. So if they are working in one module but not another that could be the problem.

I don't use any custom content except my own though.

Regards

#3
MokahTGS

MokahTGS
  • Members
  • 946 messages
Half a bee, philosophically,
Must, ipso facto, half not be.
But half the bee has got to be
Vis a vis, its entity. D'you see?

But can a bee be said to be
Or not to be an entire bee
When half the bee is not a bee
Due to some ancient injury?

#4
Alupinu

Alupinu
  • Members
  • 528 messages
@Kaldor Silverwand, tried it on both true and false, 0 and 100 still came up hostile. You are correct in the fact that they do have to be set up individuality for each mod but it still don't fix the problem.

@MakahTGS, is this a pink bee by chance?

#5
Lugaid of the Red Stripes

Lugaid of the Red Stripes
  • Members
  • 955 messages
I haven't worked with campaigns, so I don't know much about how factions transfer. But I do know that each custom faction retains a 'parent' faction set somewhere. So when you export a creature from a custom faction, the exported creature gets imported with the parent faction, not the custom faction (that wouldn't exist in the new module).

If this is the problem, it should be apparent on the blueprint and properties tab of your errant creature (and a blueprint might be hiding in your override).

Otherwise, you must have a script somewhere screwing things up.

#6
Alupinu

Alupinu
  • Members
  • 528 messages

Lugaid of the Red Stripes wrote...

Otherwise, you must have a script somewhere screwing things up.


That's what I think it is, its just going through 50+ custom scripts is a bit overwhelming at the moment. I'm not even sure of what I'm looking for. :?

#7
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages
look for a file named repute.FAC in your haks, override or the like, that would hide your factions ( that should be in your module and is where the relationships are stored. Long shot but one of kaedrins releases had that in a hak and it messed things up. This file can be copied from module to module - perhaps it's corrupt somehow.

Creature blueprints might need to be fixed if you remove the file, or decrease the number of factions - things can end up acting wonky if a creature has a faction that no longer exists. Don't remember it being pretty when it's removed.

Kaldor, if you are in single player individual reputations is just not needed, it's only going to affect MP or PW play with more than one party, hence it's generally not a problem in any module with a single party. It allows each player to have a separate relationship, without it if 2 players are on even in different parties and one of them attacks a factions, that faction will be hostile to both players. If those 2 players are in the same party no one is going to notice really.

I would take a look at the scripts, sure it's 50+, a needle in a haystack but sometimes you just got to roll up your sleeves and try to find it, especially if you start with ones attached to your modules or creatures events. While you are looking you probably will be able to clean things up -- usually cleaning house and organizing your haks, files, override or whatever will solve many issues and when you are done it's just easier to manage and find things. Search for functions related to reputation using a text editor which can search multiple files quickly, or just trace out the events on the creatures in question - i included functions which might be related to what is going on.

void 	[b]ClearPersonalReputation[/b] (object oTarget, object oSource=OBJECT_SELF)
 	Clear all personal feelings that oSource has about oTarget. 
void 	[b]SetIsTemporaryFriend[/b] (object oTarget, object oSource=OBJECT_SELF, int bDecays=FALSE, float fDurationInSeconds=180.0f)
 	Make oSource into a temporary friend of oTarget using personal reputation. 
void 	[b]SetIsTemporaryEnemy[/b] (object oTarget, object oSource=OBJECT_SELF, int bDecays=FALSE, float fDurationInSeconds=180.0f)
 	Make oSource into a temporary enemy of oTarget using personal reputation. 
void 	[b]SetIsTemporaryNeutral[/b] (object oTarget, object oSource=OBJECT_SELF, int bDecays=FALSE, float fDurationInSeconds=180.0f)
 	Causes an creature to consider another creature neutral indefintely or for a fixed time. 
void 	[b]ChangeToStandardFaction[/b] (object oCreatureToChange, int nStandardFaction)
 	Make oCreatureToChange join one of the standard factions. 
void 	[b]SetStandardFactionReputation[/b] (int nStandardFaction, int nNewReputation, object oCreature=OBJECT_SELF)
 	Set how nStandardFaction feels about oCreature. 
int 	[b]GetStandardFactionReputation[/b] (int nStandardFaction, object oCreature=OBJECT_SELF)
 	Find out how nStandardFaction feels about oCreature. 
void 	[b]AdjustReputation[/b] (object oTarget, object oSourceFactionMember, int nAdjustment)
 	Adjust how oSourceFactionMember's faction feels about oTarget by the specified amount. 

Modifié par painofdungeoneternal, 11 mars 2012 - 06:57 .


#8
Alupinu

Alupinu
  • Members
  • 528 messages
@Painofdungeoneternal, thanks for the very detailed reply. I copied/pasted all the functions for reference and spent the whole day, yesterday, looking for the problem. Unfortunately with no avail, I'm going to keep looking while doing other things and hopefully something will pop up.


If anybody else have any possible ideas why this might be happening, your comment would be much appreciated.

#9
Alupinu

Alupinu
  • Members
  • 528 messages
Good news all I have solved the problem of “Mysterious faction Error”!
Thanks to Painofdungeonenetal I found the error. It turns out that it was the file “repute.FAC”. The funny thing was when I first read Pofd post I checked my hak and for some strange reason did not see it. I don’t know must been on planet mars. LOL
The good news is that Fanglewood is once again a campaign in development.
Thanks again Pofd!

#10
The Fred

The Fred
  • Members
  • 2 516 messages
The problem I think you may be having is that NWScript uses floating point numbers. Try replacing all your custom fractions with percentages.

#11
Alupinu

Alupinu
  • Members
  • 528 messages
Thanks Fred but problem solved, it was a corrupt file as stated above.

#12
kevL

kevL
  • Members
  • 4 070 messages
woohoo! found it, sneaky 'repute.Fac' hiding in Override ... i'm so happeee