Author Topic: Gamepad crashes sgdk2.0  (Read 2793 times)

Tanja

  • Clever
  • Fanatic
  • ***
  • Posts: 606
    • View Profile
Gamepad crashes sgdk2.0
« on: 2008-07-19, 01:47:53 AM »
i bought a gamepad, it is this one: http://www.hama.de/portal/articleId*112419/action*2563;jsessionid=3CA5C8ABA49EE0F1857D9EBEF1A290F8.tomcat_de_lin33?lid=12
after pluggin it in, some versions of my game give an error while starting. the old ones run okay, some middle version give a small error, and the newest give the big error message.
it

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Gamepad crashes sgdk2.0
« Reply #1 on: 2008-07-19, 06:05:45 AM »
It's very unlikely that this is caused by the gamepad alone.  Perhaps it's because you have two game controllers plugged in instead of 1, or 1 instead of 0.  Are you sure nothing else is different between the case when the error occurs and when it doesn't?  It seems that it's happening during the Save operation because something caused it to try to save the main window into the saved game file.  But it's not supposed to save the main window.  Something must have unexpectedly established a link from a saved object to the game window.  Do you have some customized code in your project that links a sprite or a player or something to the main window?  (Maybe only when there is more than one controller plugged in?)  Maybe it only happens if you visit the player options dialog when running the game?  There must be some other difference.  You could try to narrow the problem down by including only specific kinds of information in your save unit with IncludeInSaveUnit, then see which one causes the error.

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Gamepad crashes sgdk2.0
« Reply #2 on: 2008-07-21, 05:25:12 AM »
Did you find out any more about this problem?

Tanja

  • Clever
  • Fanatic
  • ***
  • Posts: 606
    • View Profile
Re: Gamepad crashes sgdk2.0
« Reply #3 on: 2008-07-22, 05:26:36 AM »
it seems including the playerOptions could be the problem.
what next? i can

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Gamepad crashes sgdk2.0
« Reply #4 on: 2008-07-23, 05:29:59 AM »
Why can't you exclude them?

Did you customize any of the code in player options (or anywhere) that might have caused it to link in the main form?