• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Fixed Leveling: Sudden Huge Amounts of XP Gained

The officers still have problems. Not only they still not have specialised skills on their own and are very balanced (Like commerce on a quartermaster), But also the officers I was recently hiring had much lower level than me. I was on level 26 or so and I still was hiring officers of level 18 or so with all methods of hiring (Asking the tavern-keeper, sit down on the table, the officer that lost his collar and can be anything, that is, aleatory, and the officers hired on the streets).
This one still needs to be addressed by @Levis.
 
Now this seems to have worked. After installing the latest stuff by Levis, now officers get a more higher level when hired. Great!

Is anything more we have to look at about this?
 
Please check the perks they have selected already. Let me know if these are weird (on multiple occasions).
 
for example a carpenter having almost all perks but not the quick repair perk. that would be kind of weird wouldn't it?
 
If an officer is hired on low levels then it's normal, don't you think that?

But in the late game, if an officer still hasn't got all perks, then that would be strange. I will look at it.
 
In beta 4 23 August + Levis fixes 10 ( latest )

Playing Sea Hawk

Get to part where go to Barbados Mine - Exit Bridgetown into Canyon - 3 guys walk up and try to sell me into slavery in Mine - Fight them

Then My officers in the fight Level up several levels ( see Image )

I have played this several times ( with and without Levis' latest fixes ) and it only happens some of the time. :shrug

No error log


:duel:
 

Attachments

  • PotC Levelling Up.jpg
    PotC Levelling Up.jpg
    391.7 KB · Views: 134
  • -=Player=- Barbados.7z
    601.4 KB · Views: 69
  • compile.log
    256.3 KB · Views: 103
  • system.log
    1.8 KB · Views: 97
@Levis: In the LevelUp_Cheat function, this section of code should no longer be needed, right?
Code:
  if(AUTO_SKILL_SYSTEM)
   {
     rCharacter.quest.officertype = GetPlayerType();
     if (rCharacter.quest.officertype == OFFIC_TYPE_REGCAP)       rCharacter.quest.officertype = OFFIC_TYPE_CAPMERCHANT;  // PB: Because the "captain" type isn't fully operational
     if (rCharacter.quest.officertype == OFFIC_TYPE_CAPPRIVATEER)   rCharacter.quest.officertype = OFFIC_TYPE_CAPNAVY;  // PB: Because the "privateer captain" type isn't used
     if (rCharacter.quest.officertype == OFFIC_TYPE_NAVIGATOR)     rCharacter.quest.officertype = OFFIC_TYPE_CAPNAVY;  // PB: Because the "navigator" type isn't meant for this
     LAi_Officer_SetSkillmodifiers_and_Perks(rCharacter, 0);
     LAi_SetSkill_on_Modifier(rCharacter);
   }
I had to do that to automatically add skills to the character, but this is now handled differently, I think?
 
@Levis: In the LevelUp_Cheat function, this section of code should no longer be needed, right?
Code:
  if(AUTO_SKILL_SYSTEM)
   {
     rCharacter.quest.officertype = GetPlayerType();
     if (rCharacter.quest.officertype == OFFIC_TYPE_REGCAP)       rCharacter.quest.officertype = OFFIC_TYPE_CAPMERCHANT;  // PB: Because the "captain" type isn't fully operational
     if (rCharacter.quest.officertype == OFFIC_TYPE_CAPPRIVATEER)   rCharacter.quest.officertype = OFFIC_TYPE_CAPNAVY;  // PB: Because the "privateer captain" type isn't used
     if (rCharacter.quest.officertype == OFFIC_TYPE_NAVIGATOR)     rCharacter.quest.officertype = OFFIC_TYPE_CAPNAVY;  // PB: Because the "navigator" type isn't meant for this
     LAi_Officer_SetSkillmodifiers_and_Perks(rCharacter, 0);
     LAi_SetSkill_on_Modifier(rCharacter);
   }
I had to do that to automatically add skills to the character, but this is now handled differently, I think?
Yeah can be removed. Seems I have to fix this function again for the fake level up so I will remove it then.
 
And @Levis, please WinMerge my latest version with yours because I changed a line of code of yours that I want sure what to to with.
Hopefully you know.
 
And @Levis, please WinMerge my latest version with yours because I changed a line of code of yours that I want sure what to to with.
Hopefully you know.
Oh could you tell which line? I installed the exe already over my version so I know for sure I have the latest version.
 
Oh could you tell which line? I installed the exe already over my version so I know for sure I have the latest version.
I don't remember and can't check right now. Compare with your V10 files.

I'd recommend to ALWAYS merge with your own files. I wouldn't want your work to get overwritten because I made a mistake somewhere. :facepalm
 
Oh dear, ran into a very definite HUGE XP GAIN just now. I simply:
- Started a new game with Assassin
- Immediately attack a random civilian: Gain one level after killing him, but nothing else
- Immediately attack a town guard: They say images speak louder than words....
upload_2015-9-12_11-25-31.png

^ That is from one single stroke with my blade!

See attached compile.log file for complete details.

To make things even sillier, the soldiers often like taking a pistol shot at one of the item traders as they run up the pier to me.
And I cannot help but wonder: WHY??? That trader isn't even in any way involved. o_O
 

Attachments

  • compile.zip
    1.6 KB · Views: 127
Last edited:
Lol Wut? That didn't never happen to me. So bizarre...

About guards attacking item traders: Maybe something about they are armed has to be about?

And also, I remember in the past that I attacked one of this guards and that thing you are showing didn't happen to me. To be more precise, to guards of Bonaire too.
 
I was able to consistently reproduce this on the new game I started this morning.
Could you try the exact same thing to be sure?
 
Is this problem linked to the Assassin Storyline or just in anyone?
I can see no reason why it would be storyline-dependent. But I tried in Bartolomeu too.
Same difficulty (Adventurer) and same starting level (1), but the experience gain wasn't that excessive.
Still one Level-Up per stroke for the first two strokes though.
 
Might be because you start with a better sword. I will look into this. I think I know what is causing it.
 
Seeing guards are a lot higher level this could happen.
I've added a cap in the xp gained by guns and blades so this won't happen again.
Could someone please try this file and let me know if it works? I need to sleep now and will be at work tomorrow, so I hope to know if it works when I'm home again.

Place in:
..\PROGRAM\Loc_ai
 

Attachments

  • LAi_fightparams.c
    35.7 KB · Views: 140
Back
Top