devolution

Author Topic: broken DLL's  (Read 15336 times)

0 Members and 1 Guest are viewing this topic.

exodia91

  • Guest
Re: broken DLL's
« Reply #15 on: May 10, 2010, 07:14:01 PM »
Loading configration variables from '.\Resources\Data\config.xml'
calling init
Initializing Graphics
Reading Screen Mode
Initializing SDL
Setting Window Icon
Determining Fullscreen or Windowed Mode
Setting Window Caption
Initializing TTF
Graphics Initialized
Background Image Set
Loading InterfaceColors
Loading Main Menu Screen
Loading MainMenu
Loading Load Game Screen

Offline Dagoth

  • Administrator
  • *****
  • Posts: 617
Re: broken DLL's
« Reply #16 on: May 11, 2010, 03:47:31 AM »
Huh, it actually gets through loading the Main Menu screen but dies at loading the Load Game screen for some reason. I checked the LoadGame.txt file and it seems fine, same Windows end-of-line characters and all data in the proper layout etc. So, something else in there.

Yeah, so, another debug EXE which logs operation by operation when loading and setting up that screen:
http://www.mediafire.com/file/jm0tnnjxjto/wm_debug.zip

exodia91

  • Guest
Re: broken DLL's
« Reply #17 on: May 11, 2010, 02:00:26 PM »
Loading configration variables from '.\Resources\Data\config.xml'
calling init
Initializing Graphics
Reading Screen Mode
Initializing SDL
Setting Window Icon
Determining Fullscreen or Windowed Mode
Setting Window Caption
Initializing TTF
Graphics Initialized
Background Image Set
Loading InterfaceColors
Loading Main Menu Screen
Loading MainMenu
Loading Load Game Screen
...open LoadGame
...seek
...line1
...create window
...line2
...add listbox

Offline Dagoth

  • Administrator
  • *****
  • Posts: 617
Re: broken DLL's
« Reply #18 on: May 11, 2010, 03:35:47 PM »
Well, continuing to narrow it down. Slowly but surely.  :D

It's therefore crapping out when trying to set up the listbox on that screen. I'll post another one shortly with debug output for all of the listbox creation code.

In the meantime, you might try this set of updated DLLs in the game folder. Might work:
http://www.mediafire.com/file/bnmzzm2gnn3/DLLs.zip

EDIT: and the latest debug EXE, to hopefully pinpoint exactly where it fails this time:
http://www.mediafire.com/file/4ctnyezymty/wm_debug.zip
« Last Edit: May 11, 2010, 04:01:29 PM by Dagoth »

Offline Starry

  • Newbie
  • *
  • Posts: 49
Re: broken DLL's
« Reply #19 on: May 11, 2010, 04:59:11 PM »
Yep, still doing it for me.  This is so strange as the game was working fine, I was wondering if its a graphics driver change or an OS update doing it.

Adding listbox...
initializing listbox
values initialized
creating listbox
...creation process started
...setting position
...creating border
...filling border
...creating background
...filling background
...creating and filling more backgrounds

exodia91

  • Guest
Re: broken DLL's
« Reply #20 on: May 11, 2010, 07:21:28 PM »
even with the new dll's

Loading configration variables from '.\Resources\Data\config.xml'
calling init
Initializing Graphics
Reading Screen Mode
Initializing SDL
Setting Window Icon
Determining Fullscreen or Windowed Mode
Setting Window Caption
Initializing TTF
Graphics Initialized
Background Image Set
Loading InterfaceColors
Loading Main Menu Screen
Loading MainMenu
Loading Load Game Screen
Adding listbox...
initializing listbox
values initialized
creating listbox
...creation process started
...setting position
...creating border
...filling border
...creating background
...filling background
...creating and filling more backgrounds

Offline Dagoth

  • Administrator
  • *****
  • Posts: 617
Re: broken DLL's
« Reply #21 on: May 11, 2010, 07:24:27 PM »
Very strange. It managed to create and fill the main background surface, but when it tried to create and fill a few more background surfaces in pretty much exactly the same manner, it crapped out somewhere in there.

OK, this debug EXE should finally pinpoint the exact place in the code where it chokes. Not sure what we'll be able to do from there, but...
http://www.mediafire.com/file/mozmme12gyn/wm_debug.zip

exodia91

  • Guest
Re: broken DLL's
« Reply #22 on: May 11, 2010, 07:47:10 PM »
My computer apparently dislikes the color red.

