Pink Petal Games

Feedback => Bugs and Game balancing => Topic started by: exodia91 on May 08, 2010, 12:54:25 AM

Title: broken DLL's
Post by: exodia91 on May 08, 2010, 12:54:25 AM
Ok, I've tried everything I can think of to get 1.30 or 1.29 to work, to no avail. Every time 1.30 crashes windows says its SDL.dll's fault, and every time 1.29 crashes it blames SDL_ttf.dll. Is there something windows vista 32-bit does that causes it to not run dlls correctly or something? Cause I'm stumped. I've tried reinstalling, restarting, updating, updating vista, defragmenting, virus and malware scans, registry repairs, everything.
Title: Re: broken DLL's
Post by: Mehzerz on May 08, 2010, 01:44:38 AM
Try downloading an SDL.dll?
Replaced with a simpler download:
http://www.emulator-zone.com/doc.php/psp/pspe.html
Title: Re: broken DLL's
Post by: necno on May 08, 2010, 01:58:36 AM
Hmm well the error you posted elsewhere as I understand it means SDL was trying to load a file but didn't have the information it need. Either the filename or the read mode, I'd probably assume it is the filename. The part of the program that is throwing the error is definitely a part of the SDL code rather than the whoremaster code.


Its obvious to me that you have all the files and I've looked around for similar issues with other people but find nothing. My only guess is it is the vista permissions or something, I don't have a vista machine to test on here but I will get access to one this weekend and see if I can reproduce the error. Sorry I can't be of more help at the moment.
Title: Re: broken DLL's
Post by: Mehzerz on May 09, 2010, 04:13:55 PM
Here's another link about broken .dlls. This one suggests NOT downloading one. But going through various phases... one of which is reinstalling windows. Clearly the safer method I suppose. 


http://pcsupport.about.com/od/findbyerrormessage/a/sdl-dll-not-found-missing-error.htm
Title: Re: broken DLL's
Post by: exodia91 on May 09, 2010, 04:36:14 PM
except its not that it can't find sdl.dll, its that whenever it gets to loading it in the whoremaster startup, it crashes. Also, 2 other people have the exact same problem with 1.29 as me, the SDL_tff.dll crash. I could believe one or two of us having corrupt dll's within the same time perioid, but three people with the exact same issue at the same time? Something else is going on here.
Title: Re: broken DLL's
Post by: delta224 on May 09, 2010, 05:26:21 PM
I think it might be a missing font issue.
Title: Re: broken DLL's
Post by: tlib on May 09, 2010, 05:56:18 PM
Hi exodia91,

Have you tried copying the segoeui.ttf font (in main Whoremaster directory) into your windows fonts folder (usually c:/windows/fonts/ )

If its a permissions thing that my fix it.

Kind Regards,


Tlib
Title: Re: broken DLL's
Post by: exodia91 on May 09, 2010, 06:20:32 PM
I installed both fonts in the whoremaster folder into the fonts folder, it didn't change anything.
Title: Re: broken DLL's
Post by: exodia91 on May 10, 2010, 02:17:07 AM
bumping for new info

what does this from 1.29's gamelog.text

Initializing Graphics
SDL_RWFromFile(): No file or no mode specified

tell you? Cause this is the error I get from 1.29 and it might help me fix the similar one for 1.30
Title: Re: broken DLL's
Post by: Dagoth on May 10, 2010, 06:54:24 AM
That's basically a fairly generic error indicating SDL tried to open a file and failed.

Download this updated EXE for the r349 release:
http://www.mediafire.com/file/zeezkh5yncw/wm_debug.zip

It doesn't have any more chance of working for you than the original, but it should hopefully output a more useful message to gamelog.txt if it's in fact an image file it's having trouble with. Post that info back here if it does.

EDIT: actually, a bit more debug info added for font loading as well. Above link is updated.
Title: Re: broken DLL's
Post by: DocClox on May 10, 2010, 07:38:06 AM
I have a build environment that uses cygwin rather than VSWhatever to create win32 exe files. It might be worth uploading a version of WM built using that to see if it duplicates the problem. If nothing else, it'll give us another data point.

I'll give it another shot this evening.
Title: Re: broken DLL's
Post by: exodia91 on May 10, 2010, 01:29:19 PM
the entire new gamelog

Loading configration variables from '.\Resources\Data\config.xml'
calling init
Initializing Graphics


is exactly the same as the old one T_T
Title: Re: broken DLL's
Post by: Dagoth on May 10, 2010, 02:55:40 PM
the entire new gamelog

Loading configration variables from '.\Resources\Data\config.xml'
calling init
Initializing Graphics


is exactly the same as the old one T_T
Ah, I misunderstood you and thought the game log for 1.30 was the same as the one for 1.29 you posted above, with "SDL_RWFromFile(): No file or no mode specified".

That not being the case, and it never apparently getting that far... here's another EXE with more debug output in the stuff following the graphics initialization log note.
http://www.mediafire.com/file/ygzzetimzyj/wm_debug.zip
Title: Re: broken DLL's
Post by: exodia91 on May 10, 2010, 04:09:16 PM
full gamelog.txt

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
Title: Re: broken DLL's
Post by: Dagoth on May 10, 2010, 05:20:39 PM
OK, that narrows it down to something in LoadInterface(). Hang on and I'll post another EXE to further narrow it down.

EDIT: OK, here:
http://www.mediafire.com/file/elr2zd2uyyz/wm_debug.zip
Title: Re: broken DLL's
Post by: exodia91 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
Title: Re: broken DLL's
Post by: Dagoth 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
Title: Re: broken DLL's
Post by: exodia91 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
Title: Re: broken DLL's
Post by: Dagoth 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
Title: Re: broken DLL's
Post by: Starry 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
Title: Re: broken DLL's
Post by: exodia91 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
Title: Re: broken DLL's
Post by: Dagoth 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 (http://www.mediafire.com/file/mozmme12gyn/wm_debug.zip)
Title: Re: broken DLL's
Post by: exodia91 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
Title: Re: broken DLL's
Post by: Dagoth 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.
Title: Re: broken DLL's
Post by: exodia91 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
Title: Re: broken DLL's
Post by: Dagoth 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.
Title: Re: broken DLL's
Post by: exodia91 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.
Title: Re: broken DLL's
Post by: Dagoth 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.
Title: Re: broken DLL's
Post by: Dagoth 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.
Title: Re: broken DLL's
Post by: exodia91 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)
Title: Re: broken DLL's
Post by: Dagoth on May 12, 2010, 04:35:00 AM
So adding the extra blank lines at the ends of those files fixed it? Awesome. I'll include that in the next release then.

EDIT: included in r372.
http://pinkpetal.org/index.php?topic=351.msg6684#msg6684