Jump to content


Photo

A bug fixing guide


  • Please log in to reply
23 replies to this topic

#1 dreamer2007

dreamer2007
  • Member
  • 430 posts

Posted 03 June 2008 - 09:46 PM

Introduction:
Baldur's Gate is one of my all time favorite games, I played it countless times and enjoyed it every time... When I discovered the existence of mods with the help of a friend I was thrilled, I couldn't wait to try them, but when I saw that I could play just a few of the great mods that existed at a time I wasn't so happy because I knew that time to play is short because of daily responsibilities, and in this way I couldn't see all the nice mods that exist. But then I discovered mega mod projects and I was immediately hooked to them, especially Leonardo's Big World Project that aims to make the BG World a huge and great adventure, a truly wonderful project and I want to thank again Leonardo and his team for it with this occasion, and I was very enthusiastic, so I got the version of the manual that existed at the time I found it (version 4 or bellow, don't quite remember exactly), and tried a install, but when I started to play crashes started to appear. Being totally noob at that time about this kind of problems I started looking at the forums, and then I saw that conflicts are normal and mega mod projects try to solve them and make the game playable for everybody. But the problem was that I couldn't find any clear explanation of why bugs exist, how you can correctly report them, or how you can try to fix them, and so when I looked at the topics with bugs it was quite hard to understand them not being a programmer, talks about scripts, cre, are files, modifying programming language, dos commands, and I noticed I wasn't the only one who was confused as there were many like me trying to understand and help but were left out because of lack of understanding so I was quite disappointed and took a break from mega mods. After quite some time I felt the need to play BG again and I couldn't conceive playing it without a mega mod install and I came back with new hope that bugs were fixed or at least a guide on how to understand bugs better would exist. The first part was true and the Big World Project really become simpler to install and has a fewer number of bugs, but there are still some out there, and I wanted to contribute in making this project perfect and playable for everyone so when I found the first CTD causing bug I reported it and started to learn what I needed to at least better inform the community of what I was experiencing, so that they could help me, and in this way also help the project, and my expectations when I saw the process of bug fixing grew higher and I realized that with a proper guide many people could have a chance to understand and fix bugs or at least report them a lot better and fix them faster. And with such a guide I am confident that such great mega mods as BWP will become truly bug free faster. So this is my attempt to make such a guide and I will call it: The bug fixing guide project.

I will try to make the guide as simple and efficient as I can, and I hope that with the help of people that know bug fixing I will achieve this goal. Not being a programmer and starting many things from scratch I will need plenty of assistance but at least with it the guide will grow and become useful.

