Author Topic: Warband Script Enhancer 2 (v1.0.2.2)  (Read 7756 times)

0 Members and 1 Guest are viewing this topic.

Aruda

  • Knight
  • *
    • View Profile
  • Faction: Neutral
Re: Warband Script Enhancer 2 (v1.0.2.1)
« Reply #135 on: November 30, 2019, 11:41:05 AM »
Are you planning to solve no upgrade bug? Its a gamebreaker one still in the mod since the first launch. My troops wont gain any experience  and when I open my party screen there's a red message saying "error on party_b_troop_upgrades" or something like that, I gain exp after the battles but still no upgrades and I dont gain any exp at all at nights after trainings. Please fix this one.

Also the mod doesnt read the custom music that I've put into my own mod. It simply doesnt check the new files, so no music.
« Last Edit: November 30, 2019, 11:45:00 AM by Aruda »

K700

  • WSE Wizard
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • WB
Re: Warband Script Enhancer 2 (v1.0.2.1)
« Reply #136 on: November 30, 2019, 09:39:33 PM »
Aruda, As far as I remember, I already fix this bug. Are you sure you are using the latest version of wse2?
If so, please provide the exact error message, module name and rgl_log.txt.
« Last Edit: November 30, 2019, 09:59:47 PM by K700 »

Aruda

  • Knight
  • *
    • View Profile
  • Faction: Neutral
Re: Warband Script Enhancer 2 (v1.0.2.1)
« Reply #137 on: November 30, 2019, 10:30:18 PM »
Yes I'm using the latest version, at first I thought fixing the date bug would solve the bug but later on i realized my troops were not gaining any exp. This is the full error message: WARNING: Could not find any definition for GUI widget "party_b_troop_upgrades" in game_variables.txt.

K700

  • WSE Wizard
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • WB
Re: Warband Script Enhancer 2 (v1.0.2.1)
« Reply #138 on: November 30, 2019, 10:34:52 PM »
module name and rgl_log.txt

Aruda

  • Knight
  • *
    • View Profile
  • Faction: Neutral
Re: Warband Script Enhancer 2 (v1.0.2.1)
« Reply #139 on: December 03, 2019, 06:13:48 PM »
It turns out I had to delete all the wse 2 files before applying the new patch. Its fixed as you said. But there's another problem regarding the mods using PBOD, If I command my troops to move somewhere on the battlefield by holding the F1 button while the troops are in formation like shield wall or wedge they always go to the edge of the map ignoring my command. I'll do some more tests with other mods but this didnt happen with old WSE just to let you know. Thank you for the mod btw it looks great!

Edit : Checked the same mod with WSE 1 and WSE 2, in WSE 2 the troops, when using PBOD features, act weird they dont listen to "hold position" (by holding the F1 button to give movement command with banner) command its either they immedietaly go attack the enemy or they go to the edge of the battlemap. It only happens when my troops are in formation like shield wall.
« Last Edit: December 03, 2019, 06:36:57 PM by Aruda »

K700

  • WSE Wizard
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • WB
Re: Warband Script Enhancer 2 (v1.0.2.1)
« Reply #140 on: December 03, 2019, 07:27:14 PM »
Send link to download this mod and it's module system

Vetrogor

  • Sergeant
  • *
    • View Profile
  • Faction: Neutral
Re: Warband Script Enhancer 2 (v1.0.2.1)
« Reply #141 on: December 09, 2019, 08:57:36 AM »
Any chance to know exact formual how regulars get xp from kills? I have tested this with wse. It depends on killer level and dead_agent level. For example, Level1 will get 532 xp from killing level63 (regulars_xp_multiplier=1.0 in module.ini). Level1 will get 372 xp from killing level63. And Level60 will get only 56 from killing level63. I have made a formula, but it is only approximation.

Hero agent gaining XP is fixed on dead_agent level.

