Post by floridafisherman on Dec 8, 2008 15:37:34 GMT
hey, i just discovered this site after doing a bit a research for a retarded game im creating. im just wondering how or where can i post my source code so that others can help me with a few of the problems i currently have. these are my first cracks at programming with QB, so im starting rather primative until i learn more. i used to program with applesoft and although it has alot of similarities, many aspects of the language are vastly different. they are text based only (no graphics at all, even ansi). and dispite the rather primative nature of the games, i still think i am overcomplicating things. but besides this limitation, the games are quite fun. im actually working on 2 games but i am having problems only with 1.
my first game (no problems so far) is an rpg dungeons and dragons type of game. you start with 7 races like human, elf, troll, giant , ect and 7 classes or proffessions like wizard, barbarian, warrior, ranger. you do the classic level up style of play... defeat monsters, gain experience, level up and get stronger. this game has alot of options though with over 120 differnt weapons, 120 armors, 30 differnt spells one can learn, as well as over 300 different types of monsters you can battle. it can get pretty repetative trying to level up since you mainly perform the same actions over and over but there are alot of random events and things that happen to break it up somewhat. this game is about 70% completed and is fully playable to level 100.
the other game is a text only turn-based strategy game simply called wargame4 (the first 3 wargames i programmed using applesoft on an apple2 emulator). its based on the idea of you are the ruler of a nation in the middle of a giant world war involving you and 20 other nations (all comp controlled). you must set up your government, grow food, keep your people happy, set up your industries and military. buy and sell units, ect. the object is to be the last nation standing. along the way, you can use covert ops, diplomacy, trading, bombing, and other things to beat your opponents into submission. this game is about 50% completed and playable, although alot of options are not yet finished.
both games use a special auto-save system i created which saves all your data (and the comps) into random access files. my main problem is in WG4. each nation (21 total) has its own random access file. the problem is pulling up the info for 2 seperate ones at the same time. i also used to same variables for all nations so that also might have increased the difficulty. when i pull the 1st nations stats up, everything is good. everything is fne when i pull the 2nd nations stats too. but when i try to go back to stats from the first so i can compare them, the 2nd nations stats are in its place instead. i can repull the info from the 1st one, but then that overrides the 2nd nations stats. its a problem loop i cant seem to overcome.
would i have been better off using an array instead of individual files and how would i save an array using random access files? (i am not very familiar with using arrays). for the most part i stick with FOR and NEXT statements.
my first game (no problems so far) is an rpg dungeons and dragons type of game. you start with 7 races like human, elf, troll, giant , ect and 7 classes or proffessions like wizard, barbarian, warrior, ranger. you do the classic level up style of play... defeat monsters, gain experience, level up and get stronger. this game has alot of options though with over 120 differnt weapons, 120 armors, 30 differnt spells one can learn, as well as over 300 different types of monsters you can battle. it can get pretty repetative trying to level up since you mainly perform the same actions over and over but there are alot of random events and things that happen to break it up somewhat. this game is about 70% completed and is fully playable to level 100.
the other game is a text only turn-based strategy game simply called wargame4 (the first 3 wargames i programmed using applesoft on an apple2 emulator). its based on the idea of you are the ruler of a nation in the middle of a giant world war involving you and 20 other nations (all comp controlled). you must set up your government, grow food, keep your people happy, set up your industries and military. buy and sell units, ect. the object is to be the last nation standing. along the way, you can use covert ops, diplomacy, trading, bombing, and other things to beat your opponents into submission. this game is about 50% completed and playable, although alot of options are not yet finished.
both games use a special auto-save system i created which saves all your data (and the comps) into random access files. my main problem is in WG4. each nation (21 total) has its own random access file. the problem is pulling up the info for 2 seperate ones at the same time. i also used to same variables for all nations so that also might have increased the difficulty. when i pull the 1st nations stats up, everything is good. everything is fne when i pull the 2nd nations stats too. but when i try to go back to stats from the first so i can compare them, the 2nd nations stats are in its place instead. i can repull the info from the 1st one, but then that overrides the 2nd nations stats. its a problem loop i cant seem to overcome.
would i have been better off using an array instead of individual files and how would i save an array using random access files? (i am not very familiar with using arrays). for the most part i stick with FOR and NEXT statements.