Jump to content


Photo

Basic debugging


  • Please log in to reply
5 replies to this topic

#1 Radspakr Wolfbane

Radspakr Wolfbane

    The John Farnham of modding

  • Members
  • 7,722 posts
  • Location:less than 5 meters from my bed
  • Projects:Comeback tour
  •  The Retired Beard

Posted 25 November 2011 - 08:34 PM

Before you post a problem go through these steps since 99% of problems are due to carelessness here are some good tips.

1) Retrace your steps - Go back over the work you did since before the bug was present, it's a good idea to keep a record of things you do.

2) Check for typos - The large bulk of issues stem from typos

3) Check your "links" - Just like a website has links so does coding. Check that each part of your code exists ie does the SpecialPower exist in Specialpower.ini and is it spelt right.
Sometimes the code is case sensitive too.

4) Process of elimination - For the more elusive problems try taking out pieces of code that you've done individually if the problem persists put it back and try removing the next part until you find the bug.

You should be testing regularly, the shorter the time window a bug appears the easier it is to find.


Edited by Radspakr, 16 December 2013 - 03:12 AM.

Break dancing into the hearts of millions


#2 JUS_SAURON

JUS_SAURON

    El Shaddai

  • Members
  • 1,581 posts
  • Location:Trinidad
  • Projects: BFME2 MOD - Power Of The Ring
  •   INI Coder

Posted 26 November 2011 - 02:04 AM

All good tips ..

One of my favorite is BACK-UP ... BACK-UP ... BACK-UP

Then try a new coding and test it thoroughly ..

Unless your a Pro you may get your coding wrong and have to retrace your steps
This will mean going through each file the 'POWER / NEW THING' is associated with

So you compare the buggy codes with the Old bug-free ones and find the root cause

I usually copy-paste the code into a note-pad file and review it before adding it to a game file
That way I can see all the codes in commandbutton / specialpower / Hero ini all at once

#3 damianbt88

damianbt88

    * *

  • Members
  • 110 posts
  • Location:AshKum
  • Projects:AMSG
  •  Ctrl+C Ctrl+V Master

Posted 25 December 2012 - 05:49 AM

as i understand there is no log file for errors? because game sometime just says ...ROTWK has stopped working... without specifying error type, line number etc :evilthinkin:


ak-ulub laam gûkrûrz-ulub lûp-al


#4 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 25 December 2012 - 10:27 AM

Not one we are currently able to read no...
I'd say check what you last changed...
Ridder Geel

#5 KingoftheMikrwood

KingoftheMikrwood
  • New Members
  • 1 posts

Posted 09 December 2013 - 11:26 PM

I have a problem: Dwarfs builds only Siege Workshop, they do not build barracks. How to fix?



#6 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 13 December 2013 - 01:56 PM

That all depends on several things, i'd say make a topic in these forums, so we can discuss it there :)


Ridder Geel




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users