A very odd problem (New game levels up)

Users who are viewing this thread

cdvader

Ok, well, I got some sort of a problem I simply can't crack. I compile my mod, all fine and dandy, no errors. Then I go in-game, press "Start New Game", then I suddenly hear the level up sound. So I click all the choices until I get to character creation, and there, I'm level 33. Last thing I edited was module_troops.py .

Any help?
 
I don't know what would cause the character to level up like that at the start, but I have heard of the problem before.  In fact, I remembered it was Soil who had had that problem.

He said: "Now when I start my game, I get the sound of levelling multiple times, and indeed, I insta-levelled to level 30."  Is that what's happening to you guys?

It seems to be caused by something being added into module_troops in the wrong place (like if you added a troop in the middle of the list rather than at the end, maybe - new troops can only be added at the bottom, just as new items can only be added at the bottom of module_items or it gets all mucked up).

His thread on the problem might help you solve it.
Here it is:  http://forums.taleworlds.com/index.php/topic,50971.msg1315472.html#msg1315472


Or it might be, since you level up to 33, that you have somehow designed your character to be a Worthy Master in the Masonic Lodge?  :lol:

If you've added troops in the wrong place in module-troops, it could be that.
 
Flanged said:
(just as new items can only be added at the bottom of module_items or it gets all mucked up).

Really? I have my new items all over the module_items and it works fine. But think i should sort it out before i add more items?
Sorry for thread jacking  :razz:
 
Mmm...  I remember once I added throwable bricks just above stones, and from then on all the people I'd set to throw stones threw daggers instead.  Took me ages to figure out what was causing it, and it turned out to be that the added item had bumped all the others down a space.

If it works for you, though, it works... but if anything odd crops up with your troops equipment you'll know the likely cause.
 
I feel so dumb.  :oops: Anyway, problem fixed. Thanks guys.

The problem was that I had somehow accidently deleted/renamed/disturbed the order of or something like that to a old "hardcoded" troop. I took a fresh module_troop.py and re-did all the stuff exactly the same way and it was fine.
 
Adding new items, troops, scripts, triggers in the middle of the file only create problem in save game because of the shift in IDs (which are stored in save game). If you start a fresh new game, you can add almost any where you want to. But sorting or grouping items, troops,... should help in scripting where you might use _begin and _end constants.
 
Back
Top Bottom