ashground
|
I... JUST... DEBUGED... FOR... AN HOUR... AND... A HALF.
ARRRRRGGGGGGGGHHHHHHHHHHHHHH!!!
Fixed it, tho. And now, the world is a better place. There was one stupid line of code that made the entire program crash. Maybe I should make note of it for future reference...
I have a weather script which is included from the map script. All that links it to the map script is the include command--"from weather import *".
In "weather.py", I had two lines of code in the root (besides classes and functions), "i_Rain=Image()", and "i_Rain.Load("images\rain.png")". Simple enough? Okay. But the directory sorting was doing funny things to my code (using "images\rain.png" would work in one place, crash in others, and reversing the slash, "images/rain.png", also only worked part of the time. If anyone can point out any reason for this, tell me... otherwise I'll just put the images into a packfile when I can). Because of the freaky-weird directory problems, I moved the images back into my game's root directory. I removed the "images\" from all my images loads, except I forgot about the rain called from the weather.
That was enough to crash Verge when the map was loaded. Talk about a hard bug to trace. I had backup copies of everything I was substituting, logfiles galore... but I finally fixed it.
I guess this would be as good a time as any to tell everyone that the game I'm working on right now is NOT Soulhack. In fact, Soulhack (aka Well of Souls) has been scrapped. Nixed. Killed. But in its wake, there's something else rising... a short story game called Abortion. That's what I'm working on right now. Until recently, I've been porting all the old Soulhack code over to Python, and I'm happy to say that all the work I've done on Soulhack has made the transition. Menus, textboxes, weather effects... it's all going to make coding Abortion very easy. Some of the graphics will also be reused for the first time :) However, the battle system (which was VERY buggy) has been removed.
So stay tuned. I'll post more when the game is near completion. Don't expect any big teasers or previews until it's actually released... the game comes first.
Posted on 2001-08-15 00:50:45
|
andy
|
When I'm through, v2.7 will NEVER EVER crash due to anything you can code in Python. If v2.7 crashes, it's a bug. ^_^ There is a huge-ass memory problem sitting in gfx_soft somewhere. It's my current task, as a matter of fact.
I don't think putting your images in a subdirectory will cause any problems. You should be using a forwrad slash, though. "images/blah.png"
"Ignorance is its own reward" -- Proverb
Posted on 2001-08-15 09:26:03
|