First of all I will talk about how you can avoid bugs from the start. From the start when you follow a mega mod guide READ IT CAREFULLY(by the way here is a useful link about mega guides http://www.shsforums.net/index.php?showtopic=20555). Many mistakes are made from the start by not following the guide properly.
When a mod is installed you must take care of the details like when you close the weidu window after the install is complete close it by pressing enter not via red x.
A visual help for NVidia Series 8 video cards, etc: http://forums.gibber...showtopic=12988
When you start a installation you must be very careful to do correctly even the most basic like "The normal pre-modding installation game is always BG2:SoA+BG2:ToB+patch25694 with at least one new game started", because if you don't there could be unexpected and annoying problems.
In some guides or when installing some mods you need to update them to the latest weidu version and you can do that this way: "How to manually update Mod(WeiDU).exe's; done by copy pasting the newer WeiDU.exe to the same directory and then renaming it to the Mod.exe" (thank you for your advices Jarno Mikkola)

Second of all I will start with a section on how you can report bugs better. An example of a topic that I find good as an example of how bug fixing in the community should go is this one in which I participated and if you read it and find it confusing don't worry, it will become clearer in time http://www.shsforums...showtopic=34144 .

What I found essential so far were the understanding of dos commands using from the "Start" the "run..." and there writing the "cmd" command(I use Win XP so this is how I start dos, if in vista is different please tell me):
http://www.computerh...om/msdos.htm#02
http://www.computerh...om/overview.htm
Although they seems many and hard they are quite simple (for example when you reach the dos cmd you can use the cd command to reach your folder to start a weidu command)

To use weidu command I also recommend it's readme:
http://weidu.org/Wei...-WeiDU.html#DLG

To manage to access files and change them I recommend using Near Infinity and DLTCEP tools. I find the most easy to use and understand is Near Infinity:
http://www.idi.ntnu....h/ni/using.html
http://forums.gibber...p?showforum=137

Once you suspect a specific mod is responsible you should know that there are more communities out there that offer assistance like:
http://forums.gibberlings3.net/
http://forums.blackw...dex.php?act=idx
http://forums.pocket...H...aa09906753

The most important problems I consider there are to be understood are the CTDs (Crash To Desktop), because they are so annoying and morale breaking and here is a perfect link in which you can understand them: http://www.shsforums...mp;#entry364276

A more advanced link on how you can gather clues debugging stuttering is found here: http://forums.blackw...?showtopic=3830

For finding useful information about bugs you should know how to activate the error log for your bg installation and this is how you do it:Open up the baldur.ini in your game directory, find [Program Options] and add
Logging On=1

You would also find useful eventually the information on how to to use the clua console and this is how you activate it:to enable the Baldur's Gate 2 cheat console you have to modify your baldur.ini file by adding the line "Debug Mode=1" under the heading [Program Options]. Then save it. Next time you start your game, you can activate the Amn cheat console any time you want to by pressing control-space. You'll see a little window pop up with the prompt "CLUAConsole:"

If you want more details on how to do certain things like scripting you might find useful information here: http://forums.gibber...p?showtopic=617

This is under construction and I will update it as much as I can once I have new useful data,



Thank you,
Steve

Edited by dreamer2007, 25 June 2008 - 11:06 PM.


#2 Azazello

Azazello

    The Anti-Spammer

  • Staff
  • 1912 posts

Posted 04 June 2008 - 03:32 PM

I don't know if there are any structured guides, just threads and posts - on various forums - that include steps to fix bugs. The instructions are usually NOT made for the novice, so you're having to learn like the rest of us: find nearest sufficiently hard surface, repeatedly bang frontal lobe into it, until you calm down to approach the problem rationally, or insight encompasses you. Believe me, as you read some threads/posts, you'll see that many have failed because of lack of calm.

Fortunate for you, most members will either walk you thru or point you to the source to follow the instructions yourself.

Edited by Azazello, 10 July 2008 - 05:27 PM.

"I gladly simp for jastey" -- Aza
==========================================================
"You ever notice that "What the hell?!" is the answer to just about everything?"
==========================================================

"Girls are like phones, they like to be held and talked too, but if you press the wrong button, you will be disconnected!" DJ Nikodemus
================================================================
Community Contributions
* Level 1 NPCs * gMinion: expanded TP2 for MegaInstalls * PSM (PSQM): expanded scripts for Melanthium * Shar Nadal (DSotSC-BGT) revision * non-detectable Cloak of Non-Detection ?? * Weimer's-Tactics: revised TP2 for MegaInstalls * a directory of Mega-Installation Guides *

   
   
   


#3 Azazello

Azazello

    The Anti-Spammer

  • Staff
  • 1912 posts

Posted 04 June 2008 - 04:00 PM

Ahh, the bigg comes to the rescue:
How to gather clues when debugging stuttering

#4 Hoppy

Hoppy

    Mage Hunter

  • Member
  • 2107 posts

Posted 04 June 2008 - 07:15 PM

Here is a link for CTD causes:

http://www.shsforums...&...st&p=364276
?May God defend me from my friends; I can defend myself from my enemies.? - Voltaire

"If you think that a size of the mod indicates an amount of bugs that it introduces and their severity you're totally wrong...
Try not to use next time a load of shitty "super-mega-improving-tweaking-revising" small mods that you have installed and try to meet Wulfgar once again."
- King Diamond


Posted Image The Definitive Guide to Trolls

"Finding food and a place to sleep is your own business. I imagine Paul the Cat should have some fun with you, too" - Potencius in The Darkest Day
"You have been warned, little bastard!" -Khelben to a young <CHARNAME>in Check the Bodies
There are those who will snivel, and offer nothing in return except criticism, meanwhile never lifting a finger to do other than to cut other peoples labor down simply for the fact that they lack the capability to put anything of their own together. -erebusant

#5 dreamer2007

dreamer2007
  • Member
  • 430 posts

Posted 04 June 2008 - 10:23 PM

Thank you very much for the links :D . I will try my best to find solutions to the problems I find in my mega install. But if anybody from the community knows any more links to some threads about fixing bugs please post them here because I believe there are people that want to help in bug fixing of various mega mods and don't know very well how, like me for example, and such a database of links could be very helpful for guide creators to fix bugs faster. If you do that I will make a separate post with a guide with links on why bugs appear and possible ways to fix them,



Steve

#6 PinchIt

PinchIt
  • Member
  • 23 posts

Posted 05 June 2008 - 12:56 AM

I second that..
Myself and several friends that I play BG2 with are only starting to learn about modding and the tools associated with it. A list of guides/links and the preferred ones to use, so as to learn and not get swamped too early would be of great help.... The more bugs found or narrowed down to ask for some more help must be a good thing...
If you can't buy it, PinchIt!!! So said PinchIt the Halfling!!!

#7 Azazello

Azazello

    The Anti-Spammer

  • Staff
  • 1912 posts

Posted 05 June 2008 - 11:19 AM

We can always use more brains. So this is a good quest you propose.

#8 Leomar

Leomar
  • Member
  • 1720 posts

Posted 05 June 2008 - 11:09 PM

I agree with it, too. This is a very good idea.

Greetings Leomar
A Megamod does not mean that you can play all of the mods or all of their content,
but you have more choices or paths through the game.
- Chevalier

BiG World Project - Big Baldur's Gate World

#9 dreamer2007

dreamer2007
  • Member
  • 430 posts

Posted 10 June 2008 - 05:53 AM

So does anybody know any more useful links related to the subject? It's kinda hard to make a bug fixing guide post with just 2 links :P. Until next week I will be out of town but when I come back I will make it and try to update it as much as I can as long as you, that know the procedures of bug fixing will help me. Together we can finally make a guide that help people in this matter or at least help them understand how they can cooperate better with the community to solve their bugs faster and more efficiently, and I am confident that such great megamods like Big World Project will become bug free faster with the help of such a guide,



Thank you,
Steve

Edited by dreamer2007, 10 June 2008 - 05:54 AM.


#10 Hoppy

Hoppy

    Mage Hunter

  • Member
  • 2107 posts

Posted 12 June 2008 - 09:07 AM

Well this thread could be the start of a guide 8) . Since it is your idea and plenty of people will add to and help. You can full edit your post and change the topic and/or description and eventually it could be pinned. I thought that because we have got some links here already and will be easy for people to cross reference.