Loading configration variables from '.\Resources\Data\config.xml'
calling init
Initializing Graphics
Reading Screen Mode
Initializing SDL
Setting Window Icon
Determining Fullscreen or Windowed Mode
Setting Window Caption
Initializing TTF
Graphics Initialized
Background Image Set
Loading InterfaceColors
Loading Main Menu Screen
Loading MainMenu
Loading Load Game Screen
Adding listbox...
initializing listbox
values initialized
creating listbox
...creation process started
...setting position
...creating border
...filling border
...creating background
...filling background
...drawnelements?
...less elements?
...eWidth?
...eHeight?
...creating red background
...filling red background
« Last Edit: May 11, 2010, 08:11:08 PM by exodia91 »

Offline Dagoth

  • Administrator
  • *****
  • Posts: 617
Re: broken DLL's
« Reply #23 on: May 11, 2010, 08:36:28 PM »
My computer apparently dislikes the color red.
Seems that way.  :D

OK, so we know the problem line, this should be the final debug EXE to pinpoint the problem. Unless it's not. ;)
http://www.mediafire.com/file/h4iimyjldyt/wm_debug.zip

This one should output all of the relevant data being used in the line of code it's choking on, along with the line just before that.

exodia91

  • Guest
Re: broken DLL's
« Reply #24 on: May 11, 2010, 08:46:51 PM »
I like the you wish touch

Loading configration variables from '.\Resources\Data\config.xml'
calling init
Initializing Graphics
Reading Screen Mode
Initializing SDL
Setting Window Icon
Determining Fullscreen or Windowed Mode
Setting Window Caption
Initializing TTF
Graphics Initialized
Background Image Set
Loading InterfaceColors
Loading Main Menu Screen
Loading MainMenu
Loading Load Game Screen
Adding listbox...
initializing listbox
values initialized
creating listbox
...creation process started
...setting position
...creating border
...filling border
...creating background
...filling background
...drawnelements?
...less elements?
...eWidth?
...eHeight?
...creating red background
...filling red background (you wish)
DEBUG: -18 x 18
DEBUG1: 200 / 30 / 30
DEBUG2: BG is NOT 0, good
DEBUG3: 02410918

Offline Dagoth

  • Administrator
  • *****
  • Posts: 617
Re: broken DLL's
« Reply #25 on: May 11, 2010, 09:35:39 PM »
Ah, that -18 is the element width and should be 308. I'll check into how that value isn't getting set right. The -18 is to account for the scrollbar section to the right (-16) and the 2 borders (-2), so the listbox width was presumably set to 0 going in.


Let's see if it's being read correctly from LoadMenu.txt. Look for this line in the log, "Input listbox values":
http://www.mediafire.com/file/2jm2znjytmv/wm_debug.zip

EDIT: debug EXE download link updated. I hardcoded the listbox data, so the game might actually run for you now. At the least, it should get further. All the same, please let me know the gamelog output asked for above.
« Last Edit: May 11, 2010, 10:36:35 PM by Dagoth »

exodia91

  • Guest
Re: broken DLL's
« Reply #26 on: May 12, 2010, 01:57:50 AM »
it works... and it doesn't at the same time, the game no longer crashes, but I don't get a menu, just a window with the background picture. and has a stupidly long gamelog. Gonna have to attach this one. Guess its progress though.

Offline Dagoth

  • Administrator
  • *****
  • Posts: 617
Re: broken DLL's
« Reply #27 on: May 12, 2010, 03:32:19 AM »
Yep, it didn't load the data correctly for LoadMenu.txt. This line in your log:
Quote
Input listbox values: 0 | 180 | 0 | 0 | 0
should have been:
Quote
Input listbox values: 8 | 8 | 328 | 288 | 1

I assume it also botched up loading the main menu as well, thus your result.

Now to figure out why it's not reading those files correctly. It seems to have loaded the InterfaceColors.txt file before that correctly based on the listbox debug output correctly indicating the red background colors ("DEBUG1: 200 / 30 / 30"). Hmm. Let me think about this.

Offline Dagoth

  • Administrator
  • *****
  • Posts: 617
Re: broken DLL's
« Reply #28 on: May 12, 2010, 03:57:31 AM »
OK, this one should output what operation of loading each file fails, assuming ifstream properly detects a failure.
http://www.mediafire.com/file/tzjoi3lz4f3/wm_debug.zip

By the way, something else to try: open up each .txt file in \Resources\Interface\ and add a couple of extra blank lines to the end of each.
« Last Edit: May 12, 2010, 04:05:08 AM by Dagoth »

exodia91

  • Guest
Re: broken DLL's
« Reply #29 on: May 12, 2010, 04:17:58 AM »
That totally worked dude. Included the gamelog incase you needed it for something.


Edit: It's... it's so pretty. (sheds a single manly tear)
« Last Edit: May 12, 2010, 04:19:34 AM by exodia91 »