GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How do you fix a bug?

SLOCM3ZSLOCM3Z Posts: 797Member

Hello all,

I am writing this to the GameSalad team in specific but any other input would be nice. I was wondering how you fix a bug in code? Do you erase something? Add a line that says 'work with this'? Or just rewrite it? I don't mean to be rude. It is something I have pondered for a long time.

Comments

  • BlackCloakGSBlackCloakGS Posts: 2,250Key Master, Head Chef, Member, PRO GameSalad Employee

    This is a really broad question. In code its changing a line or multi lines of code to address the flow of the code so not to cause the bug. Some time it is one line some times it hundreds to thousands of lines of code.

  • SLOCM3ZSLOCM3Z Posts: 797Member

    @BlackCloakGS said:
    This is a really broad question. In code its changing a line or multi lines of code to address the flow of the code so not to cause the bug. Some time it is one line some times it hundreds to thousands of lines of code.

    Hundreds?! Thousands?! I don't even understand - public void preInit( FMLPreInitializationEvent event ). How do you fix thousands of lines?! Thanks for working so hard on GameSalad Creator :smiley:

    Thanks

  • ant_ladant_lad Posts: 222Member
    edited May 2015

    It depends how the app is built. If you were to code the entire thing yourself, you would have thousands of lines of code to read through to find the issue(s).
    In GS, most of the 'coding' is done for us, so it would mostly come down to finding what the issue is in the framework they gave us to use. Could be 1 thing off, could be 1 thing that trips another thing, and so on. If you read a lot on these forums, you will see some post a screenshot of what they are working on and it lets others see how they did it and spot a mistake, if one is present in the image(s)

  • SLOCM3ZSLOCM3Z Posts: 797Member

    @ant_lad I didn't mean Creator code. I meant the code that makes the code in Creator.

  • BlackCloakGSBlackCloakGS Posts: 2,250Key Master, Head Chef, Member, PRO GameSalad Employee
  • ant_ladant_lad Posts: 222Member

    and they would look through thousands of lines of code looking for an issue, or have scripts written that go through the code and look for various things not written correctly, and spit out the resulting 'bad' code to be fixed (picture a virus scanner in a way).
    This is also done to make things more efficient in coding.
    If you were to build a website, you could then hire someone to go through the code and make your site more efficient. Part would be done by hand, part with scripts, most likely. Same with building a project here in GS. As you learn more and become more advanced, you can go back into your older GS projects and change things for better efficiency (maybe when you started you had 3 things trigger an animation, but down the road you may realize you can trigger all the animations using 1 thing)

  • SLOCM3ZSLOCM3Z Posts: 797Member

    @ant_lad said:
    and they would look through thousands of lines of code looking for an issue, or have scripts written that go through the code and look for various things not written correctly, and spit out the resulting 'bad' code to be fixed (picture a virus scanner in a way).
    This is also done to make things more efficient in coding.
    If you were to build a website, you could then hire someone to go through the code and make your site more efficient. Part would be done by hand, part with scripts, most likely. Same with building a project here in GS. As you learn more and become more advanced, you can go back into your older GS projects and change things for better efficiency (maybe when you started you had 3 things trigger an animation, but down the road you may realize you can trigger all the animations using 1 thing)

    Okay. Thanks

Sign In or Register to comment.