I have a great slowdown bug fix but I want to ask a Weidu guru like "the bigg" to see how to make it an installed type instead of manually.
?May God defend me from my friends; I can defend myself from my enemies.? - Voltaire

"If you think that a size of the mod indicates an amount of bugs that it introduces and their severity you're totally wrong...
Try not to use next time a load of shitty "super-mega-improving-tweaking-revising" small mods that you have installed and try to meet Wulfgar once again."
- King Diamond


Posted Image The Definitive Guide to Trolls

"Finding food and a place to sleep is your own business. I imagine Paul the Cat should have some fun with you, too" - Potencius in The Darkest Day
"You have been warned, little bastard!" -Khelben to a young <CHARNAME>in Check the Bodies
There are those who will snivel, and offer nothing in return except criticism, meanwhile never lifting a finger to do other than to cut other peoples labor down simply for the fact that they lack the capability to put anything of their own together. -erebusant

#11 the bigg

the bigg

    2083 is a prime number.

  • Modder
  • 3331 posts

Posted 12 June 2008 - 09:11 AM

I have a great slowdown bug fix but I want to ask a Weidu guru like "the bigg" to see how to make it an installed type instead of manually.

Linkage PLZ.

Italian users: help test the Stivan NPC!

Author or Co-Author: WeiDU - Widescreen - Generalized Biffing - Refinements - TB#Tweaks - IWD2Tweaks - TB#Characters - Traify Tool - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics - Nalia Mod - Nvidia Fix
Code dumps: Detect custom secondary types - Stutter Investigator

