Re: Need help with a whole bunch of things
A tip:
-use a fixed length font, i.e. courier new.
even better:
- get UltraEdit, or a proper text editor. I couldn't live without ultraedit - it's worth the 20 bucks or whatever it costs.
BUT
yes you can create it in word and then copy it to notepad. but it will cause headaches.
Honestly, if you don't have a real text editor (ultraedit or textpad to name a couple) it might even be easier to use the old DOS "Edit" program. just click start, run, then type edit. The mouse may not work well (doesn't for me) but you can use alt to get to the menus and tab to select "msgbox" options. theres no unwanted word-wrapping, it's fixed width so 1 and 0 or W all take up the same length (meaning your columns will line up nicely). and you can show off how hardcore you are cause you are using an old Dos editor ("cause it's better than Windoze man! Hey - if i could run Unix on this box I would") ;)
Anyway, back in highschool i did a similar project in C++ and I used the dos Edit program to create my map instead of Notepad. It just lets you type and doesn't try to do any thinking for you, which in this instance is probably a good thing!
Re: Need help with a whole bunch of things
No no... it had nothing to do with different character lengths throwing me off.
It had to do with maintaining a count of 100 characters per line.
I don't have that great of a memory, and that is helped even more by having adhd...
That was why I wanted to use word, I could easily count how many characters each line had. If there is a text program that lets you set character limit per line, LINK LINK LINK though please. It would help me out a lot if I ever want to get back into writing FAQs for gamefaqs, and just in general.
Re: Need help with a whole bunch of things
Well, alright, I'm going to start another topic about my next thing, which is connected to this one...
Since I am way too lazy to write out a text file, and because I just can't seem to find an easy way to convert the maze into file of 0,1,2,3, etc, so I am just going to create a program that will do it for me, with manual work on my part telling it what the square is.
Re: Need help with a whole bunch of things
Bah.... I just can't seem to get BitBlt.... maybe it because I can't find a decent enough tutorial... the ones given to me were, for the first one, too simplified, so it lacked several things other tutorials had told me, and the second one, the example file was moved, so it couldn't be downloaded so I was just left with a tutorial that went along with a file I couldn't get, and then all the other ones I find are too hard, too easy, or I do get in a way, but have no clue how to actually apply to my project.... Maybe I should just remove the blue bg....
Re: Need help with a whole bunch of things
Due to time restrictions, I shrunk the map to about 1/4 its original size.
Added Status Display instead of Inventory box, no point with such a small maze.
Still have to convert maze into .txt file in terms of numbers, and still need to know how to load it into an array and then also what else to do after it is loaded into an array
Re: Need help with a whole bunch of things
Load it in arrays
load the whole in a var
Split the var (look at Split function in Vb help) for VbCrlf and you get
an array of lines.
If you wrote it so that all 0 and 1 are separated by nothing, you will have to
manually convert each line (content of a cell of this array) into smaller pieces.
you could use a collection or a fixed 0-99 cells array, and load each char in it
using Mid$ function in a loop....
If you put a separator between numbers, you will have each line of more than
100 chars (should be 199), but you can use again split function to get an array
out of each line (=cell of first array) in a single operation.
Re: Need help with a whole bunch of things
Little things that need to be done:
Finish up start and end game buttons so when ended, it looks like nothing happened
Big things left:
Everything hard about the maze (the .txt, the array, etc)
Re: Need help with a whole bunch of things
Mkay, it is now a maze of 27x22 tiles which are 100x100 pixels each... still have to turn it into a .txt file
And then after that, I have no idea....
I know all the code is in this topic pretty much to do all of it but I still have no clue how to functionally use all of it.
Re: Need help with a whole bunch of things
Bah... I have to work for another 9 hours tomorrow so that takes out about..... 15 possible hours of coding because I have to sleep earlier
It gonna be a fun sunday.... be prepared for some heavy question bombardment on sunday
Re: Need help with a whole bunch of things
And no one offered any help during all that.... ah well... as long as you are there tomorrow...
Re: Need help with a whole bunch of things
Alright... once I get the text file done, I am just gonna give you the link to the file to you can download it and mess around with it, and possibly tell me how I am going to do all of this since it is due tomorrow pretty much, unless I can talk my way into getting a little extension....
Just be warned, it could be severely.... severely.... messy.....
Re: Need help with a whole bunch of things
Alright, got the text file done, and the link to the .zip is
http://www.sd36.bc.ca/earlma/bruce/P...ounds/game.zip
1.8 megs because of some earlier .exes in there but meh
Edit:Now reduced to 500kb
Major thanks to anyone who decides to help me finish this up
Re: Need help with a whole bunch of things
What happened to all the support I was getting earlier on?
Re: Need help with a whole bunch of things
Added a help screen, which gives instructions on how to play, not like people with a brain would need it though.
Re-added the stuff I had previously for loading the file, which were removed accidently through not remembering to re-get the files after having done some work at school while I was at home