K700

  • WSE Wizard
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • WB
Re: Warband Script Enhancer 2 (v1.0.2.1)
« Reply #142 on: December 09, 2019, 09:10:19 AM »
Code: [Select]
int mbTroop::getKillExperience()
{
return (int)(((m_level + 10) * (m_level + 10)) * 0.1f);
}

mbTroop *troop = getTroop();
float experience = (float)troop->getKillExperience();

if (g_mission->isTeamFight())
experience *= 0.1f;

if (experience != 0.0f)
{
mbTroop *damagerTroop = g_game->getTroop(troopNo);

if (!damagerTroop->isHero())
agent->m_experience += (int)(experience * rglConfig::Campaign::fRegularExperienceMultiplier);
else if (troopNo == g_game->m_playerTroopNo)
g_game->addExperienceToTroop(troopNo, (int)(experience * rglConfig::Campaign::fPlayerExperienceMultiplier));
else
g_game->addExperienceToTroop(troopNo, (int)(experience * rglConfig::Campaign::fHeroExperienceMultiplier));
}

Vetrogor

  • Sergeant
  • *
    • View Profile
  • Faction: Neutral
Re: Warband Script Enhancer 2 (v1.0.2.1)
« Reply #143 on: December 09, 2019, 10:39:21 AM »
Cool. Thank you a lot. I have a noob questions.
1. What is this language? C++?
2. Does WSE2 single player use multicores? How many?
3. Does it fixe memory shortage?

K700

  • WSE Wizard
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • WB
Re: Warband Script Enhancer 2 (v1.0.2.1)
« Reply #144 on: December 09, 2019, 11:12:32 AM »
1)C++

2)In the warband, all game logic is processed in one thread, but some tasks run in separate.

bThreadedIndexBufferWrites=false
bThreadedLogger=true
bThreadedNetwork=true
bThreadedRenderer=true
bThreadedSkeletalAnimation=true
bThreadedVertexBufferWrites=false
iNumTaskThreads=5

3)WSE2 handles larger mods better, but this is still x86 application. It is possible to port engine to x64, but this will require either buying a new Havok or changing Havok to another physics library.

Vetrogor

  • Sergeant
  • *
    • View Profile
  • Faction: Neutral
Re: Warband Script Enhancer 2 (v1.0.2.1)
« Reply #145 on: December 09, 2019, 11:39:29 AM »
OK. For regulars their should be another part of decreasing expirience from killer agent level increase. It can be power, exponenta, sqrt or logarifm

This formula works for killer_agent_level_1: (m_lvl+10)*(m_lvl+10)*0.1
« Last Edit: December 09, 2019, 11:55:36 AM by Vetrogor »

K700

  • WSE Wizard
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • WB
Re: Warband Script Enhancer 2 (v1.0.2.1)
« Reply #146 on: December 09, 2019, 12:07:23 PM »
This is formula from wse2, maybe it changed in warband updates > 1143

Vetrogor

  • Sergeant
  • *
    • View Profile
  • Faction: Neutral
Re: Warband Script Enhancer 2 (v1.0.2.1)
« Reply #147 on: December 09, 2019, 01:56:57 PM »
It is ARCCTAN
(click to show/hide)

This is most correct aproximation
Decrease_exp = (ATAN(1/(((killer_lvl*10+27)*3,1417/180))))
« Last Edit: December 09, 2019, 02:23:12 PM by Vetrogor »

k71444

  • Recruit
  • *
    • View Profile
  • Faction: Nord
Re: Warband Script Enhancer 2 (v1.0.2.1)
« Reply #148 on: January 04, 2020, 11:19:33 AM »
wse.exe crashes immediatley after launching it and says 'ERROR: Expected FMOD version 00044418, got 00044003' what should i do sir? i tried to find way to post my log file but don't see the button.

K700

  • WSE Wizard
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • WB
Re: Warband Script Enhancer 2 (v1.0.2.1)
« Reply #149 on: January 04, 2020, 11:27:47 AM »
replace fmodex.dll also