If possible, send diffs, translations and other contributions using Git.


#12 Hoppy

Hoppy

    Mage Hunter

  • Member
  • 2107 posts

Posted 12 June 2008 - 09:19 AM

I am still working out details but I have tested it twice. It involves a BGT install and after the transition part to BG2 in Irenicus dungeon, gameplay is very slow. Deleting all previous areas from the save game (BG1/TotSC areas, Bonehill, DSotSC and NTotSC) makes the gameplay feel like starting a BG2 game. The worldmap is not affected as you can still see that you explored the areas in the map.

I got the idea after reading your stutter bug thing and using weidu to clean up or diagnose the save game.
?May God defend me from my friends; I can defend myself from my enemies.? - Voltaire

"If you think that a size of the mod indicates an amount of bugs that it introduces and their severity you're totally wrong...
Try not to use next time a load of shitty "super-mega-improving-tweaking-revising" small mods that you have installed and try to meet Wulfgar once again."
- King Diamond


Posted Image The Definitive Guide to Trolls

"Finding food and a place to sleep is your own business. I imagine Paul the Cat should have some fun with you, too" - Potencius in The Darkest Day
"You have been warned, little bastard!" -Khelben to a young <CHARNAME>in Check the Bodies
There are those who will snivel, and offer nothing in return except criticism, meanwhile never lifting a finger to do other than to cut other peoples labor down simply for the fact that they lack the capability to put anything of their own together. -erebusant

#13 Jarno Mikkola

Jarno Mikkola

    The Imp in his pink raincoat.

  • Member
  • 10911 posts

Posted 12 June 2008 - 09:37 AM

You could also post advices such as, close the WeiDU window after the mod has installed itself, with the Enter button, not via the red X.
If you are using the Windows Vista, turn the User Account control off while you are creating your installation.
The normal pre-modding installation game is always BG2:SoA+BG2:ToB+patch25694 with at least one new game started.
On newer computers, if you have slowdown, turn the ambiant sounds of.
The worldmap mod needs the G3Fixpack core component.
How to manually update Mod(WeiDU).exe's; done by copy pasting the newer WeiDU.exe to the same directory and then renaming it to the Mod.exe.
Megamode links
Visual help for NVidia Series 8 video cards etc. link.
:rolleyes: These are just a few, there are more I am sure.

Edited by Jarno Mikkola, 13 June 2008 - 02:01 PM.

Deactivated account. The user today is known as The Imp.


#14 Azazello

Azazello

    The Anti-Spammer

  • Staff
  • 1912 posts

Posted 12 June 2008 - 01:10 PM

So does anybody know any more useful links related to the subject? It's kinda hard to make a bug fixing guide post with just 2 links :P. Until next week I will be out of town but when I come back I will make it and try to update it as much as I can as long as you, that know the procedures of bug fixing will help me. Together we can finally make a guide that help people in this matter or at least help them understand how they can cooperate better with the community to solve their bugs faster and more efficiently, and I am confident that such great megamods like Big World Project will become bug free faster with the help of such a guide

Well this thread could be the start of a guide 8) . Since it is your idea and plenty of people will add to and help. You can full edit your post and change the topic and/or description and eventually it could be pinned. I thought that because we have got some links here already and will be easy for people to cross reference.


In other words, "You're the one who started this project, you want us to do your homework as well?" :Poke:

#15 dreamer2007

dreamer2007
  • Member
  • 430 posts

Posted 18 June 2008 - 12:54 AM

Ok I updated the post, and started making the guide :D . Sorry it took so long but I had to leave the country for one week, but from now on I should be able to update the post frequently once I find new useful data. I am awaiting some constructive criticism and advice on how to structure it better and what I can add,





Thank you,
Steve

#16 Ronar

Ronar
  • Member
  • 12 posts

Posted 25 June 2008 - 11:43 AM

