debugging help.

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
sid6.7
Veteran
Posts: 318
Joined: Tue Jun 21, 2005 8:51 am
Location: west USA
Contact:

debugging help.

Post by sid6.7 »

okay i made awhile back and little map maker for the game called wesnoth. as the maps there are based on text files it was EASY to
make. well wesnoth went and change the format of the file so
now i am having to re-update the program.

my first version works GREAT and is still good if you use
the old version of wesnoth. so really it was just a matter
of plugging in the new values where the old values were
and tweaking 3 things.

for some reason this breaks the program in a very odd way
in 2 different ways.

its LARGE for me and has about 570 lines of code...

i'm trying to avoid re-writing the whole thing as it works fine
for the old format.

would anyone have some REAL time to take a crack at debugging it with me?


i've spent about 4 hours so far..tweaking and debugging it.

here is a sample of what a typical 5x10 map file looks like:

Code: Select all

border_size=1
usage=map

Gg,Gg,Gg,Gg,Ch,1 CH,Gg,Gg,Gg,Gg
Gg^Ve,Gg,Gg,Gg,Gs^Fp,Gg,Gg,Gg,Gg,Gg
Gg,Gg,Gg,Gg,Gg,Gg,Gg,Gg,Ww,Ww
Gg,Hh,Hh,Mm,Mm,Hh,Hh,Gg,Gg,Gg
Gg,Gg,Gg,Gg,Gg,Gg,Gg,Gg,Gg,Gg

if your willing i'll post the code or email it to you....

thanks
wally
sid6.7
Veteran
Posts: 318
Joined: Tue Jun 21, 2005 8:51 am
Location: west USA
Contact:

Post by sid6.7 »

i'd like to thank ralph for doing ALOT of stuff to help me
with upgrading my program to its new version.

i've worked with 2 people here on programs and i have found it
to be really fun and EDUCATIONAL. i REALLY recommend that
if you have a chance DO IT...and keep your mind open to
other ways to do things.


here is a sample of what a text file used for map creation
turns into when the map gets loaded into the game...

i've done this on a couple game map creators and its quite fun.

heres the file: http://www.sixbynine.net/filequick/25

TEXT RULES!... :)

Image
Last edited by sid6.7 on Fri Aug 08, 2008 2:47 pm, edited 1 time in total.
Ralph
Veteran
Posts: 148
Joined: Fri Feb 09, 2007 3:10 pm
Location: Katy, Texas

Post by Ralph »

I've got to admit that the final result makes it worth all the effort! The picture you show is wonderful, especially knowing that it is based on your, personal design! Keep QuickBASICing!
Ralph, with QuickBASIC 4.5, operating under Windows XP, wiht anHP LaserJet 4L Printer. Bilingual in English/Spanish
Post Reply