Hello!
I've read the main post, and browsed other topics as well, but I still haven't found any solution, and I don't know which topic to write in, so please help me if you can, or direct me to the right thread if there's any.
So I'm having CTDs all the time. They are completely random, or to be exact, they happen everywhere, regardless of the area type - basic BGII, ToB, CTB, TDD, etc. They cannot be connected to area loading (In fact I have CTDs during loading times, but I'm fine with CLUA), nor to hardware problems, that's for sure.
They tend to occur during of battles including many participants, sometimes right at the beginning of the battle, or just in the middle, or often everything goes fine, then I hit space to pause for a second, then hitting it again triggers the CTD again... I see no logic in this whole thing.
I have BG-SoA, ToB, TDD, SOS, TS, CTB, Dungeon Crawl, BP-BGT Worldmap, Ribald's Genie, Bagbonus, Ariena NPC mod, FR-RoV, Ascension, Redemption, Turnabout, Oversight installed.
I would be grateful for any kind of help, because it's highly irritating to fight a battle over and over again, ending up without any specific tactics, just simple hack and slash to be able to proceed at all.
Thanks!

#17 Hoppy

Hoppy

    Mage Hunter

  • Member
  • 2107 posts

Posted 25 June 2008 - 11:54 AM

Hello!
I've read the main post, and browsed other topics as well, but I still haven't found any solution, and I don't know which topic to write in, so please help me if you can, or direct me to the right thread if there's any.
So I'm having CTDs all the time. They are completely random, or to be exact, they happen everywhere, regardless of the area type - basic BGII, ToB, CTB, TDD, etc. They cannot be connected to area loading (In fact I have CTDs during loading times, but I'm fine with CLUA), nor to hardware problems, that's for sure.
They tend to occur during of battles including many participants, sometimes right at the beginning of the battle, or just in the middle, or often everything goes fine, then I hit space to pause for a second, then hitting it again triggers the CTD again... I see no logic in this whole thing.
I have BG-SoA, ToB, TDD, SOS, TS, CTB, Dungeon Crawl, BP-BGT Worldmap, Ribald's Genie, Bagbonus, Ariena NPC mod, FR-RoV, Ascension, Redemption, Turnabout, Oversight installed.
I would be grateful for any kind of help, because it's highly irritating to fight a battle over and over again, ending up without any specific tactics, just simple hack and slash to be able to proceed at all.
Thanks!


Are enemies casting spells or your party or both? Try looking in the battle text to see what the spells may be. It sounds like somethings are buggy in the scripts. You do have BG2 Fixpack installed right?
?May God defend me from my friends; I can defend myself from my enemies.? - Voltaire

"If you think that a size of the mod indicates an amount of bugs that it introduces and their severity you're totally wrong...
Try not to use next time a load of shitty "super-mega-improving-tweaking-revising" small mods that you have installed and try to meet Wulfgar once again."
- King Diamond


Posted Image The Definitive Guide to Trolls

"Finding food and a place to sleep is your own business. I imagine Paul the Cat should have some fun with you, too" - Potencius in The Darkest Day
"You have been warned, little bastard!" -Khelben to a young <CHARNAME>in Check the Bodies
There are those who will snivel, and offer nothing in return except criticism, meanwhile never lifting a finger to do other than to cut other peoples labor down simply for the fact that they lack the capability to put anything of their own together. -erebusant

#18 Taimon

Taimon
  • Member
  • 387 posts

Posted 25 June 2008 - 11:57 AM

Again, enabling the errorlog might help finding the cause.

#19 Ronar

Ronar
  • Member
  • 12 posts

Posted 25 June 2008 - 01:27 PM

No, it happans with or without spellcasting.

The errorlog says:

ASSERTION FAILED!
File: ObjAnimation.cpp
Line: 11462

Exp: FALSE

Msg: no msg.
Run Debugger?


The next one:

ASSERTION FAILED!
File: ObjAnimation.cpp
Line: 7182

Exp: FALSE

Msg: no msg.
Run Debugger?

Edited by Ronar, 25 June 2008 - 01:39 PM.


#20 Daulmakan

Daulmakan

    Comfortably numb

  • Member
  • 1065 posts

Posted 27 November 2011 - 10:13 PM

ASSERTION FAILED!
File: ObjAnimation.cpp
Line: 7182

Exp: FALSE

Msg: no msg.
Run Debugger?

Forgive the thread necromancy, I'm getting this one every once in a while. Anyone have any ideas?

item_pack.jpg   Drows.jpg